Add various test cases
This commit is contained in:
14
input/resources/library-example-image.xml
Normal file
14
input/resources/library-example-image.xml
Normal file
File diff suppressed because one or more lines are too long
14
input/resources/library-example-sql.xml
Normal file
14
input/resources/library-example-sql.xml
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user