PackagesCanonicalsLogsProblems
    Packages
    ca.ab.fhir.psab@0.3.0-pre11
    https://www.alberta.ca/fhir/psab/StructureDefinition/ObservationSocialHistoryPSAB
description: This profile defines a set of constraints to the FHIR Observation (Social History) resource for use in Alberta Patient Summaries (PS-AB). It re-profiles the PS-CA Social History (General) profile and refines constraints applied to the Observation (Social History) resource when used in the PS-AB Composition profile.
package_name: ca.ab.fhir.psab
derivation: constraint
name: ObservationSocialHistoryPSAB
type: Observation
elements:
  category:
    sliceIsConstraining: true
    index: 0
    slicing:
      slices:
        social-history:
          match: {}
          schema:
            sliceIsConstraining: true
            index: 0
            elements:
              coding:
                mustSupport: true
                index: 1
                elements:
                  system: {mustSupport: true, index: 2}
                  code: {mustSupport: true, index: 3}
  value:
    choices: []
    index: 13
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        valueString:
          match: {}
          schema:
            mustSupport: true
            choices: [valueString]
            index: 15
          min: 0
          max: 1
  valueString:
    type: string
    mustSupport: true
    choiceOf: value
    index: 16
    slicing:
      slices:
        valueString:
          match: {}
          schema: {type: string, mustSupport: true, choiceOf: value, index: 16}
          min: 0
          max: 1
  note: {short: Lifestyle Risk Factor Notes, index: 17}
  effectiveDateTime:
    type: dateTime
    mustSupport: true
    choiceOf: effective
    index: 10
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, mustSupport: true, choiceOf: effective, index: 10}
          min: 0
          max: 1
  effective:
    mustSupport: true
    choices: []
    index: 7
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        effectiveDateTime:
          match: {}
          schema:
            mustSupport: true
            choices: [effectiveDateTime]
            index: 9
          min: 0
          max: 1
  code:
    elements:
      text: {index: 4}
    required: [text]
  subject:
    type: Reference
    refers: ['https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB']
    index: 5
  performer:
    type: Reference
    refers: ['https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB', 'https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerPSAB', 'https://www.alberta.ca/fhir/psab/StructureDefinition/PractitionerRolePSAB']
    index: 11
package_version: 0.3.0-pre11
class: profile
kind: resource
url: https://www.alberta.ca/fhir/psab/StructureDefinition/ObservationSocialHistoryPSAB
base: http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/observation-socialhistory-ca-ps
version: null