{
    "resourceType": "Bundle",
    "id": "0cb82cfa-76c8-4fb2-a08e-bf0e326e5487",
    "identifier": {
      "system": "https://tools.ietf.org/html/rfc4122",
      "value": "164996aa-29eb-4f14-a5ac-4b556a7baf6e"
    },
    "type": "message",
    "entry": [
      {
        "fullUrl": "urn:uuid:17773b27-427e-4940-8c16-64cdac715001",
        "resource": {
          "resourceType": "MessageHeader",
          "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": "RH5E4"
            },
            "display": "ADULT CMHT BARNFIELD UNIT"
          },
          "source": {
            "endpoint": "urn:nhs-uk:addressing:ods:RH5E4"
          },
          "destination": [
            {
              "endpoint": "https://sandbox.api.service.nhs.uk/electronic-prescriptions/$post-message",
              "receiver": {
                "identifier": {
                  "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                  "value": "FCG71"
                }
              }
            }
          ]
        }
      },
      {
        "fullUrl": "urn:uuid:a54219b8-f741-4c47-b662-e4f8dfa49ab6",
        "resource": {
          "resourceType": "MedicationRequest",
          "extension": [
            {
              "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionType",
              "valueCoding": {
                "system": "https://fhir.nhs.uk/CodeSystem/prescription-type",
                "code": "0101",
                "display": "Primary Care Prescriber - Medical Prescriber"
              }
            },
            {
              "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-ResponsiblePractitioner",
              "valueReference": {
                "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"
              }
            }
          ],
          "identifier": [
            {
              "system": "https://fhir.nhs.uk/Id/prescription-order-item-number",
              "value": "7dc0390a-f416-4d8a-9751-257bfa6294cd"
            }
          ],
          "status": "active",
          "intent": "order",
          "medicationCodeableConcept": {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "39720311000001101",
                "display": "Paracetamol 500mg soluble tablets"
              }
            ]
          },
          "subject": {
            "reference": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2"
          },
          "authoredOn": "2021-05-07T14:47:29+00:00",
          "category": [
            {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
                  "code": "community",
                  "display": "Community"
                }
              ]
            }
          ],
          "requester": {
            "reference": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466"
          },
          "groupIdentifier": {
            "system": "https://fhir.nhs.uk/Id/prescription-order-number",
            "value": "BDEEFF-A83008-814F99",
            "extension": [
              {
                "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PrescriptionId",
                "valueIdentifier": {
                  "system": "https://fhir.nhs.uk/Id/prescription",
                  "value": "d9ad29cd-fb94-4dac-8e8e-ad5b4bbe5698"
                }
              }
            ]
          },
          "courseOfTherapyType": {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-course-of-therapy",
                "code": "acute",
                "display": "Short course (acute) therapy"
              }
            ]
          },
          "dosageInstruction": [
            {
              "text": "4 times a day - Oral",
              "timing": {
                "repeat": {
                  "frequency": 4,
                  "period": 1,
                  "periodUnit": "d"
                }
              },
              "route": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "26643006",
                    "display": "Oral"
                  }
                ]
              }
            }
          ],
          "dispenseRequest": {
            "extension": [
              {
                "url": "https://fhir.nhs.uk/StructureDefinition/Extension-DM-PerformerSiteType",
                "valueCoding": {
                  "system": "https://fhir.nhs.uk/CodeSystem/dispensing-site-preference",
                  "code": "P1"
                }
              }
            ],
            "quantity": {
              "value": 60,
              "unit": "tablet",
              "system": "http://snomed.info/sct",
              "code": "428673006"
            },
            "expectedSupplyDuration": {
              "value": 30,
              "unit": "day",
              "system": "http://unitsofmeasure.org",
              "code": "d"
            },
            "performer": {
              "identifier": {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "FCG71"
              }
            }
          },
          "substitution": {
            "allowedBoolean": false
          }
        }
      },
      {
        "fullUrl": "urn:uuid:78d3c2eb-009e-4ec8-a358-b042954aa9b2",
        "resource": {
          "resourceType": "Patient",
          "identifier": [
            {
              "system": "https://fhir.nhs.uk/Id/nhs-number",
              "value": "9449304130"
            }
          ],
          "name": [
            {
              "use": "usual",
              "family": "XXTESTPATIENT-TGNP",
              "given": [
                "DONOTUSE"
              ],
              "prefix": [
                "MR"
              ]
            }
          ],
          "gender": "male",
          "birthDate": "1932-01-06",
          "address": [
            {
              "use": "home",
              "line": [
                "1 Trevelyan Square",
                "Boar Lane",
                "Leeds",
                "West Yorkshire"
              ],
              "postalCode": "LS1 6AE"
            }
          ],
          "generalPractitioner": [
            {
              "identifier": {
                "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                "value": "A83008"
              }
            }
          ]
        }
      },
      {
        "fullUrl": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47b",
        "resource": {
          "resourceType": "Practitioner",
          "identifier": [
            {
              "system": "https://fhir.nhs.uk/Id/sds-user-id",
              "value": "555086689106"
            },
            {
              "system": "https://fhir.hl7.org.uk/Id/gmc-number",
              "value": "6095103"
            }
          ],
          "name": [
            {
              "family": "BOIN",
              "given": [
                "C"
              ],
              "prefix": [
                "DR"
              ]
            }
          ]
        }
      },
      {
        "fullUrl": "urn:uuid:a5acefc1-f8ca-4989-a5ac-34ae36741466",
        "resource": {
          "resourceType": "PractitionerRole",
          "identifier": [
            {
              "system": "https://fhir.nhs.uk/Id/sds-role-profile-id",
              "value": "200102238987"
            }
          ],
          "practitioner": {
            "reference": "urn:uuid:a8c85454-f8cb-498d-9629-78e2cb5fa47b"
          },
          "organization": {
            "reference": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d9"
          },
          "code": [
            {
              "coding": [
                {
                  "system": "https://fhir.hl7.org.uk/CodeSystem/UKCore-SDSJobRoleName",
                  "code": "R8000",
                  "display": "Clinical Practitioner Access Role"
                }
              ]
            }
          ],
          "telecom": [
            {
              "system": "phone",
              "use": "work",
              "value": "01234567890"
            }
          ]
        }
      },
      {
        "fullUrl": "urn:uuid:3b4b03a5-52ba-4ba6-9b82-70350aa109d9",
        "resource": {
          "resourceType": "Organization",
          "identifier": [
            {
              "system": "https://fhir.nhs.uk/Id/ods-organization-code",
              "value": "RH5E4"
            }
          ],
          "type": [
            {
              "coding": [
                {
                  "system": "https://fhir.nhs.uk/CodeSystem/organisation-role",
                  "code": "197",
                  "display": "NHS TRUST"
                }
              ]
            }
          ],
          "name": "ADULT CMHT BARNFIELD UNIT",
          "address": [
            {
              "use": "work",
              "type": "both",
              "line": [
                "MINEHEAD COMMUNITY HOSPITAL",
                "LUTTRELL WAY",
                "MINEHEAD",
                "SOMERSET"
              ],
              "postalCode": "TA24 6DF"
            }
          ],
          "telecom": [
            {
              "system": "phone",
              "use": "work",
              "value": "01159737320"
            }
          ],
          "partOf": {
            "identifier": {
              "system": "https://fhir.nhs.uk/Id/ods-organization-code",
              "value": "RH5"
            },
            "display": "SOMERSET NHS FOUNDATION TRUST"
          }
        }
      },
      {
        "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": "2021-02-11T16:35:38+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": "2022-07-19T19:21:02+00:00",
              "who": {
                "reference": "urn:uuid:56166769-c1c4-4d07-afa8-132b5dfca666"
              },
              "data": "PFNpZ25hdHVyZSB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyI+CiAgICAgICAgICAgIDxTaWduZWRJbmZvPjxDYW5vbmljYWxpemF0aW9uTWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L0Nhbm9uaWNhbGl6YXRpb25NZXRob2Q+PFNpZ25hdHVyZU1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNyc2Etc2hhMSI+PC9TaWduYXR1cmVNZXRob2Q+PFJlZmVyZW5jZT48VHJhbnNmb3Jtcz48VHJhbnNmb3JtIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS8xMC94bWwtZXhjLWMxNG4jIj48L1RyYW5zZm9ybT48L1RyYW5zZm9ybXM+PERpZ2VzdE1ldGhvZCBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvMDkveG1sZHNpZyNzaGExIj48L0RpZ2VzdE1ldGhvZD48RGlnZXN0VmFsdWU+VStYQUJyQll5b2JnOEgxbHNEcHFJZ0xWZUZBPTwvRGlnZXN0VmFsdWU+PC9SZWZlcmVuY2U+PC9TaWduZWRJbmZvPgogICAgICAgICAgICA8U2lnbmF0dXJlVmFsdWU+PC9TaWduYXR1cmVWYWx1ZT4KICAgICAgICAgICAgPEtleUluZm8+PFg1MDlEYXRhPjxYNTA5Q2VydGlmaWNhdGU+PC9YNTA5Q2VydGlmaWNhdGU+PC9YNTA5RGF0YT48L0tleUluZm8+CiAgICAgICAgICA8L1NpZ25hdHVyZT4="
            }
          ]
        }
      }
    ]
  }