PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.core@1.1.0-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: 10}
          display: {index: 11}
      text: {index: 12}
  reasonCode:
    type: CodeableConcept
    binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/medicationreasoncode'}
    index: 17
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 9
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 9}
          min: 0
          max: 1
  authoredOn: {index: 15}
  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
  requester: {index: 16}
  dosageInstruction:
    index: 19
    elements:
      text: {index: 20}
      timing: {index: 21}
      route:
        type: CodeableConcept
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
        index: 22
      doseAndRate:
        elements:
          dose:
            choices: []
            index: 24
  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: 13
    elements:
      reference: {index: 14}
    required: [reference]
  medication:
    choices: [medicationCodeableConcept]
    index: 8
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 8
          min: 0
          max: 1
  reasonReference: {index: 18}
package_version: 1.1.0-dft-preballot
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