-
Notifications
You must be signed in to change notification settings - Fork 5
Structured Record Consumer Tests
BabarNHS edited this page Jun 23, 2020
·
15 revisions
Test ID | Scenario Name | Description | Requirement ID | Demonstrator Patient ID | Provider Test? |
---|---|---|---|---|---|
GPC-STRUCTUREDTEST-01 | Retrieve a patients allergy and medication record |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = TRUE, And I add includeMedication, And I add includePrescriptionIssues = TRUE, When I make a POST request Then I shall get a successful response status code And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 profile definition containing -Patient matching the NHS Number sent in the body of the request -Organization matching the patient’s registered GP practice, referenced from Patient.generalPractitioner -Organization matching the organisation serving the request, if different from above, referenced from Patient.managingOrganization -Practitioner matching the patient’s usual GP, if they have one, referenced from Patient.generalPractitioner -AllergyIntolerance resources representing the patient’s allergies and intolerances, including those marked as resolved or ended -Organization, Practitioner and Location resources that are referenced by the AllergyIntolerance resources -MedicationStatement, MedicationRequest with an intent of plan and Medication resources representing the patient’s medication summary information (authorisations and medication prescribed elsewhere) -MedicationRequest resources with an intent of order representing the patient’s prescription issues, for the above medication summary data -Organization, Practitioner and Location resources that are referenced by the MedicationStatement and MedicationRequest resources, And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218873 | Yes |
GPC-STRUCTUREDTEST-02 | Retrieve a patients active allergy record only |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = FALSE When I make a POST request Then I shall get a successful response status code And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 profile definition containing -Patient matching the NHS Number sent in the body of the request -Organization matching the patient’s registered GP practice, referenced from Patient.generalPractitioner -Organization matching the organisation serving the request, if different from above, referenced from Patient.managingOrganization -Practitioner matching the patient’s usual GP, if they have one, referenced from Patient.generalPractitioner -AllergyIntolerance resources representing the patient’s allergies and intolerances, excluding those marked as resolved or ended -Organization, Practitioner and Location resources that are referenced by the AllergyIntolerance resources -No medication resources shall be returned, And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218873 | Yes |
GPC-STRUCTUREDTEST-03 | Retrieve a patients active and historical allergy record only |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = TRUE, When I make a POST request, Then I shall get a successful response status code, And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 profile definition containing -Patient matching the NHS Number sent in the body of the request -Organization matching the patient’s registered GP practice, referenced from Patient.generalPractitioner -Organization matching the organisation serving the request, if different from above, referenced from Patient.managingOrganization -Practitioner matching the patient’s usual GP, if they have one, referenced from Patient.generalPractitioner -AllergyIntolerance resources representing the patient’s allergies and intolerances, including those marked as resolved or ended -Organization, Practitioner and Location resources that are referenced by the AllergyIntolerance resources -No medication resources shall be returned, And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218873 | Yes |
GPC-STRUCTUREDTEST-04 | Retrieve a patients allergy record where the patient has no known allergies recorded |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X who does not have any allergies recorded in GP system, And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = TRUE, When I make a POST request, Then I shall get a successful response status code, And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 profile definition containing -Patient matching the NHS Number sent in the body of the request -Organization matching the patient’s registered GP practice, referenced from Patient.generalPractitioner -Organization matching the organisation serving the request, if different from above, referenced from Patient.managingOrganization -Practitioner matching the patient’s usual GP, if they have one, referenced from Patient.generalPractitioner -AllergyIntolerance resources representing the patient’s allergies and intolerances which will not have any items listed -Organization, Practitioner and Location resources that are referenced by the AllergyIntolerance resources -No medication resources shall be returned, And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218989 | Yes |
GPC-STRUCTUREDTEST-05 | Retrieve a patients medication record only |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X, And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeMedication, And I add includePrescriptionIssues = TRUE When I make a POST request Then I shall get a successful response status code, And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 profile definition containing -Patient matching the NHS Number sent in the body of the request -Organization matching the patient’s registered GP practice, referenced from Patient.generalPractitioner -Organization matching the organisation serving the request, if different from above, referenced from Patient.managingOrganization -Practitioner matching the patient’s usual GP, if they have one, referenced from Patient.generalPractitioner -MedicationStatement, MedicationRequest with an intent of plan and Medication resources representing the patient’s medication summary information (authorisations and medication prescribed elsewhere) -MedicationRequest resources with an intent of order representing the patient’s prescription issues, for the above medication summary data -Organization, Practitioner and Location resources that are referenced by the MedicationStatement and MedicationRequest resources -No allergy or intolerance resources shall be returned, And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218873 | Yes |
GPC-STRUCTUREDTEST-06 | Retrieve a patients medication record where the patient has no medications recorded |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X who does not have any medications recorded on the GP system And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeMedication, And I add includePrescriptionIssues = TRUE, When I make a POST request, Then I shall get a successful response status code And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 profile definition containing -Patient matching the NHS Number sent in the body of the request -Organization matching the patient’s registered GP practice, referenced from Patient.generalPractitioner -Organization matching the organisation serving the request, if different from above, referenced from Patient.managingOrganization -Practitioner matching the patient’s usual GP, if they have one, referenced from Patient.generalPractitioner -MedicationStatement, MedicationRequest and Medication resources without any items listed -MedicationRequest resources without any prescription issue items -Organization, Practitioner and Location resources that are referenced by the MedicationStatement and MedicationRequest resources -No allergy or intolerance resources shall be returned, And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218903 | Yes |
GPC-STRUCTUREDTEST-07 | Attempt to retrieve patients allergy record without specifying a value for includeResolvedAllergies parameter |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add patientNHSNumber X And I add includeAllergies as either TRUE/FALSE And I do not add includeResolvedAllergies as either TRUE/FALSE When I make a POST request Then I shall get an Operation Outcome resource with details of the error And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-08 | Attempt to retrieve patients medication record without specifying a value for includePrescriptionIssues parameter |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add patientNHSNumber X And I add includeMedication as either TRUE/FALSE And I do not add includePrescriptionIssues as either TRUE/FALSE When I make a POST request Then I shall get an Operation Outcome resource with details of the error And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-09 | Attempt to retrieve patients allergy record by adding an includeResolvedAllergies value without the includeAllergies parameter |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add patientNHSNumber X And I do not add includeAllergies as either TRUE/FALSE And I add includeResolvedAllergies as either TRUE/FALSE When I make a POST request Then I shall get an Operation Outcome resource with details of the error And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-10 | Attempt to retrieve patients medication record by adding an includePrescriptionIssues value without the includeMedication parameter |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add patientNHSNumber X And I do not add includeMedication as either TRUE/FALSE And I add includePrescriptionIssues as either TRUE/FALSE When I make a POST request Then I shall get an Operation Outcome resource with details of the error And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-11 | Retrieve a patients medication record with a date filter applied |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add patientNHSNumber X, And I add includeMedication, And I add medicationSearchFromDate as a whole date component for a today or past date, And I add includePrescriptionIssues = TRUE When I make a POST request Then I shall get a successful response status code And I shall receive a Bundle containing List, MedicationStatement, MedicationRequest with an intent of plan and Medication resources representing the patient’s medication summary information (authorisations and medication prescribed elsewhere), MedicationRequest resources with an intent of order representing the patient’s prescription issues, for the above medication summary data, for all medications which are active on or after the medicationSearchFromDate And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 GPC-STRUCTURED-04 GPC-STRUCTURED-05 | 9658218873 | Yes |
GPC-STRUCTUREDTEST-14 | Attempt to retrieve a patients record with the NHS number missing in the request |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I do not include a patients NHS number And I add includeAllergies And I add includeResolvedAllergies = TRUE And I add includeMedication And I add includePrescriptionIssues = TRUE When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall displayed an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-15 | Attempt to retrieve a patients record with an invalid NHS number |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I include an invalid NHS number And I add includeAllergies And I add includeResolvedAllergies = TRUE And I add includeMedication And I add includePrescriptionIssues = TRUE When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-16 | Attempt to retrieve a patients record whose record is marked as sensitive |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I include an NHS number marked sensitive And I add includeAllergies And I add includeResolvedAllergies = TRUE And I add includeMedication And I add includePrescriptionIssues = TRUE When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | Yes |
GPC-STRUCTUREDTEST-18 | Attempt to retrieve a patients record with an invalid date filter applied |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add NHS number X And I add includeAllergies And I add includeResolvedAllergies = TRUE And I add includeMedication And I add an invalid medicationSearchFromDate i.e date is in the future When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-20 | Attempt to retrieve a patients record with an invalid date filter applied - contains time component |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add NHS number X And I add includeAllergies And I add includeResolvedAllergies = TRUE And I add includeMedication And I add an invalid medicationSearchFromDate i.e contains time component When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-21 | Attempt to retrieve a patients record with an invalid date filter applied - contains offset component |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add NHS number X And I add includeAllergies And I add includeResolvedAllergies = TRUE And I add includeMedication And I add an invalid medicationSearchFromDate i.e contains offset component When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-23 | Error - Unrecognised Parameter name |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add a NHS number X And I include any invalid parameter name When I make a POST request Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-24 | Error - Unrecognised Parameter value |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X, And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile And I add a NHS number X And I include any invalid parameter value e.g anything other than TRUE/FALSE for the part parameters When I make a POST request, Then I shall get an Operation Outcome response with details of the failure And I shall display an appropriate error message |
GPC-STRUCTURED-01 | 9658218873 | No |
GPC-STRUCTUREDTEST-25 | Warning- Confidential Items |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = TRUE, And I add includeMedication, And I add includePrescriptionIssues = TRUE, When I make a POST request Then I shall get a successful response status code And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 And I shall get List, MedicationStatement, MedicationRequest with an intent of plan and Medication resources representing the patient’s medication summary information (authorisations and medication prescribed elsewhere) And extension[warningCode] contained in the List resource And I shall display the appropriate warning message And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-01 | 9658220169 | Yes |
GPC-STRUCTUREDTEST-26 | Warning- Data in Transit |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = TRUE, And I add includeMedication, And I add includePrescriptionIssues = TRUE, When I make a POST request Then I shall get a successful response status code And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 And I shall get List, MedicationStatement, MedicationRequest with an intent of plan and Medication resources representing the patient’s medication summary information (authorisations and medication prescribed elsewhere) And extension[warningCode] contained in the List resource And I shall display the appropriate warning message And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-02 | 9658219691 | Yes |
GPC-STRUCTUREDTEST-27 | Warning- Data Awaiting Filing |
Given I am using the default server And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.getstructuredrecord-1' interaction for patient ID X And I add a Parameters resource, conforming to the GPConnect-GetStructuredRecord-Operation-1 OperationDefinition profile, And I add patientNHSNumber X, And I add includeAllergies, And I add includeResolvedAllergies = TRUE, And I add includeMedication, And I add includePrescriptionIssues = TRUE, When I make a POST request Then I shall get a successful response status code And I shall receive a Bundle conforming to the GPConnect-GetStructured-Bundle-1 And I shall get List, MedicationStatement, MedicationRequest with an intent of plan and Medication resources representing the patient’s medication summary information (authorisations and medication prescribed elsewhere) And extension[warningCode] contained in the List resource And I shall display the appropriate warning message And I shall implement the coded information in a way that reflects current state of provider system, And I shall display the GP practice as the source of all the data retrieved, And I shall display the date retrieved for all the data items |
GPC-STRUCTURED-03 | No NHS number | Yes |
Test Suit Setup & Configuration
Tests / Scenarios
- Spine Integration and Cross Organisation Tests
- Access Record Consumer Tests
- Access Record Consumer Tests 0.5.3
- Access Record Consumer Tests 0.7.2
- Access Record Consumer Tests 0.7.3
- Foundations Consumer Tests
- Appointments Consumer Tests
- Appointments Consumer Tests 1.2.7 Emergency Changes Only
- Appointments Consumer Tests
- Structured Record Consumer Tests
- Structured Record Consumer Tests 1.2.4
- Structured Record Consumer Tests 1.2.5
- Structured Record Consumer Tests 1.2.6
- Structured Record Consumer Tests 1.3.0
- Send Document Tests 1.3.0
- Access Record HTML view Manual Testing
- Appointments API (including Foundation) - Manual Testing
- HTML Provider Content
- FHIR GP Connect Profiles
- FHIR Base
- SSP
- JWT
- HTTP
- Security
- test
Test Data Pack
- Test Data Approach
- Base Test Data Set
- Simple Patient Records
- Rich Test Data Set
- ITK Test Harness Triggers
New Consumer SCAL Tests/Scenarios