add new test case
This commit is contained in:
parent
a7ef18a6f7
commit
fb8b2dcd70
|
@ -149,7 +149,9 @@
|
|||
]
|
||||
},
|
||||
"synthea.json": {
|
||||
"errorCount": 1
|
||||
"version": "4.0",
|
||||
"errorCount": 2,
|
||||
"errors-for-debugging" : ["ERROR: /Encounter/reasonCode: This property must be an Array, not an Object", "ERROR: Encounter.status: The value provided ('completed') is not in the value set http://hl7.org/fhir/ValueSet/encounter-status|4.1.0 (http://hl7.org/fhir/ValueSet/encounter-status, and a code is required from this value set) (error message = Unknown Code http://hl7.org/fhir/encounter-status#completed in http://hl7.org/fhir/encounter-status)"]
|
||||
},
|
||||
"patient-good.json": {
|
||||
"errorCount": 0,
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
<List xmlns="http://hl7.org/fhir">
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i1"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile2"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i2"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile2"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i3"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile2"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i4"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile3"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<status value="current"/>
|
||||
<mode value="working"/>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i1"/>
|
||||
</item>
|
||||
</entry>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i2"/>
|
||||
</item>
|
||||
</entry>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i3"/>
|
||||
</item>
|
||||
</entry>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i4"/>
|
||||
</item>
|
||||
</entry>
|
||||
</List>
|
|
@ -0,0 +1,68 @@
|
|||
<List xmlns="http://hl7.org/fhir">
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i1"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile1"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i2"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile2"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i3"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile2"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<contained>
|
||||
<Basic>
|
||||
<id value="i4"/>
|
||||
<code>
|
||||
<coding>
|
||||
<system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/>
|
||||
<code value="profile3"/>
|
||||
</coding>
|
||||
</code>
|
||||
</Basic>
|
||||
</contained>
|
||||
<status value="current"/>
|
||||
<mode value="working"/>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i1"/>
|
||||
</item>
|
||||
</entry>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i2"/>
|
||||
</item>
|
||||
</entry>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i3"/>
|
||||
</item>
|
||||
</entry>
|
||||
<entry>
|
||||
<item>
|
||||
<reference value="#i4"/>
|
||||
</item>
|
||||
</entry>
|
||||
</List>
|
|
@ -0,0 +1,66 @@
|
|||
<StructureDefinition xmlns="http://hl7.org/fhir">
|
||||
<id value="profile-slicing-profile-list"/>
|
||||
<url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-list"/>
|
||||
<version value="0.1.0"/>
|
||||
<name value="TestProfileList"/>
|
||||
<title value="Test Profile List"/>
|
||||
<status value="draft"/>
|
||||
<date value="3017-09-06T06:30:54+00:00"/>
|
||||
<publisher value="HL7"/>
|
||||
<fhirVersion value="4.0.0"/>
|
||||
<kind value="resource"/>
|
||||
<abstract value="false"/>
|
||||
<type value="List"/>
|
||||
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/List"/>
|
||||
<derivation value="constraint"/>
|
||||
<differential>
|
||||
<element id="List.entry">
|
||||
<path value="List.entry"/>
|
||||
<slicing>
|
||||
<discriminator>
|
||||
<type value="profile"/>
|
||||
<path value="item.resolve().code"/>
|
||||
</discriminator>
|
||||
<ordered value="false"/>
|
||||
<rules value="open"/>
|
||||
</slicing>
|
||||
</element>
|
||||
<element id="List.entry:slice1">
|
||||
<path value="List.entry"/>
|
||||
<sliceName value="slice1"/>
|
||||
<min value="1"/>
|
||||
</element>
|
||||
<element id="List.entry:slice1.item">
|
||||
<path value="List.entry.item"/>
|
||||
<type>
|
||||
<code value="Reference"/>
|
||||
<targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-1"/>
|
||||
</type>
|
||||
</element>
|
||||
<element id="List.entry:slice2">
|
||||
<path value="List.entry"/>
|
||||
<sliceName value="slice2"/>
|
||||
<min value="1"/>
|
||||
<max value="3"/>
|
||||
</element>
|
||||
<element id="List.entry:slice2.item">
|
||||
<path value="List.entry.item"/>
|
||||
<type>
|
||||
<code value="Reference"/>
|
||||
<targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-2"/>
|
||||
</type>
|
||||
</element>
|
||||
<element id="List.entry:slice3">
|
||||
<path value="List.entry"/>
|
||||
<sliceName value="slice3"/>
|
||||
<max value="1"/>
|
||||
</element>
|
||||
<element id="List.entry:slice3.item">
|
||||
<path value="List.entry.item"/>
|
||||
<type>
|
||||
<code value="Reference"/>
|
||||
<targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-3"/>
|
||||
</type>
|
||||
</element>
|
||||
</differential>
|
||||
</StructureDefinition>
|
Loading…
Reference in New Issue