Skip to content
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<description value="Date that data and queries are expected to be relative to."/>
</variable>
<test id="scenario1-x-receive-meddata">
<name value="Scenario 1.x"/>
<description value="Receive MedicationData in a transaction Bundle"/>
<name value="Operation and general checks"/>
<description value="Specifies the query that runs and general checks on the response."/>
<action>
<operation>
<type>
Expand All @@ -65,6 +65,7 @@
<field value="Prefer"/>
<value value="return=representation"/>
</requestHeader>
<responseId value="transaction-response"/>
<sourceId value="mgsets-mp-smg-tst-MA-Scenarioset1-v30"/>
</operation>
</action>
Expand Down Expand Up @@ -229,8 +230,8 @@
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the request Bundle contains 5 MedicationRequest resource(s). "/>
<direction value="request"/>
<description value="Confirm that the response Bundle contains 5 MedicationRequest resource(s). "/>
<direction value="response"/>
<expression value="Bundle.entry.where(resource.is(MedicationRequest)).count() = 5"/>
<warningOnly value="false"/>
</assert>
Expand All @@ -240,11 +241,125 @@
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the request Bundle contains 5 Medication resource(s). "/>
<direction value="request"/>
<description value="Confirm that the response Bundle contains 5 Medication resource(s). "/>
<direction value="response"/>
<expression value="Bundle.entry.where(resource.is(Medication)).count() = 5"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test id="scenario1-x-receive-meddata-identification">
<name value="Resource identification"/>
<description value="Checks if all resources specified by the scenario can be identified unambiguously."/>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 MedicationRequest resource(s) that reference(s) Medication with coding '6947|urn:oid:2.16.840.1.113883.2.4.4.10' (METOCLOPRAMIDE TABLET 10MG)"/>
<expression value="Bundle.entry.select(resource as MedicationRequest).where(medication.resolve().code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '6947')).count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 MedicationRequest resource(s) that reference(s) Medication with coding '26638|urn:oid:2.16.840.1.113883.2.4.4.10' (LISINOPRIL 10MG TABLET)"/>
<expression value="Bundle.entry.select(resource as MedicationRequest).where(medication.resolve().code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '26638')).count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 MedicationRequest resource(s) that reference(s) Medication with coding '3891|urn:oid:2.16.840.1.113883.2.4.4.10' (ACETYLSALICYLZUUR/PARACETAMOL/COF TAB 250/250/50MG)"/>
<expression value="Bundle.entry.select(resource as MedicationRequest).where(medication.resolve().code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '3891')).count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 MedicationRequest resource(s) that reference(s) Medication with coding '52272|urn:oid:2.16.840.1.113883.2.4.4.10' (PANTOPRAZOL TABLET MSR 20MG)"/>
<expression value="Bundle.entry.select(resource as MedicationRequest).where(medication.resolve().code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '52272')).count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 MedicationRequest resource(s) that reference(s) Medication with coding '45624|urn:oid:2.16.840.1.113883.2.4.4.10' (FLUTICASON INHALATIEPOEDER 100UG/DO 60DO DISKUS)"/>
<expression value="Bundle.entry.select(resource as MedicationRequest).where(medication.resolve().code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '45624')).count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 Medication resource that contains code '6947|urn:oid:2.16.840.1.113883.2.4.4.10' (METOCLOPRAMIDE TABLET 10MG)"/>
<expression value="Bundle.entry.select(resource as Medication).code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '6947').count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 Medication resource that contains code '26638|urn:oid:2.16.840.1.113883.2.4.4.10' (LISINOPRIL 10MG TABLET)"/>
<expression value="Bundle.entry.select(resource as Medication).code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '26638').count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 Medication resource that contains code '3891|urn:oid:2.16.840.1.113883.2.4.4.10' (ACETYLSALICYLZUUR/PARACETAMOL/COF TAB 250/250/50MG)"/>
<expression value="Bundle.entry.select(resource as Medication).code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '3891').count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 Medication resource that contains code '52272|urn:oid:2.16.840.1.113883.2.4.4.10' (PANTOPRAZOL TABLET MSR 20MG)"/>
<expression value="Bundle.entry.select(resource as Medication).code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '52272').count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<description value="Confirm that the response Bundle contains 1 Medication resource that contains code '45624|urn:oid:2.16.840.1.113883.2.4.4.10' (FLUTICASON INHALATIEPOEDER 100UG/DO 60DO DISKUS)"/>
<expression value="Bundle.entry.select(resource as Medication).code.coding.where(system = 'urn:oid:2.16.840.1.113883.2.4.4.10' and code = '45624').count() = 1"/>
<sourceId value="transaction-response"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>
Loading