slicing by value set tests

This commit is contained in:
Grahame Grieve 2019-08-05 15:47:30 +10:00
parent 6f6cd81552
commit 1d10470e9c
4 changed files with 38 additions and 2 deletions

2
.gitignore vendored
View File

@ -290,3 +290,5 @@ local.properties
/org.hl7.fhir.r5/src/test/resources/snapshot-generation/dv1-actual.xml /org.hl7.fhir.r5/src/test/resources/snapshot-generation/dv1-actual.xml
/org.hl7.fhir.r5/src/test/resources/snapshot-generation/t45-actual.xml /org.hl7.fhir.r5/src/test/resources/snapshot-generation/t45-actual.xml
/org.hl7.fhir.r4b /org.hl7.fhir.r4b
/org.hl7.fhir.r5/src/test/resources/gen/gen.xml
/org.hl7.fhir.r5/src/test/resources/graphql/*.out

View File

@ -854,9 +854,9 @@
"errorCount": 0, "errorCount": 0,
"warningCount": 0 "warningCount": 0
}, },
"valueset-slicing-med.xml" : { "valueset-slicing-meds.xml" : {
"version" : "3.0", "version" : "3.0",
"profiles": [ "codesystems": [
"valueset-slicing-med-cs.xml" "valueset-slicing-med-cs.xml"
], ],
"errorCount": 0, "errorCount": 0,
@ -864,6 +864,17 @@
"source": "valueset-slicing-med-profile.xml", "source": "valueset-slicing-med-profile.xml",
"errorCount": 0 "errorCount": 0
} }
},
"valueset-slicing-meds-bad.xml" : {
"version" : "3.0",
"codesystems": [
"valueset-slicing-med-cs.xml"
],
"errorCount": 0,
"profile": {
"source": "valueset-slicing-med-profile.xml",
"errorCount": 1
}
} }
} }
} }

View File

@ -6,6 +6,7 @@
<status value="draft"/> <status value="draft"/>
<compose> <compose>
<include> <include>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<concept> <concept>
<code value="s1"/> <code value="s1"/>
</concept> </concept>
@ -22,6 +23,7 @@
<status value="draft"/> <status value="draft"/>
<compose> <compose>
<include> <include>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<concept> <concept>
<code value="s2"/> <code value="s2"/>
</concept> </concept>
@ -38,6 +40,7 @@
<status value="draft"/> <status value="draft"/>
<compose> <compose>
<include> <include>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<concept> <concept>
<code value="s3"/> <code value="s3"/>
</concept> </concept>
@ -54,6 +57,7 @@
<status value="draft"/> <status value="draft"/>
<compose> <compose>
<include> <include>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<concept> <concept>
<code value="s4"/> <code value="s4"/>
</concept> </concept>

View File

@ -0,0 +1,19 @@
<Medication xmlns="http://hl7.org/fhir">
<code>
<coding>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<code value="s1"/>
</coding>
<coding>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<code value="s1"/>
</coding>
<coding>
<system value="http://tst.org/fhir/CodeSystem/test-meds"/>
<code value="s3"/>
</coding>
<text value="some text"/>
</code>
<status value="active"/>
<isBrand value="false"/>
</Medication>