PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.core@1.0.1-dft-preballot
    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: 11}
          code: {index: 12}
          display: {index: 13}
      text: {index: 14}
  reasonCode:
    type: CodeableConcept
    binding: {strength: preferred, valueSet: 'http://fhir.infoway-inforoute.ca/cacore/ValueSet/PHCVS'}
    index: 18
    elements:
      coding:
        elements:
          system: {index: 19}
          code: {index: 20}
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 10
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 10}
          min: 0
          max: 1
  authoredOn: {index: 17}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        strengthDescription:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description', index: 1}
          min: 0
  status: {mustSupport: true, index: 2}
  dosageInstruction:
    mustSupport: true
    index: 21
    elements:
      text: {mustSupport: true, index: 22}
      timing:
        index: 23
        elements:
          repeat:
            elements:
              bounds:
                choices: []
                index: 25
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    boundsPeriod:
                      match: {}
                      schema:
                        choices: [boundsPeriod]
                        index: 27
                      min: 0
                      max: 1
              boundsPeriod:
                type: Period
                choiceOf: bounds
                index: 28
                slicing:
                  slices:
                    boundsPeriod:
                      match: {}
                      schema: {type: Period, choiceOf: bounds, index: 28}
                      min: 0
                      max: 1
              bounds[x]:
                elements:
                  end: {index: 29}
          code: {index: 30}
      route:
        type: CodeableConcept
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
        index: 31
        elements:
          coding:
            mustSupport: true
            index: 32
            elements:
              system: {mustSupport: true, index: 33}
              code: {mustSupport: true, index: 34}
            required: [system, code]
      doseAndRate:
        index: 35
        elements:
          dose:
            choices: []
            index: 37
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 39
                  min: 0
                  max: 1
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 40
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 40}
                  min: 0
                  max: 1
          dose[x]:
            elements:
              value: {index: 41}
              system: {index: 42}
              code: {index: 43}
  medicationReference:
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core']
    type: Reference
    choiceOf: medication
    index: 7
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core']
            type: Reference
            choiceOf: medication
            index: 7
          min: 0
          max: 1
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core']
    index: 15
    elements:
      reference: {mustSupport: true, index: 16}
    required: [reference]
  medication:
    choices: [medicationCodeableConcept]
    index: 9
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 9
          min: 0
          max: 1
package_version: 1.0.1-dft-preballot
extensions:
  strengthDescription: {url: 'http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description', min: 0, type: Extension, mustSupport: true, 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.0.0