{
  "resourceType": "StructureDefinition",
  "id": "mp612-dispensetofhirconversion-administrationagreement",
  "url": "http://nictiz.nl/fhir/StructureDefinition/mp612-DispenseToFHIRConversion-AdministrationAgreement",
  "version": "1.2.0",
  "name": "MP612 DispenseToFHIRConversion AdministrationAgreement",
  "title": "MP612 DispenseToFHIRConversion AdministrationAgreement",
  "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 model (Dutch: Zorginformatiebouwsteen or ZIB) MedicationAdministration, release 2017",
  "purpose": "This profile defines the FHIR response for HCIM AdministrationAgreement 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",
      "comment": "Language of Medication Process is Dutch."
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationDispense",
  "baseDefinition": "http://nictiz.nl/fhir/StructureDefinition/zib-AdministrationAgreement",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "MedicationDispense",
        "path": "MedicationDispense",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20132",
            "comment": "Toedieningsafspraak"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:authoredOn",
        "path": "MedicationDispense.extension",
        "sliceName": "authoredOn",
        "min": 1,
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-20133",
            "comment": "Afspraakdatum"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:agreementReason",
        "path": "MedicationDispense.extension",
        "sliceName": "agreementReason",
        "max": "0"
      },
      {
        "id": "MedicationDispense.extension:periodOfUse",
        "path": "MedicationDispense.extension",
        "sliceName": "periodOfUse",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22660",
            "comment": "Gebruiksperiode"
          }
        ]
      },
      {
        "id": "MedicationDispense.extension:usageDuration",
        "path": "MedicationDispense.extension",
        "sliceName": "usageDuration",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22660",
            "comment": "Maps naar \"Gebruikdsduur\" binnen het \"Gebruiksperiode\" concept"
          }
        ]
      },
      {
        "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.extension:copyIndicator",
        "path": "MedicationDispense.extension",
        "sliceName": "copyIndicator",
        "max": "0"
      },
      {
        "id": "MedicationDispense.modifierExtension:stopType",
        "path": "MedicationDispense.modifierExtension",
        "sliceName": "stopType",
        "max": "0"
      },
      {
        "id": "MedicationDispense.modifierExtension:repeatPeriodCyclicalSchedule",
        "path": "MedicationDispense.modifierExtension",
        "sliceName": "repeatPeriodCyclicalSchedule",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22622",
            "comment": "Herhaalperiode cyclisch schema"
          }
        ]
      },
      {
        "id": "MedicationDispense.identifier",
        "path": "MedicationDispense.identifier",
        "max": "0"
      },
      {
        "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:administrationAgreementCode",
        "path": "MedicationDispense.category.coding",
        "sliceName": "administrationAgreementCode",
        "min": 1
      },
      {
        "id": "MedicationDispense.category.coding:administrationAgreementCode.system",
        "path": "MedicationDispense.category.coding.system",
        "min": 1
      },
      {
        "id": "MedicationDispense.category.coding:administrationAgreementCode.code",
        "path": "MedicationDispense.category.coding.code",
        "min": 1
      },
      {
        "id": "MedicationDispense.category.coding:administrationAgreementCode.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationDispense.category.coding.display",
        "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-20237",
            "comment": "Geneesmiddel bij toedieningsafspraak"
          }
        ]
      },
      {
        "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-22097",
            "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",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type",
        "path": "MedicationDispense.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity",
        "path": "MedicationDispense.quantity",
        "max": "0"
      },
      {
        "id": "MedicationDispense.daysSupply",
        "path": "MedicationDispense.daysSupply",
        "max": "0"
      },
      {
        "id": "MedicationDispense.whenPrepared",
        "path": "MedicationDispense.whenPrepared",
        "max": "0"
      },
      {
        "id": "MedicationDispense.whenHandedOver",
        "path": "MedicationDispense.whenHandedOver",
        "max": "0"
      },
      {
        "id": "MedicationDispense.destination",
        "path": "MedicationDispense.destination",
        "max": "0"
      },
      {
        "id": "MedicationDispense.receiver",
        "path": "MedicationDispense.receiver",
        "max": "0"
      },
      {
        "id": "MedicationDispense.note",
        "path": "MedicationDispense.note",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction",
        "path": "MedicationDispense.dosageInstruction",
        "min": 1,
        "max": "1",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22098",
            "comment": "Gebruiksinstructie"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.sequence",
        "path": "MedicationDispense.dosageInstruction.sequence",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22624",
            "comment": "Volgnummer"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.text",
        "path": "MedicationDispense.dosageInstruction.text",
        "min": 1,
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22619",
            "comment": "Omschrijving"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22621",
            "comment": "Aanvullende instructie"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.patientInstruction",
        "path": "MedicationDispense.dosageInstruction.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing",
        "path": "MedicationDispense.dosageInstruction.timing",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22631",
            "comment": "Toedieningsschema"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x]",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.bounds[x]",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22625",
            "comment": "Doseerduur"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.frequency",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.frequency",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22632",
            "comment": "Frequentie"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.period",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.period",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22632",
            "comment": "When frequency is used, set \"exact\" to false"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.periodUnit",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.periodUnit",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22634",
            "comment": "Tijdseenheid"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing.repeat.timeOfDay",
        "path": "MedicationDispense.dosageInstruction.timing.repeat.timeOfDay",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22636",
            "comment": "Toedientijd"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeededCodeableConcept:asNeededCodeableConcept",
        "path": "MedicationDispense.dosageInstruction.asNeededCodeableConcept",
        "sliceName": "asNeededCodeableConcept",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22639",
            "comment": "Zo nodig"
          },
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22640",
            "comment": "Criterium"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.site",
        "path": "MedicationDispense.dosageInstruction.site",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.route",
        "path": "MedicationDispense.dosageInstruction.route",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22620",
            "comment": "Toedieningsweg"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.dose[x]",
        "path": "MedicationDispense.dosageInstruction.dose[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22627",
            "comment": "Keerdosis"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
        "path": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
        "mapping": [
          {
            "identity": "Medication-Process-v09",
            "map": "mp-dataelement900-22643",
            "comment": "Maximale dosering"
          }
        ]
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerAdministration",
        "path": "MedicationDispense.dosageInstruction.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerLifetime",
        "path": "MedicationDispense.dosageInstruction.maxDosePerLifetime",
        "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"
      }
    ]
  }
}