-
Notifications
You must be signed in to change notification settings - Fork 4
Consumer Test Scripts Send Document
leanneG73 edited this page Sep 24, 2020
·
1 revision
Test ID | Scenario Name | Description | Harness Patient ID |
---|---|---|---|
GPCM-SD-TST-01 | Standard Test |
Given I have recorded a consultation for a patient who is not registered to my practice And I am not sharing the consultation within the functionality of my clinical system And I have not marked the consultation as confidential When the requisite amount of time has passed since the consulation was recorded / last updated And a send document message is triggered Then a message is sent which conforms to the MESH and ITK3 requirements for Send Document And a PDF is included as a binary document conforming to the Send Document specification |
NHS_NO:- 9691375087 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-02 | Confidential Consultation |
Given I have recorded a consultation for a patient who is not registered to my practice And I am not sharing the consultation within the functionality of my clinical system And I mark the consultation as confidential When the requisite amount of time has passed since the consultation was recorded / last updated And a send document message is triggered Then a message is sent which conforms to the MESH and ITK3 requirements for Send Document And the Composition.confidentiality = R And confidential items are not included in the headers as per requirements And the organisation details are included in structured resources And a PDF is included as a binary document conforming to the Send Document specification with items absent as per GPCM-SD-102 |
NHS_NO:- 9691375095 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-03 | Practitioner / sender details |
Given I have completed test 01 And I record a new consultation for the patient as a different practitioner working for a different organisation When the send document message is triggered And a send document message is triggered Then the organization and practitioner resources reflect the practitioner and organisation details used to record the consultation |
NHS_NO:- 9691375109 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-04 | Handling errors from the receiver |
Given I have sent a valid Send Document message with a [Keyword] in the request as documented in the following attachment for each type of error response:- LINK https://github.com/nhsconnect/gpconnect-provider-testing/wiki/ITK-Test-Harness-Triggers But the receiver is unable to process it When I receive an error response Then the error is handled gracefully And a notification of the error is made to an appropriate person |
NHS_NO:- 9691375117 Test Harness Keyword:- See Link in the Scenario |
GPCM-SD-TST-05 | Handling no response |
Given I have sent a valid Send Document message with a [Keyword] in the request as documented in the following attachment for each type of error response:- LINK https://github.com/nhsconnect/gpconnect-provider-testing/wiki/ITK-Test-Harness-Triggers But the receiver is unable to process it When I do not receive a technical or business acknowledgement response Then the sender has an appropriate way to manage the non-response And if not resolved an notification of no response is made to an appropriate person |
NHS_NO:- 9691375125 Test Harness Keyword:- Set //Practitioner/name/given/@value to noresponse |
GPCM-SD-TST-06 | Registered patient / message not sent |
Given I have recorded a consultation for a patient registered at my practice When the patient registration type of the patient record at the appointment hosting practice is Regular (GMS/PMS) When I complete the consultation Then a Send Document message does not trigger |
NHS_NO:- 9691375133 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-07 | Timeliness of message |
Given I have recorded a consultation as per GPCM-SD-TST-01 When the Send Document is sent When I complete the consultation Then ideally less than 3 hours has elapsed between last update and send |
Data Not Applicable, Statement regarding the business logic / functionality regarding the delay period for send document and audit records to support |
GPCM-SD-TST-08 | Amend a consultation after sending |
Given I access a consultation which has previously been sent via Send Document When I amend the consultation And the necessary time elapses for the message send Then an updated Send Document message is sent conforming to the specification And the version number is incremented from the previous send And it identifies the document is a replacement And it refers to the original document unique ID it is replacing |
NHS_NO:- 9691375141 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-09 | Third send of document |
Given I have completed GPCM-SD-TST-08 And I make a further amendment to the consultation When a replacement message is sent Then an updated Send Document message is sent conforming to the specification And the version number is incremented from the previous send And it identifies the document is a replacement And it refers to the previous replacement document unique ID it is replacing |
NHS_NO:- 9691375141 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-10 | Deleted consultation |
Given I access a consultation which has previously been sent via Send Document When I delete the consultation Then a message is displayed to inform me this consultation has been sent to the registered practice and action needs to be taken to inform that practice of the deletion And the message includes the necessary details about the patient, consultation date and registered practice |
NHS_NO:- 9691375141 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-11 | Consultation with individual items marked as confidential |
Given I have recorded a consultation for a patient who is not registered to my practice And I am not sharing the consultation within the functionality of my clinical system And I mark the some items within the consultation as confidential When the requisite amount of time has passed since the consulation was recorded / last updated And a send document message is triggered Then a message is sent which conforms to the MESH and ITK3 requirements for Send Document And the Composition.confidentiality = N And confidential items are not included in the headers as per requirements And the organisation details are included in structured resources And a PDF is included as a binary document conforming to the Send Document specification but any item or text which was marked as confidential is replaced with the text 'confidential item' |
NHS_NO:- 9691375141 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |
GPCM-SD-TST-12 | Receiver reports amended document cannot be processed |
Given I have amended a consultation after it was sent via Send Document Andthe amended consultation is then sent via Send Document And the send is not successful When I receive the error / do not receive a response Then I will handle the error gracefully And trigger an appropriate resolution process And manage the data integrity of the record |
NHS_NO:- 9691375141 Test Harness Keyword:- Set //Practitioner/name/given/@value to 30003 |
GPCM-SD-TST-13 | Additional documents sent |
GivenI have additional documents relating to the consultation And I include the additional document(s) to be sent to the registered GP When the requisite amount of time has passed since the consultation was recorded / updated And a send document message is triggered Then a message is sent which conforms to the MESH and ITK3 requirements for Send Document And the consultation report and each document is includes in the composition as individual sections And the first section in the composition refers to a binary resource for the consultation report And there is a section for each additional document(s) included with a reference to a binary resource And the binary resources are included in the bundle with matching references / IDs And the binary resources are base64 encoded |
NHS_NO:- 9691375176 Test Harness Keyword:- Set //Practitioner/name/given/@value to IB001 |