NHS Booking and Referral Standard

Guide v1.10.0 | Core v1.3.1 | Package v1.37.0

Testing and Environments

Environments

BaRS Sandbox is available from the BaRS API specification. It demonstrates key functionality without the overhead of security requirements, giving developers the opportunity to understand the product before progressing development.

BaRS Integration (INT) is a live-like environment for suppliers progressing with development and testing to use. To use INT, you will need to follow the instructions to Connect as a sender or Connect as a receiver.

BaRS Production (PROD) is the live environment. Suppliers will need to have progressed through assurance before applying to connect to the PROD environment.

Path-to-Live has full details of all available testing environments and the functionality they offer.

Connecting to environments

In each BaRS workflow there are two roles: Sender and Receiver. In applications with response workflows, both parties act as a Sender and a Receiver, and will need to follow the instructions to connect to environments as both.

The Sender obtains a token from the API-M platform to make requests of the BaRS API Proxy, which brokers the request through the Receiver, secured via TLS-MA (Transport Layer Security-Mutual Authentication).

BaRS is based on internet-first principles and there is no requirement for Health and Social Care Network (HSCN) connectivity.

Connect as a sender

APIM provides the security model for BaRS.

To connect to the BaRS proxy as a sender follow these steps:

Step 1: follow the NHS Developer authentication and authorisation process NHS Developer authentication and authorisation

Step 2: trust the Certificate Authorities (CA) mentioned below. For INT this will be downloadable from http://pki.nhs.uk/int/G2/auth/NHSINTAuthG2.crt ( you can examine the .cer file if you have one )

openssl x509 -in barsintreceiver.cer -text -noout

Step 3: The above steps enables access to the APIM platform. To authorise the access to the BaRS Proxy (which is hosted on the APIM Platform), you must provide the following to the BaRS Team (via email england.bookingandreferralstandard@nhs.net):

  • App Name*
  • App ID (PROD)*
  • App ID (INT) (both App IDs are needed to connect to PROD)*
  • App Description*
  • Name of the Organisation
  • ODS code of the Organisation
  • Product Name (as stated in the SCAL or TCC)
  • JWKS resource URL (if self hosting)
  • KID for JWKS (if APIM host and defined in earlier steps)
  • Public key (if APIM host and generated in earlier steps)

The starred (*) items can be found by logging into the Digital Onboarding Service and selecting 'Environment access' under the Introduction and onboarding section.

Connect as a receiver

BaRS uses TLS-MA to communicate with Receiving endpoints. Receiving endpoints need a certificate under the NHS Root CA to facilitate TLS-MA. The receiver needs to follow these steps to access Integration (INT) and Production (PROD) environments.


How to connect to the BaRS proxy as a Receiver:

Step 1: Apply for your domain apply for a new nhs.uk domain. You must complete Section 5: For domain names visible only on the public internet

Step 2: Request a certificate under the NHS Root CA. The FQDN must be an nhs.uk address. There are different certificate chains for INT and PROD:

Your domain must be registered before you begin the process to obtain your certificate generating a certificate request. The fully qualified domain name (FQDN) is equal to the certificate name (CN) by convention.

Step 3: Create a Certificate Signing Request (*.csr). This is the file you will send to us so we can generate a signed certificate for your endpoints. Create a private key; a password is optional.

openssl genpkey -algorithm RSA -out private.key -aes256

Create the *.csr, use the following command:

openssl req -new -key private.key -out request.csr

Note: Generate the CSR with only the common name field populated, which must match the FQDN. All other fields can remain blank. The email field MUST be blank. Please note FQDNs MUST be in the .nhs.uk domain as we can only issue certificates in this domain.

Step 4: Send the .csr file to be signed by NHS England and get the client certificate. To do this, follow these environment specific steps:


Client certificate: Integration (INT)

Step 1: Contact ITOC to make a Combined endpoint and service registration request Onboarding FORM

In the form:

  • Select Create/renew a certificate only (No endpoint)
  • Specify Integration environment
  • FQDN must match your domain and CN on the cert e.g. 'BaRS-INT-<ODS Code>.<Supplier name>.thirdparty.nhs.uk'
  • In "Additional comments/notes" state ‘BaRS’ certificate request *Add ‘N/A’ in the "Existing party key" field because there is no relation to SDS endpoints.

Step 2: Receive certificate from ITOC

Step 3: Email england.bookingandreferralstandard@nhs.net with Receiver URL for BaRS/API-M to add to the Endpoint Catalogue


Client certificate: Production (PROD)

Production endpoints can only be requested when Solution Assurance issue the supplier with the Technical Conformance certificate

Step 1: Send the .csr to dir@nhs.net, indicating this is for a BaRS Receiver endpoint

Formats for FQDN on PROD:

  • Supplier hosted (multi-tenanted) solutions ‘BaRS-PROD-<ODS Code>.<Supplier name>.thirdparty.nhs.uk

  • Service Provider hosted (on-premise) solutions ‘BaRS-PROD-<ODS Code>.<Provider name>.nhs.uk

Step 2: Receive certificate from DIR Team

Step 3: Email england.bookingandreferralstandard@nhs.net with Receiver URL for BaRS/API-M to add to the Endpoint Catalogue

Step 4: Make changes to your firewall exceptions to receive messages from the BaRS proxy.


Installing and configuring your application to use the certificate

Step 1: INT and PROD copy the cert text including -----BEGIN CERTIFICATE as the first line and END CERTIFICATE----- as the last. Save this text locally as a file called barsinreceiver.cer (change the name to suit).

Step 2: Create a .pfx file so you can serve HTTPS (TLS) endpoints. You can use the command below to export a *.pfx file from the *.key file you made earlier (when you made the *.csr file) along with the *.cer file you were emailed.

openssl pkcs12 -export -out barsintreceiver.pfx -inkey barsintreceiver.key -in barsintreceiver.cer

Step 3: Create a password for your .pfx file.

Step 4: Make configuration changes to reference the *.pfx file and password

(C# example, Other languages will vary but be similar)


// Configure Kestrel to use the certificate
builder.WebHost.ConfigureKestrel(options =>
{
    options.ListenAnyIP(8080, listenOptions =>
    {
        listenOptions.UseHttps(certPath, certPassword);
    });
});


TKW

What is TKW?

TKW - Toolkit Workbench - is a tool to assist development and assurance of supplier solutions to meet BaRS (Booking and Referral Standard) requirements.

The tool supports testing of key high-level workflows e.g. a booking routine, including some asynchronous ones, and is also capable of inspecting low level technical requirements. It reports the output in Validation Reports which indicate where and why a test has failed. In addition, it supports consistent error states which are often difficult to create but are required for development and assurance.

The BaRS TKW tooling is embedded into the INT environment, encompassing all the same end-to-end BaRS infrastructure that is mirrored in Production, rather than being downloaded and used in isolation. This ensures the same steps to deploy solutions to Production are followed during deployment to INT, and allowing testing of requests/responses to occur under Production-like conditions. Similarly, we're able to incorporate other key components, similar to those used in Production workflows, such as the UserTest Directory of Services (DoS). In the current BaRS Applications, the TKW tool relies on values in the UserTest DoS to elicit particular behavioural responses. The Sender will populate what are termed 'sentinel' values, such as the NHSD-Target-Identifier, with a particular value and TKW will respond with a certain Capability Statement, MessageDefinition etc. (See the 'Scenarios' section for detail).

It is important for Senders to remember TKW is a stateless receiver and is not checking the relationship between requests (except in a handful of stateful scenarios - outlined below). This is important when developing workflows such as linking a booking and referral and transactional Integrity.

Using TKW Portal

Suppliers must register a Portal account to start working with TKW but Senders and Receivers will use the tool in slightly different ways due to the nature of the requests/responses they require. Senders, needing somewhere to send requests and Receivers needing something to make requests of their solution.

During the registration process, the 'Target Identifier' and 'ODS Code' values are important to ensure requests are sent and received appropriately. As a Sender (to TKW), the HTTP Header NHSD-End-User-Organisation must include the ODS Code they registered with because TKW will collate requests based on this value. When reports are downloaded and viewed, only requests with that specific ODS Code in the header will be visible. As a Receiver, once logged into the portal and selecting the request(s) TKW is required to make of your endpoint, they will be directed to the Target Identifier registered against and, equally, downloaded reports will only relate to that specific value.

MAIT-Portal

MAIT-Portal-Home

Sender

Once registered, requests can be made of TKW in any given workflow e.g. booking, validation etc. and the tool will record and provide downloadable validation reports for each request made.

The Scenarios (including Stateful Scenarios) outlined below highlight how to elicit particular behaviour required, note the specific sentinel values for NHSD-Target-Identifier and patient NHS Number. As a Sender, the various requests can be made and TKW will repond accoridngly.

NB: It is important for Senders to remember TKW is a stateless receiver and is not checking the relationship between requests (except in a handful of stateful scenarios - outlined below). This is important when developing workflows such as linking a booking and referral and transactional Integrity.

Receiver

A receiver can access the portal (once registered) to send either individual tests or an entire suite of tests to themselves. From the top menu bar, click 'Receive Requests' and the screen below will present -

The receiver selects the request they wish the TKW to make of their endpoint and clicks 'Execute Selected Tests' (bottom of the page). TKW will indicate when the requests have been processed.

MAIT-Portal-Requests

Once all requested tests have been completed, the Validation Report can be downloaded -

  • from the top menu, select 'Download Reports'
  • then click on the button 'Download Reports' (this packages the report and makes it available to download locally)
  • from the top menu, select 'Receiver Reports'
  • click on the hyperlink of the required report to download locally (.zip format)

Scenarios

The TKW will respond to the scenarios outlined below. It does not hold the state of any prior request (unless specified in the Stateful scenarios) and the specific 'sentinel' values (in bold) must be used to elicit the required response where stated.

NB: where 'Any' NHSD-Target-Identifier is specified, only those highlighted in "UserTest DoS Services" table below will work for TKW.

NB: the endpoints for TKW are case sensitive eg use the following /metadata /MessageDefinition /$process-message /Slot /Appointment /ServiceRequest

Headers

The follow is a list of headers needed for the requests, these follow the pattern needed by BARS as follows Headers

Name Value example
X-Request-Id guid 74c2b045-9b7d-4b78-aeee-642f6332e3c9
X-Correlation-Id guid 0598efa7-fff0-4ade-9af8-3f46b4124151
NHSD-Target-Identifier Base64 encoded json varies depending on test (Sentinel Value) else use a value from the "UserTest DoS Services" table below {"system":"https://fhir.nhs.uk/Id/dos-service-id","value":"2000011147"} ( Must be Base64 encoded! )
NHSD-End-User-Organisation Base64 encoded json {"resourceType":"Organization","identifier":[{"value":"WASP","system":"https://fhir.nhs.uk/Id/ods-organization-code"}],"name":"My service provider name"} ( Must be Base64 encoded! )
Example cURL Request

        bash
        curl --location 'https://int.api.service.nhs.uk/booking-and-referral/FHIR/R4/metadata' \
        --header 'X-Request-Id: 99672436-ae1e-42e4-81a6-5a298563ccfa' \
        --header 'X-Correlation-Id: f44f6c3c-fdd5-4c8c-a091-d825eca1d763' \
        --header 'NHSD-Target-Identifier: eyJzeXN0ZW0iOiJodHRwczovL2ZoaXIubmhzLnVrL0lkL2Rvcy1zZXJ2aWNlLWlkIiwidmFsdWUiOiIyMDAwMDcyNDg5In0=' \
        --header 'NHSD-End-User-Organisation: ewogICJyZXNvdXJjZVR5cGUiOiAiT3JnYW5pemF0aW9uIiwKICAiaWRlbnRpZmllciI6IFsKICAgIHsKICAgICAgInZhbHVlIjogIldBU1AiLAogICAgICAic3lzdGVtIjogImh0dHBzOi8vZmhpci5uaHMudWsvSWQvb2RzLW9yZ2FuaXphdGlvbi1jb2RlIgogICAgfQogIF0sCiAgIm5hbWUiOiAiTXkgc2VydmljZSBwcm92aWRlciBuYW1lIgp9' \
        --header 'Authorization: Bearer yourBearerToken'
    


Capability

Test BaRS Application Sentinel Element / Hints Sentinel Value Comment
CS for Booking and Referral receiver 1, 2 & 7 NHSD Target Identifier (HTTP Header) 2000011147 Returns CS for Booking and Referral receiver service
CS for Referral receiver 1, 2, 3, 5 & 6 NHSD Target Identifier (HTTP Header) 2000076289 Returns CS for Referral receiver service
CS for Validation sender 4 NHSD Target Identifier (HTTP Header) 1374839566 Returns CS for Validation sender service (accepting interim and full validation responses)
CS for any other receiving service Any NHSD Target Identifier (HTTP Header) Any (see comment) Any NHSD Target Identifier other than those a predefined response is set for (see above)

MessageDef

Test BaRS Application Sentinel Element / Hints Sentinel Value Comment
MD for Booking and Referral receiver 1, 2 & 7 (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000011147 2000011147 Returns MD for Booking and Referral receiver service
MD for Referral receiver 1, 2, 3, 5 & 6 (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000076289 2000076289 Returns MD for Referral receiver service
MD for Validation receiver 4 (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000003366 2000003366 Returns MD for Validation receiver service
MD for Validation sender 4 (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|1374839566 1374839566 Returns MD for Validation sender service (accepting interim and full validation responses)
MD for Referral receiver 5 (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000070513&context=https://fhir.nhs.uk/CodeSystem/usecases-categories-bars a5t1 2000070513 Returns MD for Application 5 (Minor Illness) sender service
MD for Out-of-Area CAD Referral receiver 6 (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000159909&context=https://fhir.nhs.uk/CodeSystem/usecases-categories-bars a6t1 2000159909 Returns MD for Out-of-Area CAD-CAD Referral receiver service
MD for any other receiving service Any (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000076288 Any (see comment) Any 'context' parameter other than those a predefined response is set for (see above)
MD failed request - HTTP 401 Any (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|FAIL0401 FAIL0401
MD failed request - HTTP 404 Any (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|FAIL0404 FAIL0404
MD for invalid MessageDefs Any (parameter) context=https://fhir.nhs.uk/Id/dos-service-id|2000071898 2000071898 Returns invalid MessageDefintions (includes Invoice resource) for any workflow

Booking

Test BaRS Application Sentinel Element / Hints Sentinel Value Comment
Search for free Slots Any (parameter) start=ge2020-10-31T18%3A45%3A39%2B00&end=le2024-11-04T19%3A00%3A38%2B00&Schedule.actor%3AHealthcareService=2000072489&status=busy%2Cfree 2000072489
Search for free and busy Slots Any (parameter) as above but with status=busy%2Cfree 2000072489 Must include the parameter 'status=free,busy' or 'status=busy,free'
Return no Slots Any (parameter) as above but &Schedule.actor%3AHealthcareService=2000073917 2000073917
Return mandatory Slot response Any (parameter) as above but &Schedule.actor%3AHealthcareService=1503499715 1503499715 This will only include Slot, Schedule and HealthcareService
Slot search failed request - HTTP 408 Any (parameter) as above but &Schedule.actor%3AHealthcareService=2000081230 2000081230
New booking for verified patient Any use body from Booking Request New Full replace <value value="9476719931" /> with 9658499007 9658499007 The returned Appointment Id = ce1c4ced-2a84-4198-9982-9caf894d0bb7 in HTTP synchronous response
Get Booking Any /Appointment use any NHSD Target Identifier as above The returned Appointment Id = ce1c4ced-2a84-4198-9982-9caf894d0bb7
Cancel Booking Any use body from Booking Request Cancelled The returned Appointment Id = ce1c4ced-2a84-4198-9982-9caf894d0bb7 (assumed cancel is for this appointment)
New booking for a patient with no NHS No. Any use body from Booking Request New Full remove the whole "Extension-UKCore-NHSNumberVerificationStatus" section blank (no NHS No.) The returned Appointment Id = ce1c4ced-2a84-4198-9982-9caf894d0bb7
New booking failed request - HTTP 404 Any use body from Booking Request New Full replace <value value="9476719931" /> with 9658499015 9658499015
New booking failed request - HTTP 409 Any use body from Booking Request New Full replace <value value="9476719931" \/> with 9658499023 9658499023
New booking failed request - HTTP 422 Any use body from Booking Request New Full replace <value value="9476719931" /> with 9658499031 9658499031
Get booking failed request - HTTP 501 Any /Appointment/0d440c22-7f25-4c6c-905d-2213d197d02a GET must be for Appointment Id 0d440c22-7f25-4c6c-905d-2213d197d02a

Referral

Test BaRS Application Sentinel Element / Hints Sentinel Value Comment
New referral for a verified patient 1, 2, 3, 5 & 6 use body from REFREQ01 New Full 111 to ED replace <value value="3478526985" /> with 9658499058 9658499058 The returned Service Request Id = 79120f41-a431-4f08-bcc5-1e67006fcae0
Get Referral 1, 2, 3, 5 & 6 /ServiceRequest/79120f41-a431-4f08-bcc5-1e67006fcae0 The returned Service Request Id = 79120f41-a431-4f08-bcc5-1e67006fcae0
Cancel Referral 1, 2, 3, 5 & 6 use body from SERVREQ01 The returned Service Request Id = 09b53c07-2a21-4ba5-ac8b-f33e486d794d (assumed revoke is for this Service Request)
New referral for a patient with no NHS No. 1, 2, 3, 5 & 6 use body from REFREQ01 New Full 111 to ED remove whole Extension-UKCore-NHSNumberVerificationStatus section The returned Service Request Id = 79120f41-a431-4f08-bcc5-1e67006fcae0
New referral for Application 5 5 use body from REFREQ03 - Referral Service Request New Full - Primary Care to Community Pharmacy - Minor Illness. NHSD Target Identifier (HTTP Header) 2000070513 Validates referral for Application 5 and returns Service Request Id = 79120f41-a431-4f08-bcc5-1e67006fcae0
New referral failed request - HTTP 400 1, 2, 3, 5 & 6 use body from REFREQ01 New Full 111 to ED replace <value value="3478526985" /> with 9658499066 9658499066 Request must be for a patient with NHS No - 9658499066 and returns 400
New referral failed request - HTTP 500 1, 2, 3, 5 & 6 use body from REFREQ01 New Full 111 to ED replace <value value="3478526985" /> with 9658499074 9658499074 Request must be for a patient with NHS No - 9658499074 and returns 500
New referral for Out-of-Area CAD referral 6 NHSD Target Identifier (HTTP Header) 2000159910 Request will be validated against the Application6 Out-of-Area CAD-CAD use-case
Get Referral - HTTP 405 1, 2, 3, 5 & 6 /ServiceRequest/61215702-0049-4d76-9807-2123f0a6ca15 GET must be for ServiceRequest Id 61215702-0049-4d76-9807-2123f0a6ca15 and returns 405
Get Referral - HTTP 429 1, 2, 3, 5 & 6 /ServiceRequest/9d280ad9-6dda-46d2-a75e-f5b47b2f4e87 GET must be for ServiceRequest Id 9d280ad9-6dda-46d2-a75e-f5b47b2f4e87 and returns 429
Get Referral - HTTP 503 1, 2, 3, 5 & 6 /ServiceRequest/0b42eac3-0175-43c8-bbab-efaa8ca31ccf GET must be for ServiceRequest Id 4d65ddaa-4d09-41cd-87c9-aeb9c0c96352 and returns 503

Validation

Test BaRS Application Sentinel Element / Hints Sentinel Value Comment
New validation request 4 use body from VALREQ03 Validation Service Req remove whole Extension-UKCore-NHSNumberVerificationStatus section The validation request will return Service Request id = 0b42eac3-0175-43c8-bbab-efaa8ca31ccf
New validation request 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499082 9658499082 The validation request will return Service Request id = 9e595424-9d67-45db-9a90-03259653cd37 which can be used in subsequent error scenarios 'Get Validation - HTTP 408' (4.6)
New validation request 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499090 9658499090 The validation request will return Service Request id =  c337e8d8-fd5b-4a13-a8e4-0f6f4ac1bb1a which can be used in subsequent error scenarios 'Get Validation - HTTP 501' (4.8)
Get validation request 4 /ServiceRequest/0b42eac3-0175-43c8-bbab-efaa8ca31ccf GET must be for Service Request id = 0b42eac3-0175-43c8-bbab-efaa8ca31ccf
Update validation request 4 use body from VALREQ02 - Validation Service Req The validation request returned will be Service Request id = 0b42eac3-0175-43c8-bbab-efaa8ca31ccf
Cancel validation request 4 use body from VALREQ02 - Validation Service Req
New validation failed request - HTTP 404 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499015 9658499015 Request must be for a patient with NHS No - 9658499015 and returns 404
New validation failed request - HTTP 409 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499112 9658499112 Request must be for a patient with NHS No - 9658499112 and returns 409
New validation failed request - HTTP 422 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499120 9658499120 Request must be for a patient with NHS No - 9658499120 and returns 422
New validation failed request - HTTP 401 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499139 9658499139 Request must be for a patient with NHS No - 9658499139 and returns 401
Get Validation - HTTP 408 4 /ServiceRequest/0b42eac3-0175-43c8-bbab-efaa8ca31ccf GET must be for Service Request id = 0b42eac3-0175-43c8-bbab-efaa8ca31ccf and returns 408
Get Validation - HTTP 501 4 /ServiceRequest/c337e8d8-fd5b-4a13-a8e4-0f6f4ac1bb1a GET must be for Service Request id = c337e8d8-fd5b-4a13-a8e4-0f6f4ac1bb1a and returns 501

Response

Test BaRS Application Sentinel Element / Hints Sentinel Value Comment
Full Validation Response 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499147 9658499147 Trigger a Validation response for full validation
Interim validation response 4 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499155 9658499155 Trigger a Validation response for interim validation
Safeguarding DNA Response 1 & 2 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499163 9658499163 Accept a Response flow for failed Safeguarding
Safeguarding DNA Response - HTTP 401 1 & 2 use body from VALREQ03 Validation Service Req replace <value value="3478526985" /> with 9658499171 9658499171 Accept a Response flow for failed Safeguarding and returns a 401

UserTest DoS Services

The sentinel values linked to UserTest DoS services can be found by searching with the following criteria.

ServiceId Service Name PostCode Pathway Comment
2000072489 TESTING ONLY BaRS Test Service (TKW) LS1 4AP NoseBleed without Injury A catch-all service supporting multiple workflows. Pathways answers to obtain outcome (No, Yes, No, Yes)
2000073917 TESTING ONLY BaRS Test Service (TKW 2) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
1503499715 TESTING ONLY BaRS Test Service (TKW 3) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000081230 TESTING ONLY BaRS Test Service (TKW 4) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000093816 TESTING ONLY BaRS Test Service (TKW 5) LS1 4AP NoseBleed without Injury Digital Referral Roles Only. Pathways answers to obtain outcome (No, Yes, No, Yes)
1374839566 TESTING ONLY BaRS Test Service (TKW 6) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000011147 TESTING ONLY BaRS Test Service (TKW 7) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000076289 TESTING ONLY BaRS Test Service (TKW 8) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000003366 TESTING ONLY BaRS Test Service (TKW 9) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000071898 TESTING ONLY BaRS Test Service (TKW 12) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000159909 TESTING ONLY BaRS Test Service (TKW 13) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)
2000159910 TESTING ONLY BaRS Test Service (TKW 14) LS1 4AP NoseBleed without Injury Pathways answers to obtain outcome (No, Yes, No, Yes)

INT Test Patient (traceable on SPINE)

The patient.Identifier sentinel values used to trigger Scenarios in TKW can be found on the INT Spine. The full patient details are outlined below.

Surname Forename DoB NHS No Sex Postcode
DYBALL Adrian 29/10/1932 9658499007 M DN17 4LR
FOWLER Frank 07/06/1921 9658499015 M DN17 1HJ
SWAIN Dudley 03/10/1931 9658499023 M DN19 7EQ
WEBBER Jeremy 19/12/1934 9658499031 M DN16 3JH
MURRY Josiah 10/08/1918 9658499058 M DN8 5SP
MARSH Irving 15/06/1937 9658499066 M DN17 2QU
POVAH Horton 15/07/1938 9658499074 M DN17 1UU
McCANN Levi 08/07/1934 9658499082 M DN16 2LH
DRIVER Claude 29/04/1934 9658499090 M DN18 6BW
LYMER Peter 07/09/1948 9658499104 M DN16 1SA
TAFT Daphne 16/03/1919 9658499112 F DN16 2QY
MCGURK Verena 28/03/1940 9658499120 F DN17 2NB
GILROY Ellice 24/02/1929 9658499139 F DN20 8PT
COOK Violet 07/02/1918 9658499147 F DN20 0JH
COYNE Joyce 22/01/1933 9658499155 F DN17 1TR
LUMAS Hariot 23/04/1948 9658499163 F DN15 7QQ
BONNEY Lynda 21/03/1949 9658499171 F DN17 1XR

Stateful Scenarios

TKW supports a limited stateful response for 111 to ED requests. This is a simulation of the real-world receiving end-point and mimics the expected behaviour of a Reciever solution.

This stateful behaviour is only demonstrated for a specific patient (NHS Number 9707606312) and per NHSD-End-User-Organisation - i.e. state will be persisted only between requests made by the same End User Organisation.

Note The stateful server will reset each night which will return all users back to the initial state.

State Transition Table indicating the responses the stateful TKW scenarios will support and the expected responses-

Event Initial State Appointment Booked State Referral Created State
Make a Booking Http 200 Http 409 (Booking already exists) Http 409 (Booking already exists)
Cancel a Booking Http 400 (The booking this request relates to does not exist) Http 200 Http 200
Create Linked Referral Request Http 400 (The booking this request relates to does not exist) Http 200 Http 409 (Referral  already exists)
Create Mis-linked Referral Request Http 400 (The booking this request relates to does not exist) Http 409 (Referral  is not linked to the correct booking) Http 409 (Referral  already exists)
Cancel Referral Request Http 400 (The booking this request relates to does not exist) Http 400 (No Referral - The referral this request relates to does not exist) Http 200
back to top