PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.core@0.3.0-dft-preballot
    http://fhir.infoway-inforoute.ca/ca-core/StructureDefinition/medicationstatement-ca-core
description: This profile represents the constraints applied to the MedicationStatement resource by the CA Core+ project to represent the minimum expectations for the MedicationStatement resource when used to promote capacity building for functionality found across Canadian FHIR implementations. It is informed by the constraints of shared across CIHI pCHDCF data sets and has also undergone analysis to assert alignment with the [Canadian Baseline MedicationStatement Profile](http://build.fhir.org/ig/HL7-Canada/ca-baseline/branches/master/StructureDefinition-profile-medicationstatement.html)
package_name: ca.infoway.io.core
derivation: constraint
name: MedicationStatementCACore
type: MedicationStatement
elements:
  dosage:
    elements:
      timing:
        index: 25
        elements:
          code:
            index: 26
            elements:
              coding:
                index: 27
                elements:
                  code: {index: 28}
      route:
        type: CodeableConcept
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration'}
        index: 29
        elements:
          coding:
            index: 30
            elements:
              code: {index: 31}
      doseAndRate:
        elements:
          dose:
            choices: []
            index: 33
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 35
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 36
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 36}
          dose[x]:
            elements:
              value: {index: 37}
              system: {index: 38}
              code: {index: 39}
  medication[x]:
    elements:
      coding:
        index: 8
        elements:
          system: {index: 9}
          code: {index: 10}
          display:
            index: 11
            extensions:
              translation: {url: 'http://hl7.org/fhir/StructureDefinition/translation', type: Extension, index: 12}
            elements:
              extension:
                type: Extension
                url: http://hl7.org/fhir/StructureDefinition/translation
                index: 12
                slicing:
                  slices:
                    translation:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/translation', index: 12}
        required: [display, system, code]
      text: {index: 13}
    required: [coding]
  reasonCode:
    binding: {strength: preferred, valueSet: 'http://fhir.infoway-inforoute.ca/ca-core/ValueSet/PHCVS'}
    index: 22
    elements:
      coding:
        index: 23
        elements:
          code: {index: 24}
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 7
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 7}
  effective[x]:
    elements:
      end: {index: 20}
  effective:
    choices: []
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        effectivePeriod:
          match: {}
          schema:
            choices: [effectivePeriod]
            index: 18
  dateAsserted: {index: 21}
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://fhir.infoway-inforoute.ca/ca-core/StructureDefinition/medication-ca-core']
    index: 4
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['http://fhir.infoway-inforoute.ca/ca-core/StructureDefinition/medication-ca-core']
            index: 4
  subject:
    type: Reference
    refers: ['http://fhir.infoway-inforoute.ca/ca-core/StructureDefinition/patient-ca-core', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 14
  effectivePeriod:
    type: Period
    choiceOf: effective
    index: 19
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, choiceOf: effective, index: 19}
  medication:
    choices: [medicationCodeableConcept]
    index: 6
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 6
package_version: 0.3.0-dft-preballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/ca-core/StructureDefinition/medicationstatement-ca-core
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: null
required: [dateAsserted]