PackagesCanonicalsLogsProblems
    Packages
    ca.ab.fhir.psab@0.3.0-pre11
    https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB
description: This profile defines a set of constraints to the FHIR Patient resource for use in Alberta Patient Summaries (PS-AB). It re-profiles the PS-CA Patient profile and refines constraints applied to the Patient resource by the PS-CA project to represent the minimum expectations for the Patient resource when used in the PS-AB Composition profile or in one of the referred resources.
package_name: ca.ab.fhir.psab
derivation: constraint
name: PatientPSAB
type: Patient
elements:
  extension:
    index: 0
    slicing:
      slices:
        individual-recordedSexOrGender:
          match: {}
          schema:
            mustSupport: true
            _required: true
            index: 1
            extensions:
              value:
                url: null
                index: 2
                elements:
                  value:
                    choices: []
                    index: 4
              type:
                url: null
                index: 5
                elements:
                  value:
                    choices: []
                    index: 7
            elements:
              extension:
                index: 2
                slicing:
                  slices:
                    value:
                      match: {}
                      schema:
                        index: 2
                        elements:
                          value:
                            choices: []
                            index: 4
                    type:
                      match: {}
                      schema:
                        index: 5
                        elements:
                          value:
                            choices: []
                            index: 7
  identifier:
    index: 8
    slicing:
      slices:
        JHN:
          match: {}
          schema:
            mustSupport: true
            sliceIsConstraining: true
            _required: true
            index: 9
            elements:
              type: {mustSupport: true, index: 10}
              system: {mustSupport: true, index: 11}
              value: {mustSupport: true, index: 12}
  name:
    elements:
      text: {index: 13}
      family: {index: 14}
    required: [text, family]
  telecom:
    mustSupport: true
    index: 15
    slicing:
      rules: open
      discriminator:
      - {path: system, type: pattern}
      min: null
      slices:
        Phone:
          match: {system: phone}
          schema:
            mustSupport: true
            array: true
            index: 16
            elements:
              system:
                pattern: {type: Code, value: phone}
                mustSupport: true
                index: 17
            required: [system]
  gender:
    extensions:
      data-absent-reason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 1, max: 1, short: element absence reason, type: Extension, mustSupport: true, index: 19}
    elements:
      extension:
        index: 18
        slicing:
          rules: open
          description: Extensions are always sliced by (at least) url
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            data-absent-reason:
              match: {url: null}
              schema: {short: element absence reason, type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 19}
              min: 1
              max: 1
    required: [extension]
  address:
    mustSupport: true
    index: 20
    elements:
      use: {index: 21}
      type: {index: 22}
      line: {mustSupport: true, index: 23}
      city: {mustSupport: true, index: 24}
      state: {mustSupport: true, index: 25}
      postalCode: {mustSupport: true, index: 26}
    required: [city, postalCode, line, state]
  contact:
    elements:
      name: {index: 27}
    required: [name]
package_version: 0.3.0-pre11
extensions:
  individual-recordedSexOrGender:
    url: null
    mustSupport: true
    _required: true
    index: 1
    extensions:
      value:
        url: null
        index: 2
        elements:
          value:
            choices: []
            index: 4
      type:
        url: null
        index: 5
        elements:
          value:
            choices: []
            index: 7
    elements:
      extension:
        index: 2
        slicing:
          slices:
            value:
              match: {}
              schema:
                index: 2
                elements:
                  value:
                    choices: []
                    index: 4
            type:
              match: {}
              schema:
                index: 5
                elements:
                  value:
                    choices: []
                    index: 7
class: profile
kind: resource
url: https://www.alberta.ca/fhir/psab/StructureDefinition/PatientPSAB
base: http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps
version: null
required: [extension, identifier]