PackagesCanonicalsLogsProblems
    Packages
    ca.ab.fhir.psab@0.3.0-pre1
    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 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-CA composition profile or in one of the referred resources. It is informed by the constraints of the Patient-UV-IPS profile.
package_name: ca.ab.fhir.psab
derivation: constraint
name: PatientPSAB
type: Patient
elements:
  extension:
    index: 0
    slicing:
      slices:
        individual-recordedSexOrGender:
          match: {}
          schema: {type: Profile, short: Extension for representing an individuals recorded sex or gender., index: 1}
  identifier:
    index: 2
    slicing:
      slices:
        JHN:
          match: {}
          schema:
            short: Jurisdictional Health Number
            sliceIsConstraining: true
            index: 3
            elements:
              type:
                pattern: {type: Code, value: JHN}
                index: 4
              system:
                mustSupport: true
                index: 5
                slicing:
                  rules: open
                  discriminator:
                  - {path: system, type: value}
                  min: null
                  slices:
                    ULI:
                      match: {system: null}
                      schema:
                        pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-ab-patient-healthcare-id'}
                        _required: true
                        index: 6
                      min: 1
            required: [type]
  name:
    elements:
      text: {label: 'Mandatory String: Max Character length: 200', index: 7}
      family: {index: 8}
    required: [text, family]
  telecom:
    mustSupport: true
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: system, type: pattern}
      min: 1
      slices:
        Phone:
          match: {system: phone}
          schema:
            array: true
            min: 1
            _required: true
            index: 10
            elements:
              system:
                pattern: {type: Code, value: phone}
                index: 11
            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: 13}
    elements:
      extension:
        index: 12
        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: 13}
              min: 1
              max: 1
    required: [extension]
  address:
    mustSupport: true
    index: 14
    elements:
      use: {index: 15}
      type: {index: 16}
      line: {index: 17}
      city: {index: 18}
      state: {index: 19}
      postalCode: {index: 20}
    required: [city, postalCode, line, state]
  contact:
    elements:
      name: {index: 21}
    required: [name]
package_version: 0.3.0-pre1
extensions:
  individual-recordedSexOrGender: {url: null, type: Profile, short: Extension for representing an individuals recorded sex or gender., index: 1}
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: 0.3.0
required: [extension, identifier, telecom]