Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ cssrc/
.metadata/
fmk-160-idws-schema-classes/target/
fmk-160-schema-classes/target/
fmk-160-advis/target/
mc160_wsdl/target/
mc160idws_wsdl/target/
SchemaLoader/target/
.flattened-pom.xml
fmk-160-idws-schema-classes/.flattened-pom.xml
fmk-160-schema-classes/.flattened-pom.xml
fmk-160-advis/.flattened-pom.xml
mc160_wsdl/.flattened-pom.xml
mc160idws_wsdl/.flattened-pom.xml
SchemaLoader/.flattened-pom.xml
Expand Down
20 changes: 20 additions & 0 deletions etc/jaxb/Advis_bindings.xjb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<jaxb:bindings xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
version="3.0">

<jaxb:bindings schemaLocation="../schemas/2022/01/01/advis/medicinecard/MedicineCardModification.xsd"
node="/xs:schema">
<jaxb:schemaBindings>
<jaxb:package name="dk.fmk_teknik._160.advis_schema"/>
</jaxb:schemaBindings>
</jaxb:bindings>

<jaxb:bindings schemaLocation="../schemas/2022/01/01/advis/LostAdvis.xsd"
node="/xs:schema">
<jaxb:bindings node="xs:complexType[@name='LostAdvisType']/xs:sequence/xs:element[@name='ResumeAt']">
<xjc:javaType name="java.time.LocalDateTime"
adapter="dk.medicinkortet.bindings.XmlLocalDateTimeAdapter"/>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
18 changes: 18 additions & 0 deletions etc/schemas/2022/01/01/advis/LostAdvis.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<element name="LostAdvis" type="mc160:LostAdvisType">
<annotation>
<documentation xml:lang="en-GB">Indicates that earlier advisories might have been lost and clients should resynchronise</documentation>
<documentation xml:lang="da-DK">Angiver at tidligere adviseringer kan være gået tabt, og at klienter bør synkronisere igen</documentation>
</annotation>
</element>
<complexType name="LostAdvisType">
<sequence>
<element name="ResumeAt" type="dateTime" />
</sequence>
</complexType>
</schema>
15 changes: 15 additions & 0 deletions etc/schemas/2022/01/01/advis/common/OrderIdentifier.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="OrderIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Unique identifier for an order on a warrant</documentation>
<documentation xml:lang="da-DK">Unik identifikator for en bestilling på et udleveringsgrundlag</documentation>
</annotation>
<restriction base="long">
<minInclusive value="1"/>
</restriction>
</simpleType>
</schema>
38 changes: 38 additions & 0 deletions etc/schemas/2022/01/01/advis/common/PersonIdentifier.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="Source.xsd"/>

<complexType name="PersonIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Identifier for a person</documentation>
<documentation xml:lang="da-DK">Identifikator for en person</documentation>
</annotation>
<simpleContent>
<extension base="mc160:PersonIdentifierValueType">
<attribute name="source" type="mc160:PersonIdentifierSourceType" use="required"/>
</extension>
</simpleContent>
</complexType>

<simpleType name="PersonIdentifierValueType">
<restriction base="string">
<minLength value="1"/>
<maxLength value="50"/>
</restriction>
</simpleType>

<simpleType name="PersonIdentifierSourceType">
<union memberTypes="mc160:PersonIdentifierPredefinedSourceType mc160:UndefinedSourceType"/>
</simpleType>

<simpleType name="PersonIdentifierPredefinedSourceType">
<restriction base="mc160:UndefinedSourceType">
<enumeration value="CPR"/>
<enumeration value="X-eCPR"/>
</restriction>
</simpleType>
</schema>
24 changes: 24 additions & 0 deletions etc/schemas/2022/01/01/advis/common/Source.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<attribute name="Source" type="mc160:UndefinedSourceType">
<annotation>
<documentation xml:lang="en-GB">Source that defines an identifier value</documentation>
<documentation xml:lang="da-DK">Kilde, der definerer en identifikatorværdi</documentation>
</annotation>
</attribute>
<simpleType name="UndefinedSourceType">
<restriction base="string">
<minLength value="1"/>
<maxLength value="200"/>
</restriction>
</simpleType>
<simpleType name="ExtendedLocalSourceType">
<restriction base="mc160:UndefinedSourceType">
<pattern value="Local:.*"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="UndefinedModificationActionType">
<annotation>
<documentation xml:lang="en-GB">Base type of any modification</documentation>
<documentation xml:lang="da-DK">Typen af en vilkårlig modifikation</documentation>
</annotation>
<restriction base="string">
<minLength value="1"/>
<maxLength value="50"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="DispensingCardIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Unique identifier for a dispensing card</documentation>
<documentation xml:lang="da-DK">Unik identifikator for et dispenseringskort</documentation>
</annotation>
<restriction base="long">
<minInclusive value="0"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="DispensingCardModificationAction.xsd"/>
<include schemaLocation="DispensingCardModificationIdentifiers.xsd"/>

<element name="DispensingCardModification" type="mc160:DispensingCardModificationType"/>

<complexType name="DispensingCardModificationType">
<annotation>
<documentation xml:lang="en-GB">Information about a dispensing card modification</documentation>
<documentation xml:lang="da-DK">Information om en ændring af et dispenseringskort</documentation>
</annotation>
<sequence>
<element name="Action" type="mc160:DispensingCardModificationActionType"/>
<element name="DispensingCard" type="mc160:DispensingCardModificationIdentifiersType"/>
<any minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="../common/UndefinedModificationAction.xsd"/>

<simpleType name="DispensingCardModificationActionType">
<annotation>
<documentation xml:lang="en-GB">Type of dispensing card modification</documentation>
<documentation xml:lang="da-DK">Type af ændring af et dispenseringskort</documentation>
</annotation>
<union memberTypes="mc160:PredefinedDispensingCardModificationActionType mc160:UndefinedModificationActionType"/>
</simpleType>
<simpleType name="PredefinedDispensingCardModificationActionType">
<restriction base="mc160:UndefinedModificationActionType">
<enumeration value="DispensingCardCreated"/>
<enumeration value="DispensingCardClosed"/>
<enumeration value="DispensingRegistered"/>
<enumeration value="DispensingPeriodStatusChanged"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="../common/PersonIdentifier.xsd"/>
<include schemaLocation="DispensingCardIdentifier.xsd"/>
<include schemaLocation="DispensingPeriodInformation.xsd"/>

<complexType name="DispensingCardModificationIdentifiersType">
<annotation>
<documentation xml:lang="en-GB">Identifiers for a dispensing card modification</documentation>
<documentation xml:lang="da-DK">Identifikatorer for en ændring af et dispenseringskort</documentation>
</annotation>
<sequence>
<element name="PersonIdentifier" type="mc160:PersonIdentifierType"/>
<element name="Identifier" type="mc160:DispensingCardIdentifierType"/>
<element name="DispensingPeriod" type="mc160:DispensingPeriodInformationType" minOccurs="0"/>
</sequence>
</complexType>
</schema>
15 changes: 15 additions & 0 deletions etc/schemas/2022/01/01/advis/dispensing/DispensingIdentifier.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="DispensingIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Unique identifier for a dispensing</documentation>
<documentation xml:lang="da-DK">Unik identifikator for en dispensering</documentation>
</annotation>
<restriction base="long">
<minInclusive value="0"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="DispensingPeriodIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Unique identifier for a dispensing period</documentation>
<documentation xml:lang="da-DK">Unik identifikator for en dispenseringsperiode</documentation>
</annotation>
<restriction base="long">
<minInclusive value="0"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="DispensingIdentifier.xsd"/>
<include schemaLocation="DispensingPeriodIdentifier.xsd"/>

<complexType name="DispensingPeriodInformationType">
<annotation>
<documentation xml:lang="en-GB">Information about a dispensing period, optionally including a status change or an affected dispensing</documentation>
<documentation xml:lang="da-DK">Information om en dispenseringsperiode, eventuelt med en statusændring eller en berørt dispensering</documentation>
</annotation>
<sequence>
<element name="Identifier" type="mc160:DispensingPeriodIdentifierType"/>
<choice minOccurs="0">
<sequence>
<element name="OldStatus" type="string"/>
<element name="NewStatus" type="string"/>
</sequence>
<element name="DispensingIdentifier" type="mc160:DispensingIdentifierType"/>
</choice>
</sequence>
</complexType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="DrugAdministrationIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Unique identifier for a drug administration</documentation>
<documentation xml:lang="da-DK">Unik identifikator for en faktisk administration</documentation>
</annotation>
<restriction base="long">
<minInclusive value="1"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="../common/UndefinedModificationAction.xsd"/>

<simpleType name="PredefinedDrugAdministrationModificationActionType">
<restriction base="mc160:UndefinedModificationActionType">
<enumeration value="DrugAdministrationCreated"/>
<enumeration value="DrugAdministrationRemoved"/>
<enumeration value="DrugAdministrationInvalidated"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<simpleType name="DrugMedicationIdentifierType">
<annotation>
<documentation xml:lang="en-GB">Unique identifier for a drug medication</documentation>
<documentation xml:lang="da-DK">Unik identifikator for en lægemiddelordination</documentation>
</annotation>
<restriction base="long">
<minInclusive value="1"/>
</restriction>
</simpleType>
</schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:mc160="http://fmk-teknik.dk/160/advis"
targetNamespace="http://fmk-teknik.dk/160/advis"
elementFormDefault="qualified">

<include schemaLocation="../common/UndefinedModificationAction.xsd"/>

<simpleType name="PredefinedDrugMedicationModificationActionType">
<restriction base="mc160:UndefinedModificationActionType">
<enumeration value="DrugMedicationCreated"/>
<enumeration value="DrugMedicationUpdated"/>
<enumeration value="DrugMedicationPaused"/>
<enumeration value="DrugMedicationUnpaused"/>
<enumeration value="DrugMedicationWithdrawn"/>
<enumeration value="DrugMedicationUnwithdrawn"/>
<enumeration value="DrugMedicationInvalidated"/>
<enumeration value="DrugMedicationEpisodesRegistered"/>
<enumeration value="DrugMedicationEpisodesUnregistered"/>
</restriction>
</simpleType>
</schema>
Loading