Skip to main content

Electronic Prescription Service - FHIR API

Access the Electronic Prescription Service (EPS) - the national service used to send electronic prescriptions from GP surgeries to pharmacies.

Overview

Use this API to access the Electronic Prescription Service (EPS) - the national service used to send electronic prescription messages between prescribers and dispensers.

You can:

  • prepare a secondary care (outpatient) prescription for signing
  • create a secondary care (outpatient) prescription
  • cancel a secondary care (outpatient) prescription
  • evaluate prescription signing client implementations
  • release a prescription for dispensing (sandbox implementation only)
  • send a dispense notification to EPS (sandbox implementation only)
  • return a prescription after downloading (sandbox implementation only)
  • withdraw a dispense notificaton (sandbox implementation only)

You cannot currently use this API to:

  • prepare a primary care prescription for signing
  • create a primary care prescription
  • prepare a secondary care (other than outpatient) prescription for signing
  • create a secondary care (other than outpatient) prescription
  • prepare a tertiary care prescription for signing
  • create a tertiary care prescription
  • check the status of a prescription
  • claim for a dispensed prescription
  • track prescriptions or check a prescription's status

Using this API as a prescriber

To create a prescription:

  1. POST a prescription-order message to the /FHIR/R4/$prepare endpoint to get the encoded prescription data that requires a signature
  2. sign the encoded prescription data using the Signing Service or your existing local signing solution to get the signed prescription data
  3. generate an XML-DSig using the signed prescription data (see below)
  4. put the XML-DSig in a Provenance resource
  5. add the Provenance to the prescription-order message
  6. POST the signed prescription-order message to the /FHIR/R4/$process-message endpoint

To generate an XML-DSig:

  1. get the encoded prescription data from the /FHIR/R4/$prepare endpoint of the EPS API
  2. get the signature and certificate from the /SignatureResponse endpoint of the Signing Service
  3. assemble an XML-DSig (javascript example seen below)

Example code to generate an XML-DSig:

  function toXmlSignature(digest: string, signature: string, certificate: string): string {
    const decodedDigest = Buffer.from(digest, "base64").toString("utf-8") 
    const digestWithoutNamespace = decodedDigest.replace("<SignedInfo xmlns=\"http://www.w3.org/2000/09/xmldsig#\">", "<SignedInfo>")
    const xmlSignature = `<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">${digestWithoutNamespace}<SignatureValue>${signature}</SignatureValue><KeyInfo><X509Data><X509Certificate>${certificate}</X509Certificate></X509Data></KeyInfo></Signature>`
    return Buffer.from(xmlSignature, "utf-8").toString("base64")
  }

To cancel a prescription:

  1. POST a prescription-order-update message to the /FHIR/R4/$process-message endpoint

Using this API as a dispenser

To download a prescription to be dispensed:

  1. POST a Task-release-message to the /FHIR/R4/Task/$release endpoint to mark the prescription as released

To notify Spine that a prescription has been dispensed:

  1. POST a prescription-dispense-notification message to the /FHIR/R4/$process-message endpoint to inform SPINE of a partial/successful dispense

To return a prescription to Spine:

  1. POST a Task-dispense-proposal-return message to the /FHIR/R4/Task endpoint

To withdraw a dispense notification:

  1. POST a Task-dispense-notification-amend message to the /FHIR/R4/Task endpoint

The following APIs also give access to the Electronic Prescription Service:

The following APIs may be required when accessing the Electronic Prescription Service:

Additional guidance

For further details on common HTTP status codes, see 5xx status codes

API status and roadmap

To see our roadmap, or to suggest, comment or vote on features for this API, see our interactive product backlog.

If you have any other queries, please contact us.

Prescribing API

Prescribing flows for EPS FHIR API are now in a state of technical go-live awaiting our first of type integration.

The API is currently available for sandbox testing and integration testing, but not for production use.

Dispensing API

Download and the mark as dispensed dispensing flows for the EPS FHIR API are in the sandbox environment only, withdraw and return are currently only referenced in this spec.

Technology

This API conforms to the FHIR global standard for health care data exchange. Specifically, it is aligned with FHIR UK Core, which is built on FHIR Release 4.

You don’t need to know much about FHIR to use this API - FHIR APIs are just RESTful APIs that follow specific rules. In particular:

  • array names are singular, for example line not lines for address lines
  • data items that are country-specific and thus not included in the FHIR global base resources are usually wrapped in an extension object

Network access

This API is available on the internet and, indirectly, on the Health and Social Care Network (HSCN). To use this API with NHS smartcards (see below) you do need an HSCN connection, although internet-facing alternatives are available.

For more details see Network access for APIs.

Authorisation

Prescribing endpoints

The prescribing endpoints are user-restricted, meaning an end user must be present and authenticated to use them.

For prescribing journeys, the end user must be:

  • a healthcare professional
  • strongly authenticated, using either an NHS smartcard or a modern alternative

The API uses Open ID Connect to authenticate the end user and OAuth 2.0 to authorise the calling system. It supports the following security patterns:

  • user-restricted RESTful API - using NHS Identity - combined authentication and authorisation
  • user-restricted RESTful API - using NHS Identity - separate authentication and authorisation

Dispensing endpoints

The dispensing endpoints are application-resctricted, meaning they only authenticate the calling application, not the end user. An application is authenticated by sending a signed JSON web token (JWT) to our OAuth 2.0 authorisation server.

Environment and Testing

Purpose URL
Sandbox https://sandbox.api.service.nhs.uk/electronic-prescriptions
Integration test https://int.api.service.nhs.uk/electronic-prescriptions
Production Not yet available

Sandbox testing

Our sandbox environment:

  • is for early developer testing
  • only covers a limited set of scenarios
  • is stateless, so it does not actually persist any updates
  • is open access, so does not allow you to test authorisation

For more details on sandbox testing, or to try out the sandbox using our "Try this API" feature, see the documentation for each endpoint.

Integration testing

Our integration test environment:

  • is for formal integration testing
  • is stateful, so persists updates
  • includes authorisation, with smartcard and non-smartcard options

For more details see integration testing with our RESTful APIs.

Onboarding

You need to get your software approved by us before it can go live with this API. We call this onboarding. We are hoping to make the onboarding process as lightweight and as self-service as possible however it can sometimes be quite long, so it’s worth planning well ahead.

To begin the onboarding process please contact us and request the 'EPS use case form'.

Resources

Use the Digital Medicines Implementation Guide to assist with your integration. This is the FHIR specification for Digital Medicines starting with the assets required for an electronic prescription sent to the EPS.

This API can only be used where there is a legal basis to do so. Make sure you have a valid use case before you go too far with your development.

You must do this before you can go live (see ‘Onboarding’ below).

Errors

API wide errors

HTTP Status Error Code Description
400 MISSING_FIELD A required field is missing within the request, see display field in response.
400 INVALID_VALUE Invalid value in message.
400 INCORRECT_RESOURCETYPE FHIR resource has incorrect resourceType.
404 NOT_FOUND Route not found.

Platform wide errors

HTTP Status Error Code Description
401 ACCESS_DENIED User does not have permission for a particular request.
403 FORBIDDEN Insufficient authorization.
404 NOT_FOUND Resource not found.

Endpoints: Dispensing

Send a prescription release request to EPS

post
/FHIR/R4/Task/$release

Overview

The release endpoint is used to download prescriptions from Spine prior to being dispensed to a patient. To do this, send a Task-release-message to this endpoint.

The endpoint will return a set of (up to 25) prescriptions associated with the pharmacy that sends the request.

This endpoint is only available in the sandbox environment.

Request

Headers
Name Description
Authorization
String (^Bearer\ [[:ascii:]]+$)
An OAuth 2.0 bearer token. Required in all environments except sandbox.
Example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
X-Request-ID
String
A globally unique identifier (GUID) for the request, which we use to de-duplicate repeated requests and to trace the request if you contact our helpdesk.

Must be a universally unique identifier (UUID) (ideally version 4). Mirrored back in a response header. If you re-send a failed request, use the same value in this header. Required in all environments except sandbox.

Pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
Example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
Required
X-Correlation-ID
String
An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.

Mirrored back in a response header.

Example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
Body
Required
Content type: application/json
Example
{
  "resourceType" : "Parameters",
  "id" : "nominatedPharmacyReleaseRequest",
  "parameter" : [ {
    "name" : "owner",
    "valueIdentifier" : {
      "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
      "value" : "FTX40"
    }
  }, {
    "name" : "status",
    "valueCode" : "accepted"
  } ]
}
Schema
Name Description
object

Response

HTTP status: 200
Successfully released a prescription for dispensing
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "Bundle",
  "type" : "searchset",
  "total" : 2,
  "id" : "d5a20db9-6d76-4aeb-a190-9a85843b01bf",
  "identifier" : {
    "value" : "d5a20db9-6d76-4aeb-a190-9a85843b01bf"
  },
  "entry" : [ {
    "resource" : {
      "resourceType" : "Bundle",
      "type" : "message",
      "id" : "eff31db2-a914-44a9-b89d-1a33f6de727e",
      "identifier" : {
        "value" : "eff31db2-a914-44a9-b89d-1a33f6de727e"
      }
    },
    "fullUrl" : "urn:uuid:eff31db2-a914-44a9-b89d-1a33f6de727e"
  }, {
    "resource" : {
      "resourceType" : "Bundle",
      "type" : "message",
      "id" : "f6f2fd4a-0f5a-4cee-82a0-e6d08d64c2b4",
      "identifier" : {
        "value" : "f6f2fd4a-0f5a-4cee-82a0-e6d08d64c2b4"
      }
    },
    "fullUrl" : "urn:uuid:f6f2fd4a-0f5a-4cee-82a0-e6d08d64c2b4"
  } ]
}
Schema
Name Description
object
HTTP status: 4XX
An error occurred as follows:

HTTP status Error code Description
400 BAD_REQUEST Invalid request bundle.
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "severity" : "fatal",
    "code" : "value",
    "diagnostics" : "MessageHeader.eventCoding.code must be one of 'prescription-order' or 'prescription-order-update'.",
    "expression" : [ "Bundle.entry.resource.ofType(MessageHeader).eventCoding.code" ]
  } ]
}
Schema
Name Description
object

Send either a Task-dispense-notification-amend or Task-dispense-proposal-return to EPS

post
/FHIR/R4/Task

Overview

This endpoint can be used to return a downloaded prescription to Spine, so that another dispensing system can download it.

It can also be used to withdraw a dispense-notification message, for example in the case that a prescription was marked as dispensed erroneously.

For information on how to create these messages, see DigitalMedicines-Task.

This endpoint is only available in the sandbox environment.

Request

Headers
Name Description
Authorization
String (^Bearer\ [[:ascii:]]+$)
An OAuth 2.0 bearer token. Required in all environments except sandbox.
Example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
X-Request-ID
String
A globally unique identifier (GUID) for the request, which we use to de-duplicate repeated requests and to trace the request if you contact our helpdesk.

Must be a universally unique identifier (UUID) (ideally version 4). Mirrored back in a response header. If you re-send a failed request, use the same value in this header. Required in all environments except sandbox.

Pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
Example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
Required
X-Correlation-ID
String
An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.

Mirrored back in a response header.

Example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA

Response

HTTP status: 200
Action completed successfully
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "severity" : "error",
    "code" : "value",
    "details" : {
      "coding" : [ {
        "system" : "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
        "version" : "1",
        "code" : "MISSING_FIELD",
        "display" : "ResourceType Bundle must contain 'entry' field"
      } ]
    }
  } ]
}
Schema
Name Description
A successful response.
HTTP status: 4XX
An error occurred as follows:

HTTP status Error code Description
400 BAD_REQUEST Invalid request bundle.
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "severity" : "fatal",
    "code" : "value",
    "diagnostics" : "MessageHeader.eventCoding.code must be one of 'prescription-order' or 'prescription-order-update'.",
    "expression" : [ "Bundle.entry.resource.ofType(MessageHeader).eventCoding.code" ]
  } ]
}

Send a prescription message to EPS

post
/FHIR/R4/$process-message

Overview

Use this endpoint to send a message to EPS.

The effect of calling this endpoint depends on the type of the message, which is determined by the MessageHeader resource:

Request

Headers
Name Description
Authorization
String (^Bearer\ [[:ascii:]]+$)
An OAuth 2.0 bearer token. Required in all environments except sandbox.
Example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
X-Request-ID
String
A globally unique identifier (GUID) for the request, which we use to de-duplicate repeated requests and to trace the request if you contact our helpdesk.

Must be a universally unique identifier (UUID) (ideally version 4). Mirrored back in a response header. If you re-send a failed request, use the same value in this header. Required in all environments except sandbox.

Pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
Example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
Required
X-Correlation-ID
String
An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.

Mirrored back in a response header.

Example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
Body
Required
Content type: application/json
Examples
{
  "resourceType" : "Bundle",
  "id" : "aef77afb-7e3c-427a-8657-2c427f71a271",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a065bf0d-cb83-4f51-806f-7cead9489990"
  },
  "type" : "message",
  "entry" : [ {
    "fullUrl" : "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "3599c0e9-9292-413e-9270-9a1ef1ead99c",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order",
        "display" : "Prescription Order"
      },
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        },
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666",
        "display" : "RAZIA|ALI"
      },
      "source" : {
        "endpoint" : "urn:nhs-uk:addressing:ods:RBA"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:FH542",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FH542"
          }
        }
      } ],
      "focus" : [ {
        "reference" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"
      }, {
        "reference" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6",
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "1004",
          "display" : "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "active",
      "intent" : "order",
      "category" : [ {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code" : "outpatient",
          "display" : "Outpatient"
        } ]
      } ],
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "15517911000001104",
          "display" : "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes"
        } ]
      },
      "subject" : {
        "reference" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"
      },
      "authoredOn" : "2021-03-16T12:34:27+00:00",
      "requester" : {
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
      },
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription",
            "value" : "257e4d5d-c202-462f-b540-1d3c4d8393c2"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "BE77DF-A99968-42FA8D"
      },
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
          "code" : "acute",
          "display" : "Short course (acute) therapy"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "10 milligram, Inject, Subcutaneous route, once weekly",
        "timing" : {
          "repeat" : {
            "frequency" : 5,
            "period" : 1,
            "periodUnit" : "d",
            "boundsDuration" : {
              "value" : 10,
              "unit" : "day",
              "system" : "http://unitsofmeasure.org",
              "code" : "d"
            }
          }
        },
        "method" : {
          "coding" : [ {
            "system" : "http://snomed.info/sct",
            "code" : "422145002",
            "display" : "Inject"
          } ]
        },
        "route" : {
          "coding" : [ {
            "system" : "http://snomed.info/sct",
            "code" : "34206005",
            "display" : "Subcutaneous route"
          } ]
        },
        "doseAndRate" : [ {
          "doseQuantity" : {
            "value" : 10,
            "unit" : "milligram",
            "system" : "http://unitsofmeasure.org",
            "code" : "mg"
          }
        } ]
      } ],
      "dispenseRequest" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType",
          "valueCoding" : {
            "system" : "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference",
            "code" : "P1"
          }
        } ],
        "quantity" : {
          "value" : 1,
          "unit" : "pre-filled disposable injection",
          "system" : "http://snomed.info/sct",
          "code" : "3318611000001103"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FH542"
          }
        }
      },
      "substitution" : {
        "allowedBoolean" : false
      }
    }
  }, {
    "fullUrl" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "78d3c2eb-009e-4ec8-a358-b042954aa9b2",
      "identifier" : [ {
        "extension" : [ {
          "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus",
              "code" : "01",
              "display" : "Number present and verified"
            } ]
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9449305552"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "CORY",
        "given" : [ "ETTA" ],
        "prefix" : [ "MISS" ]
      } ],
      "gender" : "female",
      "birthDate" : "1999-01-04",
      "address" : [ {
        "use" : "home",
        "line" : [ "123 Dale Avenue", "Long Eaton", "Nottingham" ],
        "postalCode" : "NG10 1NP"
      } ],
      "generalPractitioner" : [ {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "a8c85454-f8cb-498d-9629-78e2cb5fa47a",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "555086690109"
      }, {
        "system" : "https://fhir.hl7.org.uk/Id/nmc-number",
        "value" : "12A3456B"
      } ],
      "name" : [ {
        "family" : "Userq",
        "given" : [ "Random" ],
        "prefix" : [ "MR" ]
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "56166769-c1c4-4d07-afa8-132b5dfca666",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100102238986"
      }, {
        "system" : "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code",
        "value" : "12A3456B"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"
      },
      "organization" : {
        "reference" : "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"
      },
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8001",
          "display" : "Nurse Access Role"
        } ]
      } ],
      "healthcareService" : [ {
        "reference" : "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e",
        "display" : "SOMERSET BOWEL CANCER SCREENING CENTRE"
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "3b4b03a5-52ba-4ba6-9b82-70350aa109d8",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "RBA"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/organisation-role",
          "code" : "197",
          "display" : "NHS TRUST"
        } ]
      } ],
      "name" : "TAUNTON AND SOMERSET NHS FOUNDATION TRUST",
      "address" : [ {
        "line" : [ "MUSGROVE PARK HOSPITAL", "PARKFIELD DRIVE", "TAUNTON" ],
        "postalCode" : "TA1 5DA"
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e",
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "54b0506d-49af-4245-9d40-d7d64902055e",
      "identifier" : [ {
        "use" : "usual",
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "active" : true,
      "providedBy" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        }
      },
      "location" : [ {
        "reference" : "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823 333444",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb",
    "resource" : {
      "resourceType" : "Location",
      "id" : "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb",
      "identifier" : [ {
        "value" : "10008800708"
      } ],
      "status" : "active",
      "mode" : "instance",
      "address" : {
        "use" : "work",
        "line" : [ "MUSGROVE PARK HOSPITAL" ],
        "city" : "TAUNTON",
        "postalCode" : "TA1 5DA"
      }
    }
  }, {
    "fullUrl" : "urn:uuid:28828C55-8FA7-42D7-916F-FCF076E0C10E",
    "resource" : {
      "resourceType" : "Provenance",
      "id" : "28828C55-8FA7-42D7-916F-FCF076E0C10E",
      "target" : [ {
        "reference" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "recorded" : "2008-02-27T11:38:00+00:00",
      "agent" : [ {
        "who" : {
          "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
        }
      } ],
      "signature" : [ {
        "type" : [ {
          "system" : "urn:iso-astm:E1762-95:2013",
          "code" : "1.2.840.10065.1.12.1.1"
        } ],
        "when" : "2021-03-16T12:34:35+00:00",
        "who" : {
          "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
        },
        "data" : "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSI+PC9EaWdlc3RNZXRob2Q+PERpZ2VzdFZhbHVlPjJ5cUJISDVLK05ibVA1WWY3bVE3WmVFYWN0Yz08L0RpZ2VzdFZhbHVlPjwvUmVmZXJlbmNlPjwvU2lnbmVkSW5mbz4NCiAgICA8U2lnbmF0dXJlVmFsdWU+aE9DaXVJOGIyTEFaRXoxUDdXcGFlRDBQUWQ2bVJKdzVSV2JNV2ZMcU1OUWtRMzIzbnpWTDk3a01XZUJycnJzNU5vTHhGb28vKzFPUjYxcmNXNTJEamlHdjRRcE53QmJOQkYvMi9hUWxqd3pUdm9tQm9tUlpnbUtRQWpyZU1iOTZNM0hjajVvVFNBZG9tUEc2TGw3RVR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kM5amNteGpNeTVqY213d0t3WURWUjBRQkNRd0lvQVBNakF5TURFd01qSXhNREl4TlRWYWdROHlNREl5TURNeE56RXdOVEUxTlZvd0h3WURWUjBqQkJnd0ZvQVVvSllmZ1lUTlBkNkVVS0w2UUxJekh4WTVQRkl3SFFZRFZSME9CQllFRkx0eXZZU3lhcWc2MEFFVVpneGswd3JqUkpjK01Ba0dBMVVkRXdRQ01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K"
      } ]
    }
  } ]
}
{
  "resourceType" : "Bundle",
  "id" : "prescription-dispense-notification",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "90db708f-3e82-4d2c-a7aa-fd965a8cfb03"
  },
  "type" : "message",
  "entry" : [ {
    "fullUrl" : "urn:uuid:BE807DAC-9DCF-45CF-91D6-70D9D58DCF34",
    "resource" : {
      "resourceType" : "MessageHeader",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "dispense-notification",
        "display" : "Dispense Notification"
      },
      "destination" : [ {
        "endpoint" : "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "T1450"
          },
          "display" : "NHS BUSINESS SERVICES AUTHORITY"
        }
      } ],
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "FTX40"
        },
        "display" : "HEALTHCARE AT HOME"
      },
      "source" : {
        "name" : "HEALTHCARE AT HOME",
        "endpoint" : "urn:nhs-uk:addressing:ods:FTX40"
      },
      "reason" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/message-reason-prescription",
          "code" : "notification",
          "display" : "Notification"
        } ]
      },
      "response" : {
        "identifier" : "999f9999-9999-9999-9ff9-f9fff9999999",
        "code" : "ok"
      },
      "focus" : [ {
        "reference" : "urn:uuid:4509B70D-D8B8-EA03-1105-64557CB54A29"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:4509B70D-D8B8-EA03-1105-64557CB54A29",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status",
          "code" : "0003",
          "display" : "With Dispenser - Active"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-dispense-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "completed",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "13892511000001100",
          "display" : "Amlodipine 5mg/5ml oral solution"
        } ]
      },
      "subject" : {
        "type" : "Patient",
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/nhs-number",
          "value" : "9449307571"
        },
        "display" : "MS TETTY PIMPL"
      },
      "performer" : [ {
        "actor" : {
          "type" : "Practitioner",
          "identifier" : {
            "system" : "https://fhir.hl7.org.uk/Id/gphc-number",
            "value" : "7654321"
          },
          "display" : "Mr Peter Potion"
        }
      }, {
        "actor" : {
          "type" : "Organization",
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "T1450"
          },
          "display" : "NHS BUSINESS SERVICES AUTHORITY"
        }
      } ],
      "authorizingPrescription" : [ {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier",
          "extension" : [ {
            "url" : "shortForm",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
              "value" : "681AC8-A99968-40469I"
            }
          }, {
            "url" : "UUID",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription",
              "value" : "f94174d0-dc46-4745-9dc6-149a56a20503"
            }
          } ]
        } ],
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
          "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab7"
        }
      } ],
      "type" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/medicationdispense-type",
          "code" : "0001",
          "display" : "Item fully dispensed"
        } ]
      },
      "quantity" : {
        "value" : 28,
        "unit" : "tablet",
        "system" : "http://snomed.info/sct",
        "code" : "428673006"
      },
      "whenPrepared" : "2009-09-21T09:24:20+00:00",
      "dosageInstruction" : [ {
        "text" : "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet – oral-  daily at 8am"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:4509B70D-D8B8-EA03-1105-64557CB54A28",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status",
          "code" : "0003",
          "display" : "With Dispenser - Active"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-dispense-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "completed",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "317972000",
          "display" : "Furosemide 40mg tablets"
        } ]
      },
      "subject" : {
        "type" : "Patient",
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/nhs-number",
          "value" : "9449307571"
        },
        "display" : "MS TETTY PIMPL"
      },
      "performer" : [ {
        "actor" : {
          "type" : "Practitioner",
          "identifier" : {
            "system" : "https://fhir.hl7.org.uk/Id/gphc-number",
            "value" : "7654321"
          },
          "display" : "Mr Peter Potion"
        }
      }, {
        "actor" : {
          "type" : "Organization",
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "T1450"
          },
          "display" : "NHS BUSINESS SERVICES AUTHORITY"
        }
      } ],
      "authorizingPrescription" : [ {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier",
          "extension" : [ {
            "url" : "shortForm",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
              "value" : "681AC8-A99968-40469I"
            }
          }, {
            "url" : "UUID",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription",
              "value" : "f94174d0-dc46-4745-9dc6-149a56a20503"
            }
          } ]
        } ],
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
          "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab7"
        }
      } ],
      "type" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/medicationdispense-type",
          "code" : "0001",
          "display" : "Item fully dispensed"
        } ]
      },
      "quantity" : {
        "value" : 28,
        "unit" : "tablet",
        "system" : "http://snomed.info/sct",
        "code" : "428673006"
      },
      "whenPrepared" : "2009-09-21T09:24:20+00:00",
      "dosageInstruction" : [ {
        "text" : "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet – oral-  daily at 8am"
      } ]
    }
  } ]
}
{
  "resourceType" : "Bundle",
  "id" : "9c7635da-de6a-38ce-b790-163048f0d390",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a7b86f8d-1dae-fc28-e050-d20ae3a215f0"
  },
  "type" : "message",
  "entry" : [ {
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "1e21d133-b39b-4c81-b10f-fce9b4570375",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order",
        "display" : "Prescription Order"
      },
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        },
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca",
        "display" : "PEPIN MCQUADE"
      },
      "source" : {
        "endpoint" : "urn:nhs-uk:addressing:ods:RBA"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:FA553",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      } ],
      "focus" : [ {
        "reference" : "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d81-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d86-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d8b-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d90-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      }, {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }, {
        "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
      }, {
        "reference" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
      }, {
        "reference" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
      }, {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }, {
        "reference" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
      } ]
    },
    "fullUrl" : "urn:uuid:1e21d133-b39b-4c81-b10f-fce9b4570375"
  }, {
    "fullUrl" : "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e",
    "resource" : {
      "resourceType" : "Provenance",
      "id" : "28828c55-8fa7-42d7-916f-fcf076e0c10e",
      "target" : [ {
        "reference" : "urn:uuid:a7b86f8d-1d45-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d4a-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d4f-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d54-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      }, {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }, {
        "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
      }, {
        "reference" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
      }, {
        "reference" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
      }, {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }, {
        "reference" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
      } ],
      "recorded" : "2008-02-27T11:38:00+00:00",
      "agent" : [ {
        "who" : {
          "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
        }
      } ],
      "signature" : [ {
        "type" : [ {
          "system" : "urn:iso-astm:E1762-95:2013",
          "code" : "1.2.840.10065.1.12.1.1"
        } ],
        "when" : "2008-02-27T11:38:00+00:00",
        "who" : {
          "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
        },
        "data" : "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiLz48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIi8+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIi8+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSIvPjxEaWdlc3RWYWx1ZT5LYUtLTFd1bU93MmRPZUQyb21pOUNQWTR5bzQ9PC9EaWdlc3RWYWx1ZT48L1JlZmVyZW5jZT48L1NpZ25lZEluZm8+PFNpZ25hdHVyZVZhbHVlPkhpaUQ3dVB6RXlQOXRpWVpFdDlCQ2JQRnl5cGIxUDZ0cTBZU0ZtK1JSclVyNlVOZVJacER0Nkd2enZPcWFVS2ticUwrdFlWLy9ZRXMKUUE5KzY5TVhlK2ZpVnVadVVaeEc0VXdteWRGQzJpQ0Y2cExSRUZ6YXhPTWU0Tm8xeG40M0YvdXpSNkhlMzErc0dEQm5ZVitaSzlNNgpKWmo5bGdoR2VqZWtKcTRpYnNIVHMz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wZVdUMFUvL1pKU2VCcW5PT3BYbzYKNERmWnRTOVZsMmV4SGJISHFZYzBSVk5wS0ltYVdWck15ZEMxcU9leGpVWlNWQlZkK1pvPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg=="
      } ]
    }
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d45-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d45-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "323888003",
          "display" : "Cefalexin 250mg/5ml oral suspension"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 100,
          "unit" : "ml",
          "system" : "http://snomed.info/sct",
          "code" : "258773002"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "One 5ml spoonful to be taken every SIX hours"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d81-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d4a-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d4a-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "374372000",
          "display" : "Betamethasone valerate 0.1% cream"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 100,
          "unit" : "gram",
          "system" : "http://snomed.info/sct",
          "code" : "258682000"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "Apply sparingly to the affected area"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d86-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d4f-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d4f-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "320567001",
          "display" : "Budesonide 200micrograms/dose dry powder inhaler"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 200,
          "unit" : "dose",
          "system" : "http://snomed.info/sct",
          "code" : "3317411000001100"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "ONE puff to be inhaled TWICE a day"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d8b-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d54-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d54-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "330286001",
          "display" : "Chloramphenicol 0.5% eye drops"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 10,
          "unit" : "ml",
          "system" : "http://snomed.info/sct",
          "code" : "258773002"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "Put ONE drop into the LEFT eye as directed"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d90-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "Patient",
      "id" : "b96806f2-0e43-4046-30f3-bd444965afb3",
      "generalPractitioner" : [ {
        "identifier" : {
          "value" : "C81007",
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9453740578"
      } ],
      "gender" : "unknown",
      "birthDate" : "1973-05-25",
      "deceasedDateTime" : "2015-02-07T13:28:17+00:00",
      "name" : [ {
        "use" : "usual",
        "family" : "AWAN",
        "given" : [ "LAYNE" ],
        "prefix" : [ "MR" ]
      } ],
      "address" : [ {
        "use" : "home",
        "type" : "both",
        "line" : [ "13 RADBOURNE STREET" ],
        "city" : "DERBY",
        "postalCode" : "DE22 3HD"
      } ]
    },
    "fullUrl" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "dbaa616b-e23c-4d53-0f82-b2d178db79ca",
      "practitioner" : {
        "reference" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
      },
      "organization" : {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }
    },
    "fullUrl" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "9b4c1a77-cccc-418a-b835-4112fbcb14f3",
      "practitioner" : {
        "reference" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
      },
      "organization" : {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }
    },
    "fullUrl" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "d4b569e7-ccf6-4bb2-029b-34b6f3e82acf",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "8412511"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-job-role-id",
        "value" : "R0260"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100109391987"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "MCQUADE",
        "given" : [ "PEPIN" ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "tel:01512631737",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "4d2df25e-a6d3-4200-a9fa-6611be03e2a6",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "981055"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-job-role-id",
        "value" : "R0260"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100104917989"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "AITCHISON",
        "given" : [ "PAVLOU" ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "tel:01512631737",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
  }, {
    "resource" : {
      "resourceType" : "Organization",
      "id" : "b65dd3a2-9551-45a3-3e9d-342f8de14d8f",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "C81007"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.94",
          "code" : "001",
          "display" : "General Medical Practice"
        } ]
      } ],
      "name" : "VERNON STREET MEDICAL CTR",
      "telecom" : [ {
        "system" : "phone",
        "value" : "tel:01512631737",
        "use" : "work"
      } ],
      "address" : [ {
        "use" : "work",
        "type" : "both",
        "line" : [ "13 VERNON STREET" ],
        "city" : "DERBY",
        "district" : "DERBYSHIRE",
        "postalCode" : "DE1 1FW"
      } ],
      "partOf" : {
        "reference" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
      }
    },
    "fullUrl" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
  }, {
    "resource" : {
      "resourceType" : "Organization",
      "id" : "cc850777-b73f-43cd-23f8-a41a7f1e8459",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "5EX"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.94",
          "code" : "005",
          "display" : "Primary Care Trust"
        } ]
      } ],
      "name" : "GREATER DERBY PCT"
    },
    "fullUrl" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
  } ]
}
Schema
Name Description
object

Response

HTTP status: 200
Successfully submitted.
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "code" : "informational",
    "severity" : "information"
  } ]
}
Schema
Name Description
object
HTTP status: 4XX
An error occurred as follows:

HTTP status Error code Description FHIR type
400 BAD_REQUEST Spine Error - duplicate prescription ID exists. OperationOutcome
400 BAD_REQUEST Spine Error - prescription not found. Bundle
Body
Content type: application/fhir+json
Examples
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "severity" : "error",
    "code" : "value",
    "details" : {
      "coding" : [ {
        "system" : "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
        "version" : "1",
        "code" : "MISSING_FIELD",
        "display" : "ResourceType Bundle must contain 'entry' field"
      } ]
    }
  } ]
}
{
  "resourceType" : "Bundle",
  "type" : "message",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "20e63a4f-905d-46c4-80d3-155e054a8998"
  },
  "timestamp" : "2021-02-11T15:29:02+00:00",
  "entry" : [ {
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "b48acb13-511b-4e0d-8d6c-4b7aa46c778a",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-Spine-MessageHeader-messageId",
        "valueIdentifier" : {
          "system" : "https://tools.ietf.org/html/rfc4122",
          "value" : "20e63a4f-905d-46c4-80d3-155e054a8998"
        }
      } ],
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order-response",
        "display" : "Prescription Order Response"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:A99968",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "A99968"
          }
        }
      } ],
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "X2601"
        },
        "display" : "NHS Digital Spine"
      },
      "source" : {
        "name" : "NHS Spine",
        "endpoint" : "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message"
      },
      "response" : {
        "identifier" : "20e63a4f-905d-46c4-80d3-155e054a8998",
        "code" : "ok"
      },
      "focus" : [ {
        "reference" : "urn:uuid:48ef4dc3-29ab-40d9-a903-91f59accf627"
      }, {
        "reference" : "urn:uuid:b337a6d4-e9b1-4b2e-999a-ab422e6693fc"
      } ]
    },
    "fullUrl" : "urn:uuid:b48acb13-511b-4e0d-8d6c-4b7aa46c778a"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "b337a6d4-e9b1-4b2e-999a-ab422e6693fc",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason",
        "extension" : [ {
          "url" : "status",
          "valueCoding" : {
            "system" : "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history",
            "code" : "R-0006",
            "display" : "Prescription/item had already been cancelled"
          }
        } ]
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:8bb862f5-35a7-47c5-a6f4-3eea5ded8e10"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "cancelled",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "763158003",
          "display" : "Medicinal product"
        } ]
      },
      "subject" : {
        "reference" : "urn:uuid:48ef4dc3-29ab-40d9-a903-91f59accf627"
      },
      "authoredOn" : "2021-02-11T15:29:02+00:00",
      "requester" : {
        "reference" : "urn:uuid:2bfb310b-70d8-46c9-be3a-a11c6d877951"
      },
      "groupIdentifier" : {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "1E5135-A99968-4595BT"
      }
    },
    "fullUrl" : "urn:uuid:b337a6d4-e9b1-4b2e-999a-ab422e6693fc"
  }, {
    "resource" : {
      "resourceType" : "Patient",
      "id" : "48ef4dc3-29ab-40d9-a903-91f59accf627",
      "identifier" : [ {
        "extension" : [ {
          "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus",
              "code" : "01",
              "display" : "Number present and verified"
            } ]
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9449305552"
      } ],
      "name" : [ {
        "given" : [ "ETTA" ],
        "prefix" : [ "MISS" ],
        "use" : "usual",
        "family" : "CORY"
      } ],
      "gender" : "female",
      "birthDate" : "1999-01-04",
      "address" : [ {
        "line" : [ "123 Dale Avenue", "Long Eaton", "Nottingham" ],
        "postalCode" : "NG10 1NP",
        "use" : "home"
      } ],
      "generalPractitioner" : [ {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      } ]
    },
    "fullUrl" : "urn:uuid:48ef4dc3-29ab-40d9-a903-91f59accf627"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "8bb862f5-35a7-47c5-a6f4-3eea5ded8e10",
      "identifier" : [ {
        "system" : "https://fhir.hl7.org.uk/Id/professional-code",
        "value" : "2083469"
      } ],
      "name" : [ {
        "given" : [ "RANDOM" ],
        "prefix" : [ "MR" ],
        "family" : "UserM"
      } ]
    },
    "fullUrl" : "urn:uuid:8bb862f5-35a7-47c5-a6f4-3eea5ded8e10"
  }, {
    "resource" : {
      "resourceType" : "Location",
      "id" : "e2e2bfa7-0241-4171-97cc-6ec43d83a7ca",
      "address" : {
        "line" : [ "MUSGROVE PARK HOSPITAL", "TAUNTON" ],
        "postalCode" : "TA1 5DA",
        "use" : "work"
      }
    },
    "fullUrl" : "urn:uuid:e2e2bfa7-0241-4171-97cc-6ec43d83a7ca"
  }, {
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "252df9a9-d1ab-4fc6-a18e-b8445a908236",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "location" : [ {
        "reference" : "urn:uuid:e2e2bfa7-0241-4171-97cc-6ec43d83a7ca"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:252df9a9-d1ab-4fc6-a18e-b8445a908236"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "af51881b-865d-46f9-a376-e7b1c242c3dc",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "201715352555"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:8bb862f5-35a7-47c5-a6f4-3eea5ded8e10"
      },
      "healthcareService" : [ {
        "reference" : "urn:uuid:252df9a9-d1ab-4fc6-a18e-b8445a908236"
      } ],
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8003",
          "display" : "a"
        } ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:af51881b-865d-46f9-a376-e7b1c242c3dc"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "1a502de0-1c84-4de2-81ba-05d0b2db9947",
      "identifier" : [ {
        "system" : "https://fhir.hl7.org.uk/Id/professional-code",
        "value" : "6150129"
      } ],
      "name" : [ {
        "given" : [ "RANDOM" ],
        "prefix" : [ "MR" ],
        "family" : "FIFTYSEVEN"
      } ]
    },
    "fullUrl" : "urn:uuid:1a502de0-1c84-4de2-81ba-05d0b2db9947"
  }, {
    "resource" : {
      "resourceType" : "Location",
      "id" : "d4bacbd8-fa5e-4335-8542-9d86449b5863",
      "address" : {
        "line" : [ "MUSGROVE PARK HOSPITAL", "TAUNTON" ],
        "postalCode" : "TA1 5DA",
        "use" : "work"
      }
    },
    "fullUrl" : "urn:uuid:d4bacbd8-fa5e-4335-8542-9d86449b5863"
  }, {
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "e0601ae8-08dd-4902-a880-6739ebc49f38",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "location" : [ {
        "reference" : "urn:uuid:d4bacbd8-fa5e-4335-8542-9d86449b5863"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:e0601ae8-08dd-4902-a880-6739ebc49f38"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "2bfb310b-70d8-46c9-be3a-a11c6d877951",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "601986680555"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:1a502de0-1c84-4de2-81ba-05d0b2db9947"
      },
      "healthcareService" : [ {
        "reference" : "urn:uuid:e0601ae8-08dd-4902-a880-6739ebc49f38"
      } ],
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8000",
          "display" : "s"
        } ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:2bfb310b-70d8-46c9-be3a-a11c6d877951"
  } ]
}
Schema
Name Description
A successful response.

Endpoints: Prescribing

Convert a prescription message to signature fragments

post
/FHIR/R4/$prepare

Overview

Use this endpoint to convert a prescription-order message in FHIR format into HL7 V3 signature fragments which can then be signed by the prescriber.

Request

Headers
Name Description
Authorization
String (^Bearer\ [[:ascii:]]+$)
An OAuth 2.0 bearer token. Required in all environments except sandbox.
Example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
X-Request-ID
String
A globally unique identifier (GUID) for the request, which we use to de-duplicate repeated requests and to trace the request if you contact our helpdesk.

Must be a universally unique identifier (UUID) (ideally version 4). Mirrored back in a response header. If you re-send a failed request, use the same value in this header. Required in all environments except sandbox.

Pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
Example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
Required
X-Correlation-ID
String
An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.

Mirrored back in a response header.

Example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
Body
Required
Content type: application/json
Example
{
  "resourceType" : "Bundle",
  "id" : "aef77afb-7e3c-427a-8657-2c427f71a271",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a065bf0d-cb83-4f51-806f-7cead9489990"
  },
  "type" : "message",
  "entry" : [ {
    "fullUrl" : "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "3599c0e9-9292-413e-9270-9a1ef1ead99c",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order",
        "display" : "Prescription Order"
      },
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        },
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666",
        "display" : "RAZIA|ALI"
      },
      "source" : {
        "endpoint" : "urn:nhs-uk:addressing:ods:RBA"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:FH542",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FH542"
          }
        }
      } ],
      "focus" : [ {
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
      }, {
        "reference" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6",
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "1001",
          "display" : "Outpatient Community Prescriber - Medical Prescriber"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "active",
      "intent" : "order",
      "category" : [ {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code" : "outpatient",
          "display" : "Outpatient"
        } ]
      } ],
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "15517911000001104",
          "display" : "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes"
        } ]
      },
      "subject" : {
        "reference" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"
      },
      "authoredOn" : "2021-03-16T12:34:27+00:00",
      "requester" : {
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
      },
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription",
            "value" : "257e4d5d-c202-462f-b540-1d3c4d8393c2"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "BE77DF-A99968-42FA8D"
      },
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
          "code" : "acute",
          "display" : "Short course (acute) therapy"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "10 milligram, Inject, Subcutaneous route, once weekly",
        "timing" : {
          "repeat" : {
            "frequency" : 5,
            "period" : 1,
            "periodUnit" : "d",
            "boundsDuration" : {
              "value" : 10,
              "unit" : "day",
              "system" : "http://unitsofmeasure.org",
              "code" : "d"
            }
          }
        },
        "method" : {
          "coding" : [ {
            "system" : "http://snomed.info/sct",
            "code" : "422145002",
            "display" : "Inject"
          } ]
        },
        "route" : {
          "coding" : [ {
            "system" : "http://snomed.info/sct",
            "code" : "34206005",
            "display" : "Subcutaneous route"
          } ]
        },
        "doseAndRate" : [ {
          "doseQuantity" : {
            "value" : 10,
            "unit" : "milligram",
            "system" : "http://unitsofmeasure.org",
            "code" : "mg"
          }
        } ]
      } ],
      "dispenseRequest" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType",
          "valueCoding" : {
            "system" : "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference",
            "code" : "P1"
          }
        } ],
        "quantity" : {
          "value" : 1,
          "unit" : "pre-filled disposable injection",
          "system" : "http://snomed.info/sct",
          "code" : "3318611000001103"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FH542"
          }
        }
      },
      "substitution" : {
        "allowedBoolean" : false
      }
    }
  }, {
    "fullUrl" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "78d3c2eb-009e-4ec8-a358-b042954aa9b2",
      "identifier" : [ {
        "extension" : [ {
          "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus",
              "code" : "01",
              "display" : "Number present and verified"
            } ]
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9449305552"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "CORY",
        "given" : [ "ETTA" ],
        "prefix" : [ "MISS" ]
      } ],
      "gender" : "female",
      "birthDate" : "1999-01-04",
      "address" : [ {
        "use" : "home",
        "line" : [ "123 Dale Avenue", "Long Eaton", "Nottingham" ],
        "postalCode" : "NG10 1NP"
      } ],
      "generalPractitioner" : [ {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "a8c85454-f8cb-498d-9629-78e2cb5fa47a",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "555086690109"
      }, {
        "system" : "https://fhir.hl7.org.uk/Id/nmc-number",
        "value" : "12A3456B"
      } ],
      "name" : [ {
        "family" : "Userq",
        "given" : [ "Random" ],
        "prefix" : [ "MR" ]
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "56166769-c1c4-4d07-afa8-132b5dfca666",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100102238986"
      }, {
        "system" : "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code",
        "value" : "12A3456B"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"
      },
      "organization" : {
        "reference" : "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"
      },
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8001",
          "display" : "Nurse Access Role"
        } ]
      } ],
      "healthcareService" : [ {
        "reference" : "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e",
        "display" : "SOMERSET BOWEL CANCER SCREENING CENTRE"
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "3b4b03a5-52ba-4ba6-9b82-70350aa109d8",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "RBA"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/organisation-role",
          "code" : "197",
          "display" : "NHS TRUST"
        } ]
      } ],
      "name" : "TAUNTON AND SOMERSET NHS FOUNDATION TRUST",
      "address" : [ {
        "line" : [ "MUSGROVE PARK HOSPITAL", "PARKFIELD DRIVE", "TAUNTON" ],
        "postalCode" : "TA1 5DA"
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e",
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "54b0506d-49af-4245-9d40-d7d64902055e",
      "identifier" : [ {
        "use" : "usual",
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "active" : true,
      "providedBy" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        }
      },
      "location" : [ {
        "reference" : "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823 333444",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb",
    "resource" : {
      "resourceType" : "Location",
      "id" : "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb",
      "identifier" : [ {
        "value" : "10008800708"
      } ],
      "status" : "active",
      "mode" : "instance",
      "address" : {
        "use" : "work",
        "line" : [ "MUSGROVE PARK HOSPITAL" ],
        "city" : "TAUNTON",
        "postalCode" : "TA1 5DA"
      }
    }
  } ]
}
Schema
Name Description
object

Response

HTTP status: 200
Successful conversion.
Body
Content type: application/json
Example
{
  "resourceType" : "Parameters",
  "parameter" : [ {
    "name" : "digest",
    "valueString" : "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+Mk1YeTlrQ1hpWFNPckxuekFBaXN1UGQvb2RRPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="
  }, {
    "name" : "timestamp",
    "valueString" : "2021-03-16T12:34:35+00:00"
  }, {
    "name" : "algorithm",
    "valueString" : "RS1"
  } ]
}
Schema
Name Description
object
HTTP status: 4XX
Invalid request.
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "severity" : "error",
    "code" : "value",
    "details" : {
      "coding" : [ {
        "system" : "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
        "version" : "1",
        "code" : "MISSING_FIELD",
        "display" : "ResourceType Bundle must contain 'entry' field"
      } ]
    }
  } ]
}
Schema
Name Description
object

Send a prescription message to EPS

post
/FHIR/R4/$process-message

Overview

Use this endpoint to send a message to EPS.

The effect of calling this endpoint depends on the type of the message, which is determined by the MessageHeader resource:

Request

Headers
Name Description
Authorization
String (^Bearer\ [[:ascii:]]+$)
An OAuth 2.0 bearer token. Required in all environments except sandbox.
Example: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM
X-Request-ID
String
A globally unique identifier (GUID) for the request, which we use to de-duplicate repeated requests and to trace the request if you contact our helpdesk.

Must be a universally unique identifier (UUID) (ideally version 4). Mirrored back in a response header. If you re-send a failed request, use the same value in this header. Required in all environments except sandbox.

Pattern: /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/
Example: 60E0B220-8136-4CA5-AE46-1D97EF59D068
Required
X-Correlation-ID
String
An optional ID which you can use to track transactions across multiple systems. It can take any value, but we recommend avoiding . characters.

Mirrored back in a response header.

Example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
Body
Required
Content type: application/json
Examples
{
  "resourceType" : "Bundle",
  "id" : "aef77afb-7e3c-427a-8657-2c427f71a271",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a065bf0d-cb83-4f51-806f-7cead9489990"
  },
  "type" : "message",
  "entry" : [ {
    "fullUrl" : "urn:uuid:aef77afb-7e3c-427a-8657-2c427f71a271",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "3599c0e9-9292-413e-9270-9a1ef1ead99c",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order",
        "display" : "Prescription Order"
      },
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        },
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666",
        "display" : "RAZIA|ALI"
      },
      "source" : {
        "endpoint" : "urn:nhs-uk:addressing:ods:RBA"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:FH542",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FH542"
          }
        }
      } ],
      "focus" : [ {
        "reference" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"
      }, {
        "reference" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6",
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "1004",
          "display" : "Outpatient Community Prescriber - Nurse Independent/Supplementary prescriber"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "active",
      "intent" : "order",
      "category" : [ {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code" : "outpatient",
          "display" : "Outpatient"
        } ]
      } ],
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "15517911000001104",
          "display" : "Methotrexate 10mg/0.2ml solution for injection pre-filled syringes"
        } ]
      },
      "subject" : {
        "reference" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"
      },
      "authoredOn" : "2021-03-16T12:34:27+00:00",
      "requester" : {
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
      },
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription",
            "value" : "257e4d5d-c202-462f-b540-1d3c4d8393c2"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "BE77DF-A99968-42FA8D"
      },
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
          "code" : "acute",
          "display" : "Short course (acute) therapy"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "10 milligram, Inject, Subcutaneous route, once weekly",
        "timing" : {
          "repeat" : {
            "frequency" : 5,
            "period" : 1,
            "periodUnit" : "d",
            "boundsDuration" : {
              "value" : 10,
              "unit" : "day",
              "system" : "http://unitsofmeasure.org",
              "code" : "d"
            }
          }
        },
        "method" : {
          "coding" : [ {
            "system" : "http://snomed.info/sct",
            "code" : "422145002",
            "display" : "Inject"
          } ]
        },
        "route" : {
          "coding" : [ {
            "system" : "http://snomed.info/sct",
            "code" : "34206005",
            "display" : "Subcutaneous route"
          } ]
        },
        "doseAndRate" : [ {
          "doseQuantity" : {
            "value" : 10,
            "unit" : "milligram",
            "system" : "http://unitsofmeasure.org",
            "code" : "mg"
          }
        } ]
      } ],
      "dispenseRequest" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType",
          "valueCoding" : {
            "system" : "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference",
            "code" : "P1"
          }
        } ],
        "quantity" : {
          "value" : 1,
          "unit" : "pre-filled disposable injection",
          "system" : "http://snomed.info/sct",
          "code" : "3318611000001103"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FH542"
          }
        }
      },
      "substitution" : {
        "allowedBoolean" : false
      }
    }
  }, {
    "fullUrl" : "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "78d3c2eb-009e-4ec8-a358-b042954aa9b2",
      "identifier" : [ {
        "extension" : [ {
          "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus",
              "code" : "01",
              "display" : "Number present and verified"
            } ]
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9449305552"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "CORY",
        "given" : [ "ETTA" ],
        "prefix" : [ "MISS" ]
      } ],
      "gender" : "female",
      "birthDate" : "1999-01-04",
      "address" : [ {
        "use" : "home",
        "line" : [ "123 Dale Avenue", "Long Eaton", "Nottingham" ],
        "postalCode" : "NG10 1NP"
      } ],
      "generalPractitioner" : [ {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "a8c85454-f8cb-498d-9629-78e2cb5fa47a",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "555086690109"
      }, {
        "system" : "https://fhir.hl7.org.uk/Id/nmc-number",
        "value" : "12A3456B"
      } ],
      "name" : [ {
        "family" : "Userq",
        "given" : [ "Random" ],
        "prefix" : [ "MR" ]
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "56166769-c1c4-4d07-afa8-132b5dfca666",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100102238986"
      }, {
        "system" : "https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code",
        "value" : "12A3456B"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47a"
      },
      "organization" : {
        "reference" : "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8"
      },
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8001",
          "display" : "Nurse Access Role"
        } ]
      } ],
      "healthcareService" : [ {
        "reference" : "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e",
        "display" : "SOMERSET BOWEL CANCER SCREENING CENTRE"
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d8",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "3b4b03a5-52ba-4ba6-9b82-70350aa109d8",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "RBA"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/organisation-role",
          "code" : "197",
          "display" : "NHS TRUST"
        } ]
      } ],
      "name" : "TAUNTON AND SOMERSET NHS FOUNDATION TRUST",
      "address" : [ {
        "line" : [ "MUSGROVE PARK HOSPITAL", "PARKFIELD DRIVE", "TAUNTON" ],
        "postalCode" : "TA1 5DA"
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:54b0506d-49af-4245-9d40-d7d64902055e",
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "54b0506d-49af-4245-9d40-d7d64902055e",
      "identifier" : [ {
        "use" : "usual",
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "active" : true,
      "providedBy" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        }
      },
      "location" : [ {
        "reference" : "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823 333444",
        "use" : "work"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:8a5d7d67-64fb-44ec-9802-2dc214bb3dcb",
    "resource" : {
      "resourceType" : "Location",
      "id" : "8a5d7d67-64fb-44ec-9802-2dc214bb3dcb",
      "identifier" : [ {
        "value" : "10008800708"
      } ],
      "status" : "active",
      "mode" : "instance",
      "address" : {
        "use" : "work",
        "line" : [ "MUSGROVE PARK HOSPITAL" ],
        "city" : "TAUNTON",
        "postalCode" : "TA1 5DA"
      }
    }
  }, {
    "fullUrl" : "urn:uuid:28828C55-8FA7-42D7-916F-FCF076E0C10E",
    "resource" : {
      "resourceType" : "Provenance",
      "id" : "28828C55-8FA7-42D7-916F-FCF076E0C10E",
      "target" : [ {
        "reference" : "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "recorded" : "2008-02-27T11:38:00+00:00",
      "agent" : [ {
        "who" : {
          "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
        }
      } ],
      "signature" : [ {
        "type" : [ {
          "system" : "urn:iso-astm:E1762-95:2013",
          "code" : "1.2.840.10065.1.12.1.1"
        } ],
        "when" : "2021-03-16T12:34:35+00:00",
        "who" : {
          "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
        },
        "data" : "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY2FsaXphdGlvbk1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9DYW5vbmljYWxpemF0aW9uTWV0aG9kPjxTaWduYXR1cmVNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjcnNhLXNoYTEiPjwvU2lnbmF0dXJlTWV0aG9kPjxSZWZlcmVuY2U+PFRyYW5zZm9ybXM+PFRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyI+PC9UcmFuc2Zvcm0+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3J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WVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K"
      } ]
    }
  } ]
}
{
  "resourceType" : "Bundle",
  "id" : "prescription-dispense-notification",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "90db708f-3e82-4d2c-a7aa-fd965a8cfb03"
  },
  "type" : "message",
  "entry" : [ {
    "fullUrl" : "urn:uuid:BE807DAC-9DCF-45CF-91D6-70D9D58DCF34",
    "resource" : {
      "resourceType" : "MessageHeader",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "dispense-notification",
        "display" : "Dispense Notification"
      },
      "destination" : [ {
        "endpoint" : "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "T1450"
          },
          "display" : "NHS BUSINESS SERVICES AUTHORITY"
        }
      } ],
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "FTX40"
        },
        "display" : "HEALTHCARE AT HOME"
      },
      "source" : {
        "name" : "HEALTHCARE AT HOME",
        "endpoint" : "urn:nhs-uk:addressing:ods:FTX40"
      },
      "reason" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/message-reason-prescription",
          "code" : "notification",
          "display" : "Notification"
        } ]
      },
      "response" : {
        "identifier" : "999f9999-9999-9999-9ff9-f9fff9999999",
        "code" : "ok"
      },
      "focus" : [ {
        "reference" : "urn:uuid:4509B70D-D8B8-EA03-1105-64557CB54A29"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:4509B70D-D8B8-EA03-1105-64557CB54A29",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status",
          "code" : "0003",
          "display" : "With Dispenser - Active"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-dispense-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "completed",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "13892511000001100",
          "display" : "Amlodipine 5mg/5ml oral solution"
        } ]
      },
      "subject" : {
        "type" : "Patient",
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/nhs-number",
          "value" : "9449307571"
        },
        "display" : "MS TETTY PIMPL"
      },
      "performer" : [ {
        "actor" : {
          "type" : "Practitioner",
          "identifier" : {
            "system" : "https://fhir.hl7.org.uk/Id/gphc-number",
            "value" : "7654321"
          },
          "display" : "Mr Peter Potion"
        }
      }, {
        "actor" : {
          "type" : "Organization",
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "T1450"
          },
          "display" : "NHS BUSINESS SERVICES AUTHORITY"
        }
      } ],
      "authorizingPrescription" : [ {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier",
          "extension" : [ {
            "url" : "shortForm",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
              "value" : "681AC8-A99968-40469I"
            }
          }, {
            "url" : "UUID",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription",
              "value" : "f94174d0-dc46-4745-9dc6-149a56a20503"
            }
          } ]
        } ],
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
          "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab7"
        }
      } ],
      "type" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/medicationdispense-type",
          "code" : "0001",
          "display" : "Item fully dispensed"
        } ]
      },
      "quantity" : {
        "value" : 28,
        "unit" : "tablet",
        "system" : "http://snomed.info/sct",
        "code" : "428673006"
      },
      "whenPrepared" : "2009-09-21T09:24:20+00:00",
      "dosageInstruction" : [ {
        "text" : "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet – oral-  daily at 8am"
      } ]
    }
  }, {
    "fullUrl" : "urn:uuid:4509B70D-D8B8-EA03-1105-64557CB54A28",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-EPS-TaskBusinessStatus",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/EPS-task-business-status",
          "code" : "0003",
          "display" : "With Dispenser - Active"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-dispense-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "completed",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "317972000",
          "display" : "Furosemide 40mg tablets"
        } ]
      },
      "subject" : {
        "type" : "Patient",
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/nhs-number",
          "value" : "9449307571"
        },
        "display" : "MS TETTY PIMPL"
      },
      "performer" : [ {
        "actor" : {
          "type" : "Practitioner",
          "identifier" : {
            "system" : "https://fhir.hl7.org.uk/Id/gphc-number",
            "value" : "7654321"
          },
          "display" : "Mr Peter Potion"
        }
      }, {
        "actor" : {
          "type" : "Organization",
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "T1450"
          },
          "display" : "NHS BUSINESS SERVICES AUTHORITY"
        }
      } ],
      "authorizingPrescription" : [ {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-GroupIdentifier",
          "extension" : [ {
            "url" : "shortForm",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
              "value" : "681AC8-A99968-40469I"
            }
          }, {
            "url" : "UUID",
            "valueIdentifier" : {
              "system" : "https://fhir.nhs.uk/Id/prescription",
              "value" : "f94174d0-dc46-4745-9dc6-149a56a20503"
            }
          } ]
        } ],
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
          "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab7"
        }
      } ],
      "type" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/CodeSystem/medicationdispense-type",
          "code" : "0001",
          "display" : "Item fully dispensed"
        } ]
      },
      "quantity" : {
        "value" : 28,
        "unit" : "tablet",
        "system" : "http://snomed.info/sct",
        "code" : "428673006"
      },
      "whenPrepared" : "2009-09-21T09:24:20+00:00",
      "dosageInstruction" : [ {
        "text" : "80mg at 8am and 40mg at 2pm for 5 days. Then 40mg tablet – oral-  daily at 8am"
      } ]
    }
  } ]
}
{
  "resourceType" : "Bundle",
  "id" : "9c7635da-de6a-38ce-b790-163048f0d390",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a7b86f8d-1dae-fc28-e050-d20ae3a215f0"
  },
  "type" : "message",
  "entry" : [ {
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "1e21d133-b39b-4c81-b10f-fce9b4570375",
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order",
        "display" : "Prescription Order"
      },
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "RBA"
        },
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca",
        "display" : "PEPIN MCQUADE"
      },
      "source" : {
        "endpoint" : "urn:nhs-uk:addressing:ods:RBA"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:FA553",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      } ],
      "focus" : [ {
        "reference" : "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d81-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d86-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d8b-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d90-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      }, {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }, {
        "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
      }, {
        "reference" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
      }, {
        "reference" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
      }, {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }, {
        "reference" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
      } ]
    },
    "fullUrl" : "urn:uuid:1e21d133-b39b-4c81-b10f-fce9b4570375"
  }, {
    "fullUrl" : "urn:uuid:28828c55-8fa7-42d7-916f-fcf076e0c10e",
    "resource" : {
      "resourceType" : "Provenance",
      "id" : "28828c55-8fa7-42d7-916f-fcf076e0c10e",
      "target" : [ {
        "reference" : "urn:uuid:a7b86f8d-1d45-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d4a-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d4f-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:a7b86f8d-1d54-fc28-e050-d20ae3a215f0"
      }, {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      }, {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }, {
        "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
      }, {
        "reference" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
      }, {
        "reference" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
      }, {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }, {
        "reference" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
      } ],
      "recorded" : "2008-02-27T11:38:00+00:00",
      "agent" : [ {
        "who" : {
          "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
        }
      } ],
      "signature" : [ {
        "type" : [ {
          "system" : "urn:iso-astm:E1762-95:2013",
          "code" : "1.2.840.10065.1.12.1.1"
        } ],
        "when" : "2008-02-27T11:38:00+00:00",
        "who" : {
          "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
        },
        "data" : "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+PFNpZ25lZEluZm8+PENhbm9uaWNhbGl6YXRpb25NZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzEwL3htbC1leGMtYzE0biMiLz48U2lnbmF0dXJlTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3JzYS1zaGExIi8+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIi8+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwO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Z2tBNnUwY1hiTHFLb1F3RFFZSktvWklodmNOCkFRRUxCUUFEZ2dFQkFFRGNyUGNkcklDNXVmVkhyYTYyb0dCUC9sejVvSnEzUWw5M1BoZ3c5QkRidW1QVTc0UCtYZ1FvTzl2dzh4TzIKWWI0K1BMN00yQnVKbzNmRHFjRHNXKzRCNHQ5bWRoV1c3bFJqTjNXY3Vqb0xzbFB6MjNjZnl4Q2dabllNTURiT2hCckp4VkN6WWVDNgpueDZPaGtMMVYzWW9lK09JeXJSZVV6cHplQndzVVg1cTgwMmROYVYxeXJiNmFpMmljZ3hxcFkrZk9aWUZMUmVmUElxdXRCSzczaG5ECnV4RGpJKzdlaHlGcGFwZk9YVkJtTFRhY0x4TEYxRHkvNytHSVhiZEl3YmVkZXQ0cDJJY0VhUlgwZVdUMFUvL1pKU2VCcW5PT3BYbzYKNERmWnRTOVZsMmV4SGJISHFZYzBSVk5wS0ltYVdWck15ZEMxcU9leGpVWlNWQlZkK1pvPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg=="
      } ]
    }
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d45-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d45-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "323888003",
          "display" : "Cefalexin 250mg/5ml oral suspension"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 100,
          "unit" : "ml",
          "system" : "http://snomed.info/sct",
          "code" : "258773002"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "One 5ml spoonful to be taken every SIX hours"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d81-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d4a-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d4a-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "374372000",
          "display" : "Betamethasone valerate 0.1% cream"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 100,
          "unit" : "gram",
          "system" : "http://snomed.info/sct",
          "code" : "258682000"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "Apply sparingly to the affected area"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d86-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d4f-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d4f-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "320567001",
          "display" : "Budesonide 200micrograms/dose dry powder inhaler"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 200,
          "unit" : "dose",
          "system" : "http://snomed.info/sct",
          "code" : "3317411000001100"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "ONE puff to be inhaled TWICE a day"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d8b-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d54-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a7b86f8d-1d54-fc28-e050-d20ae3a215f0"
      } ],
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription-parent-id",
            "value" : "a7b86f8d-1cf2-fc28-e050-d20ae3a215f0"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-short-form",
        "value" : "76787C-C81007-00001G"
      },
      "category" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.25",
          "code" : "0101"
        } ]
      } ],
      "status" : "active",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "330286001",
          "display" : "Chloramphenicol 0.5% eye drops"
        } ]
      },
      "dispenseRequest" : {
        "quantity" : {
          "value" : 10,
          "unit" : "ml",
          "system" : "http://snomed.info/sct",
          "code" : "258773002"
        },
        "performer" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "FA553"
          }
        }
      },
      "authoredOn" : "2020-06-10T12:06:00+00:00",
      "courseOfTherapyType" : {
        "coding" : [ {
          "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
          "code" : "acute",
          "display" : "Acute"
        } ]
      },
      "dosageInstruction" : [ {
        "text" : "Put ONE drop into the LEFT eye as directed"
      } ],
      "subject" : {
        "reference" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
      },
      "requester" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      },
      "recorder" : {
        "reference" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
      }
    },
    "fullUrl" : "urn:uuid:a7b86f8d-1d90-fc28-e050-d20ae3a215f0"
  }, {
    "resource" : {
      "resourceType" : "Patient",
      "id" : "b96806f2-0e43-4046-30f3-bd444965afb3",
      "generalPractitioner" : [ {
        "identifier" : {
          "value" : "C81007",
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9453740578"
      } ],
      "gender" : "unknown",
      "birthDate" : "1973-05-25",
      "deceasedDateTime" : "2015-02-07T13:28:17+00:00",
      "name" : [ {
        "use" : "usual",
        "family" : "AWAN",
        "given" : [ "LAYNE" ],
        "prefix" : [ "MR" ]
      } ],
      "address" : [ {
        "use" : "home",
        "type" : "both",
        "line" : [ "13 RADBOURNE STREET" ],
        "city" : "DERBY",
        "postalCode" : "DE22 3HD"
      } ]
    },
    "fullUrl" : "urn:uuid:b96806f2-0e43-4046-30f3-bd444965afb3"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "dbaa616b-e23c-4d53-0f82-b2d178db79ca",
      "practitioner" : {
        "reference" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
      },
      "organization" : {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }
    },
    "fullUrl" : "urn:uuid:dbaa616b-e23c-4d53-0f82-b2d178db79ca"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "9b4c1a77-cccc-418a-b835-4112fbcb14f3",
      "practitioner" : {
        "reference" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
      },
      "organization" : {
        "reference" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
      }
    },
    "fullUrl" : "urn:uuid:9b4c1a77-cccc-418a-b835-4112fbcb14f3"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "d4b569e7-ccf6-4bb2-029b-34b6f3e82acf",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "8412511"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-job-role-id",
        "value" : "R0260"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100109391987"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "MCQUADE",
        "given" : [ "PEPIN" ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "tel:01512631737",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:d4b569e7-ccf6-4bb2-029b-34b6f3e82acf"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "4d2df25e-a6d3-4200-a9fa-6611be03e2a6",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-user-id",
        "value" : "981055"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-job-role-id",
        "value" : "R0260"
      }, {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "100104917989"
      } ],
      "name" : [ {
        "use" : "usual",
        "family" : "AITCHISON",
        "given" : [ "PAVLOU" ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "tel:01512631737",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:4d2df25e-a6d3-4200-a9fa-6611be03e2a6"
  }, {
    "resource" : {
      "resourceType" : "Organization",
      "id" : "b65dd3a2-9551-45a3-3e9d-342f8de14d8f",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "C81007"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.94",
          "code" : "001",
          "display" : "General Medical Practice"
        } ]
      } ],
      "name" : "VERNON STREET MEDICAL CTR",
      "telecom" : [ {
        "system" : "phone",
        "value" : "tel:01512631737",
        "use" : "work"
      } ],
      "address" : [ {
        "use" : "work",
        "type" : "both",
        "line" : [ "13 VERNON STREET" ],
        "city" : "DERBY",
        "district" : "DERBYSHIRE",
        "postalCode" : "DE1 1FW"
      } ],
      "partOf" : {
        "reference" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
      }
    },
    "fullUrl" : "urn:uuid:b65dd3a2-9551-45a3-3e9d-342f8de14d8f"
  }, {
    "resource" : {
      "resourceType" : "Organization",
      "id" : "cc850777-b73f-43cd-23f8-a41a7f1e8459",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "5EX"
      } ],
      "type" : [ {
        "coding" : [ {
          "system" : "urn:oid:2.16.840.1.113883.2.1.3.2.4.17.94",
          "code" : "005",
          "display" : "Primary Care Trust"
        } ]
      } ],
      "name" : "GREATER DERBY PCT"
    },
    "fullUrl" : "urn:uuid:cc850777-b73f-43cd-23f8-a41a7f1e8459"
  } ]
}
Schema
Name Description
object

Response

HTTP status: 200
Successfully submitted.
Body
Content type: application/fhir+json
Example
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "code" : "informational",
    "severity" : "information"
  } ]
}
Schema
Name Description
object
HTTP status: 4XX
An error occurred as follows:

HTTP status Error code Description FHIR type
400 BAD_REQUEST Spine Error - duplicate prescription ID exists. OperationOutcome
400 BAD_REQUEST Spine Error - prescription not found. Bundle
Body
Content type: application/fhir+json
Examples
{
  "resourceType" : "OperationOutcome",
  "issue" : [ {
    "severity" : "error",
    "code" : "value",
    "details" : {
      "coding" : [ {
        "system" : "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
        "version" : "1",
        "code" : "MISSING_FIELD",
        "display" : "ResourceType Bundle must contain 'entry' field"
      } ]
    }
  } ]
}
{
  "resourceType" : "Bundle",
  "type" : "message",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "20e63a4f-905d-46c4-80d3-155e054a8998"
  },
  "timestamp" : "2021-02-11T15:29:02+00:00",
  "entry" : [ {
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "b48acb13-511b-4e0d-8d6c-4b7aa46c778a",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-Spine-MessageHeader-messageId",
        "valueIdentifier" : {
          "system" : "https://tools.ietf.org/html/rfc4122",
          "value" : "20e63a4f-905d-46c4-80d3-155e054a8998"
        }
      } ],
      "eventCoding" : {
        "system" : "https://fhir.nhs.uk/CodeSystem/message-event",
        "code" : "prescription-order-response",
        "display" : "Prescription Order Response"
      },
      "destination" : [ {
        "endpoint" : "urn:nhs-uk:addressing:ods:A99968",
        "receiver" : {
          "identifier" : {
            "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
            "value" : "A99968"
          }
        }
      } ],
      "sender" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "X2601"
        },
        "display" : "NHS Digital Spine"
      },
      "source" : {
        "name" : "NHS Spine",
        "endpoint" : "https://int.api.service.nhs.uk/electronic-prescriptions/$process-message"
      },
      "response" : {
        "identifier" : "20e63a4f-905d-46c4-80d3-155e054a8998",
        "code" : "ok"
      },
      "focus" : [ {
        "reference" : "urn:uuid:48ef4dc3-29ab-40d9-a903-91f59accf627"
      }, {
        "reference" : "urn:uuid:b337a6d4-e9b1-4b2e-999a-ab422e6693fc"
      } ]
    },
    "fullUrl" : "urn:uuid:b48acb13-511b-4e0d-8d6c-4b7aa46c778a"
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "b337a6d4-e9b1-4b2e-999a-ab422e6693fc",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionTaskStatusReason",
        "extension" : [ {
          "url" : "status",
          "valueCoding" : {
            "system" : "https://fhir.nhs.uk/CodeSystem/medicationrequest-status-history",
            "code" : "R-0006",
            "display" : "Prescription/item had already been cancelled"
          }
        } ]
      }, {
        "url" : "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
        "valueReference" : {
          "reference" : "urn:uuid:8bb862f5-35a7-47c5-a6f4-3eea5ded8e10"
        }
      } ],
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-item-number",
        "value" : "a54219b8-f741-4c47-b662-e4f8dfa49ab6"
      } ],
      "status" : "cancelled",
      "intent" : "order",
      "medicationCodeableConcept" : {
        "coding" : [ {
          "system" : "http://snomed.info/sct",
          "code" : "763158003",
          "display" : "Medicinal product"
        } ]
      },
      "subject" : {
        "reference" : "urn:uuid:48ef4dc3-29ab-40d9-a903-91f59accf627"
      },
      "authoredOn" : "2021-02-11T15:29:02+00:00",
      "requester" : {
        "reference" : "urn:uuid:2bfb310b-70d8-46c9-be3a-a11c6d877951"
      },
      "groupIdentifier" : {
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "1E5135-A99968-4595BT"
      }
    },
    "fullUrl" : "urn:uuid:b337a6d4-e9b1-4b2e-999a-ab422e6693fc"
  }, {
    "resource" : {
      "resourceType" : "Patient",
      "id" : "48ef4dc3-29ab-40d9-a903-91f59accf627",
      "identifier" : [ {
        "extension" : [ {
          "url" : "https://fhir.hl7.org.uk/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-NHSNumberVerificationStatus",
              "code" : "01",
              "display" : "Number present and verified"
            } ]
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/nhs-number",
        "value" : "9449305552"
      } ],
      "name" : [ {
        "given" : [ "ETTA" ],
        "prefix" : [ "MISS" ],
        "use" : "usual",
        "family" : "CORY"
      } ],
      "gender" : "female",
      "birthDate" : "1999-01-04",
      "address" : [ {
        "line" : [ "123 Dale Avenue", "Long Eaton", "Nottingham" ],
        "postalCode" : "NG10 1NP",
        "use" : "home"
      } ],
      "generalPractitioner" : [ {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      } ]
    },
    "fullUrl" : "urn:uuid:48ef4dc3-29ab-40d9-a903-91f59accf627"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "8bb862f5-35a7-47c5-a6f4-3eea5ded8e10",
      "identifier" : [ {
        "system" : "https://fhir.hl7.org.uk/Id/professional-code",
        "value" : "2083469"
      } ],
      "name" : [ {
        "given" : [ "RANDOM" ],
        "prefix" : [ "MR" ],
        "family" : "UserM"
      } ]
    },
    "fullUrl" : "urn:uuid:8bb862f5-35a7-47c5-a6f4-3eea5ded8e10"
  }, {
    "resource" : {
      "resourceType" : "Location",
      "id" : "e2e2bfa7-0241-4171-97cc-6ec43d83a7ca",
      "address" : {
        "line" : [ "MUSGROVE PARK HOSPITAL", "TAUNTON" ],
        "postalCode" : "TA1 5DA",
        "use" : "work"
      }
    },
    "fullUrl" : "urn:uuid:e2e2bfa7-0241-4171-97cc-6ec43d83a7ca"
  }, {
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "252df9a9-d1ab-4fc6-a18e-b8445a908236",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "location" : [ {
        "reference" : "urn:uuid:e2e2bfa7-0241-4171-97cc-6ec43d83a7ca"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:252df9a9-d1ab-4fc6-a18e-b8445a908236"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "af51881b-865d-46f9-a376-e7b1c242c3dc",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "201715352555"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:8bb862f5-35a7-47c5-a6f4-3eea5ded8e10"
      },
      "healthcareService" : [ {
        "reference" : "urn:uuid:252df9a9-d1ab-4fc6-a18e-b8445a908236"
      } ],
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8003",
          "display" : "a"
        } ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:af51881b-865d-46f9-a376-e7b1c242c3dc"
  }, {
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "1a502de0-1c84-4de2-81ba-05d0b2db9947",
      "identifier" : [ {
        "system" : "https://fhir.hl7.org.uk/Id/professional-code",
        "value" : "6150129"
      } ],
      "name" : [ {
        "given" : [ "RANDOM" ],
        "prefix" : [ "MR" ],
        "family" : "FIFTYSEVEN"
      } ]
    },
    "fullUrl" : "urn:uuid:1a502de0-1c84-4de2-81ba-05d0b2db9947"
  }, {
    "resource" : {
      "resourceType" : "Location",
      "id" : "d4bacbd8-fa5e-4335-8542-9d86449b5863",
      "address" : {
        "line" : [ "MUSGROVE PARK HOSPITAL", "TAUNTON" ],
        "postalCode" : "TA1 5DA",
        "use" : "work"
      }
    },
    "fullUrl" : "urn:uuid:d4bacbd8-fa5e-4335-8542-9d86449b5863"
  }, {
    "resource" : {
      "resourceType" : "HealthcareService",
      "id" : "e0601ae8-08dd-4902-a880-6739ebc49f38",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
        "value" : "A99968"
      } ],
      "location" : [ {
        "reference" : "urn:uuid:d4bacbd8-fa5e-4335-8542-9d86449b5863"
      } ],
      "name" : "SOMERSET BOWEL CANCER SCREENING CENTRE",
      "telecom" : [ {
        "system" : "phone",
        "value" : "01823333444",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:e0601ae8-08dd-4902-a880-6739ebc49f38"
  }, {
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "2bfb310b-70d8-46c9-be3a-a11c6d877951",
      "identifier" : [ {
        "system" : "https://fhir.nhs.uk/Id/sds-role-profile-id",
        "value" : "601986680555"
      } ],
      "practitioner" : {
        "reference" : "urn:uuid:1a502de0-1c84-4de2-81ba-05d0b2db9947"
      },
      "healthcareService" : [ {
        "reference" : "urn:uuid:e0601ae8-08dd-4902-a880-6739ebc49f38"
      } ],
      "code" : [ {
        "coding" : [ {
          "system" : "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
          "code" : "R8000",
          "display" : "s"
        } ]
      } ],
      "telecom" : [ {
        "system" : "phone",
        "value" : "01234567890",
        "use" : "work"
      } ]
    },
    "fullUrl" : "urn:uuid:2bfb310b-70d8-46c9-be3a-a11c6d877951"
  } ]
}
Schema
Name Description
A successful response.