{
  "resourceType": "StructureDefinition",
  "id": "zib-DispenseRequest",
  "url": "http://nictiz.nl/fhir/StructureDefinition/zib-DispenseRequest",
  "version": "2.2.4",
  "name": "Zib DispenseRequest",
  "title": "HCIM DispenseRequest",
  "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 models (Dutch: Zorginformatiebouwsteen or ZIB) DispenseRequest version 1.0.1, year 2017. The dispense request is the request of a prescriber to the pharmacist to dispense medication(s) to the patient to support current medication agreements. The prescriber asks them to dispense a certain amount of medicine or to dispense medicine(s) for a period of use.",
  "purpose": "The goal of the dispense request is for the pharmacist to supply the medicine so the patient has a sufficient amount.",
  "copyright": "CC0",
  "fhirVersion": "3.0.2",
  "mapping": [
    {
      "identity": "hcim-dispenserequest-v1.0.1-2017EN",
      "uri": "https://zibs.nl/wiki/DispenseRequest-v1.0.1(2017EN)",
      "name": "HCIM DispenseRequest-v1.0.1(2017EN)"
    },
    {
      "identity": "hcim-timeinterval-v1.0-2017EN",
      "uri": "https://zibs.nl/wiki/TimeInterval-v1.0(2017EN)",
      "name": "HCIM TimeInterval-v1.0(2017EN)"
    },
    {
      "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": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest",
        "path": "MedicationRequest",
        "short": "MedicationDispenseRequest",
        "alias": [
          "Verstrekkingsverzoek"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.19963",
            "comment": "DispenseRequest"
          }
        ]
      },
      {
        "id": "MedicationRequest.extension",
        "path": "MedicationRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.extension:additionalWishes",
        "path": "MedicationRequest.extension",
        "sliceName": "additionalWishes",
        "short": "AdditionalWishes",
        "definition": "Logistics and other instructions such as: do not enter in GDS, urgent, purposeful deviation, etc",
        "alias": [
          "AanvullendeWensen"
        ],
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Medication-AdditionalInformation"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.22759",
            "comment": "AdditionalWishes"
          }
        ]
      },
      {
        "id": "MedicationRequest.extension:additionalWishes.valueCodeableConcept:valueCodeableConcept",
        "path": "MedicationRequest.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "binding": {
          "strength": "extensible",
          "description": "AanvullendeWensenCodelijst",
          "valueSetReference": {
            "reference": "http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.9.10.1--20171231000000",
            "display": "AanvullendeWensenCodelijst"
          }
        }
      },
      {
        "id": "MedicationRequest.extension:medicationTreatment",
        "path": "MedicationRequest.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": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.6",
            "comment": "IdentificationNumber"
          }
        ]
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "MedicationRequest.category",
        "path": "MedicationRequest.category",
        "min": 1
      },
      {
        "id": "MedicationRequest.category.coding",
        "path": "MedicationRequest.category.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.category.coding:DispenseRequestCode",
        "path": "MedicationRequest.category.coding",
        "sliceName": "DispenseRequestCode",
        "short": "DispenseRequestCode",
        "definition": "Category SNOMED code used for indexing/retrieval of the HCIM DispenseRequest. The SNOMED code 52711000146108 for this resource is stated in the Medication Process v09."
      },
      {
        "id": "MedicationRequest.category.coding:DispenseRequestCode.system",
        "path": "MedicationRequest.category.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationRequest.category.coding:DispenseRequestCode.code",
        "path": "MedicationRequest.category.coding.code",
        "fixedCode": "52711000146108"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationReference",
        "path": "MedicationRequest.medicationReference",
        "sliceName": "medicationReference",
        "short": "MedicineToBeDispensed",
        "definition": "The medicine to be dispensed.",
        "comment": "-",
        "alias": [
          "Geneesmiddel",
          "Product",
          "Medicatie",
          "TeVerstrekkenGeneesmiddel"
        ],
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Product"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.22249",
            "comment": "MedicineToBeDispensed"
          }
        ]
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.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": "MedicationRequest.context",
        "path": "MedicationRequest.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/zib-Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-episodeofcare"
          }
        ]
      },
      {
        "id": "MedicationRequest.authoredOn",
        "path": "MedicationRequest.authoredOn",
        "short": "DispenseRequestDate",
        "definition": "Time at which the dispense request is entered.",
        "alias": [
          "VerstrekkingsverzoekDatum"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.20060",
            "comment": "DispenseRequestDate"
          }
        ]
      },
      {
        "id": "MedicationRequest.requester.agent",
        "path": "MedicationRequest.requester.agent",
        "comment": "The health professional's specialty, 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://fhir.nl/fhir/StructureDefinition/nl-core-relatedperson"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.7",
            "comment": "Author"
          }
        ]
      },
      {
        "id": "MedicationRequest.requester.agent.extension",
        "path": "MedicationRequest.requester.agent.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.requester.agent.extension:practitionerRole",
        "path": "MedicationRequest.requester.agent.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf",
        "path": "MedicationRequest.requester.onBehalfOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://fhir.nl/fhir/StructureDefinition/nl-core-organization"
          }
        ]
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "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"
          }
        ]
      },
      {
        "id": "MedicationRequest.recorder.extension",
        "path": "MedicationRequest.recorder.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.recorder.extension:practitionerRole",
        "path": "MedicationRequest.recorder.extension",
        "sliceName": "practitionerRole",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/practitionerrole-reference"
          }
        ]
      },
      {
        "id": "MedicationRequest.note",
        "path": "MedicationRequest.note",
        "short": "Comment",
        "definition": "Explanation for the dispense request. This explanation can contain e.g. information on why a prescriber submits a dispense request that deviates from the norm, e.g. an extra dispense request needed because the patient has lost the medication",
        "alias": [
          "Toelichting"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.22274",
            "comment": "Comment"
          }
        ]
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest",
        "path": "MedicationRequest.dispenseRequest",
        "short": "DisenseRequest",
        "alias": [
          "Verstrekkingsverzoek"
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.extension",
        "path": "MedicationRequest.dispenseRequest.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationRequest.dispenseRequest.extension:dispenseLocation",
        "path": "MedicationRequest.dispenseRequest.extension",
        "sliceName": "dispenseLocation",
        "short": "DispenseLocation",
        "definition": "Dispense location.",
        "alias": [
          "Afleverlocatie"
        ],
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://nictiz.nl/fhir/StructureDefinition/zib-Dispense-Location"
          }
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.20068",
            "comment": "DispenseLocation. Use Location.name for the location string"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod",
        "path": "MedicationRequest.dispenseRequest.validityPeriod",
        "short": "PeriodOfUse",
        "definition": "During the approved period of use, the pharmacist has permission to dispense medicine so that the patient has a sufficient amount of medication. \r\nIn many cases, the approved period of use can be described by only an end date: the approved end date of use.",
        "alias": [
          "Verbruiksperiode"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.20062",
            "comment": "PeriodOfUse"
          },
          {
            "identity": "hcim-basicelements-v1.0-2017EN",
            "map": "NL-CM:0.0.14",
            "comment": "DateTime"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.start",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.start",
        "short": "StartDate",
        "alias": [
          "Ingangsdatum"
        ],
        "mapping": [
          {
            "identity": "hcim-timeinterval-v1.0-2017EN",
            "map": "NL-CM:20.3.2",
            "comment": "startDateTime"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.validityPeriod.end",
        "path": "MedicationRequest.dispenseRequest.validityPeriod.end",
        "short": "EndDate",
        "alias": [
          "Einddatum"
        ],
        "mapping": [
          {
            "identity": "hcim-timeinterval-v1.0-2017EN",
            "map": "NL-CM:20.3.3",
            "comment": "endDateTime"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "path": "MedicationRequest.dispenseRequest.numberOfRepeatsAllowed",
        "short": "NumberOfRefills",
        "definition": "The number of additional times the medication may be dispensed after the first time.  The total amount that may be dispensed is: (Number of refills + 1) x amount to be dispensed.",
        "alias": [
          "AantalHerhalingen"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.22120",
            "comment": "NumberOfRefills"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.quantity",
        "path": "MedicationRequest.dispenseRequest.quantity",
        "short": "Amount",
        "definition": "This is the number of units of the ordered product per dispense. \r\nThe number of refills indicates how often this amount is allowed to be dispensed.",
        "alias": [
          "TeVerstrekkenHoeveelheid"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.19964",
            "comment": "Amount"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "path": "MedicationRequest.dispenseRequest.expectedSupplyDuration",
        "short": "Duration",
        "alias": [
          "Duur"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.20062",
            "comment": "PeriodOfUse"
          }
        ]
      },
      {
        "id": "MedicationRequest.dispenseRequest.performer",
        "path": "MedicationRequest.dispenseRequest.performer",
        "short": "IntendedSupplier",
        "definition": "The intended supplier is a pharmacist.",
        "alias": [
          "BeoogdVerstrekker"
        ],
        "mapping": [
          {
            "identity": "hcim-dispenserequest-v1.0.1-2017EN",
            "map": "NL-CM:9.10.19966",
            "comment": "IntendedSupplier"
          }
        ]
      }
    ]
  }
}