Revamped to test bad path
This commit is contained in:
parent
e9a2531ea5
commit
8eedf12955
|
@ -1838,40 +1838,25 @@
|
||||||
<description value="fixture for #38: Constrained polymporphic elements"/>
|
<description value="fixture for #38: Constrained polymporphic elements"/>
|
||||||
<kind value="resource"/>
|
<kind value="resource"/>
|
||||||
<abstract value="false"/>
|
<abstract value="false"/>
|
||||||
<type value="MedicationDispense"/>
|
<type value="MedicationRequest"/>
|
||||||
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/>
|
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
|
||||||
<derivation value="constraint"/>
|
<derivation value="constraint"/>
|
||||||
<differential>
|
<differential>
|
||||||
<element>
|
<element>
|
||||||
<path value="MedicationDispense"/>
|
<path value="MedicationRequest"/>
|
||||||
</element>
|
</element>
|
||||||
<element>
|
<element>
|
||||||
<path value="MedicationDispense.dosageInstruction"/>
|
<path value="MedicationRequest.dosageInstruction"/>
|
||||||
</element>
|
</element>
|
||||||
<element>
|
<element>
|
||||||
<!-- Including this element isn't strictly necessary to reproduce the problem. However, its inclusion seemed to prevent certain errors from showing up when I trimmed the instance, so I'm leaving it in -->
|
<path value="MedicationRequest.dosageInstruction.timing"/>
|
||||||
<path value="MedicationDispense.dosageInstruction.extension"/>
|
</element>
|
||||||
<slicing>
|
<element>
|
||||||
<discriminator>
|
<path value="MedicationRequiest.dosageInstruction.timing.event"/>
|
||||||
<type value="value"/>
|
|
||||||
<path value="url"/>
|
|
||||||
</discriminator>
|
|
||||||
<rules value="open"/>
|
|
||||||
</slicing>
|
|
||||||
<mustSupport value="true"/>
|
<mustSupport value="true"/>
|
||||||
</element>
|
</element>
|
||||||
<element>
|
<element>
|
||||||
<path value="MedicationOrder.dosageInstruction.additionalInstruction"/>
|
<path value="MedicationRequest.dosageInstruction.timing.repeat"/>
|
||||||
<type>
|
|
||||||
<code value="Quantity"/>
|
|
||||||
</type>
|
|
||||||
<mustSupport value="true"/>
|
|
||||||
</element>
|
|
||||||
<element>
|
|
||||||
<path value="MedicationOrder.dosageInstruction.doseQuantity"/>
|
|
||||||
<type>
|
|
||||||
<code value="Quantity"/>
|
|
||||||
</type>
|
|
||||||
<mustSupport value="true"/>
|
<mustSupport value="true"/>
|
||||||
</element>
|
</element>
|
||||||
</differential>
|
</differential>
|
||||||
|
@ -3682,9 +3667,9 @@
|
||||||
<action>
|
<action>
|
||||||
<assert>
|
<assert>
|
||||||
<label value="test37"/>
|
<label value="test37"/>
|
||||||
<description value="Snapshot includes polymorphic constrained element"/>
|
<description value="Snapshot missing polymorphic constrained element from differential"/>
|
||||||
<direction value="response"/>
|
<direction value="response"/>
|
||||||
<expression value="fixture('t37o').snapshot.element.where(path = 'MedicationDispense.dosageInstruction.doseQuantity').count() = 1"/>
|
<expression value="fixture('t37o').snapshot.element.where(path = 'MedicationRequest.dosageInstruction.timing.repeat').mustSupport"/>
|
||||||
<warningOnly value="false"/>
|
<warningOnly value="false"/>
|
||||||
</assert>
|
</assert>
|
||||||
</action>
|
</action>
|
||||||
|
|
Loading…
Reference in New Issue