{
  "resourceType": "StructureDefinition",
  "id": "zib-Dispense",
  "url": "http://nictiz.nl/fhir/StructureDefinition/zib-Dispense",
  "version": "2.2.4",
  "name": "Zib Dispense",
  "title": "HCIM Dispense",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile is based on the Dutch Health and Care Information model (Dutch: Zorginformatiebouwsteen or ZIB) MedicationDispense version 2.0, year 2017.\r\nA dispense is the delivery of an amount of medicine to the patient, their administrator or their representative.",
  "purpose": "The goal of the dispense is to provide insight into which products are delivered by the pharmacist to the patient (or their representative)",
  "copyright": "CC0",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "hcim-medicationdispense-v2.0-2017EN",
      "uri": "https://zibs.nl/wiki/MedicationDispense-v2.0(2017EN)",
      "name": "HCIM MedicationDispense-v2.0(2017EN)"
    },
    {
      "identity": "hcim-dispense-v1.0-2017EN",
      "uri": "https://zibs.nl/wiki/Dispense-v1.0(2017EN)",
      "name": "HCIM Dispense-v1.0(2017EN)",
      "comment": "This HCIM has been replaced with MedicationDispense-v2.0(2017EN) that only changes the HCIM name. This mapping is added becasue the old name is mostly used throughout the implementation guides."
    },
    {
      "identity": "hcim-basicelements-v1.0-2017EN",
      "uri": "https://zibs.nl/wiki/BasicElements-v1.0(2017EN)",
      "name": "HCIM BasicElements-v1.0(2017EN)"
    },
    {
      "identity": "Medication-Process-v09",
      "uri": "https://decor.nictiz.nl/medicatieproces/mp-html-20181220T121121/ds-2.16.840.1.113883.2.4.3.11.60.20.77.1.3-2016-06-01T000000.html",
      "name": "Medication Process v09",
      "comment": "Language of Medication Process is Dutch."
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationDispense",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationDispense",
        "path": "MedicationDispense",
        "short": "MedicationDispense",
        "alias": [
          "Verstrekking"
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20270",
            "comment": "MedicationDispense"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20270",
            "comment": "MedicationDispense"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension",
        "path": "MedicationDispense.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationDispense.extension:distributionForm",
        "path": "MedicationDispense.extension",
        "sliceName": "distributionForm",
        "short": "DistributionForm",
        "definition": "Distribution form.",
        "comment": "For example through Baxter or seperate box.",
        "alias": [
          "Distributievorm"
        ],
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Dispense-DistributionForm"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20927",
            "comment": "DistributionForm"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20927",
            "comment": "DistributionForm"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:distributionForm.valueCodeableConcept:valueCodeableConcept",
        "path": "MedicationDispense.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "binding": {
          "strength": "extensible",
          "description": "VerstrekkingDistributievormCodelijst",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.9.1--20171231000000",
            "display": "MedicatieverstrekkingDistributievormCodelijst"
          }
        }
      },
      {
        "id": "MedicationDispense.extension:requestDate",
        "path": "MedicationDispense.extension",
        "sliceName": "requestDate",
        "short": "RequestDate",
        "definition": "The time at which a pharmacist records an intended dispense.",
        "alias": [
          "Aanschrijfdatum"
        ],
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Dispense-RequestDate"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.2250",
            "comment": "RequestDate"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.2250",
            "comment": "RequestDate"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:additionalInformation",
        "path": "MedicationDispense.extension",
        "sliceName": "additionalInformation",
        "short": "DispenseAdditionalInformation",
        "definition": "Additional information includes details on the structure of the dispense. This can be e.g. a reason for deviating from the dispense request. For now, this list is used. This list will be replaced by a thesaurus in the G standard at a later stage.",
        "alias": [
          "VerstrekkingAanvullendeInformatie"
        ],
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-AdditionalInformation"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.23285",
            "comment": "MedicationDispenseAdditionalInformation"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.23285",
            "comment": "MedicationDispenseAdditionalInformation"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:additionalInformation.valueCodeableConcept:valueCodeableConcept",
        "path": "MedicationDispense.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "example": [
          {
            "label": "Example of DispenseAdditionalInformation",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "urn:oid:2.16.840.1.113883.2.4.3.11.60.20.77.5.2.3.2052",
                  "code": "1",
                  "display": "Aantal bewust gewijzigd"
                }
              ]
            }
          }
        ],
        "binding": {
          "strength": "extensible",
          "description": "VerstrekkingAanvullendeInformatieCodelijst",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.9.2--20171231000000",
            "display": "MedicatieverstrekkingAanvullendeInformatieCodelijst"
          }
        }
      },
      {
        "id": "MedicationDispense.extension:medicationTreatment",
        "path": "MedicationDispense.extension",
        "sliceName": "medicationTreatment",
        "short": "Medication Treatment",
        "definition": "This extension is to describe which overarching medication treatment this information is part of. This is done by the use of an identifier of that medication treatment.",
        "comment": "No HCIM concept is available for this element. Therefore a mapping to the relevant element Medication Process data element is provided.",
        "alias": [
          "Medicamenteuze behandeling"
        ],
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-MedicationTreatment"
          }
        ],
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22092",
            "comment": "Medicamenteuze behandeling"
          }
        ]
      },
      {
        "id": "MedicationDispense.identifier",
        "path": "MedicationDispense.identifier",
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.6",
            "comment": "IdentificationNumber"
          }
        ]
      },
      {
        "id": "MedicationDispense.partOf",
        "path": "MedicationDispense.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Procedure"
          }
        ]
      },
      {
        "id": "MedicationDispense.category",
        "path": "MedicationDispense.category",
        "min": 1
      },
      {
        "id": "MedicationDispense.category.coding",
        "path": "MedicationDispense.category.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode",
        "path": "MedicationDispense.category.coding",
        "sliceName": "DispenseCode",
        "short": "DispenseCode",
        "definition": "Category SNOMED code used for indexing/retrieval of the HCIM Dispense. The SNOMED code 373784005 for this resource is stated in the Medication Process v09."
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode.system",
        "path": "MedicationDispense.category.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode.code",
        "path": "MedicationDispense.category.coding.code",
        "fixedCode": "373784005"
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationDispense.category.coding.display",
        "defaultValueString": "Dispensing medication (procedure)"
      },
      {
        "id": "MedicationDispense.medication[x]:medicationReference",
        "path": "MedicationDispense.medicationReference",
        "sliceName": "medicationReference",
        "short": "DispensedMedicine",
        "definition": "The dispensed medicine.",
        "comment": "-",
        "alias": [
          "VerstrekGeneesmiddel"
        ],
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Product"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.22259",
            "comment": "DispensedMedicine"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.22259",
            "comment": "DispensedMedicine"
          }
        ]
      },
      {
        "id": "MedicationDispense.subject",
        "path": "MedicationDispense.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.11",
            "comment": "Subject"
          }
        ]
      },
      {
        "id": "MedicationDispense.context",
        "path": "MedicationDispense.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer",
        "path": "MedicationDispense.performer",
        "short": "Supplier",
        "definition": "In almost all cases, the supplier will be a pharmacist. It could also be supplied by a webshop (in case of an online order), a drug store or a foreign pharmacist.",
        "alias": [
          "Verstrekker"
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20858",
            "comment": "Supplier"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20858",
            "comment": "Supplier"
          },
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.7",
            "comment": "Author"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.actor",
        "path": "MedicationDispense.performer.actor",
        "comment": "The health professional's speciality, role, and organization are captured and communicated through the PractitionerRole Resource based on the nl-core-practitionerrole profile.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-MedicalDeviceProduct"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.actor.extension",
        "path": "MedicationDispense.performer.actor.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationDispense.performer.actor.extension:practitionerRole",
        "path": "MedicationDispense.performer.actor.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.onBehalfOf",
        "path": "MedicationDispense.performer.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          }
        ]
      },
      {
        "id": "MedicationDispense.authorizingPrescription",
        "path": "MedicationDispense.authorizingPrescription",
        "short": "DispenseRequest",
        "definition": "Relationship to the dispense request.",
        "alias": [
          "Verstrekkingsverzoek"
        ],
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-DispenseRequest"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.22396",
            "comment": "DispenseRequest"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.22396",
            "comment": "DispenseRequest"
          }
        ]
      },
      {
        "id": "MedicationDispense.quantity",
        "path": "MedicationDispense.quantity",
        "short": "DispensedAmount",
        "definition": "Number of units of the product (measured based on the relevant product code) supplied.",
        "alias": [
          "VerstrekteHoeveelheid"
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20923",
            "comment": "DispensedAmount"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20923",
            "comment": "DispensedAmount"
          }
        ]
      },
      {
        "id": "MedicationDispense.daysSupply",
        "path": "MedicationDispense.daysSupply",
        "short": "DurationOfUse",
        "definition": "The period in which the medication is expected to be used. The value depends on the dose and the dispensed amount.",
        "alias": [
          "VerbruiksDuur"
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20924",
            "comment": "DurationOfUse"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20924",
            "comment": "DurationOfUse"
          }
        ]
      },
      {
        "id": "MedicationDispense.whenHandedOver",
        "path": "MedicationDispense.whenHandedOver",
        "short": "DispenseDateTime",
        "definition": "The time at which the medicine was supplied. The date and time at which the medicine is delivered.  \r\nNote: this is the time at which the medicine was delivered to the patient (or their administrator/representative) and not the request date.",
        "alias": [
          "VerstrekkingsDatumTijd"
        ],
        "example": [
          {
            "label": "Example of DispenseDateTime",
            "valueDateTime": "2017-05-17"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20272",
            "comment": "MedicationDispenseDateTime"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20272",
            "comment": "MedicationDispenseDateTime"
          },
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.14",
            "comment": "DateTime"
          }
        ]
      },
      {
        "id": "MedicationDispense.destination",
        "path": "MedicationDispense.destination",
        "short": "DispenseLocation",
        "definition": "Dispense location.",
        "alias": [
          "Afleverlocatie"
        ],
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-location"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.20925",
            "comment": "DispenseLocation. Use Location.name."
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.20925",
            "comment": "DispenseLocation. Use Location.name."
          }
        ]
      },
      {
        "id": "MedicationDispense.receiver",
        "path": "MedicationDispense.receiver",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-practitioner"
          }
        ]
      },
      {
        "id": "MedicationDispense.receiver.extension",
        "path": "MedicationDispense.receiver.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationDispense.receiver.extension:practitionerRole",
        "path": "MedicationDispense.receiver.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "MedicationDispense.note",
        "path": "MedicationDispense.note",
        "short": "Comment",
        "definition": "Comments or additional information on the dispense.\r\nAdditional information includes details on the structure of the dispense. This can be e.g. a reason for deviating from the dispense request.",
        "alias": [
          "Toelichting",
          "Aanvullende informatie"
        ],
        "mapping": [
          {
            "identity": "hcim-medicationdispense-v2.0-2017EN",
            "map": "NL-CM:9.9.22276",
            "comment": "Comment"
          },
          {
            "identity": "hcim-dispense-v1.0-2017EN",
            "map": "NL-CM:9.9.22276",
            "comment": "Comment"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction",
        "path": "MedicationDispense.dosageInstruction",
        "definition": "Dosage instructions are part of an AdministrationAgreement",
        "max": "0"
      }
    ]
  }
}