PackagesCanonicalsLogsProblems
    Packages
    telus.dw.emr.extract@1.0.0
    https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest
description: null
package_name: telus.dw.emr.extract
derivation: constraint
name: DwMedicationRequest
type: MedicationRequest
elements:
  category:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiontype'}
    mustSupport: true
    index: 23
    elements:
      coding:
        binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiontype'}
        mustSupport: true
        index: 24
        elements:
          system: {mustSupport: true, index: 25}
          code: {mustSupport: true, index: 26}
      text: {index: 27}
    required: [text]
  meta:
    mustSupport: true
    index: 1
    elements:
      lastUpdated: {mustSupport: true, index: 2}
      source: {mustSupport: true, index: 3}
      profile: {index: 4}
    required: [lastUpdated, source]
  substitution:
    mustSupport: true
    index: 159
    elements:
      allowed:
        mustSupport: true
        choices: []
        index: 161
      reason:
        mustSupport: true
        index: 162
        elements:
          coding:
            mustSupport: true
            index: 163
            elements:
              system: {mustSupport: true, index: 164}
              code: {mustSupport: true, index: 165}
          text: {mustSupport: true, index: 166}
  detectedIssue:
    mustSupport: true
    index: 169
    elements:
      reference: {mustSupport: true, index: 170}
      display: {mustSupport: true, index: 171}
  encounter: {mustSupport: true, index: 36}
  dispenseRequest:
    mustSupport: true
    index: 125
    extensions:
      TotalQuantity: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-TotalQuantity', max: 1, type: Extension, isModifier: false, index: 126}
      DispenseTrial: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenseTrial', max: 1, type: Extension, isModifier: false, index: 127}
    elements:
      extension:
        type: Extension
        isModifier: false
        url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-TotalQuantity
        index: 126
        slicing:
          slices:
            TotalQuantity:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-TotalQuantity', index: 126}
              max: 1
            DispenseTrial:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenseTrial', index: 127}
              max: 1
      initialFill:
        mustSupport: true
        index: 128
        elements:
          quantity:
            binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescribedquantityunit'}
            mustSupport: true
            index: 129
            elements:
              value: {mustSupport: true, index: 130}
              unit: {mustSupport: true, index: 131}
              system: {mustSupport: true, index: 132}
              code: {mustSupport: true, index: 133}
            required: [value]
          duration:
            mustSupport: true
            index: 134
            elements:
              value: {mustSupport: true, index: 135}
              unit: {mustSupport: true, index: 136}
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                mustSupport: true
                index: 137
              code: {mustSupport: true, index: 138}
            required: [value]
      dispenseInterval:
        mustSupport: true
        index: 139
        elements:
          value: {mustSupport: true, index: 140}
          system: {mustSupport: true, index: 141}
          code: {mustSupport: true, index: 142}
      validityPeriod:
        mustSupport: true
        index: 143
        elements:
          start: {mustSupport: true, index: 144}
          end: {mustSupport: true, index: 145}
      numberOfRepeatsAllowed: {mustSupport: true, index: 146}
      quantity:
        mustSupport: true
        index: 147
        elements:
          value: {mustSupport: true, index: 148}
          unit: {mustSupport: true, index: 149}
          system: {mustSupport: true, index: 150}
          code: {mustSupport: true, index: 151}
      expectedSupplyDuration:
        mustSupport: true
        index: 152
        elements:
          value: {mustSupport: true, index: 153}
          unit:
            pattern: {type: String, value: days}
            mustSupport: true
            index: 154
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: true
            index: 155
          code:
            pattern: {type: Code, value: d}
            mustSupport: true
            index: 156
        required: [system]
      performer:
        mustSupport: true
        index: 157
        elements:
          display: {mustSupport: true, index: 158}
  reported:
    mustSupport: true
    choices: [reportedBoolean]
    index: 29
  reasonCode:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionindicationforuse'}
    mustSupport: true
    index: 44
    elements:
      coding:
        mustSupport: true
        index: 45
        elements:
          system: {mustSupport: true, index: 46}
          code: {mustSupport: true, index: 47}
      text: {mustSupport: true, index: 48}
    required: [text]
  statusReason: {mustSupport: true, index: 21}
  authoredOn: {mustSupport: true, index: 40}
  note:
    mustSupport: true
    index: 55
    elements:
      author:
        mustSupport: true
        choices: []
        index: 57
      time: {mustSupport: true, index: 58}
  extension:
    type: Extension
    isModifier: false
    mustSupport: true
    url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenserInstructions
    index: 7
    slicing:
      slices:
        DispenserInstructions:
          match: {}
          schema: {type: Extension, isModifier: false, mustSupport: true, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenserInstructions', index: 7}
          max: 1
        NoRenewalsFlag:
          match: {}
          schema: {type: Extension, isModifier: false, mustSupport: true, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-NoRenewalsFlag', index: 8}
          max: 1
        StatusChanged:
          match: {}
          schema: {isModifier: false, type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.statusChanged', index: 9}
          max: 1
        RenderedDosageInstruction:
          match: {}
          schema: {type: Extension, isModifier: false, mustSupport: true, url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', index: 10}
          max: 1
  contained: {mustSupport: true, index: 6}
  requester:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole']
    index: 41
    elements:
      reference: {mustSupport: true, index: 42}
      display: {mustSupport: true, index: 43}
    required: [reference]
  supportingInformation:
    type: Reference
    mustSupport: true
    index: 37
    elements:
      reference: {mustSupport: true, index: 38}
      display: {mustSupport: true, index: 39}
    required: [reference]
  status: {mustSupport: true, index: 20}
  id: {mustSupport: true, index: 0}
  dosageInstruction:
    mustSupport: true
    index: 59
    extensions:
      effectivePeriod: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-EffectivePeriod', max: 1, type: Extension, isModifier: false, index: 60}
    elements:
      site:
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionadministrationsitees'}
        mustSupport: true
        index: 86
        elements:
          coding:
            mustSupport: true
            index: 87
            elements:
              system: {mustSupport: true, index: 88}
              code: {mustSupport: true, index: 89}
            required: [system, code]
          text: {mustSupport: true, index: 90}
        required: [text]
      asNeeded:
        mustSupport: true
        choices: []
        index: 85
      patientInstruction: {index: 68}
      route:
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionrouteofadministration'}
        mustSupport: true
        index: 91
        elements:
          coding:
            mustSupport: true
            index: 92
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                routeofAdministrationV3PrescribeIT:
                  match: {}
                  schema:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionrouteofadministration'}
                    index: 93
                    elements:
                      system: {mustSupport: true, index: 94}
                      version: {mustSupport: true, index: 95}
                      code: {mustSupport: true, index: 96}
                      display: {mustSupport: true, index: 97}
                routeSCTCA:
                  match: {}
                  schema:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
                    mustSupport: true
                    index: 98
                    elements:
                      system: {mustSupport: true, index: 99}
                      version: {mustSupport: true, index: 100}
                      code: {mustSupport: true, index: 101}
                      display:
                        mustSupport: true
                        index: 102
                        extensions:
                          translation:
                            url: http://hl7.org/fhir/StructureDefinition/translation
                            type: Extension
                            isModifier: false
                            index: 103
                            extensions: {}
                            elements:
                              extension: {mustSupport: true, array: true, min: 2, index: 104}
                        elements:
                          extension:
                            type: Extension
                            isModifier: false
                            url: http://hl7.org/fhir/StructureDefinition/translation
                            index: 103
                            slicing:
                              slices:
                                translation:
                                  match: {}
                                  schema:
                                    type: Extension
                                    isModifier: false
                                    url: http://hl7.org/fhir/StructureDefinition/translation
                                    index: 103
                                    extensions: {}
                                    elements:
                                      extension: {mustSupport: true, array: true, min: 2, index: 104}
                routeEMRCode:
                  match: {}
                  schema:
                    mustSupport: true
                    index: 105
                    elements:
                      system: {mustSupport: true, index: 106}
                      version: {mustSupport: true, index: 107}
                      code: {mustSupport: true, index: 108}
                      display: {mustSupport: true, index: 109}
                      userSelected: {mustSupport: true, index: 110}
          text: {mustSupport: true, index: 111}
        required: [text]
      extension:
        type: Extension
        isModifier: false
        url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-EffectivePeriod
        index: 60
        slicing:
          slices:
            effectivePeriod:
              match: {}
              schema: {type: Extension, isModifier: false, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-EffectivePeriod', index: 60}
              max: 1
      timing:
        mustSupport: true
        index: 69
        elements:
          repeat:
            mustSupport: true
            index: 70
            elements:
              frequencyMax: {mustSupport: true, index: 80}
              periodUnit: {mustSupport: true, index: 83}
              frequency: {mustSupport: true, index: 79}
              durationMax: {mustSupport: true, index: 76}
              duration: {mustSupport: true, index: 75}
              bounds:
                mustSupport: true
                choices: []
                index: 72
              durationUnit:
                mustSupport: true
                index: 77
                extensions:
                  dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', type: Extension, isModifier: false, index: 78}
                elements:
                  extension:
                    type: Extension
                    isModifier: false
                    url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
                    index: 78
                    slicing:
                      slices:
                        dataAbsentReason:
                          match: {}
                          schema: {type: Extension, isModifier: false, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 78}
              count: {mustSupport: true, index: 73}
              periodMax: {mustSupport: true, index: 82}
              period: {mustSupport: true, index: 81}
              countMax: {mustSupport: true, index: 74}
      additionalInstruction:
        mustSupport: true
        index: 63
        elements:
          coding:
            mustSupport: true
            index: 64
            elements:
              system: {mustSupport: true, index: 65}
              code: {mustSupport: true, index: 66}
            required: [code]
          text: {mustSupport: true, index: 67}
        required: [text]
      sequence: {mustSupport: true, index: 61}
      maxDosePerPeriod:
        mustSupport: true
        index: 115
        elements:
          numerator:
            mustSupport: true
            index: 116
            elements:
              value: {mustSupport: true, index: 117}
              unit: {mustSupport: true, index: 118}
              system: {mustSupport: true, index: 119}
              code:
                binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondosequantityunit'}
                mustSupport: true
                index: 120
          denominator:
            mustSupport: true
            index: 121
            elements:
              value: {mustSupport: true, index: 122}
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                mustSupport: true
                index: 123
              code: {mustSupport: true, index: 124}
      doseAndRate:
        mustSupport: true
        index: 112
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 114
      text: {mustSupport: true, index: 62}
  reportedBoolean: {type: boolean, mustSupport: true, choiceOf: reported, index: 30}
  identifier:
    mustSupport: true
    index: 11
    elements:
      system: {mustSupport: true, index: 12}
      value: {mustSupport: true, index: 13}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: type.coding.code, type: value}
      min: null
      slices:
        Placer:
          match:
            type:
              coding: {code: PLAC}
          schema:
            index: 14
            elements:
              type:
                mustSupport: true
                index: 15
                elements:
                  coding:
                    mustSupport: true
                    index: 16
                    elements:
                      code:
                        pattern: {type: Code, value: PLAC}
                        mustSupport: true
                        index: 17
                    required: [code]
                required: [coding]
              system:
                pattern: {type: Uri, value: 'http://hl7.org/fhir/identifier-type'}
                mustSupport: true
                index: 18
              value: {mustSupport: true, index: 19}
            required: [value, type, system]
  intent:
    pattern: {type: Code, value: order}
    mustSupport: true
    index: 22
  basedOn:
    elements:
      reference: {mustSupport: true, index: 49}
  priorPrescription:
    mustSupport: true
    index: 167
    elements:
      reference: {mustSupport: true, index: 168}
  courseOfTherapyType:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiontreatmentcategory'}
    index: 50
    elements:
      coding:
        mustSupport: true
        index: 51
        elements:
          system:
            pattern: {type: Uri, value: 'http://hl7.org/fhir/v3/ActCode'}
            mustSupport: true
            index: 52
          code: {mustSupport: true, index: 53}
        required: [system, code]
      text: {mustSupport: true, index: 54}
    required: [coding]
  subject:
    mustSupport: true
    index: 33
    elements:
      reference: {mustSupport: true, index: 34}
      display: {mustSupport: true, index: 35}
    required: [reference]
  medication:
    mustSupport: true
    choices: []
    index: 32
  text: {mustSupport: true, index: 5}
package_version: 1.0.0
extensions:
  DispenserInstructions: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenserInstructions', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 7}
  NoRenewalsFlag: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-NoRenewalsFlag', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 8}
  StatusChanged: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.statusChanged', max: 1, isModifier: false, type: Extension, mustSupport: true, index: 9}
  RenderedDosageInstruction: {url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', max: 1, type: Extension, isModifier: false, mustSupport: true, index: 10}
class: profile
kind: resource
url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: null
required: [id]