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

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
  • release a prescription for dispensing
  • claim for a dispensed prescription
  • track prescriptions or check a prescription's status

This API can only be accessed by healthcare professionals, authenticated with an NHS smartcard or equivalent.

Digital signatures

Electronic prescription messages are digitally signed to protect against tampering and to prevent repudiation. While the messages themselves are FHIR-based, for reasons of backwards compatibility, the signatures must be represented in HL7 V3 format. To make this easier, you can POST a prescription to the /$prepare endpoint to receive exactly the HL7 V3 fragments which need to be signed to conform to the specification.

To generate a signature for your prescription, you can use the digital signature service. To access the service, contact us.

Using this API

To create a prescription:

  1. POST a prescription-order message to the /$prepare endpoint
  2. sign the response and put the result in a Provenance resource
  3. add the Provenance to the prescription-order message
  4. POST the signed prescription-order message to the /$process-message endpoint

To cancel a prescription:

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

Legal Use

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).

Related APIs

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

API status and roadmap

All endpoints are in alpha - expect further breaking changes.

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

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.

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

This API is user-restricted, meaning an end user must be present and authenticated to use it.

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

For more details, see user-restricted APIs.

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 onboard for this API, follow the onboarding process for APIs by following the Supplier Conformance Assessment List (SCAL) process.

When following the SCAL process for the EPS API, please note that:

In step 1: To confirm your use case for this API, you need to contact the EPS team at epssupport@nhs.net

In step 6: When implementing your clinical risk management process, you must review and integrate the EPS FHIR API hazard log into your own risk log. You’ll find it embedded within the EPS FHIR API tab in the SCAL.

In step 8: You need to review and complete the EPS FHIR API risk log to show that you have understood and mitigated the various risks. You might be asked to provide evidence to prove that controls have been put in place. You’ll find the risk log embedded within the EPS FHIR API tab in the SCAL. This is separate from the clinical safety hazard log mentioned above.

In step 9: You must conduct penetration testing of your system to CHECK standards.

In step 10: When you complete the Service Desk Registration Form, send it to api.management@nhs.net.

In step 11: Submit your completed SCAL to api.management@nhs.net.

In step 14: To request production access, contact us at api.management@nhs.net.

Additional guidance

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

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.

Responses

2XX responses

Note: This section is under development and subject to change. All Spine responses are returned with 200 HTTP codes until a Spine translation service is built. This does not affect the sandbox environment.

Endpoint HTTP code Response format
POST /$prepare 200 See /$prepare response body
POST /$process-message 200 See /$process-message response body

4XX responses

Note: This section is under development and subject to change. All Spine responses are returned with 200 HTTP codes until a Spine translation service is built. This does not affect the sandbox environment.

Endpoint HTTP code Response format Environment Cause
Any 400 See "Unsupported operation" example below Sandbox Unsupported operation
Any 408 Returns original request data Integration test Request timeout

Example: Unsupported operation

If attempting to call the /_poll endpoint in the sandbox environment, the following error would be returned:

{
  resourceType: "OperationOutcome",
  issue: [
    {
      code: "informational",
      severity: "information",
      details: {
        coding: [
          {
            code: "INTERACTION_NOT_SUPPORTED_BY_SANDBOX",
            display: "Interaction not supported by sandbox",
            system: "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode",
            version: "1"
          }
        ]
      }
    }
  ]
}

Validation errors

Our endpoints can return the following errors:

HTTP code Issue severity Issue type Error code Cause
400 error value MISSING_FIELD Bundle contains incorrect number of resources of a certain type
400 error value MISSING_FIELD Bundle does not contain "id" field
400 error value INVALID_VALUE Invalid value in MedicationRequest
400 fatal value MISSING_FIELD Bundle does not contain "entry" field
400 fatal value INCORRECT_RESOURCETYPE ResourceType is not "Bundle"
400 fatal value INVALID_VALUE MessageHeader indicates invalid MessageType

Endpoint: Prescribing

Convert a prescription message to signature fragments

post

/$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

Body

Required
Content type: application/json
Example
{
  "resourceType" : "Bundle",
  "id" : "aef77afb-7e3c-427a-8657-2c427f71a271",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a6ecb916-9a88-4ddc-b47b-ac739ab8c03e"
  },
  "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/R4/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" : "2020-12-21T18:15:29+00:00",
      "requester" : {
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
      },
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription",
            "value" : "9670ad28-b321-44f7-858e-0f4862155d31"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "83DA47-Z1743B-11EBAQ"
      },
      "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/R4/StructureDefinition/Extension-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.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.nhs.uk/R4/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"
      } ],
      "managingOrganization" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      },
      "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.nhs.uk/R4/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" : "RO197",
          "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
A container for a collection of resources.
resourceType
string
required
FHIR Resource type.
Allowed values: Bundle
Example: Bundle
id
string
required
Logical id of this artifact.
Example: 7EB02341-5F62-4A76-2CD3-34F523452356
identifier
object
required
A Universally Unique Identifier (UUID).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://tools.ietf.org/html/rfc4122
Example: https://tools.ietf.org/html/rfc4122
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: 05AB477D-D72F-404D-9651-416DA988C138
type
string
required
Indicates the purpose of a bundle - how it is intended to be used.
Allowed values: message
Example: message
entry
array
required
An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).
object
fullUrl
string
required
The Absolute URL for the resource.
Example: urn:uuid:CF464979-41A7-4231-B70F-AAE377A973C9
resource
required
anyOf
object
A resource that describes a message that is exchanged between systems
resourceType
string
required
FHIR Resource type
Allowed values: MessageHeader
Example: MessageHeader
id
string
required
Logical id of this artifact
Example: 7EB02341-5F62-4A76-2CD3-34F523452356
eventCoding
object
required
A reference to a code representing a message definition
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: https://fhir.nhs.uk/CodeSystem/message-event
Example: https://fhir.nhs.uk/CodeSystem/message-event
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
Example: prescription-order
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: Prescription Order
sender
object
required
Real world sender of the message
identifier
object
required
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
source
object
required
Message source application
endpoint
string
required
Actual message source address or id
Example: urn:nhs-uk:addressing:ods:RBA
destination
array
required
object
Message destination application
endpoint
string
required
Actual destination address or id
Example: urn:nhs-uk:addressing:ods:FH542
receiver
object
required
Intended "real-world" recipient for the data
identifier
object
required
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
focus
array
The actual content of the message
object
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
object
An order or request for both the supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder". This is to generalize the use across inpatient and outpatient settings (including care plans), and to harmonize with workflow patterns.
resourceType
string
required
FHIR Resource type.
Allowed values: MedicationRequest
Example: MedicationRequest
id
string
required
Logical id of this artifact.
Example: 7B38DE32-877F-6D53-D27C-86E1BA35016C
extension
array
Additional content defined by implementations
anyOf
object
Extension to carry repeat information. Required for repeat-prescribing and repeat-dispensing MedicationRequests only
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-MedicationRepeatInformation
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-MedicationRepeatInformation
extension
array
required
anyOf
object
Extension to carry the number of repeat issues authorised. Required for continuous-repeat-dispensing MedicationRequests only
url
string
required
Identifies the meaning of the extension
Allowed values: numberOfRepeatPrescriptionsAllowed
Example: numberOfRepeatPrescriptionsAllowed
valueUnsignedInt
number
required
The number of repeat issues authorised
Example: 6
object
Extension to carry the repeat prescription review date. Required for continuous and continuous-repeat-dispensing MedicationRequests
url
string
required
Identifies the meaning of the extension
Allowed values: authorisationExpiryDate
Example: authorisationExpiryDate
valueDateTime
string
required
Repeat prescription review date
Example: 2020-09-04
object
Extension to carry the prescription type
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-prescriptionType
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-prescriptionType
valueCoding
object
required
Setting and HCP type for the prescription
system
string
required
Allowed values: https://fhir.nhs.uk/CodeSystem/prescription-type
Example: https://fhir.nhs.uk/CodeSystem/prescription-type
code
string
required
Example: 0101
object
Extension to carry the controlled drug
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug
Example: https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug
extension
array
required
anyOf
object
Extension to carry the requested quantity of the controlled drug
url
string
required
Identifies the meaning of the extension
Allowed values: quantityWords
Example: quantityWords
valueString
string
required
The quantity, in words, of the controlled drug requested
Example: twenty eight
object
Extension to carry the schedule of the controlled drug
url
string
required
Identifies the meaning of the extension
Allowed values: schedule
Example: schedule
valueCoding
object
required
system
string
Identity of the terminology system
Allowed values: https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug
Example: https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug
code
string
Symbol in syntax defined by the system
Allowed values: CD1, CD2, CD3, CD4-1, CD4-2, CD5
Example: CD1
display
string
A representation of the meaning of the code in the system, following the rules of the system
Allowed values: Schedule 1, Schedule 2, Schedule 3, Schedule 4 (Part I), Schedule 4 (Part II), Schedule 5
Example: Schedule 1
object
Extension to carry the practitioner responsible for the patient
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-ResponsiblePractitioner
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-ResponsiblePractitioner
valueReference
object
required
The practitioner responsible for the patient
reference
string
required
Example: 09062182-7895-480F-8439-F0DB7F6A31C2
object
Extension to carry prescription endorsements
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionEndorsement
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionEndorsement
valueCodeableConcept
object
required
Prescription endorsements
coding
array
required
object
system
string
required
Allowed values: https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement
Example: https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement
code
string
required
Example: CC
status
string
required
A code specifying the current state of the order. Generally, this will be active or completed state.
Allowed values: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknown
Example: active
intent
string
required
Whether the request is a proposal, plan, or an original order.
Allowed values: proposal, plan, order, original-order, instance-order, option
Example: order
medicationCodeableConcept
object
required
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
coding
array
required
A reference to a code defined by a terminology system.
object
A reference to a code defined by the SNOMED-CT system.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: http://snomed.info/sct
Example: http://snomed.info/sct
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (such as post-coordination).
Example: 1211511000001107
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: naproxen tablets 250mg
subject
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
authoredOn
string
required
The date (and perhaps time) when the prescription was initially written or authored on.
Example: 2008-02-27T11:38:00+00:00
requester
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
groupIdentifier
object
required
The short form UID of the prescription.
extension
array
object
url
string
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionId
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionId
valueIdentifier
object
system
string
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://fhir.nhs.uk/Id/prescription
Example: https://fhir.nhs.uk/Id/prescription
value
string
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: EDD2E9DD-DA0A-C266-A4E3-447C68239524
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://fhir.nhs.uk/Id/prescription-order-number
Example: https://fhir.nhs.uk/Id/prescription-order-number
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: 2BE1EA-L36920-0353AW
courseOfTherapyType
object
required
An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder". This is to generalize the use across inpatient and outpatient settings (including care plans), and to harmonize with workflow patterns.
coding
array
required
A reference to a code defined by a terminology system.
Example:
[ {
  "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
  "code" : "acute",
  "display" : "Acute"
}, {
  "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
  "code" : "repeat",
  "display" : "Repeat"
}, {
  "system" : "https://fhir.nhs.uk/R4/CodeSystem/UKCore-PrescriptionType",
  "code" : "repeat-dispensing",
  "display" : "Repeat Dispensing"
} ]
object
A reference to a code defined by the SNOMED-CT system.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: https://fhir.nhs.uk/CodeSystem/medicationrequest-course-of-therapy, http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy
Example: http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (such as post-coordination).
Allowed values: acute, continuous, continuous-repeat-dispensing
Example: acute
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Allowed values: Short course (acute) therapy, Continuous long term therapy, Continuous long term (repeat dispensing)
Example: Acute
dosageInstruction
array
required
Indicates how the medication is to be used by the patient.
object
text
string
required
Free text dosage instructions - for example, SIG.
Example: 2 tablets after breakfast
dispenseRequest
object
required
Indicates the specific details for the dispense or medication supply part of a medication request. This is also known as a Medication Prescription or Medication Order.
extension
array
Additional content defined by implementations
object
url
string
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-performerSiteType
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-performerSiteType
valueCoding
object
system
string
Identity of the terminology system
Allowed values: https://fhir.nhs.uk/CodeSystem/dispensing-site-preference
Example: https://fhir.nhs.uk/CodeSystem/dispensing-site-preference
value
string
Symbol in syntax defined by the system
Allowed values: P1, P2, P3, 0004
Example: P1
quantity
object
The amount that is to be dispensed for one fill.
value
number
required
The value of the measured amount. The value includes an implicit precision in the presentation of the value.
Example: 56
unit
string
required
A human-readable form of the unit.
Example: tablet
system
string
required
The identification of the system that provides the coded form of the unit.
Example: http://snomed.info/sct
code
string
required
A computer-processable form of the unit in some unit representation system.
Example: 3319411000001109
performer
object
identifier
object
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
validityPeriod
object
Indicates when the prescription becomes valid, and when it ceases to be a dispensable prescription. Required for continuous-repeat-dispensing MedicationRequests only
start
string
The date when the prescription becomes valid
Example: 2020-09-01
end
string
The date when the prescription ceases to be dispensable
Example: 2021-03-01
expectedSupplyDuration
object
Number of days supply per dispense. Required for continuous-repeat-dispensing MedicationRequests only
system
string
required
Allowed values: http://unitsofmeasure.org
Example: http://unitsofmeasure.org
code
string
required
Allowed values: d
Example: d
value
number
required
Example: 28
unit
string
Allowed values: days
Example: days
object
Information about an individual receiving health care services.
resourceType
string
required
FHIR Resource type
Allowed values: Patient
Example: Patient
id
string
required
Logical id of this artifact.
Example: C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
managingOrganization
object
required
A link to a resource representing the Patients Registered GP Surgery as recorded in Spine PDS.
identifier
object
required
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
identifier
array
required
An identifier for this patient.
object
NHS Number allocated to the patient.
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://fhir.nhs.uk/Id/nhs-number
Example: https://fhir.nhs.uk/Id/nhs-number
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: 9900008464
extension
array
required
object
url
string
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus
valueCodeableConcept
object
coding
array
object
The verification/tracing status of the NHS number.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: https://fhir.nhs.uk/R4/CodeSystem/UKCore-NHSNumberVerificationStatus
Example: https://fhir.nhs.uk/R4/CodeSystem/UKCore-NHSNumberVerificationStatus
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
Example: 01
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: Number present and verified
name
array
required
A name associated with the individual.
object
A human's name with the ability to identify parts and usage.
use
string
Identifies the purpose for this name.
Allowed values: usual, temp, nickname, maiden
Example: usual
family
string
The part of a name that links to the genealogy. In some cultures (for example, Eritrea) the family name of a son is the first name of his father.
Example: Anderson
given
array
Given name.
string
Example: Michael
prefix
array
Part of the name that appears at the start of the name. For example, a status title awarded due to academic, legal, employment or nobility.
string
Example: Mr
gender
string
required
Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.
Allowed values: male, female, other, unknown
Example: male
birthDate
string
required
The date of birth for the individual.
Example: 1973-04-21
address
array
required
An address for the individual.
object
An address expressed using postal conventions (as opposed to GPS or other location/navigation definition formats). This data type may be used to define addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
use
string
The purpose of this address.
Allowed values: home, work, temp, old, billing
Example: work
type
string
Distinguishes between physical addresses (those you can visit) and mailing addresses (for example, PO Boxes and care-of addresses). Most addresses are both.
Allowed values: postal, physical, both
Example: both
line
array
This component contains the house number, apartment number, street name, street direction, PO Box, delivery hints, and similar address information.
string
Example: 1 Otley Road
city
string
The name of the city, town, suburb, village or other community or delivery center.
Example: Leeds
postalCode
string
A postal code designating a region defined by the postal service.
Example: LS6 5RU
telecom
array
A contact detail for the individual.
object
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, and so on.
system
string
Telecommunications form for contact point - what communications system is required to make use of the contact.
Allowed values: phone, fax, email, pager, url, sms, other
Example: phone
value
string
required
The actual contact point details, in a form that is meaningful to the designated communication system (such as phone number or email address).
Example: tel:011327534256
use
string
Identifies the purpose of the contact point.
Allowed values: home, work, temp, old, mobile
Example: work
deceasedDateTime
string
Indicates if the individual is deceased or not.
Example: 2020-01-05
object
A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time.
resourceType
string
required
FHIR Resource type
Allowed values: PractitionerRole
Example: PractitionerRole
id
string
required
Logical id of this artifact
Example: C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
identifier
array
Business Identifiers that are specific to a role/location
anyOf
object
An identifier that applies to this person in this role
system
string
The RoleProfileId from Spine Directory Service
Allowed values: https://fhir.nhs.uk/Id/sds-role-profile-id
Example: https://fhir.nhs.uk/Id/sds-role-profile-id
value
string
The value that is unique
Example: 100109391987
object
Prescribing code which overrides the prescribing code in practitioner
system
string
The namespace for the identifier value
Allowed values: https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code
Example: https://fhir.hl7.org.uk/Id/nhsbsa-spurious-code
value
string
The value that is unique
Example: G6123456
code
array
Roles which this practitioner may perform
object
Concept - reference to a terminology or just text
coding
array
object
Code defined by a terminology system
system
string
Identity of the terminology system
Allowed values: https://fhir.nhs.uk/R4/CodeSystem/UKCore-SDSJobRoleName
Example: https://fhir.nhs.uk/R4/CodeSystem/UKCore-SDSJobRoleName
code
string
Symbol in syntax defined by the system
Example: R0260
display
string
Representation defined by the system
Example: General Medical Practitioner
telecom
array
A contact detail for the practitioner. For example, a telephone number or an email address.
object
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, and so on.
system
string
Telecommunications form for contact point - what communications system is required to make use of the contact.
Allowed values: phone, fax, email, pager, url, sms, other
Example: phone
value
string
required
The actual contact point details, in a form that is meaningful to the designated communication system (such as phone number or email address).
Example: tel:011327534256
use
string
Identifies the purpose of the contact point.
Allowed values: home, work, temp, old, mobile
Example: work
practitioner
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
organization
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
object
A person who is directly or indirectly involved in the provisioning of healthcare.
resourceType
string
required
FHIR Resource type
Allowed values: Practitioner
Example: Practitioner
id
string
required
Logical id of this artifact.
Example: C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
identifier
array
required
An identifier that applies to this person
anyOf
object
The user's unique identifier on the NHS Spine Directory Service.
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://fhir.nhs.uk/Id/sds-user-id
Example: https://fhir.nhs.uk/Id/sds-user-id
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: 125686540025
object
Professional code
system
string
The namespace for the identifier value
Allowed values: https://fhir.hl7.org.uk/Id/gmc-number, https://fhir.hl7.org.uk/Id/gmp-number, https://fhir.hl7.org.uk/Id/nmc-number, https://fhir.hl7.org.uk/Id/gphc-number, https://fhir.hl7.org.uk/Id/hcpc-number
Example: https://fhir.hl7.org.uk/Id/gmc-number
value
string
The value that is unique
Example: G6123456
object
Prescribing code
system
string
The namespace for the identifier value
Allowed values: https://fhir.hl7.org.uk/Id/din-number
Example: https://fhir.hl7.org.uk/Id/din-number
value
string
The value that is unique
Example: 123456
name
array
required
The name(s) associated with the practitioner.
object
A human's name with the ability to identify parts and usage.
use
string
Identifies the purpose for this name.
Allowed values: usual, temp, nickname, maiden
Example: usual
family
string
The part of a name that links to the genealogy. In some cultures (for example, Eritrea) the family name of a son is the first name of his father.
Example: Anderson
given
array
Given name.
string
Example: Michael
prefix
array
Part of the name that appears at the start of the name. For example, a status title awarded due to academic, legal, employment or nobility.
string
Example: Mr
telecom
array
A contact detail for the practitioner - for example, a telephone number or an email address.
object
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, and so on.
system
string
Telecommunications form for contact point - what communications system is required to make use of the contact.
Allowed values: phone, fax, email, pager, url, sms, other
Example: phone
value
string
required
The actual contact point details, in a form that is meaningful to the designated communication system (such as phone number or email address).
Example: tel:011327534256
use
string
Identifies the purpose of the contact point.
Allowed values: home, work, temp, old, mobile
Example: work
object
A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. This includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, and so on.
resourceType
string
required
FHIR Resource type
Allowed values: Organization
Example: Organization
id
string
required
Logical id of this artifact.
Example: C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
identifier
array
required
Identifier for the organization that is used to identify the organization across multiple disparate systems.
object
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
type
array
The kind(s) of organization that this is.
anyOf
object
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
coding
array
required
A reference to a code defined by a terminology system.
object
Types of organization.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: https://fhir.nhs.uk/R4/CodeSystem/organisation-type
Example: https://fhir.nhs.uk/R4/CodeSystem/organisation-type
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (such as post-coordination).
Example: C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: General Medical Practice
object
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
coding
array
required
A reference to a code defined by a terminology system.
object
Types of organization.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: https://fhir.nhs.uk/CodeSystem/organisation-role
Example: https://fhir.nhs.uk/CodeSystem/organisation-role
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (such as post-coordination).
Example: RO197
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: NHS TRUST
name
string
A name associated with the organization.
Example: Signing_Surg_1
telecom
array
A contact detail for the organization.
object
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, and so on.
system
string
Telecommunications form for contact point - what communications system is required to make use of the contact.
Allowed values: phone, fax, email, pager, url, sms, other
Example: phone
value
string
required
The actual contact point details, in a form that is meaningful to the designated communication system (such as phone number or email address).
Example: tel:011327534256
use
string
Identifies the purpose of the contact point.
Allowed values: home, work, temp, old, mobile
Example: work
address
array
An address for the organization.
object
An address expressed using postal conventions (as opposed to GPS or other location/navigation definition formats). This data type may be used to define addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
use
string
The purpose of this address.
Allowed values: home, work, temp, old, billing
Example: work
type
string
Distinguishes between physical addresses (those you can visit) and mailing addresses (for example, PO Boxes and care-of addresses). Most addresses are both.
Allowed values: postal, physical, both
Example: both
line
array
This component contains the house number, apartment number, street name, street direction, PO Box, delivery hints, and similar address information.
string
Example: 1 Otley Road
city
string
The name of the city, town, suburb, village or other community or delivery center.
Example: Leeds
postalCode
string
A postal code designating a region defined by the postal service.
Example: LS6 5RU
partOf
object
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
object
Tracks information about the activity that created, revised, deleted, or signed a version of a resource, describing the entities and agents involved.
resourceType
string
required
FHIR Resource type
Allowed values: Provenance
Example: Provenance
id
string
required
Logical id of this artifact.
Example: 4E74661B-E7C9-42A5-9DBB-A167C507C489
target
array
required
The Reference(s) that were generated or updated by the activity described in this resource.
object
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
recorded
string
required
The instant of time at which the activity was recorded.
Example: 2020-04-21T10:45:30+00:00
agent
array
required
An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.
object
who
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
signature
array
required
A digital signature on the target Reference(s). The signer should match a Provenance.agent.
object
A signature along with supporting context.
Example:
{
  "value" : {
    "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+PC9UcmFuc2Zvcm1zPjxEaWdlc3RNZXRob2QgQWxnb3JpdGhtPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjc2hhMSIvPjxEaWdlc3RWYWx1ZT4zWWxGUU1Pcncy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5M1BoZ3c5QkRidW1QVTc0UCtYZ1FvTzl2dzh4TzIKWWI0K1BMN00yQnVKbzNmRHFjRHNXKzRCNHQ5bWRoV1c3bFJqTjNXY3Vqb0xzbFB6MjNjZnl4Q2dabllNTURiT2hCckp4VkN6WWVDNgpueDZPaGtMMVYzWW9lK09JeXJSZVV6cHplQndzVVg1cTgwMmROYVYxeXJiNmFpMmljZ3hxcFkrZk9aWUZMUmVmUElxdXRCSzczaG5ECnV4RGpJKzdlaHlGcGFwZk9YVkJtTFRhY0x4TEYxRHkvNytHSVhiZEl3YmVkZXQ0cDJJY0VhUlgwZVdUMFUvL1pKU2VCcW5PT3BYbzYKNERmWnRTOVZsMmV4SGJISHFZYzBSVk5wS0ltYVdWck15ZEMxcU9leGpVWlNWQlZkK1pvPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg=="
  }
}
type
array
required
An indication of the reason that the entity signed this document.
object
The Digital Signature Purposes, an indication of the reason an entity signs a document.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: urn:iso-astm:E1762-95:2013
Example: urn:iso-astm:E1762-95:2013
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (such as post-coordination).
Example: 1.2.840.10065.1.12.1.1
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: Author's Signature
when
string
required
When the digital signature was signed.
Example: 2020-04-21T10:45:30+00:00
who
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
data
string
required
The base64 encoded XML-DSIG data.
Example: PFNpZ25hdHVyZSB4bWxucz0iaHR0c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VlJS3dZQkJRVUhBd0VHQ0NzRwpBUVVGQndNQ01EWUdDV0NHU0FHRytFSUJEUVFwRmlkUGNHVnVkR1Z6ZERvZ1QzQmxibE5UVENCSFpXNWxjbUYwWldRZ1EyVnlkR2xtCmFXTmhkR1V3SFFZRFZSME9CQllFRkFINHB0Y2tPaHNVekJmVmp0L20wNUdpTzhYUk1Ic0dBMVVkSXdSME1IS0FGTklSdlg5b21ybDcKWlhTcUVJTnk2dzJyUFFkdW9VK2tUVEJMTVJRd0VnWURWUVFLRXd0T1NGTWdSR2xuYVhSaGJERVJNQThHQTFVRUN4TUlUM0JsYm5SbApjM1F4SURBZUJnTlZCQU1URjA5d1pXNTBaWE4wSUZKdmIzUWdRWFYwYUc5eWFYUjVnZ2tBNnUwY1hiTHFLb1F3RFFZSktvWklodmNOCkFRRUxCUUFEZ2dFQkFFRGNyUGNkcklDNXVmVkhyYTYyb0dCUC9sejVvSnEzUWw5M1BoZ3c5QkRidW1QVTc0UCtYZ1FvTzl2dzh4TzIKWWI0K1BMN00yQnVKbzNmRHFjRHNXKzRCNHQ5bWRoV1c3bFJqTjNXY3Vqb0xzbFB6MjNjZnl4Q2dabllNTURiT2hCckp4VkN6WWVDNgpueDZPaGtMMVYzWW9lK09JeXJSZVV6cHplQndzVVg1cTgwMmROYVYxeXJiNmFpMmljZ3hxcFkrZk9aWUZMUmVmUElxdXRCSzczaG5ECnV4RGpJKzdlaHlGcGFwZk9YVkJtTFRhY0x4TEYxRHkvNytHSVhiZEl3YmVkZXQ0cDJJY0VhUlgwZVdUMFUvL1pKU2VCcW5PT3BYbzYKNERmWnRTOVZsMmV4SGJISHFZYzBSVk5wS0ltYVdWck15ZEMxcU9leGpVWlNWQlZkK1pvPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg==
object
Used to describe a single healthcare service or category of services that are provided by an organization at a location.
resourceType
string
required
FHIR Resource type.
Allowed values: HealthcareService
Example: HealthcareService
id
string
required
Logical id of this artifact.
Example: 7EB02341-5F62-4A76-2CD3-34F523452356
identifier
array
required
External identifiers for this service
object
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
active
boolean
The specific type of service that may be delivered or performed
Example: true
providedBy
object
The organization that provides this healthcare service
identifier
object
A Universally Unique Identifier (UUID).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: RBA
reference
object
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
location
array
The location(s) where this healthcare service may be provided
object
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
name
string
Further description of the service as it would be presented to a consumer while searching.
Example: SOMERSET BOWEL CANCER SCREENING CENTRE
telecom
array
Contacts related to the service
object
Details for all kinds of technology-mediated contact points for a person or organization, including telephone, email, and so on.
system
string
Telecommunications form for contact point - what communications system is required to make use of the contact.
Allowed values: phone, fax, email, pager, url, sms, other
Example: phone
value
string
required
The actual contact point details, in a form that is meaningful to the designated communication system (such as phone number or email address).
Example: tel:011327534256
use
string
Identifies the purpose of the contact point.
Allowed values: home, work, temp, old, mobile
Example: work
object
Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated.
resourceType
string
required
FHIR Resource type.
Allowed values: Location
Example: Location
id
string
required
Logical id of this artifact.
Example: 7EB02341-5F62-4A76-2CD3-34F523452356
identifier
array
required
Unique code or number identifying the location to its users
object
Unique code or number identifying the location to its users
value
string
required
Example: 10008800708
status
string
The status property covers the general availability of the resource, not the current value which may be covered by the operationStatus, or by a schedule/slots if they are configured for the location.
Allowed values: active, suspended, inactive
Example: active
mode
string
When using a Location resource for scheduling or orders, we need to be able to refer to a class of Locations instead of a specific Location.
Allowed values: instance, kind
Example: instance
address
object
An address expressed using postal conventions (as opposed to GPS or other location/navigation definition formats). This data type may be used to define addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
use
string
The purpose of this address.
Allowed values: home, work, temp, old, billing
Example: work
type
string
Distinguishes between physical addresses (those you can visit) and mailing addresses (for example, PO Boxes and care-of addresses). Most addresses are both.
Allowed values: postal, physical, both
Example: both
line
array
This component contains the house number, apartment number, street name, street direction, PO Box, delivery hints, and similar address information.
string
Example: 1 Otley Road
city
string
The name of the city, town, suburb, village or other community or delivery center.
Example: Leeds
postalCode
string
A postal code designating a region defined by the postal service.
Example: LS6 5RU

Response

HTTP status: 200

Successful conversion.

Body

Content type: application/json
Example
{
  "resourceType" : "Parameters",
  "parameter" : [ {
    "name" : "digest",
    "valueString" : "PFNpZ25lZEluZm8geG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyMiPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+azFOMXVjcHI5N3lDVGkvU0J3Qm0yc3hhRytRPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPg=="
  }, {
    "name" : "timestamp",
    "valueString" : "2020-12-21T18:15:34+00:00"
  }, {
    "name" : "algorithm",
    "valueString" : "RS1"
  } ]
}
Schema
Name Description
object
A container for Parameters
resourceType
string
required
FHIR Resource type.
Allowed values: Parameters
Example: Parameters
parameter
array
required
A collection of parameters
object
Parameters
name
string
required
Name of a parameter
Example: message-digest
valueString
string
required
A value for the parameter
Example: <xml>...</xml>

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

Outcome of an operation that does not result in a resource or bundle being returned (for example, error, async/batch submission). There are a number of possible error codes that can be returned along with a more detailed description in the display field. Client errors (4XX error codes):

Code Response Code Description
MISSING_FIELD 400 Validation error - posted resource is missing a required field.
INCORRECT_RESOURCETYPE 400 Validation error - posted resource is not a bundle.
INVALID_VALUE 400 Validation error - posted resource has an invalid field value.
ACCESS_DENIED 401 Used when the user does not have permission for a particular request. For example, when their asid does not have the correct interactions attached to it.
RESOURCE_NOT_FOUND 404 The resource was not found.
resourceType
string
FHIR Resource Type.
Allowed values: OperationOutcome
Example: OperationOutcome
issue
array
List of issues that have occurred.
Min items: 1
object
severity
string
required
Severity of the error.
Allowed values: fatal, error, warning, information
Example: error
code
string
required
FHIR error code.
Allowed values: invalid, structure, required, value, invariant, security, login, unknown, expired, forbidden, suppressed, processing, not-supported, duplicate, multiple-matches, not-found, deleted, too-long, code-invalid, extension, too-costly, business-rule, conflict, transient, lock-error, no-store, exception, timeout, incomplete, throttled, informational
Example: invalid
details
object
Internal error code.
coding
array
object
system
string
URI of the coding system specification.
Example: https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode
version
string
Version of the coding system in use.
Example: 1
code
string
Symbol in syntax defined by the system.
Example: invalidParams
display
string
Representation defined by the system.
Example: Invalid params.
expression
string
FHIRPath of element(s) related to the error.
Example: Patient.name.given

Send a prescription message to EPS

post

/$process-message

Overview

Use this endpoint to send a prescription message to EPS.

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


Request

Body

Required
Content type: application/json
Examples
{
  "resourceType" : "Bundle",
  "id" : "aef77afb-7e3c-427a-8657-2c427f71a271",
  "identifier" : {
    "system" : "https://tools.ietf.org/html/rfc4122",
    "value" : "a6ecb916-9a88-4ddc-b47b-ac739ab8c03e"
  },
  "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/R4/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" : "2020-12-21T18:15:29+00:00",
      "requester" : {
        "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
      },
      "groupIdentifier" : {
        "extension" : [ {
          "url" : "https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionId",
          "valueIdentifier" : {
            "system" : "https://fhir.nhs.uk/Id/prescription",
            "value" : "9670ad28-b321-44f7-858e-0f4862155d31"
          }
        } ],
        "system" : "https://fhir.nhs.uk/Id/prescription-order-number",
        "value" : "83DA47-Z1743B-11EBAQ"
      },
      "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/R4/StructureDefinition/Extension-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.nhs.uk/R4/StructureDefinition/Extension-UKCore-NHSNumberVerificationStatus",
          "valueCodeableConcept" : {
            "coding" : [ {
              "system" : "https://fhir.nhs.uk/R4/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"
      } ],
      "managingOrganization" : {
        "identifier" : {
          "system" : "https://fhir.nhs.uk/Id/ods-organization-code",
          "value" : "B81001"
        }
      },
      "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.nhs.uk/R4/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" : "RO197",
          "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" : "2020-12-21T18:15:34+00:00",
        "who" : {
          "reference" : "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
        },
        "data" : "DQo8U2lnbmF0dXJlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwLzA5L3htbGRzaWcjIj4NCiAgICA8U2lnbmVkSW5mbz48Q2Fub25pY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Q01BQXdHUVlKS29aSWh2WjlCMEVBQkF3d0Noc0VWamd1TXdNQ0JMQXdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBQmN6eThCOGp1UHBJZmFUTkZjeHJDMjJhQ1gveFlabWhyTC9OdklCQWFYMUc1aGppd21rR0tFMmhSVElyNjdQeFp4bVhzSnhpZ1JCTUhQbEkrbFkvK29rekgwR2k3YjVicWx3N3B4R0lnSk8wMDB3OHBGc3ZvOXc0MklZaEhvZHN2bkRWU3hoTVQwSjQ2UWhrOXNvRTBMam9FVUxLUVBQbFlHa2UvR2wzbTE3SXRGWXdPYlFIMGZNRXdtaXFCeWVJZno3Z1NjY096TDVjSXA2UGNaVE9qbzJJcVFwZ0VtaGpPY1JJbkVxQU5pdFNkam9pSkFKenBhYVpqWVRSZEhVWDdpN2FqRWlING05MW5GVys0QXFrTnR0bGI0V2NHS3NTbVdnZktLaGVGNElvWktNRTgweGVyU2dNeTh2dGpMT0JKQ0dYejB3TEdtUXVSbXhNVHE4OHE0PTwvWDUwOUNlcnRpZmljYXRlPg0KICAgICAgICA8L1g1MDlEYXRhPg0KICAgIDwvS2V5SW5mbz4NCjwvU2lnbmF0dXJlPg0K"
      } ]
    }
  } ]
}
{
  "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+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8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UN4TUlUM0JsYm5SbApjM1F4SURBZUJnTlZCQU1URjA5d1pXNTBaWE4wSUZKdmIzUWdRWFYwYUc5eWFYUjVnZ2tBNnUwY1hiTHFLb1F3RFFZSktvWklodmNOCkFRRUxCUUFEZ2dFQkFFRGNyUGNkcklDNXVmVkhyYTYyb0dCUC9sejVvSnEzUWw5M1BoZ3c5QkRidW1QVTc0UCtYZ1FvTzl2dzh4TzIKWWI0K1BMN00yQnVKbzNmRHFjRHNXKzRCNHQ5bWRoV1c3bFJqTjNXY3Vqb0xzbFB6MjNjZnl4Q2dabllNTURiT2hCckp4VkN6WWVDNgpueDZPaGtMMVYzWW9lK09JeXJSZVV6cHplQndzVVg1cTgwMmROYVYxeXJiNmFpMmljZ3hxcFkrZk9aWUZMUmVmUElxdXRCSzczaG5ECnV4RGpJKzdlaHlGcGFwZk9YVkJtTFRhY0x4TEYxRHkvNytHSVhiZEl3YmVkZXQ0cDJJY0VhUlgwZVdUMFUvL1pKU2VCcW5PT3BYbzYKNERmWnRTOVZsMmV4SGJISHFZYzBSVk5wS0ltYVdWck15ZEMxcU9leGpVWlNWQlZkK1pvPTwvWDUwOUNlcnRpZmljYXRlPjwvWDUwOURhdGE+PC9LZXlJbmZvPjwvU2lnbmF0dXJlPg=="
      } ]
    }
  }, {
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "a7b86f8d-1d45-fc28-e050-d20ae3a215f0",
      "extension" : [ {
        "url" : "https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-prescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/R4/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/R4/StructureDefinition/Extension-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/R4/StructureDefinition/Extension-DM-prescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/R4/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/R4/StructureDefinition/Extension-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/R4/StructureDefinition/Extension-DM-prescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/R4/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/R4/StructureDefinition/Extension-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/R4/StructureDefinition/Extension-DM-prescriptionType",
        "valueCoding" : {
          "system" : "https://fhir.nhs.uk/CodeSystem/prescription-type",
          "code" : "0101"
        }
      }, {
        "url" : "https://fhir.nhs.uk/R4/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/R4/StructureDefinition/Extension-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",
      "managingOrganization" : {
        "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
A container for a collection of resources.
resourceType
string
required
FHIR Resource type.
Allowed values: Bundle
Example: Bundle
id
string
required
Logical id of this artifact.
Example: 7EB02341-5F62-4A76-2CD3-34F523452356
identifier
object
required
A Universally Unique Identifier (UUID).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
Allowed values: https://tools.ietf.org/html/rfc4122
Example: https://tools.ietf.org/html/rfc4122
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: 05AB477D-D72F-404D-9651-416DA988C138
type
string
required
Indicates the purpose of a bundle - how it is intended to be used.
Allowed values: message
Example: message
entry
array
required
An entry in a bundle resource - will either contain a resource or information about a resource (transactions and history only).
object
fullUrl
string
required
The Absolute URL for the resource.
Example: urn:uuid:CF464979-41A7-4231-B70F-AAE377A973C9
resource
required
anyOf
object
A resource that describes a message that is exchanged between systems
resourceType
string
required
FHIR Resource type
Allowed values: MessageHeader
Example: MessageHeader
id
string
required
Logical id of this artifact
Example: 7EB02341-5F62-4A76-2CD3-34F523452356
eventCoding
object
required
A reference to a code representing a message definition
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: https://fhir.nhs.uk/CodeSystem/message-event
Example: https://fhir.nhs.uk/CodeSystem/message-event
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
Example: prescription-order
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: Prescription Order
sender
object
required
Real world sender of the message
identifier
object
required
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
source
object
required
Message source application
endpoint
string
required
Actual message source address or id
Example: urn:nhs-uk:addressing:ods:RBA
destination
array
required
object
Message destination application
endpoint
string
required
Actual destination address or id
Example: urn:nhs-uk:addressing:ods:FH542
receiver
object
required
Intended "real-world" recipient for the data
identifier
object
required
The identifier system for an Organisation registered with the Organisation Data Service (ODS).
system
string
required
Establishes the namespace for the value - that is, a URL that describes a set of values that are unique.
Allowed values: https://fhir.nhs.uk/Id/ods-organization-code
Example: https://fhir.nhs.uk/Id/ods-organization-code
value
string
required
The portion of the identifier typically relevant to the user and which is unique within the context of the system.
Example: M85011
focus
array
The actual content of the message
object
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
object
An order or request for both the supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder". This is to generalize the use across inpatient and outpatient settings (including care plans), and to harmonize with workflow patterns.
resourceType
string
required
FHIR Resource type.
Allowed values: MedicationRequest
Example: MedicationRequest
id
string
required
Logical id of this artifact.
Example: 7B38DE32-877F-6D53-D27C-86E1BA35016C
extension
array
Additional content defined by implementations
anyOf
object
Extension to carry repeat information. Required for repeat-prescribing and repeat-dispensing MedicationRequests only
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-MedicationRepeatInformation
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-UKCore-MedicationRepeatInformation
extension
array
required
anyOf
object
Extension to carry the number of repeat issues authorised. Required for continuous-repeat-dispensing MedicationRequests only
url
string
required
Identifies the meaning of the extension
Allowed values: numberOfRepeatPrescriptionsAllowed
Example: numberOfRepeatPrescriptionsAllowed
valueUnsignedInt
number
required
The number of repeat issues authorised
Example: 6
object
Extension to carry the repeat prescription review date. Required for continuous and continuous-repeat-dispensing MedicationRequests
url
string
required
Identifies the meaning of the extension
Allowed values: authorisationExpiryDate
Example: authorisationExpiryDate
valueDateTime
string
required
Repeat prescription review date
Example: 2020-09-04
object
Extension to carry the prescription type
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-prescriptionType
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-prescriptionType
valueCoding
object
required
Setting and HCP type for the prescription
system
string
required
Allowed values: https://fhir.nhs.uk/CodeSystem/prescription-type
Example: https://fhir.nhs.uk/CodeSystem/prescription-type
code
string
required
Example: 0101
object
Extension to carry the controlled drug
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug
Example: https://fhir.nhs.uk/StructureDefinition/Extension-DM-ControlledDrug
extension
array
required
anyOf
object
Extension to carry the requested quantity of the controlled drug
url
string
required
Identifies the meaning of the extension
Allowed values: quantityWords
Example: quantityWords
valueString
string
required
The quantity, in words, of the controlled drug requested
Example: twenty eight
object
Extension to carry the schedule of the controlled drug
url
string
required
Identifies the meaning of the extension
Allowed values: schedule
Example: schedule
valueCoding
object
required
system
string
Identity of the terminology system
Allowed values: https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug
Example: https://fhir.nhs.uk/CodeSystem/medicationrequest-controlled-drug
code
string
Symbol in syntax defined by the system
Allowed values: CD1, CD2, CD3, CD4-1, CD4-2, CD5
Example: CD1
display
string
A representation of the meaning of the code in the system, following the rules of the system
Allowed values: Schedule 1, Schedule 2, Schedule 3, Schedule 4 (Part I), Schedule 4 (Part II), Schedule 5
Example: Schedule 1
object
Extension to carry the practitioner responsible for the patient
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-ResponsiblePractitioner
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-DM-ResponsiblePractitioner
valueReference
object
required
The practitioner responsible for the patient
reference
string
required
Example: 09062182-7895-480F-8439-F0DB7F6A31C2
object
Extension to carry prescription endorsements
url
string
required
Identifies the meaning of the extension
Allowed values: https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionEndorsement
Example: https://fhir.nhs.uk/R4/StructureDefinition/Extension-PrescriptionEndorsement
valueCodeableConcept
object
required
Prescription endorsements
coding
array
required
object
system
string
required
Allowed values: https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement
Example: https://fhir.nhs.uk/CodeSystem/medicationrequest-endorsement
code
string
required
Example: CC
status
string
required
A code specifying the current state of the order. Generally, this will be active or completed state.
Allowed values: active, on-hold, cancelled, completed, entered-in-error, stopped, draft, unknown
Example: active
intent
string
required
Whether the request is a proposal, plan, or an original order.
Allowed values: proposal, plan, order, original-order, instance-order, option
Example: order
medicationCodeableConcept
object
required
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
coding
array
required
A reference to a code defined by a terminology system.
object
A reference to a code defined by the SNOMED-CT system.
system
string
required
The identification of the code system that defines the meaning of the symbol in the code.
Allowed values: http://snomed.info/sct
Example: http://snomed.info/sct
code
string
required
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (such as post-coordination).
Example: 1211511000001107
display
string
A representation of the meaning of the code in the system, following the rules of the system.
Example: naproxen tablets 250mg
subject
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
authoredOn
string
required
The date (and perhaps time) when the prescription was initially written or authored on.
Example: 2008-02-27T11:38:00+00:00
requester
object
required
A link to a resource representing the person or set of individuals to whom the medication will be given.
reference
string
required
A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL. It may be an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, you should assume that it is version specific. Internal fragment references (start with '#') refer to contained resources.
Example: urn:uuid:C6750CAA-3CA9-4F29-A282-6EE1AA5D7D4C
groupIdentifier
object
required
The short form UID of the prescription.
extension
array
object