Medication Prescription and Delivery (MPD)
0.1.0 - ci-build International flag

Medication Prescription and Delivery (MPD), published by Integrating the Healthcare Enterprise (IHE). This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/IHE/pharm-mpd/ and changes regularly. See the Directory of published versions

Logical Model: MedicationDispensation - JSON Profile

Active as of 2024-10-26

JSON representation of the MedicationDispensation logical model.

Raw json | Download

{
  "resourceType" : "StructureDefinition",
  "id" : "MedicationDispensation",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition MedicationDispensation</b></p><a name=\"MedicationDispensation\"> </a><a name=\"hcMedicationDispensation\"> </a><a name=\"MedicationDispensation-en-US\"> </a><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;\"><tr style=\"border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top\"><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"The logical name of the element\">Name</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Information about the use of the element\">Flags</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Minimum and Maximum # of times the element can appear in the instance\">Card.</a></th><th style=\"width: 100px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Reference to the type of the element\">Type</a></th><th style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Additional information about the element\">Description &amp; Constraints</a><span style=\"float: right\"><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/></a></span></th></tr><tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation\" title=\"Logical model for medication dispensation (based on request or independently)\">MedicationDispensation</a><a name=\"MedicationDispensation\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><span style=\"opacity: 0.5\">0</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">*</span></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/types.html#Base\">Base</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Medication dispensation (model)<br/><span style=\"font-weight:bold\">Instances of this logical model are not marked to be the target of a Reference</span></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.identifier\" title=\"Identifier for the dispense\">identifier</a><a name=\"MedicationDispensation.identifier\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..*</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-InstanceIdentifier.html\" title=\"Element\">II</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Identifier for the dispense<br/></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.patient\" title=\"The person for whom the medication is prescribed/ordered\">patient</a><a name=\"MedicationDispensation.patient\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/references.html\">Reference</a>(<a href=\"StructureDefinition-PatientBasic.html\">Patient (model)</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">The person for whom the medication is prescribed/ordered</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.receiver\" title=\"Identification of the person who received the dispensed medication, especially when it was not the patient\">receiver</a><a name=\"MedicationDispensation.receiver\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/references.html\">Reference</a>(<a href=\"StructureDefinition-PatientBasic.html\">Patient (model)</a> | <a href=\"StructureDefinition-PractitionerBasic.html\">Practitioner (model)</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Identification of the person who received the dispensed medication, especially when it was not the patient</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.dispenser\" title=\"The person who dispensed the product, and takes the responsibility of the dispensation\">dispenser</a><a name=\"MedicationDispensation.dispenser\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/references.html\">Reference</a>(<a href=\"StructureDefinition-PractitionerBasic.html\">Practitioner (model)</a> | <a href=\"http://hl7.org/fhir/R5/organization.html\">Organization</a> | <a href=\"http://hl7.org/fhir/R5/device.html\">Device</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">The person who dispensed the product, and takes the responsibility of the dispensation</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.relatedRequest\" title=\"Prescription/request/order the dispense is related to\">relatedRequest</a><a name=\"MedicationDispensation.relatedRequest\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..*</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/references.html\">Reference</a>(<a href=\"StructureDefinition-MedicationPrescription.html\">Medication prescription (model)</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Prescription/request/order the dispense is related to<br/></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.medication\" title=\"Exact dispensed product\">medication</a><a name=\"MedicationDispensation.medication\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/references.html\">Reference</a>(<a href=\"StructureDefinition-MedicinalProductLM.html\">Medicinal product (model)</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Exact dispensed product</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.dispensedQuantity\" title=\"Number of dispensed packages if the pack size is known, or number of smaller items/units\">dispensedQuantity</a><a name=\"MedicationDispensation.dispensedQuantity\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-PQ.html\" title=\"Element\">PQ</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Number of dispensed packages if the pack size is known, or number of smaller items/units</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.timeOfDispensation\" title=\"Date and time of dispensation\">timeOfDispensation</a><a name=\"MedicationDispensation.timeOfDispensation\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-DT.html\" title=\"Element\">DT</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Date and time of dispensation</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.substitution\" title=\"Question: is this relevant? It is in eHDSI dispensation.\">substitution</a><a name=\"MedicationDispensation.substitution\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/types.html#BackboneElement\">BackboneElement</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Indicated whether substitution was made by the dispenser</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck110.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.substitution.substitutionOccurred\" title=\"Question: is this relevant? It is in eHDSI dispensation.\">substitutionOccurred</a><a name=\"MedicationDispensation.substitution.substitutionOccurred\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-BL.html\" title=\"Element\">BL</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Indicated whether substitution was made by the dispenser</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vline.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.substitution.substitutionType\" title=\"Question: is this relevant? It is in eHDSI dispensation.\">substitutionType</a><a name=\"MedicationDispensation.substitution.substitutionType\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-CD.html\" title=\"Element\">CD</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Indicated whether substitution was made by the dispenser</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.status\" title=\"Status of the dispensation\">status</a><a name=\"MedicationDispensation.status\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">1..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-CD.html\" title=\"Element\">CD</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Status of the dispensation</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.statusReason\" title=\"Reason for the current status of dispensation, for example the reason why the dispensation was made invalid\">statusReason</a><a name=\"MedicationDispensation.statusReason\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..*</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-CD.html\" title=\"Element\">CD</a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Reason for the current status of dispensation, for example the reason why the dispensation was made invalid<br/></td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white\"><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_datatype.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.statusReasonText\" title=\"Textual reason for the current status of dispensation\">statusReasonText</a><a name=\"MedicationDispensation.statusReasonText\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..1</td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"https://build.fhir.org/ig/IHE/datatypes/StructureDefinition-ST.html\" title=\"Element\">ST</a></td><td style=\"vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Textual reason for the current status of dispensation</td></tr>\r\n<tr style=\"border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7\"><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck00.png)\" class=\"hierarchy\"><img src=\"tbl_spacer.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"tbl_vjoin_end.png\" alt=\".\" style=\"background-color: inherit\" class=\"hierarchy\"/><img src=\"icon_reference.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Reference to another Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-MedicationDispensation-definitions.html#MedicationDispensation.usageInstructions\" title=\"Dosaging and administration instructions\">usageInstructions</a><a name=\"MedicationDispensation.usageInstructions\"> </a></td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"/><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">0..*</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\"><a href=\"http://hl7.org/fhir/R5/references.html\">Reference</a>(<a href=\"StructureDefinition-DosagingInformation.html\">Dosaging (model)</a>)</td><td style=\"vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px\" class=\"hierarchy\">Dosaging and administration instructions<br/></td></tr>\r\n<tr><td colspan=\"5\" class=\"hierarchy\"><br/><a href=\"https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views\" title=\"Legend for this format\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3goXBCwdPqAP0wAAAldJREFUOMuNk0tIlFEYhp9z/vE2jHkhxXA0zJCMitrUQlq4lnSltEqCFhFG2MJFhIvIFpkEWaTQqjaWZRkp0g26URZkTpbaaOJkDqk10szoODP//7XIMUe0elcfnPd9zsfLOYplGrpRwZaqTtw3K7PtGem7Q6FoidbGgqHVy/HRb669R+56zx7eRV1L31JGxYbBtjKK93cxeqfyQHbehkZbUkK20goELEuIzEd+dHS+qz/Y8PTSif0FnGkbiwcAjHaU1+QWOptFiyCLp/LnKptpqIuXHx6rbR26kJcBX3yLgBfnd7CxwJmflpP2wUg0HIAoUUpZBmKzELGWcN8nAr6Gpu7tLU/CkwAaoKTWRSQyt89Q8w6J+oVQkKnBoblH7V0PPvUOvDYXfopE/SJmALsxnVm6LbkotrUtNowMeIrVrBcBpaMmdS0j9df7abpSuy7HWehwJdt1lhVwi/J58U5beXGAF6c3UXLycw1wdFklArBn87xdh0ZsZtArghBdAA3+OEDVubG4UEzP6x1FOWneHh2VDAHBAt80IbdXDcesNoCvs3E5AFyNSU5nbrDPZpcUEQQTFZiEVx+51fxMhhyJEAgvlriadIJZZksRuwBYMOPBbO3hePVVqgEJhFeUuFLhIPkRP6BQLIBrmMenujm/3g4zc398awIe90Zb5A1vREALqneMcYgP/xVQWlG+Ncu5vgwwlaUNx+3799rfe96u9K0JSDXcOzOTJg4B6IgmXfsygc7/Bvg9g9E58/cDVmGIBOP/zT8Bz1zqWqpbXIsd0O9hajXfL6u4BaOS6SeWAAAAAElFTkSuQmCC\" alt=\"doco\" style=\"background-color: inherit\"/> Documentation for this format</a></td></tr></table></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode" : "can-be-target"
    }
  ],
  "url" : "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationDispensation",
  "version" : "0.1.0",
  "name" : "MedicationDispensation",
  "title" : "Medication dispensation (model)",
  "status" : "active",
  "date" : "2024-10-26T04:02:11+00:00",
  "publisher" : "Integrating the Healthcare Enterprise (IHE)",
  "contact" : [
    {
      "name" : "Integrating the Healthcare Enterprise (IHE)",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://ihe.net"
        },
        {
          "system" : "email",
          "value" : "secretary@ihe.net"
        }
      ]
    },
    {
      "name" : "Jose Costa Teixeira",
      "telecom" : [
        {
          "system" : "email",
          "value" : "jose.a.teixeira@gmail.com",
          "use" : "work"
        }
      ]
    }
  ],
  "description" : "Logical model for medication dispensation (based on request or independently)",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "copyright" : "IHE http://www.ihe.net/Governance/#Intellectual_Property",
  "fhirVersion" : "5.0.0",
  "mapping" : [
    {
      "identity" : "rim",
      "uri" : "http://hl7.org/v3",
      "name" : "RIM Mapping"
    }
  ],
  "kind" : "logical",
  "abstract" : false,
  "type" : "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationDispensation",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation" : "specialization",
  "snapshot" : {
    "element" : [
      {
        "id" : "MedicationDispensation",
        "path" : "MedicationDispensation",
        "short" : "Medication dispensation (model)",
        "definition" : "Logical model for medication dispensation (based on request or independently)",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Base",
          "min" : 0,
          "max" : "*"
        },
        "isModifier" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "MedicationDispensation.identifier",
        "path" : "MedicationDispensation.identifier",
        "short" : "Identifier for the dispense",
        "definition" : "Identifier for the dispense",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "MedicationDispensation.identifier",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/InstanceIdentifier"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.patient",
        "path" : "MedicationDispensation.patient",
        "short" : "The person for whom the medication is prescribed/ordered",
        "definition" : "The person for whom the medication is prescribed/ordered",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.patient",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PatientBasic"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.receiver",
        "path" : "MedicationDispensation.receiver",
        "short" : "Identification of the person who received the dispensed medication, especially when it was not the patient",
        "definition" : "Identification of the person who received the dispensed medication, especially when it was not the patient",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.receiver",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PatientBasic"🔗 ,
              "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PractitionerBasic"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.dispenser",
        "path" : "MedicationDispensation.dispenser",
        "short" : "The person who dispensed the product, and takes the responsibility of the dispensation",
        "definition" : "The person who dispensed the product, and takes the responsibility of the dispensation",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.dispenser",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PractitionerBasic"🔗 ,
              "http://hl7.org/fhir/StructureDefinition/Organization"🔗 ,
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.relatedRequest",
        "path" : "MedicationDispensation.relatedRequest",
        "short" : "Prescription/request/order the dispense is related to",
        "definition" : "Prescription/request/order the dispense is related to",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "MedicationDispensation.relatedRequest",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationPrescription"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.medication",
        "path" : "MedicationDispensation.medication",
        "short" : "Exact dispensed product",
        "definition" : "Exact dispensed product",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.medication",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicinalProductLM"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.dispensedQuantity",
        "path" : "MedicationDispensation.dispensedQuantity",
        "short" : "Number of dispensed packages if the pack size is known, or number of smaller items/units",
        "definition" : "Number of dispensed packages if the pack size is known, or number of smaller items/units",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.dispensedQuantity",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/PQ"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.timeOfDispensation",
        "path" : "MedicationDispensation.timeOfDispensation",
        "short" : "Date and time of dispensation",
        "definition" : "Date and time of dispensation",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.timeOfDispensation",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/DT"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution",
        "path" : "MedicationDispensation.substitution",
        "short" : "Indicated whether substitution was made by the dispenser",
        "definition" : "Question: is this relevant? It is in eHDSI dispensation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.substitution",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ],
        "constraint" : [
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.id",
        "path" : "MedicationDispensation.substitution.id",
        "representation" : [
          "xmlAttr"
        ],
        "short" : "Unique id for inter-element referencing",
        "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "Element.id",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl" : "id"
              }
            ],
            "code" : "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition" : [
          "ele-1"
        ],
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.extension",
        "path" : "MedicationDispensation.substitution.extension",
        "slicing" : {
          "discriminator" : [
            {
              "type" : "value",
              "path" : "url"
            }
          ],
          "description" : "Extensions are always sliced by (at least) url",
          "rules" : "open"
        },
        "short" : "Additional content defined by implementations",
        "definition" : "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias" : [
          "extensions",
          "user content"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "Element.extension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "constraint" : [
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier" : false,
        "isSummary" : false,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "n/a"
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.modifierExtension",
        "path" : "MedicationDispensation.substitution.modifierExtension",
        "short" : "Extensions that cannot be ignored even if unrecognized",
        "definition" : "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment" : "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements" : "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
        "alias" : [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "BackboneElement.modifierExtension",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Extension"
          }
        ],
        "constraint" : [
          {
            "key" : "ele-1",
            "severity" : "error",
            "human" : "All FHIR elements must have a @value or children",
            "expression" : "hasValue() or (children().count() > id.count())",
            "source" : "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key" : "ext-1",
            "severity" : "error",
            "human" : "Must have either extensions or value[x], not both",
            "expression" : "extension.exists() != value.exists()",
            "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier" : true,
        "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary" : true,
        "mapping" : [
          {
            "identity" : "rim",
            "map" : "N/A"
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.substitutionOccurred",
        "path" : "MedicationDispensation.substitution.substitutionOccurred",
        "short" : "Indicated whether substitution was made by the dispenser",
        "definition" : "Question: is this relevant? It is in eHDSI dispensation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.substitution.substitutionOccurred",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/BL"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.substitutionType",
        "path" : "MedicationDispensation.substitution.substitutionType",
        "short" : "Indicated whether substitution was made by the dispenser",
        "definition" : "Question: is this relevant? It is in eHDSI dispensation.",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.substitution.substitutionType",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/CD"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.status",
        "path" : "MedicationDispensation.status",
        "short" : "Status of the dispensation",
        "definition" : "Status of the dispensation",
        "min" : 1,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.status",
          "min" : 1,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/CD"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.statusReason",
        "path" : "MedicationDispensation.statusReason",
        "short" : "Reason for the current status of dispensation, for example the reason why the dispensation was made invalid",
        "definition" : "Reason for the current status of dispensation, for example the reason why the dispensation was made invalid",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "MedicationDispensation.statusReason",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/CD"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.statusReasonText",
        "path" : "MedicationDispensation.statusReasonText",
        "short" : "Textual reason for the current status of dispensation",
        "definition" : "Textual reason for the current status of dispensation",
        "min" : 0,
        "max" : "1",
        "base" : {
          "path" : "MedicationDispensation.statusReasonText",
          "min" : 0,
          "max" : "1"
        },
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/ST"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.usageInstructions",
        "path" : "MedicationDispensation.usageInstructions",
        "short" : "Dosaging and administration instructions",
        "definition" : "Dosaging and administration instructions",
        "min" : 0,
        "max" : "*",
        "base" : {
          "path" : "MedicationDispensation.usageInstructions",
          "min" : 0,
          "max" : "*"
        },
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/DosagingInformation"
            ]
          }
        ]
      }
    ]
  },
  "differential" : {
    "element" : [
      {
        "id" : "MedicationDispensation",
        "path" : "MedicationDispensation",
        "short" : "Medication dispensation (model)",
        "definition" : "Logical model for medication dispensation (based on request or independently)"
      },
      {
        "id" : "MedicationDispensation.identifier",
        "path" : "MedicationDispensation.identifier",
        "short" : "Identifier for the dispense",
        "definition" : "Identifier for the dispense",
        "min" : 0,
        "max" : "*",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/InstanceIdentifier"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.patient",
        "path" : "MedicationDispensation.patient",
        "short" : "The person for whom the medication is prescribed/ordered",
        "definition" : "The person for whom the medication is prescribed/ordered",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PatientBasic"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.receiver",
        "path" : "MedicationDispensation.receiver",
        "short" : "Identification of the person who received the dispensed medication, especially when it was not the patient",
        "definition" : "Identification of the person who received the dispensed medication, especially when it was not the patient",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PatientBasic"🔗 ,
              "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PractitionerBasic"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.dispenser",
        "path" : "MedicationDispensation.dispenser",
        "short" : "The person who dispensed the product, and takes the responsibility of the dispensation",
        "definition" : "The person who dispensed the product, and takes the responsibility of the dispensation",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/PractitionerBasic"🔗 ,
              "http://hl7.org/fhir/StructureDefinition/Organization"🔗 ,
              "http://hl7.org/fhir/StructureDefinition/Device"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.relatedRequest",
        "path" : "MedicationDispensation.relatedRequest",
        "short" : "Prescription/request/order the dispense is related to",
        "definition" : "Prescription/request/order the dispense is related to",
        "min" : 0,
        "max" : "*",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationPrescription"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.medication",
        "path" : "MedicationDispensation.medication",
        "short" : "Exact dispensed product",
        "definition" : "Exact dispensed product",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicinalProductLM"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.dispensedQuantity",
        "path" : "MedicationDispensation.dispensedQuantity",
        "short" : "Number of dispensed packages if the pack size is known, or number of smaller items/units",
        "definition" : "Number of dispensed packages if the pack size is known, or number of smaller items/units",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/PQ"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.timeOfDispensation",
        "path" : "MedicationDispensation.timeOfDispensation",
        "short" : "Date and time of dispensation",
        "definition" : "Date and time of dispensation",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/DT"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution",
        "path" : "MedicationDispensation.substitution",
        "short" : "Indicated whether substitution was made by the dispenser",
        "definition" : "Question: is this relevant? It is in eHDSI dispensation.",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "BackboneElement"
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.substitutionOccurred",
        "path" : "MedicationDispensation.substitution.substitutionOccurred",
        "short" : "Indicated whether substitution was made by the dispenser",
        "definition" : "Question: is this relevant? It is in eHDSI dispensation.",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/BL"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.substitution.substitutionType",
        "path" : "MedicationDispensation.substitution.substitutionType",
        "short" : "Indicated whether substitution was made by the dispenser",
        "definition" : "Question: is this relevant? It is in eHDSI dispensation.",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/CD"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.status",
        "path" : "MedicationDispensation.status",
        "short" : "Status of the dispensation",
        "definition" : "Status of the dispensation",
        "min" : 1,
        "max" : "1",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/CD"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.statusReason",
        "path" : "MedicationDispensation.statusReason",
        "short" : "Reason for the current status of dispensation, for example the reason why the dispensation was made invalid",
        "definition" : "Reason for the current status of dispensation, for example the reason why the dispensation was made invalid",
        "min" : 0,
        "max" : "*",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/CD"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.statusReasonText",
        "path" : "MedicationDispensation.statusReasonText",
        "short" : "Textual reason for the current status of dispensation",
        "definition" : "Textual reason for the current status of dispensation",
        "min" : 0,
        "max" : "1",
        "type" : [
          {
            "code" : "Element",
            "profile" : [
              🔗 "https://profiles.ihe.net/Domain/LogicalDatatypes/StructureDefinition/ST"
            ]
          }
        ]
      },
      {
        "id" : "MedicationDispensation.usageInstructions",
        "path" : "MedicationDispensation.usageInstructions",
        "short" : "Dosaging and administration instructions",
        "definition" : "Dosaging and administration instructions",
        "min" : 0,
        "max" : "*",
        "type" : [
          {
            "code" : "Reference",
            "targetProfile" : [
              🔗 "http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/DosagingInformation"
            ]
          }
        ]
      }
    ]
  }
}