PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.core@1.2.0-dft-ballot
    http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medicationrequest-ca-core
description: This profile applies constraints to the MedicationRequest resource for CA Core+ to support prescription and medication orders in the pan-Canadian context.
package_name: ca.infoway.io.core
derivation: constraint
name: MedicationRequestCACore
type: MedicationRequest
elements:
  medication[x]:
    elements:
      coding:
        elements:
          system: {index: 10}
          display: {index: 11}
  reasonCode:
    type: CodeableConcept
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/medicationreasoncode'}
    index: 14
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 9
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 9}
          min: 0
          max: 1
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        RenderedDosageInstruction:
          match: {url: null}
          schema: {short: Extension for representing rendered dosage instruction., type: Extension, url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage', index: 1}
          min: 0
          max: 1
  dosageInstruction:
    index: 16
    elements:
      text: {index: 17}
      timing: {index: 18}
      route:
        type: CodeableConcept
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
        index: 19
      doseAndRate:
        elements:
          dose:
            choices: []
            index: 21
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 23
                  min: 0
                  max: 1
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 24
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 24}
                  min: 0
                  max: 1
          dose[x]:
            elements:
              value: {index: 25}
              unit: {index: 26}
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core']
    index: 6
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core']
            index: 6
          min: 0
          max: 1
  subject:
    type: Reference
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core']
    index: 12
    elements:
      reference: {index: 13}
    required: [reference]
  medication:
    choices: [medicationCodeableConcept]
    index: 8
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 8
          min: 0
          max: 1
  reasonReference: {index: 15}
package_version: 1.2.0-dft-ballot
extensions:
  RenderedDosageInstruction: {url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-medication-rendered-dosage', min: 0, max: 1, short: Extension for representing rendered dosage instruction., type: Extension, index: 1}
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medicationrequest-ca-core
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.1.0