PackagesCanonicalsLogsProblems
    Packages
    ca.ab.fhir.psab@0.3.0-pre4
    https://www.alberta.ca/fhir/psab/StructureDefinition/ConditionPSAB
description: This profile defines a set of constraints to the FHIR Condition resource for use in Alberta Patient Summaries (PS-AB). It re-profiles the PS-CA Condition profile and refines constraints applied to the Condition resource by the PS-CA project to represent the minimum expectations for the Condition resource when used in the PS-AB Composition profile.
package_name: ca.ab.fhir.psab
derivation: constraint
name: ConditionPSAB
type: Condition
elements:
  clinicalStatus: {index: 0}
  category:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: Coding.code, type: value}
      min: null
      slices:
        problemListItem:
          match:
            Coding: {code: null}
          schema:
            mustSupport: true
            index: 2
            elements:
              coding:
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/condition-category'}
                    index: 3
                  code:
                    pattern: {type: Code, value: problem-list-item}
                    index: 4
  code:
    constraint:
      psab-con-1: {human: 'If Condition.code.coding exists, then at least one coding shall be from the ICD9CM ValueSet', source: 'https://www.alberta.ca/fhir/psab/StructureDefinition/ConditionPSAB', severity: error, expression: 'coding.exists() implies $this.memberOf(''http://fhir.infoway-inforoute.ca/io/psca/ValueSet/ICD9CM'')'}
    index: 5
    elements:
      coding:
        index: 6
        slicing:
          rules: open
          discriminator:
          - {path: system, type: pattern}
          min: null
          slices:
            ICD9:
              match: {system: 'http://terminology.hl7.org/CodeSystem/icd9cm'}
              schema:
                mustSupport: true
                array: true
                index: 7
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/icd9cm'}
                    index: 8
                required: [system]
      text: {index: 9}
    required: [text]
  subject:
    type: Reference
    refers: ['https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB']
    index: 10
  onset:
    choices: []
    index: 12
    slicing:
      slices:
        onsetDateTime:
          match: {}
          schema:
            choices: [onsetDateTime]
            index: 14
  onsetDateTime:
    type: dateTime
    choiceOf: onset
    index: 15
    slicing:
      slices:
        onsetDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: onset, index: 15}
  note: {index: 16}
package_version: 0.3.0-pre4
class: profile
kind: resource
url: https://www.alberta.ca/fhir/psab/StructureDefinition/ConditionPSAB
base: http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/condition-ca-ps
version: 0.3.0
required: [onset]