{
  "resourceType": "StructureDefinition",
  "id": "mp612-dispensetofhirconversion-dispense",
  "url": "http://nictiz.nl/fhir/StructureDefinition/mp612-DispenseToFHIRConversion-Dispense",
  "version": "1.2.0",
  "name": "MP612 DispenseToFHIRConversion Dispense",
  "title": "MP612 DispenseToFHIRConversion Dispense",
  "status": "active",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "email",
          "value": "info@nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile is derived from the profile of the Dutch Health and Care Information models (Dutch: Zorginformatiebouwsteen or ZIB) MedicationDispense. release 2017.",
  "purpose": "This profile defines the FHIR response for HCIM Dispense of a Medicationproces V6.12 request on the LSP.",
  "copyright": "CC0",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "Medication-Process-v09",
      "uri": "https://decor.nictiz.nl/medicatieproces/mp-html-20181220T121121/tr-2.16.840.1.113883.2.4.3.11.60.20.77.4.162-2018-11-29T135611.html",
      "name": "Medication Process v09 - verstrekkingenvertaling"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationDispense",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-Dispense",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "MedicationDispense",
        "path": "MedicationDispense",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20270",
            "comment": "Verstrekking"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:distributionForm",
        "path": "MedicationDispense.extension",
        "sliceName": "distributionForm",
        "max": "0"
      },
      {
        "id": "MedicationDispense.extension:requestDate",
        "path": "MedicationDispense.extension",
        "sliceName": "requestDate",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22500",
            "comment": "Aanschrijfdatum"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:additionalInformation",
        "path": "MedicationDispense.extension",
        "sliceName": "additionalInformation",
        "max": "0"
      },
      {
        "id": "MedicationDispense.extension:medicationTreatment",
        "path": "MedicationDispense.extension",
        "sliceName": "medicationTreatment",
        "min": 1
      },
      {
        "id": "MedicationDispense.extension:medicationTreatment.valueIdentifier:valueIdentifier",
        "path": "MedicationDispense.extension.valueIdentifier",
        "sliceName": "valueIdentifier",
        "min": 1
      },
      {
        "id": "MedicationDispense.identifier",
        "path": "MedicationDispense.identifier",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20271",
            "comment": "Identificatie"
          }
        ]
      },
      {
        "id": "MedicationDispense.identifier.system",
        "path": "MedicationDispense.identifier.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.identifier.value",
        "path": "MedicationDispense.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationDispense.partOf",
        "path": "MedicationDispense.partOf",
        "max": "0"
      },
      {
        "id": "MedicationDispense.status",
        "path": "MedicationDispense.status",
        "max": "0"
      },
      {
        "id": "MedicationDispense.category.coding",
        "path": "MedicationDispense.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode",
        "path": "MedicationDispense.category.coding",
        "sliceName": "DispenseCode",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode.system",
        "path": "MedicationDispense.category.coding.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.category.coding:DispenseCode.code",
        "path": "MedicationDispense.category.coding.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.medicationReference:medicationReference",
        "path": "MedicationDispense.medicationReference",
        "sliceName": "medicationReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/mp612-DispenseToFHIRConversion-Product"
          }
        ],
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22259",
            "comment": "Verstrekt geneesmiddel"
          }
        ]
      },
      {
        "id": "MedicationDispense.subject",
        "path": "MedicationDispense.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/mp612-DispenseToFHIRConversion-Patient"
          }
        ]
      },
      {
        "id": "MedicationDispense.context",
        "path": "MedicationDispense.context",
        "max": "0"
      },
      {
        "id": "MedicationDispense.supportingInformation",
        "path": "MedicationDispense.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer",
        "path": "MedicationDispense.performer",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20858",
            "comment": "Verstrekker"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.actor",
        "path": "MedicationDispense.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://nictiz.nl/fhir/StructureDefinition/mp612-DispenseToFHIRConversion-Organization"
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.onBehalfOf",
        "path": "MedicationDispense.performer.onBehalfOf",
        "max": "0"
      },
      {
        "id": "MedicationDispense.authorizingPrescription",
        "path": "MedicationDispense.authorizingPrescription",
        "definition": "Relationship to the dispense request. Only a logical identifier could be known of the dispense request in MP-612, hence the 0..0 constrain on reference.",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22396",
            "comment": "Relatie naar verstrekkingsverzoek"
          }
        ]
      },
      {
        "id": "MedicationDispense.authorizingPrescription.reference",
        "path": "MedicationDispense.authorizingPrescription.reference",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type",
        "path": "MedicationDispense.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity",
        "path": "MedicationDispense.quantity",
        "min": 1,
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20923",
            "comment": "Verstrekte hoeveelheid"
          }
        ]
      },
      {
        "id": "MedicationDispense.quantity.value",
        "path": "MedicationDispense.quantity.value",
        "min": 1,
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22601",
            "comment": "Aantal"
          }
        ]
      },
      {
        "id": "MedicationDispense.quantity.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationDispense.quantity.unit",
        "min": 1,
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22602",
            "comment": "Eenheid"
          }
        ]
      },
      {
        "id": "MedicationDispense.quantity.system",
        "path": "MedicationDispense.quantity.system",
        "short": "G-Standaard thesaurus basiseenheden",
        "definition": "A value from the G-standaard (table 902).",
        "min": 1,
        "fixedUri": "urn:oid:2.16.840.1.113883.2.4.4.1.900.2"
      },
      {
        "id": "MedicationDispense.quantity.code",
        "path": "MedicationDispense.quantity.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply",
        "path": "MedicationDispense.daysSupply",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20924",
            "comment": "Verbruiksduur"
          }
        ]
      },
      {
        "id": "MedicationDispense.daysSupply.value",
        "path": "MedicationDispense.daysSupply.value",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply.unit",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationDispense.daysSupply.unit",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply.system",
        "path": "MedicationDispense.daysSupply.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.daysSupply.code",
        "path": "MedicationDispense.daysSupply.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.whenPrepared",
        "path": "MedicationDispense.whenPrepared",
        "max": "0"
      },
      {
        "id": "MedicationDispense.whenHandedOver",
        "path": "MedicationDispense.whenHandedOver",
        "min": 1,
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20272",
            "comment": "Datum"
          }
        ]
      },
      {
        "id": "MedicationDispense.destination",
        "path": "MedicationDispense.destination",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20925",
            "comment": "Afleverlocatie"
          }
        ]
      },
      {
        "id": "MedicationDispense.receiver",
        "path": "MedicationDispense.receiver",
        "max": "0"
      },
      {
        "id": "MedicationDispense.note",
        "path": "MedicationDispense.note",
        "max": "0"
      },
      {
        "id": "MedicationDispense.substitution",
        "path": "MedicationDispense.substitution",
        "max": "0"
      },
      {
        "id": "MedicationDispense.detectedIssue",
        "path": "MedicationDispense.detectedIssue",
        "max": "0"
      },
      {
        "id": "MedicationDispense.notDone",
        "path": "MedicationDispense.notDone",
        "max": "0"
      },
      {
        "id": "MedicationDispense.notDoneReason[x]",
        "path": "MedicationDispense.notDoneReason[x]",
        "max": "0"
      },
      {
        "id": "MedicationDispense.eventHistory",
        "path": "MedicationDispense.eventHistory",
        "max": "0"
      }
    ]
  }
}