To support the retrieval of an NRL pointer.

References

Read

Consumer interaction to support the retrieval of a single NRL pointer. The read interaction is a FHIR RESTful read interaction.

Prerequisites

In addition to the requirements on this page, the general guidance and requirements detailed on the Development Overview page MUST be followed when using this interaction.

Read Request Headers

Consumer API read requests support the following HTTP request headers:

Header Value Conformance
Accept The Accept header indicates the format of the response the client is able to understand, if set, this must be either application/fhir+json or application/fhir+xml. OPTIONAL
Authorization The Authorization header will carry the base64url encoded JSON web token required for audit on the spine - see the JSON Web Token Guidance page for details. REQUIRED
fromASID Client System ASID. REQUIRED
toASID The Spine ASID. REQUIRED

Read Operation

The read interaction allows a consumer to retrieve a single pointer (DocumentReference) by logical ID.

The consumer must issue an HTTP GET as shown:

GET [baseUrl]/STU3/DocumentReference/da2b6e8a-3c8f-11e8-baae-6c3be5a609f5-584d385036514c383142

Read the DocumentReference resource for a pointer with the logical id of 'da2b6e8a-3c8f-11e8-baae-6c3be5a609f5-584d385036514c383142'.

Note the status of the pointer must be current for the pointer to be retrieved.

Read Response

Success

A successful execution of the read interaction will:

  • return a 200 OK HTTP status code.
  • return a response body containing a DocumentReference resource which conforms to the NRL-DocumentReference-1 FHIR profile and has the status current.

Example Successful Response:

<DocumentReference>
  <id value="0353e505-f7be-4c20-8f4e-337e79a32c51-76009894321256642261" />
  <meta>
    <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/NRL-DocumentReference-1" />
    <version value="1" />
    <lastUpdated value="2016-03-08T15:26:00+01:00" />
  </meta>
  <masterIdentifier>
    <system value="urn:ietf:rfc:3986" />
    <value value="urn:oid:1.3.6.1.4.1.21367.2005.3.7" />
  </masterIdentifier>
  <status value="current" />
  <type>
    <coding>
      <system value="http://snomed.info/sct" />
      <code value="736253002" />
      <display value="Mental health crisis plan" />
    </coding>
  </type>
  <class>
    <coding>
      <system value="http://snomed.info/sct" />
      <code value="734163000" />
      <display value="Care plan" />
    </coding>
  </class>
  <subject>
    <reference value="https://demographics.spineservices.nhs.uk/STU3/Patient/9876543210" />
  </subject>
  <indexed value="2016-03-08T15:26:01+01:00" />
  <author>
    <reference value="https://directory.spineservices.nhs.uk/STU3/Organization/RGD" />
  </author>
  <custodian>
    <reference value="https://directory.spineservices.nhs.uk/STU3/Organization/RR8" />
  </custodian>
  <relatesTo>
    <code value="replaces" />
    <target>
      <identifier>
        <system value="urn:ietf:rfc:3986" />
        <value value="urn:oid:1.3.6.1.4.1.21367.2005.3.6" />
      </identifier>
    </target>
  </relatesTo>
  <content>
    <attachment>
      <contentType value="application/pdf" />
      <url value="https://p1.nhs.uk/MentalhealthCrisisPlanReport.pdf" />
      <creation value="2016-03-08T15:26:00+01:00" />
    </attachment>
    <format>
      <system value="https://fhir.nhs.uk/STU3/CodeSystem/NRL-FormatCode-1" />
      <code value="urn:nhs-ic:unstructured" />
      <display value="Unstructured Document" />
    </format>
    <extension url="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-NRL-ContentStability-1">
      <valueCodeableConcept>
        <coding>
          <system value="https://fhir.nhs.uk/STU3/CodeSystem/NRL-ContentStability-1" />
          <code value="static" />
          <display value="Static" />
        </coding>
      </valueCodeableConcept>
    </extension>
  </content>
  <context>
    <period>
      <start value="2016-03-07T13:34:00+01:00" />
    </period>
    <practiceSetting>
      <coding>
        <system value="http://snomed.info/sct" />
        <code value="708168004" />
        <display value="Mental health service" />
      </coding>
    </practiceSetting>
  </context>
</DocumentReference>

Failure

The following errors can be triggered when performing this operation:

Explore the NRL

You can explore and test the read interaction using Swagger in the NRL API Reference Implementation.