PackagesCanonicalsLogsProblems
    Packages
    telus.dw.emr.extract-1-1-21@1.1.21
    https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest
description: '**CHR:** Medication prescriptions are created in the **Prescriptions** section of the patient chart via the New Prescription button, or within an Encounter. The prescription form includes drug selection, dosage, frequency, route, and signing workflow.'
package_name: telus.dw.emr.extract-1-1-21
derivation: constraint
name: DwMedicationRequest
type: MedicationRequest
elements:
  category:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiontype'}
    mustSupport: true
    index: 18
    elements:
      coding:
        binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiontype'}
        mustSupport: true
        index: 19
        elements:
          system: {mustSupport: true, index: 20}
          code: {mustSupport: true, index: 21}
      text: {mustSupport: true, index: 22}
  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: 146
    elements:
      allowed:
        mustSupport: true
        choices: []
        index: 148
      reason:
        mustSupport: true
        index: 149
        elements:
          coding:
            mustSupport: true
            index: 150
            elements:
              system: {mustSupport: true, index: 151}
              code: {mustSupport: true, index: 152}
          text: {mustSupport: true, index: 153}
  detectedIssue:
    mustSupport: true
    index: 155
    elements:
      display: {mustSupport: true, index: 156}
  encounter:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwEncounter']
    index: 30
  dispenseRequest:
    mustSupport: true
    index: 111
    extensions:
      TotalQuantity: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-TotalQuantity', min: 0, max: 1, type: Extension, index: 113}
      DispenseTrial: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenseTrial', min: 0, max: 1, type: Extension, index: 114}
    elements:
      extension:
        index: 112
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            TotalQuantity:
              match: {url: null}
              schema: {type: Extension, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-TotalQuantity', index: 113}
              min: 0
              max: 1
            DispenseTrial:
              match: {url: null}
              schema: {type: Extension, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenseTrial', index: 114}
              min: 0
              max: 1
      initialFill:
        mustSupport: true
        index: 115
        elements:
          quantity:
            binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescribedquantityunit'}
            mustSupport: true
            index: 116
            elements:
              value: {mustSupport: true, index: 117}
              unit: {mustSupport: true, index: 118}
              system: {mustSupport: true, index: 119}
              code: {mustSupport: true, index: 120}
            required: [value]
          duration:
            mustSupport: true
            index: 121
            elements:
              value: {mustSupport: true, index: 122}
              unit: {mustSupport: true, index: 123}
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                mustSupport: true
                index: 124
              code: {mustSupport: true, index: 125}
            required: [value]
      dispenseInterval:
        mustSupport: true
        index: 126
        elements:
          value: {mustSupport: true, index: 127}
          system: {mustSupport: true, index: 128}
          code: {mustSupport: true, index: 129}
      validityPeriod:
        mustSupport: true
        index: 130
        elements:
          start: {mustSupport: true, index: 131}
          end: {mustSupport: true, index: 132}
      numberOfRepeatsAllowed: {mustSupport: true, index: 133}
      quantity:
        mustSupport: true
        index: 134
        elements:
          value: {mustSupport: true, index: 135}
          unit: {mustSupport: true, index: 136}
          system: {mustSupport: true, index: 137}
          code: {mustSupport: true, index: 138}
      expectedSupplyDuration:
        mustSupport: true
        index: 139
        elements:
          value: {mustSupport: true, index: 140}
          unit:
            pattern: {type: String, value: days}
            mustSupport: true
            index: 141
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: true
            index: 142
          code:
            pattern: {type: Code, value: d}
            mustSupport: true
            index: 143
        required: [system]
      performer:
        type: Reference
        mustSupport: true
        refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization']
        index: 144
        elements:
          display: {mustSupport: true, index: 145}
  reported:
    mustSupport: true
    choices: [reportedBoolean]
    index: 24
  reasonCode:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionindicationforuse'}
    mustSupport: true
    index: 38
    elements:
      coding:
        mustSupport: true
        index: 39
        elements:
          system: {mustSupport: true, index: 40}
          code: {mustSupport: true, index: 41}
      text: {mustSupport: true, index: 42}
    required: [text]
  statusReason: {mustSupport: true, index: 16}
  authoredOn: {mustSupport: true, index: 34}
  note:
    mustSupport: true
    index: 49
    elements:
      author:
        mustSupport: true
        choices: []
        index: 51
      time: {mustSupport: true, index: 52}
  extension:
    index: 7
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        DispenserInstructions:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenserInstructions', index: 8}
          min: 0
          max: 1
        NoRenewalsFlag:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-NoRenewalsFlag', index: 9}
          min: 0
          max: 1
        StatusChanged:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.statusChanged', index: 10}
          min: 0
          max: 1
        RenderedDosageInstruction:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', index: 11}
          min: 0
          max: 1
  contained: {mustSupport: true, index: 6}
  requester:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwOrganization', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitioner', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPractitionerRole']
    index: 35
    elements:
      reference: {mustSupport: true, index: 36}
      display: {mustSupport: true, index: 37}
    required: [reference]
  supportingInformation:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservation', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationResults', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationVitals']
    index: 31
    elements:
      reference: {mustSupport: true, index: 32}
      display: {mustSupport: true, index: 33}
    required: [reference]
  status: {mustSupport: true, index: 15}
  id: {mustSupport: true, index: 0}
  dosageInstruction:
    mustSupport: true
    index: 53
    extensions:
      effectivePeriod: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-EffectivePeriod', min: 0, max: 1, type: Extension, index: 54}
    elements:
      site:
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptionadministrationsite'}
        mustSupport: true
        index: 79
        elements:
          coding:
            code:
            - {system: 'http://snomed.info/sct'}
            - {system: 'http://terminology.hl7.org/CodeSystem/v3-ActSite'}
            mustSupport: true
            index: 80
            elements:
              system: {mustSupport: true, index: 81}
              code: {mustSupport: true, index: 82}
            required: [system, code]
          text: {mustSupport: true, index: 83}
        required: [text]
      asNeeded:
        mustSupport: true
        choices: []
        index: 78
      patientInstruction: {index: 62}
      route:
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
        mustSupport: true
        index: 84
        elements:
          coding:
            index: 85
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                routeSCTCA:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    binding: {strength: required, valueSet: 'http://snomed.info/sct'}
                    mustSupport: true
                    index: 86
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: true
                        index: 87
                      version: {mustSupport: true, index: 88}
                      code: {mustSupport: true, index: 89}
                      display: {mustSupport: true, index: 90}
                      userSelected: {mustSupport: true, index: 91}
                    required: [system]
                routeEMRCode:
                  match: {system: null}
                  schema:
                    mustSupport: true
                    array: true
                    index: 92
                    elements:
                      system:
                        constraint:
                          dw-medicationrequest-route-emrcode-system: {human: 'EMR route coding system must follow pattern urn:telus:emr:{emrType}:{instanceId}:medication-route or urn:telus:emr:{emrType}:{region}:{instanceId}:medication-route', source: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest', severity: warning, expression: 'matches(''urn:telus:emr:([^:]+:){2,3}medication-route'')'}
                        mustSupport: true
                        index: 93
                      code: {mustSupport: true, index: 94}
                      display: {mustSupport: true, index: 95}
                      userSelected: {mustSupport: true, index: 96}
                    required: [system]
          text: {mustSupport: true, index: 97}
        required: [text]
      extension:
        type: Extension
        url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-EffectivePeriod
        index: 54
        slicing:
          slices:
            effectivePeriod:
              match: {}
              schema: {type: Extension, url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-EffectivePeriod', index: 54}
              min: 0
              max: 1
      timing:
        mustSupport: true
        index: 63
        elements:
          repeat:
            mustSupport: true
            index: 64
            elements:
              frequencyMax: {mustSupport: true, index: 73}
              periodUnit: {mustSupport: true, index: 76}
              frequency: {mustSupport: true, index: 72}
              durationMax: {mustSupport: true, index: 70}
              duration: {mustSupport: true, index: 69}
              bounds:
                mustSupport: true
                choices: []
                index: 66
              durationUnit: {mustSupport: true, index: 71}
              count: {mustSupport: true, index: 67}
              periodMax: {mustSupport: true, index: 75}
              period: {mustSupport: true, index: 74}
              countMax: {mustSupport: true, index: 68}
      additionalInstruction:
        mustSupport: true
        index: 57
        elements:
          coding:
            mustSupport: true
            index: 58
            elements:
              system: {mustSupport: true, index: 59}
              code: {mustSupport: true, index: 60}
            required: [code]
          text: {mustSupport: true, index: 61}
        required: [text]
      sequence: {mustSupport: true, index: 55}
      maxDosePerPeriod:
        mustSupport: true
        index: 101
        elements:
          numerator:
            mustSupport: true
            index: 102
            elements:
              value: {mustSupport: true, index: 103}
              unit: {mustSupport: true, index: 104}
              system: {mustSupport: true, index: 105}
              code:
                binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiondosequantityunit'}
                mustSupport: true
                index: 106
          denominator:
            mustSupport: true
            index: 107
            elements:
              value: {mustSupport: true, index: 108}
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                mustSupport: true
                index: 109
              code: {mustSupport: true, index: 110}
      doseAndRate:
        mustSupport: true
        index: 98
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 100
      text: {mustSupport: true, index: 56}
  reportedBoolean: {type: boolean, mustSupport: true, choiceOf: reported, index: 25}
  identifier:
    mustSupport: true
    index: 12
    elements:
      system: {mustSupport: true, index: 13}
      value: {mustSupport: true, index: 14}
    required: [value, system]
  intent:
    pattern: {type: Code, value: order}
    mustSupport: true
    index: 17
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwCarePlan', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwServiceRequest']
    index: 43
  priorPrescription:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest']
    index: 154
  courseOfTherapyType:
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/prescriptiontreatmentcategory'}
    index: 44
    elements:
      coding:
        mustSupport: true
        index: 45
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'}
            mustSupport: true
            index: 46
          code: {mustSupport: true, index: 47}
        required: [system, code]
      text: {mustSupport: true, index: 48}
    required: [coding]
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient']
    index: 28
    elements:
      display: {mustSupport: true, index: 29}
  medication:
    mustSupport: true
    choices: []
    index: 27
  text: {mustSupport: true, index: 5}
package_version: 1.1.21
extensions:
  DispenserInstructions: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-DispenserInstructions', min: 0, max: 1, type: Extension, mustSupport: true, index: 8}
  NoRenewalsFlag: {url: 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/ext-NoRenewalsFlag', min: 0, max: 1, type: Extension, mustSupport: true, index: 9}
  StatusChanged: {url: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.statusChanged', min: 0, max: 1, type: Extension, mustSupport: true, index: 10}
  RenderedDosageInstruction: {url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', min: 0, max: 1, type: Extension, mustSupport: true, index: 11}
class: profile
kind: resource
url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 2.0.0
required: [id]