Refer Patient
A referral to Social Care for a Supported Hospital Discharge can take many forms. It could be accompanied by a formal Assessment Notice (as per Care Act 2014), however it is not uncommon for the Social Care Practitioners to get involved early in the discharge process, e.g. to help triage pathway and/or have visibility that one of their service users has been admitted to hospital and may need an early review. By enabling the referral to be sent separately to the Assessment Notice allows Social Care Teams to undertake any Primary care duties, before the patient has formally consented to an assessment.
HTTPS Request
Method:
POST
Request URL:
The request URL will consist of 'https
Host Environments:
The Host URLs will determined by the service provider, for example the host URLs for the Nottinghamshire County Council Social Care Data Service are:
Environment | Host |
---|---|
Test | health-interoperability-test.nottscc.gov.uk |
Live | health-interoperability.nottscc.gov.uk |
Base URL:
/ReferralService/v3/ReferralRequest
Note: the Healthcare Locator Service API can be used to identify the Host and Base URL (excluding the FHIR Resource element).
Query String /Parameters:
None
Example Request Url:
https
Request Body:
The Request body should be in either json or xml format
The primary base FHIR resource is a CareConnect-SHD-ReferralRequest-1, with references to other resources as per the Entity Relationship Model below:
See Examples for an illustration of the Request body of a typical Referral to Social Care for a Supported Hospital Discharge.
Response
Success
SHALL return a HTTP status code 201
Created on successful execution of the request
SHALL return an HTTP Location
response header containing the full resolvable URL to the newly created ReferralRequest.
- The URL will contain the ‘server’ assigned logical Id of the new ReferralRequest resource.
- The URL format MUST be:
https
.://[host]/[path]/[id] - An example Location response header:
https
.://health-interoperability-test.nottscc.gov.uk/ReferralService/v3/ReferralRequest/11284224
Note: Implementors MUST be be able to capture and log the ReferralRequest Id in order to send subsequent updates for the referral / reosources that reference it.
Error
An Error SHALL return one of the following HTTP Status Codes and an OperationOutcome with details of the issue:
HTTP Code | Display | Description |
---|---|---|
400 |
Bad Request | Poor Syntax or breaks a core FHIR constraint |
401 |
Unauthorized | User is not authorised to perform the request. |
403 |
Forbidden | The request is forbidden, authorization will not help. |
409 |
Conflict | User has requested to create a resource that already exists. |
422 |
Unprocessable Entity | The syntax is valid, but cannot be processed, e.g. breaks a business rule. |
500 |
Internal Error | The server encountered an unexpected condition which prevented it from fulfilling the request. |
JSON example of an OperationOutcome for a 409
Conflict Error
XML example of an OperationOutcome for a 409
Conflict Error
Examples
Request Body
JSON example of a CareConnect-SHD-ReferralRequest-1
XML example of a CareConnect-SHD-ReferralRequest-1