PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.core@1.0.0-dft-preballot
    http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medicationstatement-ca-core
description: This profile applies constraints to the MedicationStatement resource for CA Core+ to support documentation of medication usage in the pan-Canadian context.
package_name: ca.infoway.io.core
derivation: constraint
name: MedicationStatementCACore
type: MedicationStatement
elements:
  dosage:
    mustSupport: true
    index: 27
    elements:
      text: {mustSupport: true, index: 28}
      timing:
        elements:
          code: {index: 29}
      route:
        type: CodeableConcept
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
        mustSupport: true
        index: 30
        elements:
          coding:
            elements:
              system: {index: 31}
              code: {index: 32}
      doseAndRate:
        index: 33
        elements:
          dose:
            choices: []
            index: 35
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 37
                  min: 0
                  max: 1
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 38
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 38}
                  min: 0
                  max: 1
          dose[x]:
            elements:
              value: {index: 39}
              system: {index: 40}
              code: {index: 41}
  medication[x]:
    elements:
      coding:
        mustSupport: true
        index: 9
        elements:
          system: {mustSupport: true, index: 10}
          code: {mustSupport: true, index: 11}
          display: {mustSupport: true, index: 12}
        required: [display, system, code]
      text: {mustSupport: true, index: 13}
    required: [coding]
  reasonCode:
    type: CodeableConcept
    binding: {strength: preferred, valueSet: 'http://fhir.infoway-inforoute.ca/cacore/ValueSet/PHCVS'}
    mustSupport: true
    index: 23
    elements:
      coding:
        elements:
          system: {mustSupport: true, index: 24}
          code: {mustSupport: true, index: 25}
        required: [system, code]
      text: {mustSupport: true, index: 26}
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 8
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 8}
          min: 0
          max: 1
  effective[x]:
    extensions:
      data-absent-reason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, short: 'effective[x] absence reason', type: Extension, mustSupport: true, index: 18}
    elements:
      extension:
        short: effective[x] absence reason
        type: Extension
        mustSupport: true
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        index: 18
        slicing:
          slices:
            data-absent-reason:
              match: {}
              schema: {short: 'effective[x] absence reason', type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 18}
              min: 0
              max: 1
  status: {mustSupport: true, index: 0}
  effective:
    choices: [effectivePeriod]
    index: 20
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            choices: [effectivePeriod]
            index: 20
          min: 0
          max: 1
  dateAsserted: {index: 22}
  medicationReference:
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core']
    type: Reference
    choiceOf: medication
    index: 5
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medication-ca-core']
            type: Reference
            choiceOf: medication
            index: 5
          min: 0
          max: 1
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 14
    elements:
      reference: {mustSupport: true, index: 15}
  effectivePeriod:
    type: Period
    choiceOf: effective
    index: 21
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, choiceOf: effective, index: 21}
          min: 0
          max: 1
  medication:
    choices: [medicationCodeableConcept]
    index: 7
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 7
          min: 0
          max: 1
package_version: 1.0.0-dft-preballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medicationstatement-ca-core
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: null