PackagesCanonicalsLogsProblems
    Packages
    rs/ca.ab.fhir.aberec1@1.0.2
    https://www.alberta.ca/fhir/aberec/StructureDefinition/PatientABeReC
description: This profile defines a set of constraints to the FHIR Patient resource for use in Alberta eReferral and eConsult (AB:eReC). It re-profiles the CA-eReC Patient profile and it includes constraints that represent the minimum expectations for the Patient resource when used in the AB:eReC.
package_name: rs/ca.ab.fhir.aberec1
derivation: constraint
name: PatientABeReC
type: Patient
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        individual-recordedSexOrGender:
          match: {url: null}
          schema:
            short: Extension for representing an individuals recorded sex or gender.
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender
            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:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        JHN:
          match:
            type:
              coding:
              - {code: JHN}
          schema:
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 9
            extensions:
              HealthCardNumberVersionCode: {url: null, index: 10}
              ReasonForNoHCN: {url: null, index: 11}
            elements:
              extension:
                index: 10
                slicing:
                  slices:
                    HealthCardNumberVersionCode:
                      match: {}
                      schema: {index: 10}
                    ReasonForNoHCN:
                      match: {}
                      schema: {index: 11}
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JHN}
                type: CodeableConcept
                index: 12
              system: {index: 13}
              value: {index: 14}
            required: [system, type, value]
  name:
    elements:
      text: {mustSupport: true, index: 15}
    required: [text]
  telecom:
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: system, type: pattern}
      min: null
      slices:
        Phone:
          match: {system: phone}
          schema:
            mustSupport: true
            array: true
            index: 17
            elements:
              system:
                pattern: {type: code, value: phone}
                type: code
                index: 18
            required: [system]
  birthDate: {index: 19}
  address:
    elements:
      use: {index: 20}
      type: {index: 21}
      line: {mustSupport: true, index: 22}
      city: {mustSupport: true, index: 23}
      state: {mustSupport: true, index: 24}
      postalCode: {index: 25}
    required: [city, line, postalCode, state]
  contact:
    elements:
      name: {index: 26}
    required: [name]
package_version: 1.0.2
extensions:
  individual-recordedSexOrGender:
    url: http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender
    short: Extension for representing an individuals recorded sex or gender.
    type: Extension
    mustSupport: 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/aberec/StructureDefinition/PatientABeReC
base: http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient
version: 1.0.2
required: [birthDate, extension]