Skip to content

Foundations Consumer Tests

BabarNHS edited this page Jun 23, 2020 · 23 revisions

Consumer Tests - Foundations

Please scroll to the right to view the full test information including test data

Test ID Scenario Name Description Requirement ID Demonstrator Patient ID Provider Test?
CONS-FoundationAPITest1 GET FHIR Capability Statement
Given I am performing the GPConnect interaction to Get the capability statement

Then the response status code should indicate success

And capability statement conforms to the standard FHIR CapabilityStatement

And the capability Version is as per Spec

And I shall handle the returned resources to accurately reflect what is held in the GP system
GPC-FPA-02 Any valid patient number No
CONS-FoundationAPITest2 Find Patient -Multiple matches
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:patient-1' interaction

And I add valid patient identifiers [system][value] for patient with NHS number 'X' with multiple records associated in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain multiple matching Patient resources in a Bundle of type searchset containing relevant details as defined in the specification.

And I shall handle the returned resources to accurately reflect what is held in the GP system
GPC-FPA-01 none Yes
CONS-FoundationAPITest3 Find Patient -Zero match
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:patient-1' interaction

And I add valid patient identifiers [system][value] for patient with NHS number 'X' whose record does not exist in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain zero Patient resources in a Bundle of type searchset containing relevant details as defined in the specification.

And I shall handle the returned resources to accurately reflect what is held in the GP system
GPC-FPA-01 9324926233 Yes
CONS-FoundationAPITest4 Find Patient -Sensitive record
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:patient-1' interaction

And I add valid patient identifiers [system][value] for patient with NHS number 'X' whose record does is marked sensitive in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Patient resource that conform to the CareConnect-GPC-Patient-1 profile
GPC-FPA-01 9658220150 Yes
CONS-FoundationAPITest5 Find Patient -Deceased
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:patient-1' interaction

And I add valid patient identifiers [system][value] for patient with NHS number 'X' whose record exists in the GP system and is deceased

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain zero Patient resources in a Bundle of type searchset containing relevant details as defined in the specification.

And I shall handle the returned resources to accurately reflect what is held in the GP system
GPC-FPA-01 9658220290 Yes
CONS-FoundationAPITest6 Find Patient -Any other inactive status
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:patient-1' interaction

And I add valid patient identifiers [system][value] for patient with NHS number 'X' whose record exist in the GP system with an inactive status

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Patient resource that conform to the CareConnect-GPC-Patient-1 profile
GPC-FPA-01 9658219748 Yes
CONS-FoundationAPITest7 Find Patient -Invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:patient-1' interaction

And I add invalid patient identifiers [system][value] for patient with NHS number 'X'

When I make a GET request

Then I shall get an unsuccessful response error code 400 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-FPA-01 9999999991 Yes
CONS-FoundationAPITest8 Read Patient - Valid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:patient-1' interaction

And I add valid patient ID for patient with NHS number 'X' whose record exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Patient resource that conform to the CareConnect-GPC-Patient-1 profile

And response body shall include the URI of the CareConnect-GPC-Patient-1 profile StructureDefinition in the Patient.meta.profile element of the returned Patient resource

And shall include the versionId of the current version of the Patient resource

And shall include all relevant business identifier details (i.e. NHS Number) for the Patient resource

And shall include gender, name, birth date (where these are available)

And shall populate the preferred branch surgery within the registration details extension of the patient resource with a reference to a location resource which represents the patient’s preferred branch surgery including ODS Site Code where available OR the GP Practice where they are registered if there is no preferred branch surgery including the Organization ODS Code identifier

And the patient resource SHALL contain at least a single name element.

And the patient resource SHALL contain a single instance of the name element with the use of official.

And this official name should contain the name registered on the spine which is returned by a PDS lookup for the patient.
GPC-RPA-02 9658218865 Yes
CONS-FoundationAPITest9 Read Patient -
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:patient-1' interaction

And i add valid patient ID for patient with NHS number 'X' whose record exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Patient resource that conform to the CareConnect-GPC-Patient-1 profile
GPC-RPA-02 9476719974 Yes
CONS-FoundationAPITest10 Read Patient - Invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:patient-1' interaction

And I add a corrupted patient ID for patient with NHS number 'X' whose record exists in the GP system

When I make a GET request

Then I shall get an unsuccessful response error code 400 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-RPA-02 Stubbed responder/9999999991 Yes
CONS-FoundationAPITest11 Find Practitioner- percent encoding
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:practitioner' interaction

And I add valid practitioner identifiers [system][value] for a practitioner whose record exists in the GP system

And I am using percent encoding

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Practitioner resource that conform to the CareConnect-GPC-Practitioner-1 profile

And response body shall include the URI of the CareConnect-GPC-Practitioner-1 profile StructureDefinition in the Practitioner.meta.profile element of the returned Practitioner resource

And shall include the versionId and fullUrl of the current version of the Practitioner resource

And shall include all relevant business identifier details (i.e. SDS User Id) for the Practitioner resource
GPC-RPR-01 practitioner1 Yes
CONS-FoundationAPITest12 Find Practitioner -Single match
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:practitioner' interaction

And I add valid practitioner identifiers [system][value] for a practitioner whose record exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Practitioner resource that conform to the CareConnect-GPC-Practitioner-1 profile

And response body shall include the URI of the CareConnect-GPC-Practitioner-1 profile StructureDefinition in the Practitioner.meta.profile element of the returned Practitioner resource

And shall include the versionId and fullUrl of the current version of the Practitioner resource

And shall include all relevant business identifier details (i.e. SDS User Id) for the Practitioner resource
GPC-FPR-01 practitioner2 Yes
CONS-FoundationAPITest13 Find Practitioner -Multiple matches
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:practitioner' interaction

And I add valid practitioner identifiers [system][value] for a practitioner with multiple records associated in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain multple Practitioner resources that conform to the CareConnect-GPC-Practitioner-1 profile

And response body shall include the URI of the CareConnect-GPC-Practitioner-1 profile StructureDefinition in the Practitioner.meta.profile element of the returned Practitioner resources

And shall include the versionId and fullUrl of the current version of the Practitioner resources

And shall include all relevant business identifier details (i.e. SDS User Id) for the Practitioner resources
GPC-FPR-01 practitioner3 Yes
CONS-FoundationAPITest14 Find Practitioner -Zero match
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:practitioner' interaction

And I add valid practitioner identifiers [system][value] for a practitioner whose record does not exist in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Practitioner resources that conform to the CareConnect-GPC-Practitioner-1 profile
GPC-FPR-01 practitioner4 Yes
CONS-FoundationAPITest15 Find Practitioner -invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:practitioner' interaction

And I add using invalid practitioner identifiers [system][value] for a practitioner whose record exists in the GP system

When I make a GET request

Then I shall get an unsuccessful response error code 422 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-FPR-01 Stubbed responder/NONE Yes
CONS-FoundationAPITest16 Read Practitioner - valid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:practitioner' interaction

And I add valid practitioner ID for practitioner whose record exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Practitioner resource that conform to the CareConnect-GPC-Practitioner-1 profile

And response body shall include the URI of the CareConnect-GPC-Practitioner-1 profile StructureDefinition in the Practitioner.meta.profile element of the returned Practitioner resource

And shall include the versionId of the current version of the Practitioner resource

And shall include all relevant business identifier details (i.e. SDS User Id) for the Practitioner resource
GPC-RPR-01 practitioner2 Yes
CONS-FoundationAPITest17 Read Practitioner - invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:practitioner' interaction

And I add invalid practitioner ID for practitioner whose record exists in the GP system

When I make a GET request

Then I shall get an unsuccessful response error code 404 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-RPR-01 practitioner2 Yes
CONS-FoundationAPITest18 Read Practitioner - no longer exists
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:practitioner' interaction

And I add valid practitioner ID for practitioner whose record no longer exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Practitioner resources that conform to the CareConnect-GPC-Practitioner-1 profile
GPC-RPR-01 none Yes
CONS-FoundationAPITest19 Find Organization - percent encoding
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:organization' interaction

And I add valid organization identifiers [system][value] for an organisation whose record exists in the GP system

And I am using percent encoding

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Organization resource that conform to the CareConnect-GPC-Organization-1 profile

And response body shall include the URI of the CareConnect-GPC-Organization-1 profile StructureDefinition in the Organization.meta.profile element of the returned Organization resource

And shall include the versionId and fullUrl of the current version of the Organization resource

And shall include all relevant business identifier details (i.e. ODS User Id) for the Organization resource
GPC-FOR-01 ORG1 Yes
CONS-FoundationAPITest20 Find Organization -Single match
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:organization' interaction

And I add valid organization identifiers [system][value] for an organisation whose record exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Organization resource that conform to the CareConnect-GPC-Organization-1 profile

And response body shall include the URI of the CareConnect-GPC-Organization-1 profile StructureDefinition in the Organization.meta.profile element of the returned Organization resource

And shall include the versionId and fullUrl of the current version of the Organization resource

And shall include all relevant business identifier details (i.e. ODS User Id) for the Organization resource
GPC-FOR-01 ORG2 Yes
CONS-FoundationAPITest21 Find Organization -Multiple matches
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:Organization' interaction

And I add valid Organization identifiers [system][value] for a Organization with multiple records associated in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain multple Organization resources that conform to the CareConnect-GPC-Organization-1 profile

And response body shall include the URI of the CareConnect-GPC-Organization-1 profile StructureDefinition in the Organization.meta.profile element of the returned Organization resources

And shall include the versionId and fullUrl of the current version of the Organization resources

And shall include all relevant business identifier details (i.e. ODS User Id) for the Organization resources
GPC-FOR-01 none Yes
CONS-FoundationAPITest22 Find Organization -GP Federations
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:organization' interaction

And I add valid organization identifiers [system][value] for an organisation that is part of a GP federation

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Organization resource that conform to the CareConnect-GPC-Organization-1 profile

And response body shall include the URI of the CareConnect-GPC-Organization-1 profile StructureDefinition in the Organization.meta.profile element of the returned Organization resource

And shall include the versionId and fullUrl of the current version of the Organization resource

And shall include all relevant business identifier details (i.e. ODS User Id) for the Organization resource

And shall include other target GP Practices
GPC-FOR-02 none Yes
CONS-FoundationAPITest23 Find Organization -Zero match
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:Organization' interaction

And I add valid Organization identifiers [system][value] for a Organization whose record does not exist in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Practitioner resources that conform to the CareConnect-GPC-Organization-1 profile
GPC-FOR-01 unknownORG Yes
CONS-FoundationAPITest24 Find Organization -invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:search:Organization' interaction

And I add invalid Organization identifiers [system][value] for a Organization whose record exists in the GP system

When I make a GET request

Then I shall get an unsuccessful response error code 422 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-FOR-01 none Yes
CONS-FoundationAPITest25 Read Organization - valid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:Organization' interaction

And I add valid Organization ID for Organization whose record exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain a single Organization resource that conform to the CareConnect-GPC-Organization-1 profile

And response body shall include the URI of the CareConnect-GPC-Organization-1 profile StructureDefinition in the Organization.meta.profile element of the returned Organization resource

And shall include the versionId of the current version of the Organization resource

And shall include all relevant business identifier details (i.e. ODS User Id) for the Organization resource
GPC-ROR-01 ORG1 Yes
CONS-FoundationAPITest26 Read Organization - invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:Organization' interaction

And I add invalid Organization ID for Organization whose record exists in the GP system

And I add

When I make a GET request

Then I shall get an unsuccessful response error code 404 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-ROR-01 ORG1 Yes
CONS-FoundationAPITest27 Read Organization - no longer exists
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:Organization' interaction

And I add valid Organization ID for Organization whose record no longer exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Practitioner resources that conform to the CareConnect-GPC-Organization-1 profile
GPC-ROR-01 none Yes
CONS-FoundationAPITest28 Read Location - Valid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:location' interaction

And I add valid Location ID for a site that exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain Location resources that conform to the CareConnect-GPC-Location-1 profile

And response body shall include the URI of the CareConnect-GPC-Location-1 profile StructureDefinition in the Location.meta.profile element of the returned Location resource

And shall include the versionId and fullUrl of the current version of the Location resource

And shall include all relevant business identifier details (i.e. ODS Site Code) for the Location resource
GPC-RLO-01 Location 1 Yes
CONS-FoundationAPITest29 Read Location - Invalid
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:Location' interaction

And I add using invalid Location ID for Location whose record exists in the GP system

When I make a GET request

Then I shall get an unsuccessful response error code 404 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-RLO-01 Location 99 Yes
CONS-FoundationAPITest30 Read Location - No longer exists
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:rest:read:Location' interaction

And I add valid Location ID for Location whose record no longer exists in the GP system

When I make a GET request

Then I shall get a response status code to indicate success

And the response shall contain an empty Practitioner resources that conform to the CareConnect-GPC-Location-1 profile
GPC-RLO-01 none Yes
CONS-FoundationAPITest32 Register Patient- Mandatory data in request
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Gender X- -Name X with Name.use=official

When I make a POST request

Then I shall get a response status code to indicate success

And the response shall include the URI of the relevant GP Connect StructureDefinition profile in the {Resource}.meta.profile element of the returned resources.

And shall return a searchset Bundle profiled to GPConnect-Searchset-Bundle-1 including the Patient profiled to CareConnect-GPC-Patient-1 containing details of the newly registered or re-activated patient including any details sourced from PDS as well as consumer-sent temporary contact (telecomm and/or address) details.

And shall include the “registrationDetails” extension within the returned patient resource,

And within the “registrationDetails” extension preferredBranchSurgery SHALL be populated, with either the preferredBranchSurgery that may have been passed in by the consumer or a location reference which represents the physical location of the main GP Practice of the organization where the “Register a patient” request has been targeted.

And ◦the “registrationType” SHALL be populated with a value from the valueset which matches the registration type used within the provider system. If an appropriate registration type is not available within the valueset then the Other type SHALL be use and more detail around the specific type of registration SHOULD be added using the “text” element of the CodeableConcept
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest38 Register Patient- Active patient
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X with an activeRegistration status- -Date of Birth X- -Registration Details blank- -Gender X- -Name X

When I make a POST request

Then I shall receive an Operation Outcome resource containing details of the error (error code 400)

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest42 Register Patient- Optional data in request
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Gender X- -Name X with Name.use=official-Telecom X- -Telecom.use=temp- -AddressX- -Address.use =temp - - PreferredBranchSurgery = a location reference

When I make a POST request

Then I shall get a response status code to indicate success

And the response shall include the URI of the relevant GP Connect StructureDefinition profile in the {Resource}.meta.profile element of the returned resources.

And shall return a searchset Bundle profiled to GPConnect-Searchset-Bundle-1 including the Patient profiled to CareConnect-GPC-Patient-1 containing details of the newly registered or re-activated patient.

And shall include the “registrationDetails” extension within the returned patient resource, within the “registrationDetails” extension The “registrationType” should be populated with a value from the valueset which matches the registration type used within the provider system OR Other type with “text” element of the CodeableConcept populated with additional details.
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest43 Register Patient - Invalid1
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -Blank NHS Number- -Date of Birth X- -Gender X- -Name X with Name.use=official

When I make a POST request

Then I shall receive an Operation Outcome resource containing details of the error (error code 400)

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest44 Register Patient - Invalid2
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Blank Date of Birth- -Gender X- -Name X with Name.use=official

When I make a POST request

Then I shall receive an Operation Outcome resource containing details of the error (error code 400)

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest46 Register Patient - Invalid4
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Gender X- -Name X with Name.use=official-Telecom X- -Telecom.use=temp- - Second -Telecom X- -AddressX- -Address.use =temp - - PreferredBranchSurgery = a location reference

When I make a POST request using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Registration Details blank- -Gender X- -Name X- -Telecom X- -Telecom.use =temp- -Telecom Y--Telecom.use Same as telecom.use for Telecom X- -Address- -Address.use =temp

Then I shall receive an Operation Outcome resource containing details of the error (error code 400)

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest47 Register Patient - Invalid5
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Registration Details blank- -Gender X- -Name X- -Telecom X- -Telecom.use =temp- -Address X- -Address.use =temp- -Second Address Y- Same as address.use for Address X

When I make a POST request

Then I shall receive an Operation Outcome resource containing details of the error (error code 400

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest49 Register Patient - Invalid8
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Gender X- -Name X with Name.use=official-Telecom X- -Telecom.use=temp- -AddressX- -Address.use is not temp - - PreferredBranchSurgery = a location reference

When I make a POST request

Then I shall receive an Operation Outcome resource containing details of the error (error code 400)

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest50 Register Patient - Invalid9
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add using registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X- -Date of Birth X- -Gender X- -Name X with Name.use=official-Telecom X- -Telecom.use is not temp- -AddressX- -Address.use =temp - - PreferredBranchSurgery = a location reference

When I make a POST request

Then I shall receive an Operation Outcome resource containing details of the error (error code 400)

And I shall display an appropriate error message
GPC-RPA-01 9476718943 Yes
CONS-FoundationAPITest51 Register Patient - PDS mismatch
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add registerPatient parameter with patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X whose demographic details do not match PDS- -Date of Birth X- -Gender X- -Name X with Name.use=official

When I make a POST request registerPatient parameter with patient resource profile CareConnect-GPC-Patient-1 containing- -The NHS Number X whose demographic details do not match PDS-

Then I shall get an unsuccessful response error code X and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-RPA-01 9651260165 Yes
CONS-FoundationAPITest52 Register Patient - no active NHS Number
Given I am using the default server

And I am performing the 'urn:nhs:names:services:gpconnect:fhir:operation:gpc.registerpatient-1' interaction

And I add registerPatient parameter with a patient resource profile CareConnect-GPC-Patient-1 containing- -NHS Number X with a status that is not an active status in the GP system- -Date of Birth X- -Gender X- -Name X with Name.use=official

When I make a POST request

Then I shall get an unsuccessful response error code 400 and information about the failure in an OperationOutcome resource

And I shall display an appropriate error message
GPC-RPA-01 2868617948 Yes
Clone this wiki locally