v1

latestOpenAPI 3.0.0Apache 2.02026-07-143533191.6 KB
DocumentReference

Retrieve patient's document pointers (GET)

Retrieve the document pointers for a single patient. Your request is constrained by the document pointer types agreed during onboarding. The results can also be filtered to return documents by a given type and/or created by a given producer (custodian).

get/DocumentReference

Query parameters

subject:identifierstring required
Example:https%3A%2F%2Ffhir.nhs.uk%2FId%2Fnhs-number%7C4857773456

The URL encoded patient's NHS number. The primary identifier of a patient across systems, unique to NHS England and Wales. This needs to be URL Encoded as its passed as a query parameter and part of the URL.

TypeExpression
tokenAppointment.participant.actor:identifier

Example before encoding https://fhir.nhs.uk/Id/nhs-number|4857773456

custodian:identifierstring
Example:https%3A%2F%2Ffhir.nhs.uk%2FId%2Fods-organization-code%7CY05868

The custodian of the pointer This needs to be URL Encoded as its passed as a query parameter and part of the URL.

Endpoint without encoding https://fhir.nhs.uk/Id/ods-organization-code|Y05868

typestring
Example:http%3A%2F%2Fsnomed.info%2Fsct%7C749001000000101

The specified type of pointers to be returned. This needs to be URL Encoded as its passed as a query parameter and part of the URL.

Example query without encoding http://snomed.info/sct|749001000000101

next-page-tokenstring

A token that can be sent as either a query parameter or in the post body parameter to retrieve the next set of 20 records.

This token is returned in the meta.tag field.

Headers

X-Request-Idstring uuid required
Example:c1ab3fba-6bae-4ba4-b257-5a87c44d4a91

The X-Request-Id for the request header, when supplied, mirrored back by the receiver.

X-Correlation-Idstring uuid required
Example:9562466f-c982-4bd5-bb0e-255e9f5e6689

The X-Correlation-Id for the request header, when supplied, mirrored back by the receiver.

NHSD-End-User-Organisationstring byte required

Requesting Organization described in an object based on a FHIR 'Organization' resource (Standard Base64 encoded JSON). Different BaRS Applications may have different standards and requirements for the Access Control which these headers are used for.

In this example an ODS code and the Organisation name is provided. Other identifiers are permitted if required.

Example:eyJyZXNvdXJjZVR5cGUiOiJPcmdhbml6YXRpb24iLCJpZGVudGlmaWVyIjpbeyJ2YWx1ZSI6IkExMDAxIiwic3lzdGVtIjoiaHR0cHM6Ly9maGlyLm5ocy51ay9JZC9vZHMtb3JnYW5pemF0aW9uLWNvZGUifV0sIm5hbWUiOiJNeSBzZXJ2aWNlIHByb3ZpZGVyIG5hbWUifQo=

Requesting Organization described in an object based on a FHIR 'Organization' resource (Standard Base64 encoded JSON). Different BaRS Applications may have different standards and requirements for the Access Control which these headers are used for. In the example given an ODS code and the Organisation name is provided. Other identifiers are permitted if required.

Example object before encoding

{
  "resourceType": "Organization",
  "identifier": [
    {
      "value": "A1001",
      "system": "https://fhir.nhs.uk/Id/ods-organization-code"
    }
  ],
  "name": "My service provider name"
}
Acceptstring required
Example:application/fhir+json; version=1.4.0

The Accept header must also contain version of BaRS Core the Sender is expecting to interoperate on.

Response

Successful response