Validator
LOG IN
SIGN UP
Scope
package:hl7.fhir.r4.core@4.0.1
Readonly
If you
Log in
or
sign up
, you can edit this script yourself.
<TestScript xmlns="http://hl7.org/fhir"> <id value="mp9-vv-Retrieve-0-1-MedMij"/> <url value="http://nictiz.nl/fhir/TestScript/mp9-vv-Retrieve-0-1-MedMij"/> <version value="r4-mp9-3.0.0-beta-patchlevel 2025.47"/> <name value="Medication Process 9 3.0.0-beta - DispenseRequest - Retrieve - Scenario 0.1 - target MedMij"/> <title value="Medication Process 9 3.0.0-beta - DispenseRequest - Retrieve - Scenario 0.1 - target MedMij"/> <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 0.1 - Alle verstrekkingsverzoeken van de patiënt, zonder aanvullend filtercriterium
(Antwoord: bericht met 6 verstrekkingsverzoeken)"/> <origin> <index value="1"/> <profile> <system value="http://terminology.hl7.org/CodeSystem/testscript-profile-origin-types"/> <code value="FHIR-Client"/> </profile> </origin> <destination> <index value="1"/> <profile> <system value="http://terminology.hl7.org/CodeSystem/testscript-profile-destination-types"/> <code value="FHIR-Server"/> </profile> </destination> <test id="Scenario-0-1"> <name value="Scenario 0.1"/> <description value="Alle verstrekkingsverzoeken van de patiënt, zonder aanvullend filtercriterium
(Antwoord: bericht met 6 verstrekkingsverzoeken)"/> <action> <operation> <type> <system value="http://hl7.org/fhir/restful-interaction"/> <code value="search"/> </type> <resource value="MedicationRequest"/> <description value="Test PHR client to retrieve MedicationRequest resource(s) representing MP9 building block DispenseRequest"/> <destination value="1"/> <encodeRequestUrl value="true"/> <origin value="1"/> <params value="?category=http://snomed.info/sct|52711000146108&_include=MedicationRequest:medication&_include=MedicationRequest:requester&_include=MedicationRequest:dispense-location&_include:iterate=PractitionerRole:organization&_include:iterate=PractitionerRole:practitioner&_include:iterate=PractitionerRole:location"/> <requestHeader> <field value="Authorization"/> <value value="Bearer ebb49739-aa96-4c74-b460-6cde1d1cf2ad"/> </requestHeader> </operation> </action> <action> <assert> <description value="Confirm that HTTP header Authorization contains the patient token Bearer ebb49739-aa96-4c74-b460-6cde1d1cf2ad"/> <direction value="request"/> <headerField value="Authorization"/> <stopTestOnFail value="false"/> <value value="Bearer ebb49739-aa96-4c74-b460-6cde1d1cf2ad"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that query parameter 'patient=' was not present to avoid BSNs in the URL."/> <direction value="request"/> <operator value="notContains"/> <requestURL value="patient="/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that query parameter 'subject=' was not present to avoid BSNs in the URL."/> <direction value="request"/> <operator value="notContains"/> <requestURL value="subject="/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the returned searchset Bundle contains 6 MedicationRequest resource(s). "/> <direction value="response"/> <expression value="Bundle.entry.where(resource.is(MedicationRequest)).count() = 6"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> <action> <assert> <description value="Confirm that the returned searchset Bundle contains at least 12 entries. (Consists of 6 MedicationRequest and 6 Medication resources.)"/> <direction value="response"/> <expression value="Bundle.entry.count() >= 12"/> <stopTestOnFail value="false"/> <warningOnly value="false"/> </assert> </action> </test> </TestScript>