Skip to content

Commit

Permalink
Added separate type for historical patient data to support child status
Browse files Browse the repository at this point in the history
  • Loading branch information
joratrifork committed Jan 11, 2024
1 parent 2c5a493 commit ce7994b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schemas/2022/12/01/GetPatientStatusHistoryResponse.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
targetNamespace="http://lmst.dk/ctr/xml.schema/2022/12/01"
elementFormDefault="qualified">

<include schemaLocation="PatientStatus.xsd"/>
<include schemaLocation="PatientHistoricalStatus.xsd"/>

<element name="GetPatientStatusHistoryResponse">
<annotation>
Expand All @@ -13,7 +13,7 @@
</annotation>
<complexType>
<sequence>
<element name="PatientHistoryStatus" type="ctr:PatientStatusType" minOccurs="0" maxOccurs="unbounded"/>
<element name="PatientHistoryStatus" type="ctr:PatientHistoricalStatusType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
Expand Down
26 changes: 26 additions & 0 deletions src/schemas/2022/12/01/PatientHistoricalStatus.xsd
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:ctr="http://lmst.dk/ctr/xml.schema/2022/12/01"
targetNamespace="http://lmst.dk/ctr/xml.schema/2022/12/01"
elementFormDefault="qualified">

<include schemaLocation="PatientStatusValue.xsd"/>
<include schemaLocation="IsChild.xsd"/>
<include schemaLocation="ValidFromDate.xsd"/>
<include schemaLocation="ValidToDate.xsd"/>

<element name="PatientHistoricalStatus" type="ctr:PatientHistoricalStatusType">
<annotation>
<documentation xml:lang="en-GB">Historical Patient status</documentation>
<documentation xml:lang="da-DK">Historisk Patientstatus</documentation>
</annotation>
</element>
<complexType name="PatientHistoricalStatusType">
<sequence>
<element name="Status" type="ctr:PatientStatusValueType"/>
<element name="Child" type="ctr:IsChildType"/>
<element name="ValidFromDate" type="ctr:ValidFromDateType" minOccurs="0"/>
<element name="ValidToDate" type="ctr:ValidToDateType" minOccurs="0"/>
</sequence>
</complexType>
</schema>

0 comments on commit ce7994b

Please # to comment.