Merge pull request #18 from lmckenzi/Problem-with-polymorphic

Problem with polymorphic
This commit is contained in:
Grahame Grieve 2019-05-15 12:31:46 +10:00 committed by GitHub
commit c17c2802d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 64 additions and 1 deletions

View File

@ -466,6 +466,13 @@
"profile" : {
"source" : "extension-slice-profile.xml",
"errorCount": 0
},
},
"slice-by-polymorphic-type2.xml" : {
"errorCount": 0,
"profile" : {
"source" : "slice-by-polymorphic-type2-profile.xml",
"errorCount": 0
}
},
"observation-cholesterol-good.xml" : {
@ -483,6 +490,6 @@
"errorCount": 2,
"errors": ["ERROR: Observation.code.coding.code: Value is '13457-7' but must be '35200-5'","ERROR: Observation.code.coding.display: Value is 'Cholesterol in LDL [Mass/volume] in Serum or Plasma by calculation' but must be 'Cholesterol [Moles/?volume] in Serum or Plasma'"]
}
}
}
}
}

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="slice-by-polymorphic-type2-profile"/>
<url value="http://hl7.org/fhir/StructureDefinition/slice-by-polymorphic-type2-profile"/>
<name value="SliceByPolymorphicType2Profile"/>
<title value="Test slicing by polymorphic type"/>
<status value="draft"/>
<kind value="resource"/>
<abstract value="false"/>
<type value="PlanDefinition"/>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/>
<derivation value="constraint"/>
<differential>
<element id="PlanDefinition">
<path value="PlanDefinition"/>
</element>
<element id="PlanDefinition.goal">
<path value="PlanDefinition.goal"/>
</element>
<element id="PlanDefinition.goal.target">
<path value="PlanDefinition.goal.target"/>
</element>
<element id="PlanDefinition.goal.target.detail[x]">
<path value="PlanDefinition.goal.target.detail[x]"/>
<type>
<code value="CodeableConcept"/>
</type>
<type>
<code value="Range"/>
</type>
</element>
<element id="PlanDefinition.goal.target.detailCodeableConcept">
<path value="PlanDefinition.goal.target.detailCodeableConcept"/>
<type>
<code value="CodeableConcept"/>
</type>
<mustSupport value="true"/>
</element>
</differential>
</StructureDefinition>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--<PlanDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../../../../../FHIR/schema/fhir-single.xsd">-->
<PlanDefinition xmlns="http://hl7.org/fhir">
<id value="slice-by-polymorphic-type2"/>
<status value="active"/>
<goal>
<description>
<text value="Some goal"/>
</description>
<target>
<detailCodeableConcept>
<text value="Some Text"/>
</detailCodeableConcept>
</target>
</goal>
</PlanDefinition>