Add various test cases

This commit is contained in:
Grahame Grieve
2020-09-25 03:23:14 +10:00
parent dbbed53f65
commit 44596ce112
6 changed files with 97 additions and 325 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<Library xmlns="http://hl7.org/fhir">
<url value="http://somewhere.org/fhir/uv/myig/Library/example-sql"/>
<version value="1.0.0"/>
<name value="ExampleLibrary"/>
<title value="Example Library"/>
<status value="draft"/>
<experimental value="true"/>
<date value="2020-05-15T00:00:00.000+10:00"/>
<content>
<contentType value="text/x-sql"/>
<data value="U0VMRUNUIEN1c3RvbWVycy5DdXN0b21lck5hbWUsIE9yZGVycy5PcmRlcklEDQpGUk9NIEN1c3RvbWVycw0KTEVGVCBKT0lOIE9yZGVycw0KT04gQ3VzdG9tZXJzLkN1c3RvbWVySUQ9T3JkZXJzLkN1c3RvbWVySUQNCk9SREVSIEJZIEN1c3RvbWVycy5DdXN0b21lck5hbWU7DQo="/>
</content>
</Library>

View File

@@ -13,6 +13,23 @@
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation"/>
<derivation value="constraint"/>
<differential>
<element id="Observation.basedOn">
<path value="Observation.basedOn"/>
<mustSupport value="true"/>
</element>
<element id="Observation.partOf">
<path value="Observation.partOf"/>
<type>
<code value="Reference"/>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
<valueBoolean value="true"/>
</extension>
</targetProfile>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization"/>
</type>
<mustSupport value="true"/>
</element>
<element id="Observation.code">
<path value="Observation.code"/>
<patternCodeableConcept>
@@ -22,6 +39,35 @@
</coding>
</patternCodeableConcept>
</element>
<element id="Observation.subject">
<path value="Observation.subject"/>
<type>
<code value="Reference"/>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient">
<!-- this is an error - it is meaningless unless the element itself is must-support -->
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
<valueBoolean value="true"/>
</extension>
</targetProfile>
</type>
</element>
<element id="Observation.focus">
<path value="Observation.focus"/>
<mustSupport value="true"/>
</element>
<element id="Observation.value[x]">
<path value="Observation.value[x]"/>
<type>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
<valueBoolean value="true"/>
</extension>
<code value="Quantity"/>
</type>
<type>
<code value="CodeableConcept"/>
</type>
<mustSupport value="true"/>
</element>
<element id="Observation.component">
<path value="Observation.component"/>
<slicing>