{
  "resourceType" : "Bundle",
  "id" : "ie-bundle-scenario2-partial-dispense",
  "meta" : {
    "profile" : ["http://hl7.org/fhir/StructureDefinition/Bundle"]
  },
  "type" : "collection",
  "timestamp" : "2024-06-15T14:45:00+01:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:96c59959-0693-5775-8050-809878a10e98",
    "resource" : {
      "resourceType" : "Patient",
      "id" : "patient-john-murphy",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-patient-eprescription"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Patient_patient-john-murphy\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Patient patient-john-murphy</b></p><a name=\"patient-john-murphy\"> </a><a name=\"hcpatient-john-murphy\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-patient-eprescription.html\">IE MPD Patient (ePrescription/eDispensation)</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">John Patrick Murphy (official) Male, DoB: 1978-05-15 ( National unique individual identifier: IEMpdNamingSystemIHI#210000000012345678)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Record is active\">Active:</td><td colspan=\"3\">true</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Other Id (see the one above)\">Other Id:</td><td colspan=\"3\">Patient's Medicare number/1234567A</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li><a href=\"tel:+353871234567\">+353 87 123 4567</a></li><li>42 Pearse Street Dublin Dublin D02 XY12 IE (home)</li></ul></td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Recorded sex or gender (RSG) information includes the various sex and gender concepts that are often used in existing systems but are known NOT to represent a gender identity, sex parameter for clinical use, or attributes related to sexuality, such as sexual orientation, sexual activity, or sexual attraction. Examples of recorded sex or gender concepts include administrative gender, administrative sex, and sex assigned at birth.  When exchanging this concept, refer to the guidance in the [Gender Harmony Implementation Guide](http://hl7.org/xprod/ig/uv/gender-harmony/).\">Person Recorded Sex Or Gender:</td><td colspan=\"3\"><ul><li>value: <span title=\"Codes:{http://hl7.org/fhir/administrative-gender male}\">Male</span></li><li>type: <span title=\"Codes:{http://loinc.org 76689-9}\">Sex assigned at birth</span></li></ul></td></tr></table></div>"
      },
      "extension" : [{
        "extension" : [{
          "url" : "value",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://hl7.org/fhir/administrative-gender",
              "code" : "male",
              "display" : "Male"
            }]
          }
        },
        {
          "url" : "type",
          "valueCodeableConcept" : {
            "coding" : [{
              "system" : "http://loinc.org",
              "code" : "76689-9",
              "display" : "Sex assigned at birth"
            }]
          }
        }],
        "url" : "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
      }],
      "identifier" : [{
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "NI",
            "display" : "National unique individual identifier"
          }]
        },
        "system" : "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/ihi",
        "value" : "210000000012345678"
      },
      {
        "type" : {
          "coding" : [{
            "system" : "http://terminology.hl7.org/CodeSystem/v2-0203",
            "code" : "MC"
          }]
        },
        "system" : "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/gms",
        "value" : "1234567A"
      }],
      "active" : true,
      "name" : [{
        "use" : "official",
        "family" : "Murphy",
        "given" : ["John",
        "Patrick"],
        "prefix" : ["Mr."]
      }],
      "telecom" : [{
        "system" : "phone",
        "value" : "+353 87 123 4567",
        "use" : "mobile"
      }],
      "gender" : "male",
      "birthDate" : "1978-05-15",
      "address" : [{
        "use" : "home",
        "line" : ["42 Pearse Street"],
        "city" : "Dublin",
        "state" : "Dublin",
        "postalCode" : "D02 XY12",
        "country" : "IE"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:e5f952b8-1edf-5b5e-82f2-f7476270a091",
    "resource" : {
      "resourceType" : "Medication",
      "id" : "medication-atorvastatin-20",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medication-eprescription"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Medication_medication-atorvastatin-20\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Medication medication-atorvastatin-20</b></p><a name=\"medication-atorvastatin-20\"> </a><a name=\"hcmedication-atorvastatin-20\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-medication-eprescription.html\">IE MPD Medication (ePrescription/eDispensation)</a></p></div><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 373444002}\">Atorvastatin 20mg tablets</span></p><p><b>form</b>: <span title=\"Codes:{http://snomed.info/sct 385055001}\">Tablet</span></p><h3>Ingredients</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Item[x]</b></td><td><b>IsActive</b></td><td><b>Strength</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://snomed.info/sct 373444002}\">Atorvastatin</span></td><td>true</td><td>20 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span>/1 tablet<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></td></tr></table></div>"
      },
      "code" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "373444002",
          "display" : "Atorvastatin"
        }],
        "text" : "Atorvastatin 20mg tablets"
      },
      "form" : {
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "385055001",
          "display" : "Tablet"
        }]
      },
      "ingredient" : [{
        "itemCodeableConcept" : {
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "code" : "373444002",
            "display" : "Atorvastatin"
          }]
        },
        "isActive" : true,
        "strength" : {
          "numerator" : {
            "value" : 20,
            "unit" : "mg",
            "system" : "http://unitsofmeasure.org",
            "code" : "mg"
          },
          "denominator" : {
            "value" : 1,
            "unit" : "tablet",
            "system" : "http://unitsofmeasure.org",
            "code" : "{tablet}"
          }
        }
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:2496bf0b-93dc-56c7-b20d-7a8d5e2101f4",
    "resource" : {
      "resourceType" : "MedicationRequest",
      "id" : "prescription-scenario2",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationrequest-eprescription"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationRequest_prescription-scenario2\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationRequest prescription-scenario2</b></p><a name=\"prescription-scenario2\"> </a><a name=\"hcprescription-scenario2\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-medicationrequest-eprescription.html\">IE MPD MedicationRequest (ePrescription)</a></p></div><p><b>identifier</b>: <a href=\"NamingSystem-ie-mpd-ns-neps.html\" title=\"PLACEHOLDER URI, pending a URI published by the issuing authority (Requires Clarification, IE Core OI-003). HIQA EP 3.1: the NePS electronic prescription (group) identifier used throughout the prescription and dispensation life cycle.\">IEMpdNamingSystemNePSPrescription</a>/PCRS-RX-2024-002001</p><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/medicationrequest-category community}\">Community</span></p><p><b>medication</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-e5f952b8-1edf-5b5e-82f2-f7476270a091\">Medication Atorvastatin</a></p><p><b>subject</b>: <a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-96c59959-0693-5775-8050-809878a10e98\">John Murphy</a></p><p><b>authoredOn</b>: 2024-06-15</p><p><b>requester</b>: <a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-30f2ac6d-a312-55a8-8960-b779170c7460\">Dr. Sarah O'Brien</a></p><p><b>reasonCode</b>: <span title=\"Codes:{http://snomed.info/sct 55822004}\">Hyperlipidemia</span></p><blockquote><p><b>dosageInstruction</b></p><p><b>text</b>: Take one 20mg tablet once daily at night</p><p><b>timing</b>: at dinner, Once per 1 day</p><p><b>route</b>: <span title=\"Codes:{http://snomed.info/sct 26643006}\">Oral route</span></p><h3>DoseAndRates</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Dose[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>20 mg<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codemg = 'mg')</span></td></tr></table></blockquote><blockquote><p><b>dispenseRequest</b></p><p><b>validityPeriod</b>: 2024-06-15 --&gt; 2024-09-15</p><p><b>numberOfRepeatsAllowed</b>: 2</p><p><b>quantity</b>: 90 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></p><h3>ExpectedSupplyDurations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td><td><b>System</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>90</td><td>days</td><td><a href=\"http://hl7.org/fhir/uv/xver-r5.r4/0.1.0/CodeSystem-v3-ucum.html\">http://unitsofmeasure.org</a></td><td>d</td></tr></table></blockquote><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Allowed[x]</b></td></tr><tr><td style=\"display: none\">*</td><td>true</td></tr></table></div>"
      },
      "identifier" : [{
        "system" : "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/neps",
        "value" : "PCRS-RX-2024-002001"
      }],
      "status" : "active",
      "intent" : "order",
      "category" : [{
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code" : "community",
          "display" : "Community"
        }]
      }],
      "medicationReference" : {
        "reference" : "urn:uuid:e5f952b8-1edf-5b5e-82f2-f7476270a091"
      },
      "subject" : {
        "reference" : "urn:uuid:96c59959-0693-5775-8050-809878a10e98",
        "display" : "John Murphy"
      },
      "authoredOn" : "2024-06-15",
      "requester" : {
        "reference" : "urn:uuid:30f2ac6d-a312-55a8-8960-b779170c7460",
        "display" : "Dr. Sarah O'Brien"
      },
      "reasonCode" : [{
        "coding" : [{
          "system" : "http://snomed.info/sct",
          "code" : "55822004",
          "display" : "Hyperlipidemia"
        }]
      }],
      "dosageInstruction" : [{
        "text" : "Take one 20mg tablet once daily at night",
        "timing" : {
          "repeat" : {
            "frequency" : 1,
            "period" : 1,
            "periodUnit" : "d",
            "when" : ["CV"]
          }
        },
        "route" : {
          "coding" : [{
            "system" : "http://snomed.info/sct",
            "code" : "26643006",
            "display" : "Oral route"
          }]
        },
        "doseAndRate" : [{
          "doseQuantity" : {
            "value" : 20,
            "unit" : "mg",
            "system" : "http://unitsofmeasure.org",
            "code" : "mg"
          }
        }]
      }],
      "dispenseRequest" : {
        "validityPeriod" : {
          "start" : "2024-06-15",
          "end" : "2024-09-15"
        },
        "numberOfRepeatsAllowed" : 2,
        "quantity" : {
          "value" : 90,
          "unit" : "tablets",
          "system" : "http://unitsofmeasure.org",
          "code" : "{tablet}"
        },
        "expectedSupplyDuration" : {
          "value" : 90,
          "unit" : "days",
          "system" : "http://unitsofmeasure.org",
          "code" : "d"
        }
      },
      "substitution" : {
        "allowedBoolean" : true
      }
    }
  },
  {
    "fullUrl" : "urn:uuid:30f2ac6d-a312-55a8-8960-b779170c7460",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "practitioner-sarah-obrien",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-practitioner"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Practitioner_practitioner-sarah-obrien\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Practitioner practitioner-sarah-obrien</b></p><a name=\"practitioner-sarah-obrien\"> </a><a name=\"hcpractitioner-sarah-obrien\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-practitioner.html\">IE MPD Practitioner</a></p></div><p><b>identifier</b>: <a href=\"NamingSystem-ie-mpd-ns-imc.html\" title=\"PLACEHOLDER URI, pending a URI published by the issuing authority (Requires Clarification, IE Core OI-003). HIQA EP/PS 2.6.2.\">IEMpdNamingSystemIMC</a>/IMC-12345</p><p><b>active</b>: true</p><p><b>name</b>: Sarah O'Brien (Official)</p><p><b>gender</b>: Female</p></div>"
      },
      "identifier" : [{
        "system" : "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/imc",
        "value" : "IMC-12345"
      }],
      "active" : true,
      "name" : [{
        "use" : "official",
        "family" : "O'Brien",
        "given" : ["Sarah"],
        "prefix" : ["Dr."]
      }],
      "gender" : "female"
    }
  },
  {
    "fullUrl" : "urn:uuid:5c04d66b-bf19-525c-a27f-5ae9fae4cc82",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "pharmacist-niamh-brennan",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-practitioner"]
      },
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Practitioner_pharmacist-niamh-brennan\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Practitioner pharmacist-niamh-brennan</b></p><a name=\"pharmacist-niamh-brennan\"> </a><a name=\"hcpharmacist-niamh-brennan\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-practitioner.html\">IE MPD Practitioner</a></p></div><p><b>identifier</b>: <a href=\"NamingSystem-ie-mpd-ns-psi.html\" title=\"PLACEHOLDER URI, pending a URI published by the issuing authority (Requires Clarification, IE Core OI-003). HIQA EP/PS 2.6.2: up to eight digits.\">IEMpdNamingSystemPSI</a>/PSI-54321</p><p><b>active</b>: true</p><p><b>name</b>: Niamh Brennan (Official)</p><p><b>gender</b>: Female</p></div>"
      },
      "identifier" : [{
        "system" : "https://hl7-ie.github.io/ie-core/fhir/ie/core/sid/psi",
        "value" : "PSI-54321"
      }],
      "active" : true,
      "name" : [{
        "use" : "official",
        "family" : "Brennan",
        "given" : ["Niamh"],
        "prefix" : ["Ms."]
      }],
      "gender" : "female"
    }
  },
  {
    "fullUrl" : "urn:uuid:0d7fdf3d-78b5-529f-99d7-7b3d1d26a15a",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "id" : "dispense-partial-1",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationdispense-edispensation"]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationDispense_dispense-partial-1\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationDispense dispense-partial-1</b></p><a name=\"dispense-partial-1\"> </a><a name=\"hcdispense-partial-1\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-medicationdispense-edispensation.html\">IE MPD MedicationDispense (eDispensation)</a></p></div><p><b>R5: When the recording of the dispense started (new)</b>: 2024-06-15 14:45:00+0100</p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.3.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt \r\n\r\nThis oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: \r\n\r\nNote that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.\r\n\r\nThis OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:1c4cfa76-c0e7-52bb-95df-b2787a22586f</p><p><b>status</b>: Completed</p><p><b>medication</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-e5f952b8-1edf-5b5e-82f2-f7476270a091\">Medication Atorvastatin</a></p><p><b>subject</b>: <a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-96c59959-0693-5775-8050-809878a10e98\">John Murphy</a></p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-5c04d66b-bf19-525c-a27f-5ae9fae4cc82\">Niamh Brennan</a></td></tr></table><p><b>authorizingPrescription</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-2496bf0b-93dc-56c7-b20d-7a8d5e2101f4\">PCRS-RX-2024-002001</a></p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode FFP}\">First Fill - Part Fill</span></p><p><b>quantity</b>: 30 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></p><p><b>daysSupply</b>: 30 days<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  coded = 'd')</span></p><p><b>whenPrepared</b>: 2024-06-15 14:30:00+0100</p><p><b>whenHandedOver</b>: 2024-06-15 14:45:00+0100</p><h3>DosageInstructions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Text</b></td></tr><tr><td style=\"display: none\">*</td><td>Take one 20mg tablet once daily at night</td></tr></table><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>WasSubstituted</b></td></tr><tr><td style=\"display: none\">*</td><td>false</td></tr></table></div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.recorded",
        "valueDateTime" : "2024-06-15T14:45:00+01:00"
      }],
      "identifier" : [{
        "system" : "urn:ietf:rfc:3986",
        "value" : "urn:uuid:1c4cfa76-c0e7-52bb-95df-b2787a22586f"
      }],
      "status" : "completed",
      "medicationReference" : {
        "reference" : "urn:uuid:e5f952b8-1edf-5b5e-82f2-f7476270a091"
      },
      "subject" : {
        "reference" : "urn:uuid:96c59959-0693-5775-8050-809878a10e98",
        "display" : "John Murphy"
      },
      "performer" : [{
        "actor" : {
          "reference" : "urn:uuid:5c04d66b-bf19-525c-a27f-5ae9fae4cc82",
          "display" : "Niamh Brennan"
        }
      }],
      "authorizingPrescription" : [{
        "reference" : "urn:uuid:2496bf0b-93dc-56c7-b20d-7a8d5e2101f4",
        "display" : "PCRS-RX-2024-002001"
      }],
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "FFP",
          "display" : "First Fill - Part Fill"
        }]
      },
      "quantity" : {
        "value" : 30,
        "unit" : "tablets",
        "system" : "http://unitsofmeasure.org",
        "code" : "{tablet}"
      },
      "daysSupply" : {
        "value" : 30,
        "unit" : "days",
        "system" : "http://unitsofmeasure.org",
        "code" : "d"
      },
      "whenPrepared" : "2024-06-15T14:30:00+01:00",
      "whenHandedOver" : "2024-06-15T14:45:00+01:00",
      "dosageInstruction" : [{
        "text" : "Take one 20mg tablet once daily at night"
      }],
      "substitution" : {
        "wasSubstituted" : false
      }
    }
  },
  {
    "fullUrl" : "urn:uuid:7cfc80c7-84c8-5535-a17d-39062d535383",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "id" : "dispense-partial-2",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationdispense-edispensation"]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationDispense_dispense-partial-2\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationDispense dispense-partial-2</b></p><a name=\"dispense-partial-2\"> </a><a name=\"hcdispense-partial-2\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-medicationdispense-edispensation.html\">IE MPD MedicationDispense (eDispensation)</a></p></div><p><b>R5: When the recording of the dispense started (new)</b>: 2024-07-15 10:10:00+0100</p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.3.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt \r\n\r\nThis oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: \r\n\r\nNote that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.\r\n\r\nThis OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:2b4faf84-b3fe-530f-a28a-685ea800cf32</p><p><b>status</b>: Completed</p><p><b>medication</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-e5f952b8-1edf-5b5e-82f2-f7476270a091\">Medication Atorvastatin</a></p><p><b>subject</b>: <a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-96c59959-0693-5775-8050-809878a10e98\">John Murphy</a></p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-5c04d66b-bf19-525c-a27f-5ae9fae4cc82\">Niamh Brennan</a></td></tr></table><p><b>authorizingPrescription</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-2496bf0b-93dc-56c7-b20d-7a8d5e2101f4\">PCRS-RX-2024-002001</a></p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode RFP}\">Refill - Part Fill</span></p><p><b>quantity</b>: 30 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></p><p><b>daysSupply</b>: 30 days<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  coded = 'd')</span></p><p><b>whenPrepared</b>: 2024-07-15 10:00:00+0100</p><p><b>whenHandedOver</b>: 2024-07-15 10:10:00+0100</p><h3>DosageInstructions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Text</b></td></tr><tr><td style=\"display: none\">*</td><td>Take one 20mg tablet once daily at night</td></tr></table><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>WasSubstituted</b></td></tr><tr><td style=\"display: none\">*</td><td>false</td></tr></table></div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.recorded",
        "valueDateTime" : "2024-07-15T10:10:00+01:00"
      }],
      "identifier" : [{
        "system" : "urn:ietf:rfc:3986",
        "value" : "urn:uuid:2b4faf84-b3fe-530f-a28a-685ea800cf32"
      }],
      "status" : "completed",
      "medicationReference" : {
        "reference" : "urn:uuid:e5f952b8-1edf-5b5e-82f2-f7476270a091"
      },
      "subject" : {
        "reference" : "urn:uuid:96c59959-0693-5775-8050-809878a10e98",
        "display" : "John Murphy"
      },
      "performer" : [{
        "actor" : {
          "reference" : "urn:uuid:5c04d66b-bf19-525c-a27f-5ae9fae4cc82",
          "display" : "Niamh Brennan"
        }
      }],
      "authorizingPrescription" : [{
        "reference" : "urn:uuid:2496bf0b-93dc-56c7-b20d-7a8d5e2101f4",
        "display" : "PCRS-RX-2024-002001"
      }],
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "RFP",
          "display" : "Refill - Part Fill"
        }]
      },
      "quantity" : {
        "value" : 30,
        "unit" : "tablets",
        "system" : "http://unitsofmeasure.org",
        "code" : "{tablet}"
      },
      "daysSupply" : {
        "value" : 30,
        "unit" : "days",
        "system" : "http://unitsofmeasure.org",
        "code" : "d"
      },
      "whenPrepared" : "2024-07-15T10:00:00+01:00",
      "whenHandedOver" : "2024-07-15T10:10:00+01:00",
      "dosageInstruction" : [{
        "text" : "Take one 20mg tablet once daily at night"
      }],
      "substitution" : {
        "wasSubstituted" : false
      }
    }
  },
  {
    "fullUrl" : "urn:uuid:e207f6f8-6c4c-5843-a954-6369834da22c",
    "resource" : {
      "resourceType" : "MedicationDispense",
      "id" : "dispense-partial-3",
      "meta" : {
        "profile" : ["https://hl7-ie.github.io/medication-events/fhir/StructureDefinition/ie-mpd-medicationdispense-edispensation"]
      },
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MedicationDispense_dispense-partial-3\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MedicationDispense dispense-partial-3</b></p><a name=\"dispense-partial-3\"> </a><a name=\"hcdispense-partial-3\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-ie-mpd-medicationdispense-edispensation.html\">IE MPD MedicationDispense (eDispensation)</a></p></div><p><b>R5: When the recording of the dispense started (new)</b>: 2024-08-15 11:10:00+0100</p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/6.3.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt \r\n\r\nThis oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: \r\n\r\nNote that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.\r\n\r\nThis OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:uuid:c92f1205-93e8-565b-8306-b266d4cc9742</p><p><b>status</b>: Completed</p><p><b>medication</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-e5f952b8-1edf-5b5e-82f2-f7476270a091\">Medication Atorvastatin</a></p><p><b>subject</b>: <a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-96c59959-0693-5775-8050-809878a10e98\">John Murphy</a></p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Bundle-ie-bundle-scenario1-full-dispense.html#urn-uuid-5c04d66b-bf19-525c-a27f-5ae9fae4cc82\">Niamh Brennan</a></td></tr></table><p><b>authorizingPrescription</b>: <a href=\"Bundle-ie-bundle-scenario2-partial-dispense.html#urn-uuid-2496bf0b-93dc-56c7-b20d-7a8d5e2101f4\">PCRS-RX-2024-002001</a></p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActCode RFP}\">Refill - Part Fill</span></p><p><b>quantity</b>: 30 tablets<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code{tablet} = '{tablet}')</span></p><p><b>daysSupply</b>: 30 days<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  coded = 'd')</span></p><p><b>whenPrepared</b>: 2024-08-15 11:00:00+0100</p><p><b>whenHandedOver</b>: 2024-08-15 11:10:00+0100</p><h3>DosageInstructions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Text</b></td></tr><tr><td style=\"display: none\">*</td><td>Take one 20mg tablet once daily at night</td></tr></table><h3>Substitutions</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>WasSubstituted</b></td></tr><tr><td style=\"display: none\">*</td><td>false</td></tr></table></div>"
      },
      "extension" : [{
        "url" : "http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.recorded",
        "valueDateTime" : "2024-08-15T11:10:00+01:00"
      }],
      "identifier" : [{
        "system" : "urn:ietf:rfc:3986",
        "value" : "urn:uuid:c92f1205-93e8-565b-8306-b266d4cc9742"
      }],
      "status" : "completed",
      "medicationReference" : {
        "reference" : "urn:uuid:e5f952b8-1edf-5b5e-82f2-f7476270a091"
      },
      "subject" : {
        "reference" : "urn:uuid:96c59959-0693-5775-8050-809878a10e98",
        "display" : "John Murphy"
      },
      "performer" : [{
        "actor" : {
          "reference" : "urn:uuid:5c04d66b-bf19-525c-a27f-5ae9fae4cc82",
          "display" : "Niamh Brennan"
        }
      }],
      "authorizingPrescription" : [{
        "reference" : "urn:uuid:2496bf0b-93dc-56c7-b20d-7a8d5e2101f4",
        "display" : "PCRS-RX-2024-002001"
      }],
      "type" : {
        "coding" : [{
          "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
          "code" : "RFP",
          "display" : "Refill - Part Fill"
        }]
      },
      "quantity" : {
        "value" : 30,
        "unit" : "tablets",
        "system" : "http://unitsofmeasure.org",
        "code" : "{tablet}"
      },
      "daysSupply" : {
        "value" : 30,
        "unit" : "days",
        "system" : "http://unitsofmeasure.org",
        "code" : "d"
      },
      "whenPrepared" : "2024-08-15T11:00:00+01:00",
      "whenHandedOver" : "2024-08-15T11:10:00+01:00",
      "dosageInstruction" : [{
        "text" : "Take one 20mg tablet once daily at night"
      }],
      "substitution" : {
        "wasSubstituted" : false
      }
    }
  }]
}