PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.pcare@0.1.0-dft-preballot
    http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication-statement
description: The P-Care profile for recording a person's reported medication use.
package_name: ca.infoway.io.pcare
derivation: constraint
name: PCareMedicationStatement
type: MedicationStatement
elements:
  dosage:
    index: 21
    elements:
      text: {index: 22}
      route:
        type: CodeableConcept
        binding: {strength: preferred, valueSet: 'https://fhir.infoway-inforoute.ca/ValueSet/routeofadministration|1.2.1-dft'}
        index: 23
        elements:
          text:
            constraint:
              pcare-mst-2: {human: MedicationStatement.dosage.route.text value should not exceed 20 characters for PS-AB compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication-statement', severity: warning, expression: length() <= 20}
            index: 24
      doseAndRate: {index: 25}
  medication[x]:
    elements:
      coding: {index: 9}
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 8
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 8}
  effectiveDateTime:
    type: dateTime
    choiceOf: effective
    index: 19
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, index: 19}
          min: 0
          max: 1
  status:
    constraint:
      pcare-mst-1: {human: MedicationStatement.status is expected to equal 'unknown' for PS-AB compatibility., source: 'http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication-statement', severity: warning, expression: $this = 'unknown'}
    index: 0
  effective:
    choices: [effectiveDateTime]
    index: 18
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            choices: [effectiveDateTime]
            index: 18
          min: 0
          max: 1
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication']
    index: 5
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication']
            index: 5
  informationSource: {index: 20}
  subject:
    type: Reference
    refers: ['http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/patient']
    index: 10
    elements:
      reference: {index: 11}
  effectivePeriod:
    type: Period
    choiceOf: effective
    index: 16
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, choiceOf: effective, index: 16}
  medication:
    choices: [medicationCodeableConcept]
    index: 7
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            choices: [medicationCodeableConcept]
            index: 7
package_version: 0.1.0-dft-preballot
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/p-care/StructureDefinition/medication-statement
base: http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/medicationstatement-ca-core
version: 0.1.0