PackagesCanonicalsLogsProblems
    Packages
    telus.dw.emr.extract-1-1-21@1.1.21
    https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationStatement
description: '**CHR:** Current medications are managed in the **Medications** section of the patient chart (tabs: All / Current / Past / External). New medications are added via the New Medication action and can be linked to a prescription.'
package_name: telus.dw.emr.extract-1-1-21
derivation: constraint
name: DwMedicationStatement
type: MedicationStatement
elements:
  meta:
    elements:
      lastUpdated: {index: 1}
      source: {index: 2}
      security: {index: 3}
    required: [lastUpdated, source]
  dosage:
    mustSupport: true
    index: 34
    elements:
      sequence: {mustSupport: true, index: 35}
      text: {mustSupport: true, index: 36}
      additionalInstruction: {mustSupport: true, index: 37}
      patientInstruction: {mustSupport: true, index: 38}
      timing:
        mustSupport: true
        index: 39
        elements:
          repeat: {mustSupport: false, index: 40}
          code:
            mustSupport: true
            index: 41
            elements:
              text: {mustSupport: true, index: 42}
      asNeeded:
        mustSupport: true
        choices: []
        index: 44
      route:
        mustSupport: true
        index: 45
        elements:
          coding:
            index: 46
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                routeSCTCA:
                  match: {system: null}
                  schema:
                    binding: {strength: required, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
                    array: true
                    index: 47
                    elements:
                      system: {mustSupport: true, index: 48}
                      code: {mustSupport: true, index: 49}
                      display: {mustSupport: true, index: 50}
                routeEMR:
                  match: {system: null}
                  schema:
                    mustSupport: true
                    array: true
                    index: 51
                    elements:
                      system: {mustSupport: true, index: 52}
                      code: {mustSupport: true, index: 53}
                      display: {mustSupport: true, index: 54}
          text: {mustSupport: true, index: 55}
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 57
  medication[x]:
    elements:
      coding:
        elements:
          system: {mustSupport: true, index: 22}
          code: {mustSupport: true, index: 23}
          display: {mustSupport: true, index: 24}
      text: {mustSupport: true, index: 25}
  reasonCode: {mustSupport: true, index: 31}
  medicationCodeableConcept:
    type: CodeableConcept
    mustSupport: true
    choiceOf: medication
    index: 21
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 21}
          min: 0
          max: 1
  statusReason: {mustSupport: true, index: 13}
  note: {mustSupport: true, index: 33}
  extension:
    index: 5
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        RenderedDosageInstruction:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', index: 6}
          min: 0
          max: 1
  status: {mustSupport: true, index: 12}
  effective:
    mustSupport: true
    choices: []
    index: 29
  id: {mustSupport: true, index: 0}
  identifier:
    mustSupport: true
    index: 7
    elements:
      system: {index: 8}
      value: {index: 9}
    required: [value, system]
  context:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwEncounter']
    index: 27
  dateAsserted: {mustSupport: true, index: 30}
  basedOn:
    type: Reference
    short: Fulfills plan, proposal or order
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationRequest']
    index: 10
  medicationReference:
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedication']
    type: Reference
    mustSupport: true
    choiceOf: medication
    index: 18
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedication']
            type: Reference
            mustSupport: true
            choiceOf: medication
            index: 18
          min: 0
          max: 1
  partOf:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationAdministration', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationStatement', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationResults', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwProcedure']
    index: 11
  subject:
    type: Reference
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwPatient']
    index: 26
  medication:
    mustSupport: true
    choices: [medicationCodeableConcept]
    index: 20
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationCodeableConcept]
            index: 20
          min: 0
          max: 1
  reasonReference:
    type: Reference
    mustSupport: true
    refers: ['https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwCondition', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwDiagnosticReport', 'https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwObservationResults']
    index: 32
  text: {mustSupport: true, index: 4}
package_version: 1.1.21
extensions:
  RenderedDosageInstruction: {url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-rendered-dosage-instruction', min: 0, max: 1, type: Extension, mustSupport: true, index: 6}
class: profile
kind: resource
url: https://www.telus.com/health/fhir/dwemrextract/StructureDefinition/DwMedicationStatement
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 2.0.0
required: [id, text, identifier, effective]