Validator
LOG IN
SIGN UP
Scope
package:hl7.fhir.r3.core@3.0.2
Readonly
If you
Log in
or
sign up
, you can edit this script yourself.
<?xml version="1.0" encoding="UTF-8"?> <TestScript xmlns="http://hl7.org/fhir" xmlns:nts="http://nictiz.nl/xsl/testscript"> <id value="bgz-msz-xis-1-1-retrieve-bgz"/> <meta> <profile value="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"/> </meta> <url value="http://nictiz.nl/fhir/TestScript/bgz-msz-xis-1-1-retrieve-bgz"/> <version value="stu3-3.0-patchlevel 2025-02"/> <name value="BgZ MSZ - Retrieving XIS - Scenario 1.1 - Retrieve BgZ resources of J Kooyman"/> <status value="active"/> <publisher value="Nictiz"/> <contact> <name value="Nictiz"/> <telecom> <system value="email"/> <value value="kwalificatie@nictiz.nl"/> <use value="work"/> </telecom> </contact> <description value="Scenario 1.1 - Retrieve BgZ resources of J Kooyman"/> <origin> <extension url="http://fhir.interoplab.eu/fhir/StructureDefinition/Interoplab-CL-ext-SUT"> <valueBoolean value="true"/> </extension> <index value="1"/> <profile> <system value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/> <code value="FHIR-Client"/> </profile> </origin> <destination> <extension url="http://fhir.interoplab.eu/fhir/StructureDefinition/Interoplab-CL-ext-SUT"> <valueBoolean value="false"/> </extension> <index value="1"/> <profile> <system value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/> <code value="FHIR-Server"/> </profile> </destination> <test id="01-retrieve-Patient"> <name value="Scenario 1.1 - Patient"/> <description value="Query Patient resource including the patient's general practitioner for HCIM Patient"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Patient"/> <description value="Test Client to retrieve Patient resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&_include=Patient:general-practitioner"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Patient resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Patient)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Practitioner resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Practitioner)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="02-retrieve-Payer"> <name value="Scenario 1.1 - Payer"/> <description value="Query Coverage resource(s) including the insurer for HCIM Payer"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Coverage"/> <description value="Test Client to retrieve Coverage resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?beneficiary.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&_include=Coverage:payor:Patient&_include=Coverage:payor:Organization"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Coverage resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Coverage)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Organization resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Organization)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="03a-retrieve-TreatmentDirective"> <name value="Scenario 1.1 - TreatmentDirective"/> <description value="Query Consent resource(s) for HCIM TreatmentDirective"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Consent"/> <description value="Test Client to retrieve Consent resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&category=http://snomed.info/sct|11291000146105"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Consent resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Consent)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="03b-retrieve-AdvanceDirective"> <name value="Scenario 1.1 - AdvanceDirective"/> <description value="Query Consent resource(s) for HCIM AdvanceDirective"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Consent"/> <description value="Test Client to retrieve Consent resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&category=http://snomed.info/sct|11341000146107"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Consent resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Consent)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="04-retrieve-ContactPerson"> <name value="Scenario 1.1 - ContactPerson"/> <description value="Query Patient resource (which contains the patient's first contact person) for HCIM ContactPerson"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Patient"/> <description value="Test Client to retrieve Patient resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Patient resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Patient)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="05-retrieve-FunctionalOrMentalStatus"> <name value="Scenario 1.1 - FunctionalOrMentalStatus"/> <description value="Query Observation resource(s) for HCIM FunctionalOrMentalStatus"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="/$lastn?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&category=http://snomed.info/sct|118228005,http://snomed.info/sct|384821006"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 3 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 3"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="06-retrieve-Problem"> <name value="Scenario 1.1 - Problem"/> <description value="Query Condition resource(s) for HCIM Problem"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Condition"/> <description value="Test Client to retrieve Condition resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 5 Condition resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Condition)).count() = 5"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="07a-retrieve-LivingSituation"> <name value="Scenario 1.1 - LivingSituation"/> <description value="Query Observation resource(s) for last known HCIM LivingSituation"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="/$lastn?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://snomed.info/sct|365508006"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="07b-retrieve-DrugUse"> <name value="Scenario 1.1 - DrugUse"/> <description value="Query Observation resource(s) for HCIM DrugUse"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://snomed.info/sct|228366006"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="07c-retrieve-AlcoholUse"> <name value="Scenario 1.1 - AlcoholUse"/> <description value="Query Observation resource(s) for HCIM AlcoholUse"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://snomed.info/sct|228273003"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="07d-retrieve-TobaccoUse"> <name value="Scenario 1.1 - TobaccoUse"/> <description value="Query Observation resource(s) for HCIM TobaccoUse"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://snomed.info/sct|365980008"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="07e-retrieve-NutritionAdvice"> <name value="Scenario 1.1 - NutritionAdvice"/> <description value="Query NutritionOrder resource(s) for HCIM NutritionAdvice"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="NutritionOrder"/> <description value="Test Client to retrieve NutritionOrder resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 0 NutritionOrder resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(NutritionOrder)).count() = 0"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="08-retrieve-Alert"> <name value="Scenario 1.1 - Alert"/> <description value="Query Flag resource(s) for HCIM Alert"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Flag"/> <description value="Test Client to retrieve Flag resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 2 Flag resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Flag)).count() = 2"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="09-retrieve-AllergyIntolerance"> <name value="Scenario 1.1 - AllergyIntolerance"/> <description value="Query AllergyIntolerance resource(s) for HCIM AllergyIntolerance"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="AllergyIntolerance"/> <description value="Test Client to retrieve AllergyIntolerance resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 3 AllergyIntolerance resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(AllergyIntolerance)).count() = 3"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="11-retrieve-MedicalDevice"> <name value="Scenario 1.1 - MedicalDevice"/> <description value="Query DeviceUseStatement resource(s) including the device for HCIM MedicalDevice"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="DeviceUseStatement"/> <description value="Test Client to retrieve DeviceUseStatement resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&_include=DeviceUseStatement:device"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 2 DeviceUseStatement resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(DeviceUseStatement)).count() = 2"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 2 Device resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Device)).count() = 2"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="12-retrieve-Vaccination"> <name value="Scenario 1.1 - Vaccination"/> <description value="Query Immunization resource(s) for HCIM Vaccination"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Immunization"/> <description value="Test Client to retrieve Immunization resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&status=completed"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 2 Immunization resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Immunization)).count() = 2"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="13a-retrieve-BloodPressure-all"> <name value="Scenario 1.1 - BloodPressure (all)"/> <description value="Query Observation resource(s) for HCIM BloodPressure"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://loinc.org|85354-9"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 3 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 3"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="13b-retrieve-BloodPressure-last"> <name value="Scenario 1.1 - BloodPressure (last)"/> <description value="Query Observation resource(s) for last known HCIM BloodPressure"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="/$lastn?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://loinc.org|85354-9"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="13c-retrieve-BodyWeight"> <name value="Scenario 1.1 - BodyWeight"/> <description value="Query Observation resource(s) for last known HCIM BodyWeight"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="/$lastn?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://loinc.org|29463-7"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="13d-retrieve-BodyHeight"> <name value="Scenario 1.1 - BodyHeight"/> <description value="Query Observation resource(s) for last known HCIM BodyHeight"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="/$lastn?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&code=http://loinc.org|8302-2,http://loinc.org|8306-3,http://loinc.org|8308-9"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="14a-retrieve-LaboratoryTestResult-all"> <name value="Scenario 1.1 - LaboratoryTestResult (all)"/> <description value="Query Observation resource(s) including specimen and related observations for HCIM LaboratoryTestResult"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&category=http://snomed.info/sct|275711006,http://snomed.info/sct|252275004,http://snomed.info/sct|68793005,http://snomed.info/sct|395124008,http://snomed.info/sct|314076009,http://snomed.info/sct|19851009,http://snomed.info/sct|405825005&_include=Observation:related-target&_include=Observation:specimen"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 4 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 4"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <!--<nts:include value="assert.response.numResources" scope="common" resource="Specimen" count="2"/>--> </test> <test id="14b-retrieve-LaboratoryTestResult-last"> <name value="Scenario 1.1 - LaboratoryTestResult (last)"/> <description value="Query Observation resource(s) including specimen and related observations for last known chemistry related HCIM LaboratoryTestResult"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Observation"/> <description value="Test Client to retrieve Observation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="/$lastn?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&category=http://snomed.info/sct|275711006&_include=Observation:related-target&_include=Observation:specimen"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 3 Observation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Observation)).count() = 3"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <!--<nts:include value="assert.response.numResources" scope="common" resource="Specimen" count="2"/>--> </test> <test id="15-retrieve-Procedure"> <name value="Scenario 1.1 - Procedure"/> <description value="Query Procedure resource(s) for HCIM Procedure"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Procedure"/> <description value="Test Client to retrieve Procedure resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 2 Procedure resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Procedure)).count() = 2"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="16a-retrieve-Contact-all"> <name value="Scenario 1.1 - Contact (all)"/> <description value="Query Encounter resource(s) for HCIM Contact"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Encounter"/> <description value="Test Client to retrieve Encounter resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 3 Encounter resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Encounter)).count() = 3"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="16b-retrieve-Contact-hospital-admission"> <name value="Scenario 1.1 - Contact (hospital admission)"/> <description value="Query Encounter resource(s) for hospital admission related HCIM Contact"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Encounter"/> <description value="Test Client to retrieve Encounter resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&class=http://hl7.org/fhir/v3/ActCode|IMP,http://hl7.org/fhir/v3/ActCode|ACUTE,http://hl7.org/fhir/v3/ActCode|NONAC"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 1 Encounter resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Encounter)).count() = 1"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="17a-retrieve-PlannedCareActivity-ProcedureRequest"> <name value="Scenario 1.1 - PlannedCareActivity-ProcedureRequest"/> <description value="Query ProcedureRequest resource(s) for active HCIM PlannedCareActivity-ProcedureRequest"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="ProcedureRequest"/> <description value="Test Client to retrieve ProcedureRequest resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&status=active"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 2 ProcedureRequest resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(ProcedureRequest)).count() = 2"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="17b-retrieve-PlannedCareActivity-ImmunizationRecommendation"> <name value="Scenario 1.1 - PlannedCareActivity-ImmunizationRecommendation"/> <description value="Query ImmunizationRecommendation resource(s) for HCIM PlannedCareActivity-ImmunizationRecommendation"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="ImmunizationRecommendation"/> <description value="Test Client to retrieve ImmunizationRecommendation resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 0 ImmunizationRecommendation resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(ImmunizationRecommendation)).count() = 0"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="17c-retrieve-PlannedCareActivity-DeviceRequest"> <name value="Scenario 1.1 - PlannedCareActivity-DeviceRequest"/> <description value="Query DeviceRequest resource(s) for HCIM PlannedCareActivity-DeviceRequest"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="DeviceRequest"/> <description value="Test Client to retrieve DeviceRequest resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&status=active&_include=DeviceRequest:device"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 0 DeviceRequest resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(DeviceRequest)).count() = 0"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 0 Device resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Device)).count() = 0"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> <test id="17d-retrieve-PlannedCareActivity-Appointment"> <name value="Scenario 1.1 - PlannedCareActivity-Appointment"/> <description value="Query Appointment resource(s) for HCIM PlannedCareActivity-Appointment"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="Appointment"/> <description value="Test Client to retrieve Appointment resources."/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?patient.identifier=http://fhir.nl/fhir/NamingSystem/bsn|999991346&status=booked,pending,proposed"/> <requestHeader> <field value="Authorization"/> <value value="Bearer 327f1686-a388-4a1f-936c-f56e8e4c2c4e"/> </requestHeader> </operation> </action> <action> <assert> <description value="Make sure that the server of the test simulator gives a success response."/> <operator value="in"/> <responseCode value="200,201"/> <stopTestOnFail value="true"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the server of the test simulator returns a Bundle."/> <direction value="response"/> <resource value="Bundle"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the response Bundle contains 0 Appointment resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(Appointment)).count() = 0"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> </TestScript>
Overview
Errors (1)
Warnings (0)
Messages (0)
Incomplete
: Unable to resolve reference to profile 'http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript'
TestScript
4000
Validated using the Validator Firely .NET SDK validator