{
  "resourceType": "Bundle",
  "id": "e6492db3-3788-4519-bebd-2bdf7d7236d9",
  "meta": {
    "profile": [
      "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Message-Bundle-1"
    ]
  },
  "identifier": {
    "system": "https://tools.ietf.org/html/rfc4122",
    "value": "a3940bf5-b82e-4c4f-9477-9bbe6861d634"
  },
  "type": "message",
  "entry": [
    {
      "fullUrl": "urn:uuid:a4409d7c-b613-477c-b623-87e60406c2f0",
      "resource": {
        "resourceType": "MessageHeader",
        "id": "a4409d7c-b613-477c-b623-87e60406c2f0",
        "meta": {
          "profile": [
            "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-MessageHeader-2"
          ]
        },
        "extension": [
          {
            "extension": [
              {
                "url": "BusAckRequested",
                "valueBoolean": true
              },
              {
                "url": "InfAckRequested",
                "valueBoolean": true
              },
              {
                "url": "RecipientType",
                "valueCoding": {
                  "system": "https://fhir.nhs.uk/STU3/CodeSystem/ITK-RecipientType-1",
                  "code": "FA",
                  "display": "For Action"
                }
              },
              {
                "url": "MessageDefinition",
                "valueReference": {
                  "reference": "https://fhir.nhs.uk/STU3/MessageDefinition/ITK-DM-EmergencySupply-MessageDefinition-1"
                }
              },
              {
                "url": "SenderReference",
                "valueString": "None"
              },
              {
                "url": "LocalExtension",
                "valueString": "None"
              }
            ],
            "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-MessageHandling-2"
          }
        ],
        "event": {
          "system": "https://fhir.nhs.uk/STU3/CodeSystem/ITK-MessageEvent-2",
          "code": "ITK010D",
          "display": "ITK Digital Medicine Emergency Supply Document"
        },
        "receiver": {
          "reference": "urn:uuid:c7d0d92f-4db9-4ab0-89c8-375afca971ad"
        },
        "sender": {
          "reference": "urn:uuid:b86216fe-6a51-4687-af97-4b7d58154c39"
        },
        "timestamp": "2017-01-23T10:10:16+00:00",
        "source": {
          "endpoint": "NOROT003"
        },
        "focus": [
          {
            "reference": "urn:uuid:289f9d42-6f97-40d2-890a-d3d0af397ac7"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:b86216fe-6a51-4687-af97-4b7d58154c39",
      "resource": {
        "resourceType": "Organization",
        "id": "b86216fe-6a51-4687-af97-4b7d58154c39",
        "meta": {
          "profile": [
            "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"
          ]
        },
        "identifier": [
          {
            "system": "https://fhir.nhs.uk/Id/ods-organization-code",
            "value": "FA000"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:c7d0d92f-4db9-4ab0-89c8-375afca971ad",
      "resource": {
        "resourceType": "Organization",
        "id": "c7d0d92f-4db9-4ab0-89c8-375afca971ad",
        "meta": {
          "profile": [
            "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"
          ]
        },
        "identifier": [
          {
            "system": "https://fhir.nhs.uk/Id/ods-organization-code",
            "value": "GP123456"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:289f9d42-6f97-40d2-890a-d3d0af397ac7",
      "resource": {
        "resourceType": "Bundle",
        "id": "32e2adf8-595b-4b39-b6f1-f0073464c7f8",
        "meta": {
          "lastUpdated": "2018-08-28T10:00:00+00:00",
          "profile": [
            "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Document-Bundle-1"
          ]
        },
        "identifier": {
          "system": "https://tools.ietf.org/html/rfc4122",
          "value": "b19b305c-697b-4d76-b97f-9b2ef2914d10"
        },
        "type": "document",
        "entry": [
          {
            "fullUrl": "urn:uuid:cf325583-18e2-4c56-8d91-9fdeaee79ade",
            "resource": {
              "resourceType": "Composition",
              "id": "cf325583-18e2-4c56-8d91-9fdeaee79ade",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-DM-EmergencySupply-Composition-1"
                ]
              },
              "extension": [
                {
                  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareSettingType-1",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "310080006",
                        "display": "Pharmacy service"
                      }
                    ]
                  }
                }
              ],
              "identifier": {
                "system": "https://tools.ietf.org/html/rfc4122",
                "value": "1ed8db1e-968d-4332-811c-92df8b240fdc"
              },
              "status": "final",
              "type": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "1218611000000102",
                    "display": "Urgent supply of prescription items by community pharmacy"
                  }
                ]
              },
              "subject": {
                "reference": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0"
              },
              "encounter": {
                "reference": "urn:uuid:adb353f9-0953-4fb4-a4ab-f0ab04a44dbc"
              },
              "date": "2018-05-09T10:00:00+00:00",
              "author": [
                {
                  "reference": "urn:uuid:0e4c13d4-e61f-48f2-89ee-7cf8f5f3dbb3"
                }
              ],
              "title": "Overtown Pharmacy 118 Emergency Medication Supply Record",
              "custodian": {
                "reference": "urn:uuid:1226082b-315e-40be-83cf-5d21a964219e"
              },
              "section": [
                {
                  "title": "Attendance Details",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "1077881000000105",
                        "display": "Attendance details"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Date and time of contact</th><td>9-May-2018 10:00</td></tr><tr><th>Service</th><td>Community Pharmacist Consultation Service</td></tr><tr><th>Organisation</th><td><p>Name: Overtown Pharmacy</p><p>Address: 1 High Street, Overtown, Leeds</p><p>Postcode: LS1 9AM</p><p>Telephone: 01134875516</p><p>Email: overtonpharmacy118@mymail.com</p></td></tr><tr><th>Clincian</th><td><p>Name: Mr Eric Smith</p><p>Role: Pharmacist</p><p>Registration No: 2145879</p></td></tr><tr><th>Person collecting the medication</th><td>Patient</td></tr><tr><th>Reason for service</th><td>Emergency supply of medication. Patient had not ordered their prescription.</td></tr></tbody></table></div>"
                  },
                  "entry": [
                    {
                      "reference": "urn:uuid:adb353f9-0953-4fb4-a4ab-f0ab04a44dbc"
                    }
                  ]
                },
                {
                  "title": "Consent",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "61861000000100",
                        "display": "Consent"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Consent for treatment record</th><td>Patient's consent for treatment has been attained.</td></tr><tr><th>Consent relating to child</th><td>Not Applicable</td></tr></tbody></table></div>"
                  }
                },
                {
                  "title": "GP Practice",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "886711000000101",
                        "display": "GP practice"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>GP name</th><td><p>Prefix: Dr</p><p>Given Name: Paul</p><p>Family Name: Rastall</p></td></tr><tr><th>GP practice identifier</th><td><p>ODS Organization Code:GP123456</p></td></tr><tr><th>GP practice details</th><td><p>Name: MGP Medical Centre</p><p>Address:</p><p>Address Line: 1 MGP House, Overtown</p><p>City: Leeds</p><p>Post Code: LS21 7PA</p></td></tr></tbody></table></div>"
                  },
                  "entry": [
                    {
                      "reference": "urn:uuid:e46d86bf-1720-4c55-878f-a034d8349bbd"
                    }
                  ]
                },
                {
                  "title": "History",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "717121000000105",
                        "display": "History"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Relevant past medical, surgical and mental health history</th><td><p>Patient has Type 2 diabetes and hypertension.</p></td></tr></tbody></table></div>"
                  }
                },
                {
                  "title": "Information and Advice given",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "1052951000000105",
                        "display": "Information and advice given"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Information and advice given</th><td><p>Patient advised that he should consider discussing with his GP whether he can be set up for electronic repeat dispensing if his medication regime is stable.</p></td></tr></tbody></table></div>"
                  }
                },
                {
                  "title": "Medications and medical devices",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "933361000000108",
                        "display": "Medications and medical devices"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Medication</th><td>Humulin M3 100units/ml suspension for injection 3ml cartridges (CST Pharma Ltd)</td></tr><tr><th>Dose directions</th><td>As needed</td></tr><tr><th>Quantity Supplied</th><td>2 cartridge</td></tr><tr><th>Days Supply</th><td>14 days</td></tr><tr><th>Medication</th><td>BD Viva hypodermic insulin needles for pre-filled / reusable pen injectors screw on 5mm/31gauge (Becton, Dickinson UK Ltd)</td></tr><tr><th>Dose directions</th><td>As needed</td></tr><tr><th>Quantity Supplied</th><td>90 needle</td></tr><tr><th>Days Supply</th><td>14 days</td></tr></tbody></table></div>"
                  },
                  "entry": [
                    {
                      "reference": "urn:uuid:4bc7faea-5974-407a-b658-d6ed1d4c9187"
                    }
                  ]
                },
                {
                  "title": "Patient Demographics",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "886731000000109",
                        "display": "Patient demographics"
                      }
                    ]
                  },
                  "text": {
                    "status": "additional",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Patient</th><td><p>Prefix: Mr</p><p>Given Name: William</p><p>Family Name: Smith</p></td></tr><tr><th>Date of birth</th><td>4 February 1956</td></tr><tr><th>Gender</th><td>Male</td></tr><tr><th>NHS number</th><td>2378954317</td></tr><tr><th>Patient address</th><td><p>Address Line: 14, Sunny Mews, Overtown,</p><p>City: Leeds</p><p>Post Code: LS17 4NK</p></td></tr><tr><th>Patient telephone number</th><td><p>Home: 01135540935</p><p>Mobile: 07823123456</p></td></tr><tr><th>Relevant contacts</th><td>Name: June Smith <p>Relationship: Next of kin</p><p>Contact details: Tel. 01132789365</p></td></tr></tbody></table></div>"
                  },
                  "entry": [
                    {
                      "reference": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0"
                    }
                  ]
                },
                {
                  "title": "Plan and requested actions",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "887201000000105",
                        "display": "Plan and requested actions"
                      }
                    ]
                  },
                  "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Plan and requested actions</th><td>GP to review medications and speak to Patient regarding electronic repeat dispensing</td></tr></tbody></table></div>"
                  }
                },
                {
                  "title": "Referral Details",
                  "code": {
                    "coding": [
                      {
                        "system": "http://snomed.info/sct",
                        "code": "886721000000107",
                        "display": "Referral details"
                      }
                    ]
                  },
                  "text": {
                    "status": "generated",
                    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table width=\"100%\"><tbody><tr><th>Referral details</th><td>NHS 111</td></tr></tbody></table></div>"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:adb353f9-0953-4fb4-a4ab-f0ab04a44dbc",
            "resource": {
              "resourceType": "Encounter",
              "id": "adb353f9-0953-4fb4-a4ab-f0ab04a44dbc",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1"
                ]
              },
              "status": "finished",
              "subject": {
                "reference": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0",
                "display": "SMITH, William (Mr)"
              },
              "participant": [
                {
                  "type": [
                    {
                      "coding": [
                        {
                          "system": "http://hl7.org/fhir/v3/ParticipationType",
                          "code": "PPRF",
                          "display": "primary performer"
                        }
                      ]
                    }
                  ],
                  "individual": {
                    "reference": "urn:uuid:0e4c13d4-e61f-48f2-89ee-7cf8f5f3dbb3",
                    "display": "SMITH, Eric (Mr)"
                  }
                }
              ],
              "period": {
                "start": "2018-05-09T10:00:00+00:00"
              },
              "serviceProvider": {
                "reference": "urn:uuid:1226082b-315e-40be-83cf-5d21a964219e",
                "display": "Overtown Pharmacy"
              }
            }
          },
          {
            "fullUrl": "urn:uuid:1226082b-315e-40be-83cf-5d21a964219e",
            "resource": {
              "resourceType": "Organization",
              "id": "1226082b-315e-40be-83cf-5d21a964219e",
              "meta": {
                "profile": [
                  "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
                ]
              },
              "identifier": [
                {
                  "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                  "value": "FA000"
                }
              ],
              "name": "Overtown Pharmacy",
              "telecom": [
                {
                  "system": "phone",
                  "value": "01134875516"
                },
                {
                  "system": "email",
                  "value": "overtonpharmacy118@mymail.com"
                }
              ],
              "address": [
                {
                  "line": [
                    "1 High Street, Overtown"
                  ],
                  "city": "Leeds",
                  "postalCode": "LS1 9AM"
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:e46d86bf-1720-4c55-878f-a034d8349bbd",
            "resource": {
              "resourceType": "Organization",
              "id": "e46d86bf-1720-4c55-878f-a034d8349bbd",
              "meta": {
                "profile": [
                  "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
                ]
              },
              "identifier": [
                {
                  "system": "https://fhir.nhs.uk/Id/ods-organization-code",
                  "value": "GP123456"
                }
              ],
              "name": "MGP Medical Centre",
              "address": [
                {
                  "line": [
                    "1 MGP House, Overtown"
                  ],
                  "city": "Leeds",
                  "postalCode": "LS21 7PA"
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0",
            "resource": {
              "resourceType": "Patient",
              "id": "1e2b5223-1cd8-43ff-8a67-55dec3edb9b0",
              "meta": {
                "profile": [
                  "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
                ]
              },
              "identifier": [
                {
                  "extension": [
                    {
                      "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
                            "code": "01",
                            "display": "Number present and verified"
                          }
                        ]
                      }
                    }
                  ],
                  "system": "https://fhir.nhs.uk/Id/nhs-number",
                  "value": "2378954317"
                }
              ],
              "name": [
                {
                  "use": "official",
                  "text": "Mr William Smith",
                  "family": "Smith",
                  "given": [
                    "William"
                  ],
                  "prefix": [
                    "Mr"
                  ]
                }
              ],
              "telecom": [
                {
                  "system": "phone",
                  "value": "01132789365",
                  "use": "home"
                }
              ],
              "gender": "male",
              "birthDate": "1956-02-04",
              "address": [
                {
                  "use": "home",
                  "type": "both",
                  "text": "14 Sunny Mews, Overtown, West Yorkshire, LS17 4NK",
                  "line": [
                    "14 Sunny Mews"
                  ],
                  "city": "Overtown",
                  "district": "West Yorkshire",
                  "postalCode": "LS17 4NK"
                }
              ],
              "maritalStatus": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/v3/MaritalStatus",
                    "code": "M",
                    "display": "Married"
                  }
                ]
              },
              "contact": [
                {
                  "relationship": [
                    {
                      "coding": [
                        {
                          "system": "http://hl7.org/fhir/v2/0131",
                          "code": "N",
                          "display": "Next-of-Kin"
                        }
                      ]
                    }
                  ],
                  "name": {
                    "use": "official",
                    "family": "Smith",
                    "given": [
                      "June"
                    ]
                  },
                  "telecom": [
                    {
                      "system": "phone",
                      "value": "01132789365"
                    }
                  ],
                  "gender": "female"
                }
              ],
              "generalPractitioner": [
                {
                  "reference": "urn:uuid:33cd4a2a-417f-4449-8293-31b15ea37470"
                }
              ],
              "managingOrganization": {
                "reference": "urn:uuid:e46d86bf-1720-4c55-878f-a034d8349bbd"
              }
            }
          },
          {
            "fullUrl": "urn:uuid:33cd4a2a-417f-4449-8293-31b15ea37470",
            "resource": {
              "resourceType": "Practitioner",
              "id": "33cd4a2a-417f-4449-8293-31b15ea37470",
              "meta": {
                "profile": [
                  "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
                ]
              },
              "identifier": [
                {
                  "system": "https://fhir.hl7.org.uk/Id/gmc-number",
                  "value": "6122477"
                }
              ],
              "name": [
                {
                  "family": "Rastall",
                  "given": [
                    "Paul"
                  ],
                  "prefix": [
                    "Dr"
                  ]
                }
              ],
              "telecom": [
                {
                  "system": "phone",
                  "value": "01136323200",
                  "use": "work"
                }
              ],
              "gender": "male"
            }
          },
          {
            "fullUrl": "urn:uuid:0e4c13d4-e61f-48f2-89ee-7cf8f5f3dbb3",
            "resource": {
              "resourceType": "Practitioner",
              "id": "0e4c13d4-e61f-48f2-89ee-7cf8f5f3dbb3",
              "meta": {
                "profile": [
                  "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
                ]
              },
              "identifier": [
                {
                  "system": "https://fhir.hl7.org.uk/Id/gphc-number",
                  "value": "2145879"
                }
              ],
              "name": [
                {
                  "family": "Smith",
                  "given": [
                    "Eric"
                  ],
                  "prefix": [
                    "Mr"
                  ]
                }
              ],
              "telecom": [
                {
                  "system": "phone",
                  "value": "0113895123",
                  "use": "work"
                }
              ],
              "gender": "male"
            }
          },
          {
            "fullUrl": "urn:uuid:4bc7faea-5974-407a-b658-d6ed1d4c9187",
            "resource": {
              "resourceType": "List",
              "id": "4bc7faea-5974-407a-b658-d6ed1d4c9187",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationDispense-List-1"
                ]
              },
              "identifier": [
                {
                  "system": "https://tools.ietf.org/html/rfc4122",
                  "value": "197987da-97a7-49c2-9657-dac1aea2a461"
                }
              ],
              "status": "current",
              "mode": "snapshot",
              "code": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "163541000000107",
                    "display": "Dispensed Medication"
                  }
                ]
              },
              "subject": {
                "reference": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0",
                "display": "SMITH, William (Mr)"
              },
              "encounter": {
                "reference": "urn:uuid:adb353f9-0953-4fb4-a4ab-f0ab04a44dbc"
              },
              "date": "2018-05-09",
              "entry": [
                {
                  "item": {
                    "reference": "urn:uuid:0885779a-82e7-11ea-bc55-0242ac130003"
                  }
                },
                {
                  "item": {
                    "reference": "urn:uuid:42ac049c-87ca-4e33-93ad-987167422b01"
                  }
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:0885779a-82e7-11ea-bc55-0242ac130003",
            "resource": {
              "resourceType": "MedicationDispense",
              "id": "0885779a-82e7-11ea-bc55-0242ac130003",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationDispense-1"
                ]
              },
              "status": "completed",
              "medicationReference": {
                "reference": "urn:uuid:f315872e-82e6-11ea-bc55-0242ac130003",
                "display": "Humulin M3 100units/ml suspension for injection 3ml cartridges (CST Pharma Ltd)"
              },
              "subject": {
                "reference": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0",
                "display": "SMITH, William (Mr)"
              },
              "context": {
                "reference": "urn:uuid:adb353f9-0953-4fb4-a4ab-f0ab04a44dbc"
              },
              "performer": [
                {
                  "actor": {
                    "reference": "urn:uuid:0e4c13d4-e61f-48f2-89ee-7cf8f5f3dbb3"
                  },
                  "onBehalfOf": {
                    "reference": "urn:uuid:1226082b-315e-40be-83cf-5d21a964219e"
                  }
                }
              ],
              "type": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "1218611000000102",
                    "display": "Urgent supply of prescription items by community pharmacy"
                  }
                ]
              },
              "quantity": {
                "extension": [
                  {
                    "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationQuantityText-1",
                    "valueString": "2 cartridge"
                  }
                ],
                "value": 2,
                "unit": "cartridge",
                "system": "http://snomed.info/sct",
                "code": "732988008"
              },
              "daysSupply": {
                "value": 14,
                "unit": "day",
                "system": "http://unitsofmeasure.org",
                "code": "d"
              },
              "whenPrepared": "2018-05-09",
              "whenHandedOver": "2018-05-09",
              "dosageInstruction": [
                {
                  "asNeededBoolean": true
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:42ac049c-87ca-4e33-93ad-987167422b01",
            "resource": {
              "resourceType": "MedicationDispense",
              "id": "42ac049c-87ca-4e33-93ad-987167422b01",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationDispense-1"
                ]
              },
              "status": "completed",
              "medicationReference": {
                "reference": "urn:uuid:9c7e61c3-5b92-4828-9ebc-21e74bcdbc96",
                "display": "BD Viva hypodermic insulin needles for pre-filled / reusable pen injectors screw on 5mm/31gauge (Becton, Dickinson UK Ltd)"
              },
              "subject": {
                "reference": "urn:uuid:1e2b5223-1cd8-43ff-8a67-55dec3edb9b0",
                "display": "SMITH, William (Mr)"
              },
              "context": {
                "reference": "urn:uuid:adb353f9-0953-4fb4-a4ab-f0ab04a44dbc"
              },
              "performer": [
                {
                  "actor": {
                    "reference": "urn:uuid:0e4c13d4-e61f-48f2-89ee-7cf8f5f3dbb3"
                  },
                  "onBehalfOf": {
                    "reference": "urn:uuid:1226082b-315e-40be-83cf-5d21a964219e"
                  }
                }
              ],
              "type": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "1218611000000102",
                    "display": "Urgent supply of prescription items by community pharmacy"
                  }
                ]
              },
              "quantity": {
                "extension": [
                  {
                    "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationQuantityText-1",
                    "valueString": "90 needle"
                  }
                ],
                "value": 90,
                "unit": "needle",
                "system": "http://snomed.info/sct",
                "code": "3318111000001106"
              },
              "daysSupply": {
                "value": 14,
                "unit": "day",
                "system": "http://unitsofmeasure.org",
                "code": "d"
              },
              "whenPrepared": "2018-05-09",
              "whenHandedOver": "2018-05-09",
              "dosageInstruction": [
                {
                  "asNeededBoolean": true
                }
              ]
            }
          },
          {
            "fullUrl": "urn:uuid:f315872e-82e6-11ea-bc55-0242ac130003",
            "resource": {
              "resourceType": "Medication",
              "id": "f315872e-82e6-11ea-bc55-0242ac130003",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Medication-1"
                ]
              },
              "code": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "37417211000001103",
                    "display": "Humulin M3 100units/ml suspension for injection 3ml cartridges (CST Pharma Ltd)"
                  }
                ]
              },
              "status": "active"
            }
          },
          {
            "fullUrl": "urn:uuid:9c7e61c3-5b92-4828-9ebc-21e74bcdbc96",
            "resource": {
              "resourceType": "Medication",
              "id": "9c7e61c3-5b92-4828-9ebc-21e74bcdbc96",
              "meta": {
                "profile": [
                  "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Medication-1"
                ]
              },
              "code": {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "31771611000001107",
                    "display": "BD Viva hypodermic insulin needles for pre-filled / reusable pen injectors screw on 5mm/31gauge (Becton, Dickinson UK Ltd)"
                  }
                ]
              },
              "status": "active"
            }
          }
        ]
      }
    }
  ]
}