Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOVDR-513: Added new qualification tokens for patient 1-3 and 1-4. Ad… #234

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions Configuration/QualificationTokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,20 @@
"bsn": "999911612",
"qualificationScript": "eOverdracht 4.0"
},
{
"accessToken": "Bearer eae3d8dd-fa31-44ea-94d2-8ce59b06c556",
"resourceId": "nl-core-patient-eov-test-1-3-01",
"familyName": "XXX_Verhulst",
"bsn": "999900092",
"qualificationScript": "eOverdracht 4.0"
},
{
"accessToken": "Bearer e5a9ef63-b820-4afc-bb64-9a9f596dd8a9",
"resourceId": "nl-core-patient-eov-test-1-4-01",
"familyName": "van XXX_Grieken",
"bsn": "999900109",
"qualificationScript": "eOverdracht 4.0"
},
{
"accessToken": "Bearer afc1cfc0-6848-4ccb-a0a1-f87838301c31",
"resourceId": "nl-core-patient-eov-test-1-2b-01",
Expand Down Expand Up @@ -840,28 +854,28 @@
"bsn": "999900651",
"qualificationScript": "MP9 Cert"
},
{
{
"accessToken": "Bearer 6e76f8e0-6e6f-11ee-807c-0800200c9a66",
"resourceId": "nl-core-Patient-mp9-W-XXX-Verwijmeren",
"familyName": "XXX_Verwijmeren",
"bsn": "999901175",
"qualificationScript": "MP9 Cert"
},
{
{
"accessToken": "Bearer 9we86dg8-aab0-4417-9b3c-e6f635892fea",
"resourceId": "patient-XXX-Andrioli",
"familyName": "XXX_Andrioli",
"bsn": "999900262",
"qualificationScript": "ELZ Test (beta)"
},
{
{
"accessToken": "Bearer 6wfue3a9-aab0-4417-9b3c-e6f635892fea",
"resourceId": "patient-van-XXX-Sanderink-de-Kok",
"familyName": "van XXX_Sanderink",
"bsn": "999900250",
"qualificationScript": "ELZ Test (beta)"
},
{
{
"accessToken": "Bearer 848561e6-1ef9-11ee-be56-0242ac120002",
"resourceId": "Nictiz-internal-patient",
"qualificationScript": "Test patient for internal purposes"
Expand Down
14 changes: 14 additions & 0 deletions Configuration/QualificationTokensStaging.json
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,20 @@
"bsn": "999911612",
"qualificationScript": "eOverdracht 4.0"
},
{
"accessToken": "Bearer eae3d8dd-fa31-44ea-94d2-8ce59b06c556",
"resourceId": "nl-core-patient-eov-test-1-3-01",
"familyName": "XXX_Verhulst",
"bsn": "999900092",
"qualificationScript": "eOverdracht 4.0"
},
{
"accessToken": "Bearer e5a9ef63-b820-4afc-bb64-9a9f596dd8a9",
"resourceId": "nl-core-patient-eov-test-1-4-01",
"familyName": "van XXX_Grieken",
"bsn": "999900109",
"qualificationScript": "eOverdracht 4.0"
},
{
"accessToken": "Bearer afc1cfc0-6848-4ccb-a0a1-f87838301c31",
"resourceId": "nl-core-patient-eov-test-1-2b-01",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestScript xmlns="http://hl7.org/fhir" xmlns:nts="http://nictiz.nl/xsl/testscript">
<id value="Receiving-XIS-scenario1.2-negotiation-NoDocument"/>
<meta>
<profile value="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript"/>
</meta>
<url value="http://nictiz.nl/fhir/TestScript/Receiving-XIS-scenario1.2-negotiation-NoDocument"/>
<version value="stu3-4.0-patchlevel 2023-11"/>
<name value="Receiving-XIS-scenario1.2-negotiation - target NoDocument"/>
<status value="active"/>
<publisher value="Nictiz"/>
<contact>
<name value="Nictiz"/>
<telecom>
<system value="email"/>
<value value="[email protected]"/>
<use value="work"/>
</telecom>
</contact>
<description value="Scenario 1.2, test 1/2, part 1 for eOverdracht receiving systems. This test (part 1, 2 and 3 together) focuses on the negotiation phase ('aanmeldfase') where the receiving xis proposes an alternative transfer date and the sending xis agrees to this. After completion of this test, the test for the transfer phase ('overdrachtfase') can be run."/>
<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>
<fixture id="initial-task-fixture">
<autocreate value="false"/>
<autodelete value="false"/>
<resource>
<reference value="../_reference/resources/resources-specific/eOverdracht-Task-eov-test-1_2-REQUESTED.xml"/>
</resource>
</fixture>
<variable>
<name value="T"/>
<defaultValue value="${CURRENTDATE}"/>
<description value="Date that data and queries are expected to be relative to."/>
</variable>
<variable>
<name value="task-id"/>
<expression value="Task.id"/>
<sourceId value="initial-task-fixture"/>
</variable>
<variable>
<name value="notificationEndpoint"/>
<hint value="The notification endpoint that the sending XIS can use to notify the receiving XIS, _without_ the trailing slash."/>
</variable>
<variable>
<name value="authorization-token-id"/>
<hint value="The payload of the authorization header that Touchstone should use when sending the notification to the notification endpoint."/>
</variable>
<variable>
<name value="requested-task-response-composition-721915006-id"/>
<expression value="Task.input.where(type.coding.system = 'http://snomed.info/sct' and type.coding.code = '721915006').value.reference.replace('Composition/', '')"/>
<sourceId value="requested-task-response"/>
</variable>
<setup>
<action>
<operation>
<type>
<system value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="updateCreate"/>
</type>
<resource value="Task"/>
<description value="At the sending XIS, a new Task is created in status 'requested'."/>
<accept value="xml"/>
<contentType value="xml"/>
<destination value="1"/>
<params value="/${task-id}"/>
<requestHeader>
<field value="Authorization"/>
<value value="Bearer 6fa204d2-9d4d-4dba-9fd3-b40da5203d4a"/>
</requestHeader>
<responseId value="setup-task-response"/>
<sourceId value="initial-task-fixture"/>
</operation>
</action>
<action>
<assert>
<description value="Confirm that the operation was successful"/>
<operator value="in"/>
<responseCode value="200,201"/>
<warningOnly value="false"/>
</assert>
</action>
</setup>
<test>
<name value="Await new Task notification"/>
<description value="The sending XIS sends a notification to the receiving XIS because a new Task has been created with status 'requested'."/>
<action>
<operation>
<type>
<system value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="create"/>
</type>
<resource value="Resource"/>
<label value="Notify receiving XIS"/>
<description value="The sending XIS sends a notification to the specified endpoint of the receiving XIS."/>
<encodeRequestUrl value="true"/>
<requestHeader>
<field value="Authorization"/>
<value value="${authorization-token-id}"/>
</requestHeader>
<url value="${notificationEndpoint}/${task-id}"/>
</operation>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<label value="Check that the response code is 202 Accepted."/>
<description value="It is advised that the receiving XIS responds to the notification with '202 Accepted'."/>
<responseCode value="202"/>
<warningOnly value="true"/>
</assert>
</action>
</test>
<test>
<name value="Read 'requested' Task"/>
<description value="The receiving XIS should perform a read on the Task after receiving a notification that the Task has been created."/>
<action>
<operation>
<type>
<system value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="read"/>
</type>
<resource value="Task"/>
<label value="Get Task resource for eOverdracht"/>
<accept value="xml"/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${task-id}"/>
<requestHeader>
<field value="Authorization"/>
<value value="Bearer 6fa204d2-9d4d-4dba-9fd3-b40da5203d4a"/>
</requestHeader>
<responseId value="requested-task-response"/>
</operation>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="true"/>
</extension>
<description value="Confirm that the operation was successful"/>
<operator value="in"/>
<responseCode value="200,201"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<label value="Sanity check to see if the result is a Task."/>
<resource value="Task"/>
<warningOnly value="false"/>
</assert>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="false"/>
</extension>
<label value="Sanity check to see if the Task has status=requested."/>
<expression value="Task.status = 'requested'"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
<test>
<name value="Read initial advance notice"/>
<description value="After reading the Task, the receiving XIS should perform a read operation on the advance notice Composition that is referenced on Task.input."/>
<action>
<operation>
<type>
<system value="http://terminology.hl7.org/CodeSystem/testscript-operation-codes"/>
<code value="read"/>
</type>
<resource value="Composition"/>
<description value="Test client to read Composition resource."/>
<destination value="1"/>
<encodeRequestUrl value="true"/>
<origin value="1"/>
<params value="/${requested-task-response-composition-721915006-id}"/>
<requestHeader>
<field value="Authorization"/>
<value value="Bearer 6fa204d2-9d4d-4dba-9fd3-b40da5203d4a"/>
</requestHeader>
</operation>
</action>
<action>
<assert>
<extension url="http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail">
<valueBoolean value="true"/>
</extension>
<description value="Confirm that the operation was successful"/>
<operator value="in"/>
<responseCode value="200,201"/>
<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="Make sure that the test server (WildFHIR) returns the requested Composition resource."/>
<direction value="response"/>
<resource value="Composition"/>
<warningOnly value="false"/>
</assert>
</action>
</test>
</TestScript>
Loading