PackagesCanonicalsLogsProblems
    Packages
    nostalgic-ie.fhir.core@0.2.0
    https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-medicationdispense-edispensation
{
  "description": "An Irish electronic dispensation record (HIQA EP Section 6), derived from the HL7 Europe MPD MedicationDispense. Covers a completed dispense, a partial or instalment dispense, and a non-dispensation (declined or stopped, with a reason).",
  "_filename": "StructureDefinition-ie-core-medicationdispense-edispensation.json",
  "package_name": "nostalgic-ie.fhir.core",
  "date": null,
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "IECoreMedicationDispenseEDispensation",
  "abstract": false,
  "type": "MedicationDispense",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "IE Core MedicationDispense (eDispensation)",
  "package_version": "0.2.0",
  "status": "draft",
  "id": "efd5c922-de78-4c4c-a47f-ed3342d45eb8",
  "kind": "resource",
  "url": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-medicationdispense-edispensation",
  "version": "0.2.0",
  "differential": {
    "element": [ {
      "id": "MedicationDispense",
      "path": "MedicationDispense",
      "constraint": [ {
        "key": "ie-md-status-1",
        "human": "A non-dispensation (declined, stopped, cancelled or on-hold) SHALL state the reason (HIQA EP 6.3.2)",
        "source": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-medicationdispense-edispensation",
        "severity": "error",
        "expression": "(status = 'declined' or status = 'stopped' or status = 'cancelled' or status = 'on-hold') implies statusReason.exists()"
      }, {
        "key": "ie-md-handover-1",
        "human": "A completed dispense SHALL record when the medication was handed over (HIQA EP 6.8 Date of dispensation, Mandatory)",
        "source": "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-medicationdispense-edispensation",
        "severity": "error",
        "expression": "status = 'completed' implies whenHandedOver.exists()"
      } ]
    }, {
      "id": "MedicationDispense.extension:recorded",
      "path": "MedicationDispense.extension",
      "comment": "HIQA EP 6.2 Date and time of issuing the dispense record (Mandatory 1..1); 1..1 inherited from HL7 Europe MPD.",
      "sliceName": "recorded",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.extension:receiverRelatedPerson",
      "max": "1",
      "min": 0,
      "path": "MedicationDispense.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-dispense-receiver-related-person" ]
      } ],
      "sliceName": "receiverRelatedPerson"
    }, {
      "id": "MedicationDispense.identifier",
      "min": 1,
      "path": "MedicationDispense.identifier",
      "comment": "HIQA EP 6.1 Dispensation identifier (Required 0..*). IE Core requires at least one.",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.status",
      "path": "MedicationDispense.status",
      "comment": "HIQA EP 6.3.1 Dispensation status (Mandatory). A non-dispensation uses declined or stopped with a reason (invariant ie-md-status-1).",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.statusReason[x]",
      "path": "MedicationDispense.statusReason[x]",
      "comment": "HIQA EP 6.3.2 Dispensation status reason (Optional): coded (6.3.2.1) or free text (6.3.2.2, in statusReasonCodeableConcept.text). IE Core requires a reason for a non-dispensation (safety: the prescriber needs to know why).",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.medication[x]",
      "path": "MedicationDispense.medication[x]",
      "binding": {
        "strength": "extensible",
        "valueSet": "https://hl7-ie.github.io/ie-core/fhir/ie/core/ValueSet/ie-core-medication-codes"
      },
      "comment": "HIQA EP 6.6 Dispensed medication (Mandatory 1..1); see Section 4.",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.subject",
      "min": 1,
      "path": "MedicationDispense.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-patient-eprescription" ]
      } ],
      "mustSupport": true
    }, {
      "id": "MedicationDispense.performer",
      "min": 1,
      "path": "MedicationDispense.performer",
      "comment": "HIQA EP Section 2 (dispenser and pharmacy). Dispensers are registered pharmacists or registered pharmaceutical assistants.",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.performer.actor",
      "path": "MedicationDispense.performer.actor",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-practitioner", "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-practitionerrole", "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-organization" ]
      } ],
      "mustSupport": true
    }, {
      "id": "MedicationDispense.authorizingPrescription",
      "max": "1",
      "min": 1,
      "path": "MedicationDispense.authorizingPrescription",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "https://hl7-ie.github.io/ie-core/fhir/ie/core/StructureDefinition/ie-core-medicationrequest-eprescription" ]
      } ],
      "comment": "HIQA EP 6.5 Prescription item identifier with related request (Required 0..1). IE Core requires exactly one (stricter than HIQA, OI-012): this profile covers dispensing against an electronic prescription; emergency supply uses the base IECoreMedicationDispense.",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.quantity",
      "path": "MedicationDispense.quantity",
      "comment": "HIQA EP 6.7 Dispensed quantity (Mandatory 1..1).",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.whenHandedOver",
      "path": "MedicationDispense.whenHandedOver",
      "comment": "HIQA EP 6.8 Date of dispensation (Mandatory) and 6.9 Time of dispensation (Required). Required when the status is completed (invariant ie-md-handover-1).",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.receiver",
      "path": "MedicationDispense.receiver",
      "comment": "HIQA EP 6.4 Receiver (Optional): the patient (6.4.1) or a health practitioner (6.4.2). A related person (6.4.3) goes in extension[receiverRelatedPerson]."
    }, {
      "id": "MedicationDispense.note",
      "path": "MedicationDispense.note",
      "comment": "HIQA EP 6.12 Additional information (Optional)."
    }, {
      "id": "MedicationDispense.dosageInstruction",
      "path": "MedicationDispense.dosageInstruction",
      "comment": "HIQA EP 6.11 Dosage instructions (Required); see Section 5.",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.dosageInstruction.text",
      "path": "MedicationDispense.dosageInstruction.text",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.substitution",
      "path": "MedicationDispense.substitution",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.substitution.wasSubstituted",
      "path": "MedicationDispense.substitution.wasSubstituted",
      "comment": "HIQA EP 6.10 Substitution occurred (Optional).",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.substitution.type",
      "path": "MedicationDispense.substitution.type",
      "mustSupport": true
    }, {
      "id": "MedicationDispense.substitution.reason",
      "path": "MedicationDispense.substitution.reason",
      "mustSupport": true
    } ]
  },
  "baseDefinition": "http://hl7.eu/fhir/mpd/StructureDefinition/MedicationDispense-eu-mpd"
}