Retrieve clinical information

Retrieve referral request (A005, FHIR STU3)

Overview

Use this endpoint to retrieve details of a referral. This includes references to clinical attachments, related referrals and other important data.

During the lifecycle of a referral, the state of the referral may change multiple times. To help with understanding the state of a referral, we provide an "at a glance" summary of the referral as detailed below:

Code returned via https://fhir.nhs.uk/STU3/CodeSystem/eRS-ReferralState-1Description
APPT_CANCELLED_BY_PATIENTThe referral's most recent appointment was cancelled at the request of, or directly by, a patient
APPT_CANCELLED_BY_PROVIDERThe referral's most recent appointment was cancelled by the service provider
ASSESSMENT_RESULTA service provider has reviewed and drafted, or submitted a clinical assessment for the referral
AWAITING_TRIAGEThe triage referral is currently pending review with a service provider
BOOKEDThis referral's appointment indicates a date and time with a service
CANCELLED_REFERRALThe referral has been cancelled and cannot be progressed any further
DEFERRED_TO_PROVIDERThe service provider will arrange the patient's appointment
DID_NOT_ATTENDThe patient did not attend their last appointment
NOT_BOOKEDThe referral is currently not booked, there is currently no planned patient encounter
REJECTEDThe referral was rejected by a provider at their service
TRIAGE_RESPONSEA service has passed the referral back to the referrer, with advice
TRIAGED_PROVIDER_TO_ACTIONThe service provider has recorded a review decision, with the intention of processing this referral

Some referral states may also have a reason and some reasons may also have a comment. These are described below:

Reason

  • The reason is always connected to the current state. This means the reason is likely to change each time the state changes. You cannot currently retrieve previous versions of a referral.
  • This reason may have been selected by a clinician or automatically applied by the e-RS system at the time the state was persisted.
  • A reason can be dynamic reference data, from any of the following sets of reference data: APPOINTMENT-CANCELLATION-REASON, REFERRAL-CANCELLATION-REASON, APPOINTMENT-NON-ATTENDANCE-REASON. These are retrievable from [[HYPERLINK_A004]].
  • A reason may be static reference data.

Comments

  • The comment is always connected to the current reason, and state. This means the comment is likely to change as the state changes.

Supported security patterns

  • Application-restricted access
  • Healthcare worker, user-restricted access

Pre-requisites

Application-restricted access

In order to use this endpoint you must be an authenticated e-RS calling application, working in the context of a Service Provider Organisation.

Healthcare worker, user-restricted access

In order to use this endpoint you must be an authenticated e-RS user or application and use one of the following e-RS roles:

  • REFERRING_CLINICIAN
  • REFERRING_CLINICIAN_ADMIN
  • SERVICE_PROVIDER_CLINICIAN
  • SERVICE_PROVIDER_CLINICIAN_ADMIN

You need to use the Unique Booking Reference Number (UBRN) of a referral request in order to retrieve details of a referral.

Important notes

Attachment availability

In order to retrieve an attachment using the [[HYPERLINK_A042]] (or deprecated [[HYPERLINK_A006]]) endpoint, the attachment must be available for download. Attachments are only made available once an uploaded file has been validated and successfully malware scanned. A request to retrieve an attachment that is not available for download will result in an error being returned. See [[HYPERLINK_A042]] for more information.

The availability status of an attachment can be retrieved via any endpoint that returns an eRS-AvailabilityStatus-1 code in the success response, including [[HYPERLINK_A005]]. The eRS-AvailabilityStatus-1 code can return one of four possible values, as detailed below.

eRS-AvailabilityStatus-1 codeDescription / Guidance
AVAILABLEThe file is available for download.
PENDINGThe file is being scanned and cannot be retrieved. Wait at least 5 minutes before checking its availability again
THREATS FOUNDThe file has been quarantined after detecting a threat and cannot be retrieved.<br> Contact the organisation that uploaded the file to resolve the issue and get the information you need. Use the extensions returned via this endpoint: Extension-eRS-AttachedBy-1 and Extension-eRS-AttachedByOrganisation-1.
VALIDATION_FAILEDThe file has failed validation and cannot be retrieved.<br> Contact the organisation that uploaded the file to resolve the issue and get the information you need. Use the extensions returned via this endpoint: Extension-eRS-AttachedBy-1 and Extension-eRS-AttachedByOrganisation-1. Validation can fail because the: <ul><li>content type of the file is not supported</li><li>content type of the file does not correlate with the file extension</li><li>file provided is too large and is not supported by e-RS.</li></ul>

Receiving an e-Referral Pathway Start Date

The e-Referral Pathway Start Date is a derived value of when the Referral To Treatment (RTT) clock starts. Find out how e-RS derives the pathway start date [[HYPERLINK_PATHWAY_START]].

If a referral was created with an alternate pathway start date, then this will be available in the referral request response.

Service providers must always ensure the correct start date is recorded in line with [[HYPERLINK_RTT_RULES]].

Use case

As an authenticated user or application

I want to read details of a referral

So that I can decide what further action may be needed.

Related endpoints

You can retrieve attachments that are associated with the referral using [[HYPERLINK_A042]] (or deprecated [[HYPERLINK_A006]]. Attachments can only be retrieved where the eRS-AvailabilityStatus-1 code returned is 'AVAILABLE'

You can retrieve a clinical information summary for the referral using [[HYPERLINK_A007]]

You can search for services appropriate to a referral to form a shortlist using [[HYPERLINK_A010]]

If bookable services are on the shortlist of the referral, you can retrieve appointment slots for a service on the shortlist for a referral using [[HYPERLINK_A015]]

You can retrieve the patient letter appropriate to the referral using [[HYPERLINK_A019]]

You can retrieve reference data used in viewing a referral using [[HYPERLINK_A004]]

Known Issues

  1. The Participant.type attribute is being mapped as a single type for this endpoint. As per the Appointment FHIR profile, this attribute should be an array. See our problems and fixes section for more information.
  2. The participant of an Appointment references a value set. As per the Appointment FHIR profile, this attribute should be a coding system. See our problems and fixes section for more information.

Sandbox test scenarios

You can test the following scenarios in our sandbox environment

ScenarioRequest
Unbooked ReferralRequestubrn=000000070000
ReferralRequest booked to directly-bookable serviceubrn=000000070001
ReferralRequest booked to indirectly-bookable serviceubrn=000000070002
ReferralRequest deferred to service provider for bookingubrn=000000070003
ReferralRequest that was converted from an Advice and Guidance Requestubrn=000000070004
ReferralRequest with related ReferralRequestubrn=000000070005
ReferralRequest with additional requirements listedubrn=000000070011
ReferralRequest with attachments unavailable to downloadubrn=000000070012
get/STU3/ReferralRequest/{ubrn}

Path parameters

ubrnstring required
Example:000000070000

The unique booking reference number of the referral request

Parameters

#/paths/~1STU3~1Task/get/parameters/0 — unresolved $ref
#/paths/~1STU3~1Communication/get/parameters/3 — unresolved $ref
#/paths/~1STU3~1Communication/get/parameters/4 — unresolved $ref
#/paths/~1STU3~1Communication/get/parameters/5 — unresolved $ref
#/paths/~1STU3~1Task/get/parameters/4 — unresolved $ref

Response

e-RS Referral Request

Changes

No recorded changes to this endpoint across all 1 revision of this API.