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