NHS Digital Profile:
HL7 FHIR STU3 Resource:
API to support the update of NRL pointers. This functionality is only available for providers. The update functionality will be used in cases where a Provider wishes to update a pointer status value, changing it from “current” to “entered-in-error”.
Update Request Headers
Provider API update requests support the following HTTP request headers:
||Client System ASID||MUST|
||The Spine ASID||MUST|
The API supports the conditional update interaction which allows a provider to update a pointer using the masterIdentifier so they do not have to persist or query for the NRL generated logical id for the pointer. The query parameters should be used as shown:
[nhsNumber] - The NHS number of the patient whose DocumentReferences the client is requesting
[system] - The namespace of the masterIdentifier value that is associated with the DocumentReference(s)
[value] - The value of the masterIdentifier that is associated with the DocumentReference(s)
Providers systems SHALL only update pointers for records where they are the pointer owner (custodian). For all update requests the custodian ODS code in the DocumentReference resource SHALL be affiliated with the Client System ASID value in the fromASID HTTP request header sent to the NRL.
The FHIRPath PATCH operation must be encoded in a Parameters resource as follows:
- A single operation as a Parameter named “operation”
- The single parameter has a series of mandatory parts, with required values as listed in the table below:
Any additional parameters included with the request will not be processed. Further detail on the validation of the Parameters resource can be found in the error handling guidance.
XML and JSON eaxmples of the FHIRPath Parameters resource are shown below.
XML FHIRPath PATCH Parameters resource
JSON FHIRPath PATCH Parameters resource
- SHALL return a
200SUCCESS HTTP status code on successful execution of the interaction and the entry has been successfully updated in the NRL.
- SHALL return a response body containing a payload with an
OperationOutcomeresource that conforms to the ‘Operation Outcome’ core FHIR resource. See table below.
- When a resource has been updated it will have a
The NRL server will ignore any versionId value sent by a client in a create interaction. Instead the server will ensure that the newly assigned verionId adheres to the rules laid out above.
The table summarises the
update interaction HTTP response code and the values expected to be conveyed in the successful response body
|200||information||informational||RESOURCE_UPDATED||Resource has been updated||Spine message UUID||Successfully updated resource DocumentReference|
The following errors can be triggered when performing this operation: