PackagesCanonicalsLogsProblems
    Packages
    ca.on.dhdr.r4@0.9.0
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationDispense
description: Indicates that a medication is to be or has been dispensed for a named patient
package_name: ca.on.dhdr.r4
derivation: constraint
name: MedicationDispense
type: MedicationDispense
elements:
  category:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/dhdr-dispense-category'}
    mustSupport: true
    index: 21
    elements:
      coding:
        mustSupport: true
        index: 22
        elements:
          system:
            pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/CodeSystem/medication-dispense-category'}
            mustSupport: true
            index: 23
          code: {mustSupport: true, index: 24}
          display: {mustSupport: true, index: 25}
        required: [display, system, code]
    required: [coding]
  whenHandedOver: {mustSupport: true, index: 45}
  whenPrepared: {mustSupport: true, index: 44}
  meta:
    mustSupport: true
    index: 1
    elements:
      lastUpdated: {mustSupport: true, index: 2}
      source: {mustSupport: true, index: 3}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 29}
    required: [reference]
  extension:
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        DispenseRemainingRefills:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining', index: 10}
          min: 0
          max: 1
        DispenseRemainingQuantity:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining', index: 11}
          min: 0
          max: 1
        DrugServiceCoverage:
          match: {url: null}
          schema: {type: Extension, isModifier: false, url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-drug-service-coverage', index: 12}
          min: 0
          max: 1
  contained:
    type: Resource
    mustSupport: true
    index: 4
    elements:
      id: {mustSupport: true, index: 5}
      meta:
        mustSupport: true
        index: 6
        elements:
          lastUpdated: {mustSupport: true, index: 7}
          source: {mustSupport: true, index: 8}
  status: {mustSupport: true, index: 20}
  id: {mustSupport: true, index: 0}
  dosageInstruction:
    mustSupport: true
    index: 46
    elements:
      site:
        mustSupport: true
        index: 84
        elements:
          coding:
            mustSupport: true
            index: 85
            elements:
              system: {mustSupport: true, index: 86}
              code: {mustSupport: true, index: 87}
              display: {mustSupport: true, index: 88}
          text: {mustSupport: true, index: 89}
      asNeeded:
        mustSupport: true
        choices: [asNeededBoolean]
        index: 82
      method:
        mustSupport: true
        index: 95
        elements:
          coding:
            mustSupport: true
            index: 96
            elements:
              system: {mustSupport: true, index: 97}
              code: {mustSupport: true, index: 98}
              display: {mustSupport: true, index: 99}
          text: {mustSupport: true, index: 100}
      patientInstruction: {mustSupport: true, index: 55}
      maxDosePerLifetime:
        mustSupport: true
        index: 124
        elements:
          value: {mustSupport: true, index: 125}
          unit: {mustSupport: true, index: 126}
          system: {mustSupport: true, index: 127}
          code: {mustSupport: true, index: 128}
      maxDosePerAdministration:
        mustSupport: true
        index: 119
        elements:
          value: {mustSupport: true, index: 120}
          unit: {mustSupport: true, index: 121}
          system: {mustSupport: true, index: 122}
          code: {mustSupport: true, index: 123}
      route:
        mustSupport: true
        index: 90
        elements:
          coding:
            binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
            mustSupport: true
            index: 91
            elements:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                mustSupport: true
                index: 92
              code: {mustSupport: true, index: 93}
              display: {mustSupport: true, index: 94}
            required: [display, system, code]
        required: [coding]
      asNeededBoolean: {type: boolean, mustSupport: true, choiceOf: asNeeded, index: 83}
      timing:
        mustSupport: true
        index: 56
        elements:
          event: {mustSupport: true, index: 57}
          repeat:
            mustSupport: true
            index: 58
            elements:
              frequencyMax: {mustSupport: true, index: 67}
              when: {mustSupport: true, index: 73}
              offset: {mustSupport: true, index: 74}
              periodUnit:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time|4.0.0'}
                mustSupport: true
                index: 70
              frequency: {mustSupport: true, index: 66}
              durationMax: {mustSupport: true, index: 64}
              duration: {mustSupport: true, index: 63}
              bounds:
                mustSupport: true
                choices: []
                index: 60
              durationUnit: {mustSupport: true, index: 65}
              dayOfWeek: {mustSupport: true, index: 71}
              count: {mustSupport: true, index: 61}
              periodMax: {mustSupport: true, index: 69}
              period: {mustSupport: true, index: 68}
              countMax: {mustSupport: true, index: 62}
              timeOfDay: {mustSupport: true, index: 72}
          code:
            binding: {strength: extensible, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/dhdr-medication-repeat-pattern'}
            mustSupport: true
            index: 75
            elements:
              coding:
                mustSupport: true
                index: 76
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    mustSupport: true
                    index: 77
                  code: {mustSupport: true, index: 78}
                  display: {mustSupport: true, index: 79}
              text: {mustSupport: true, index: 80}
      additionalInstruction:
        mustSupport: true
        index: 49
        elements:
          coding:
            mustSupport: true
            index: 50
            elements:
              system: {mustSupport: true, index: 51}
              code: {mustSupport: true, index: 52}
              display: {mustSupport: true, index: 53}
          text: {mustSupport: true, index: 54}
      sequence: {mustSupport: true, index: 47}
      maxDosePerPeriod:
        mustSupport: true
        index: 106
        elements:
          numerator:
            mustSupport: true
            index: 107
            elements:
              value: {mustSupport: true, index: 108}
              comparator: {mustSupport: true, index: 109}
              unit: {mustSupport: true, index: 110}
              system: {mustSupport: true, index: 111}
              code: {mustSupport: true, index: 112}
          denominator:
            mustSupport: true
            index: 113
            elements:
              value: {mustSupport: true, index: 114}
              comparator: {mustSupport: true, index: 115}
              unit: {mustSupport: true, index: 116}
              system: {mustSupport: true, index: 117}
              code: {mustSupport: true, index: 118}
      doseAndRate:
        mustSupport: true
        index: 101
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 103
          rate:
            mustSupport: true
            choices: []
            index: 105
      text: {mustSupport: true, index: 48}
  daysSupply:
    mustSupport: true
    index: 42
    elements:
      value: {index: 43}
    required: [value]
  identifier:
    mustSupport: true
    array: true
    min: 1
    max: 2
    index: 13
    slicing:
      rules: open
      discriminator:
      - {path: assigner.identifier.system, type: value}
      min: 1
      max: 2
      slices:
        currentRxNo:
          match:
            assigner:
              identifier: {system: null}
          schema:
            mustSupport: true
            _required: true
            index: 14
            elements:
              system: {mustSupport: true, index: 15}
              value: {mustSupport: true, index: 16}
            required: [value, system]
        originalRxNo:
          match:
            assigner:
              identifier: {system: null}
          schema:
            mustSupport: true
            index: 17
            elements:
              system: {mustSupport: true, index: 18}
              value: {mustSupport: true, index: 19}
            required: [value, system]
  medicationReference: {type: Reference, mustSupport: true, choiceOf: medication, index: 28}
  quantity:
    mustSupport: true
    index: 37
    elements:
      value: {mustSupport: true, index: 38}
      unit: {mustSupport: true, index: 39}
      system: {mustSupport: true, index: 40}
      code:
        binding: {strength: required, valueSet: 'https://tgateway.infoway-inforoute.ca/vs/prescribedquantityunit'}
        mustSupport: true
        index: 41
    required: [value]
  authorizingPrescription:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationRequest']
    index: 35
    elements:
      reference: {mustSupport: true, index: 36}
    required: [reference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-Patient']
    index: 30
    elements:
      reference: {mustSupport: true, index: 31}
    required: [reference]
  performer:
    mustSupport: true
    index: 32
    elements:
      actor:
        type: Reference
        mustSupport: true
        refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-PractitionerRole']
        index: 33
        elements:
          reference: {mustSupport: true, index: 34}
        required: [reference]
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 27
package_version: 0.9.0
extensions:
  DispenseRemainingRefills: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining', min: 0, max: 1, type: Extension, isModifier: false, index: 10}
  DispenseRemainingQuantity: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining', min: 0, max: 1, type: Extension, isModifier: false, index: 11}
  DrugServiceCoverage: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-drug-service-coverage', min: 0, max: 1, type: Extension, isModifier: false, index: 12}
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationDispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 4.0.0
required: [whenPrepared, identifier, subject, contained]