{
  "resourceType": "StructureDefinition",
  "url": "https://nshealth.ca/fhir/StructureDefinition/HD-Consolidation-MedicationDispense",
  "name": "HD_Consolidation_MedicationDispense",
  "status": "draft",
  "date": "2023-11-24T12:45:45.50902+00:00",
  "publisher": "Nova Scotia Health",
  "contact": [
    {
      "name": "Nova Scotia Health"
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationDispense",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationDispense.identifier",
        "path": "MedicationDispense.identifier",
        "max": "0"
      },
      {
        "id": "MedicationDispense.partOf",
        "path": "MedicationDispense.partOf",
        "max": "0"
      },
      {
        "id": "MedicationDispense.statusReason[x]",
        "path": "MedicationDispense.statusReason[x]",
        "max": "0"
      },
      {
        "id": "MedicationDispense.category",
        "path": "MedicationDispense.category",
        "max": "0"
      },
      {
        "id": "MedicationDispense.medication[x]",
        "path": "MedicationDispense.medication[x]",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationDispense.subject",
        "path": "MedicationDispense.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.subject.type",
        "path": "MedicationDispense.subject.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.subject.identifier",
        "path": "MedicationDispense.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationDispense.subject.display",
        "path": "MedicationDispense.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationDispense.context",
        "path": "MedicationDispense.context",
        "max": "0"
      },
      {
        "id": "MedicationDispense.supportingInformation",
        "path": "MedicationDispense.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer",
        "path": "MedicationDispense.performer",
        "max": "1"
      },
      {
        "id": "MedicationDispense.performer.function.coding",
        "path": "MedicationDispense.performer.function.coding",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.function.text",
        "path": "MedicationDispense.performer.function.text",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.actor",
        "path": "MedicationDispense.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.performer.actor.reference",
        "path": "MedicationDispense.performer.actor.reference",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.actor.type",
        "path": "MedicationDispense.performer.actor.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.actor.identifier",
        "path": "MedicationDispense.performer.actor.identifier",
        "max": "0"
      },
      {
        "id": "MedicationDispense.performer.actor.display",
        "path": "MedicationDispense.performer.actor.display",
        "min": 1
      },
      {
        "id": "MedicationDispense.location",
        "path": "MedicationDispense.location",
        "max": "0"
      },
      {
        "id": "MedicationDispense.authorizingPrescription",
        "path": "MedicationDispense.authorizingPrescription",
        "type": [
          {
            "code": "Reference",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "MedicationDispense.authorizingPrescription.type",
        "path": "MedicationDispense.authorizingPrescription.type",
        "max": "0"
      },
      {
        "id": "MedicationDispense.authorizingPrescription.identifier",
        "path": "MedicationDispense.authorizingPrescription.identifier",
        "max": "0"
      },
      {
        "id": "MedicationDispense.authorizingPrescription.display",
        "path": "MedicationDispense.authorizingPrescription.display",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding",
        "path": "MedicationDispense.type.coding",
        "max": "1"
      },
      {
        "id": "MedicationDispense.type.coding.version",
        "path": "MedicationDispense.type.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.coding.userSelected",
        "path": "MedicationDispense.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationDispense.type.text",
        "path": "MedicationDispense.type.text",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity.system",
        "path": "MedicationDispense.quantity.system",
        "max": "0"
      },
      {
        "id": "MedicationDispense.quantity.code",
        "path": "MedicationDispense.quantity.code",
        "max": "0"
      },
      {
        "id": "MedicationDispense.daysSupply",
        "path": "MedicationDispense.daysSupply",
        "max": "0"
      },
      {
        "id": "MedicationDispense.whenPrepared",
        "path": "MedicationDispense.whenPrepared",
        "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",
        "max": "1"
      },
      {
        "id": "MedicationDispense.dosageInstruction.sequence",
        "path": "MedicationDispense.dosageInstruction.sequence",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.additionalInstruction",
        "path": "MedicationDispense.dosageInstruction.additionalInstruction",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.patientInstruction",
        "path": "MedicationDispense.dosageInstruction.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.timing",
        "path": "MedicationDispense.dosageInstruction.timing",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.asNeeded[x]",
        "path": "MedicationDispense.dosageInstruction.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.site",
        "path": "MedicationDispense.dosageInstruction.site",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.route",
        "path": "MedicationDispense.dosageInstruction.route",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.method",
        "path": "MedicationDispense.dosageInstruction.method",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.doseAndRate",
        "path": "MedicationDispense.dosageInstruction.doseAndRate",
        "max": "0"
      },
      {
        "id": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
        "path": "MedicationDispense.dosageInstruction.maxDosePerPeriod",
        "max": "0"
      },
      {
        "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.eventHistory",
        "path": "MedicationDispense.eventHistory",
        "max": "0"
      }
    ]
  }
}