PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.psca@2.2.0-ti-ballot
    http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps
description: This profile represents the 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.
package_name: ca.infoway.io.psca
derivation: constraint
name: PatientPSCA
type: Patient
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        individual-recordedSexOrGender:
          match: {url: null}
          schema: {type: Extension, short: Extension for representing an individuals recorded sex or gender., url: 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender', index: 1}
          min: 0
  identifier:
    mustSupport: true
    index: 2
    elements:
      type: {index: 3}
      system: {index: 4}
      value: {short: The value that is unique within the system., index: 5}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        JHN:
          match:
            type:
              coding:
              - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Jurisdictional Health Number
            array: true
            index: 6
            extensions:
              versionCode: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', min: 0, max: 1, type: Extension, short: Health Number Version Code, index: 7}
            elements:
              extension:
                type: Extension
                short: Health Number Version Code
                url: http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion
                index: 7
                slicing:
                  slices:
                    versionCode:
                      match: {}
                      schema: {type: Extension, short: Health Number Version Code, url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', index: 7}
                      min: 0
                      max: 1
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 8
              system: {short: A Health Number Naming System from the Canadian URI Registry, index: 9}
            required: [type]
        MRN:
          match:
            type:
              coding:
              - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Medical Record Number
            array: true
            index: 10
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 11
              system: {short: An identifier for the system supplying the MRN, index: 12}
            required: [type]
  name:
    constraint:
      core-pat-1: {human: Either Patient.name.given and/or Patient.name.family and/or Patient.name.text SHALL be present or a Data Absent Reason Extension SHALL be present., source: 'http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps', severity: error, expression: '(family.exists() or given.exists() or text.exists()) xor extension.where(url=''http://hl7.org/fhir/StructureDefinition/data-absent-reason'').exists()'}
    mustSupport: true
    index: 13
    elements:
      text: {mustSupport: true, index: 14}
      family: {mustSupport: true, index: 15}
      given: {mustSupport: true, index: 16}
  telecom:
    index: 17
    elements:
      system: {mustSupport: true, index: 18}
      value: {mustSupport: true, index: 19}
      use: {mustSupport: true, index: 20}
  gender: {mustSupport: true, index: 21}
  birthDate: {mustSupport: true, index: 22}
  address:
    mustSupport: true
    index: 23
    elements:
      line: {mustSupport: true, index: 24}
      city: {mustSupport: true, index: 25}
      postalCode: {mustSupport: true, index: 26}
      country: {mustSupport: true, index: 27}
  generalPractitioner: {index: 28}
package_version: 2.2.0-ti-ballot
extensions:
  individual-recordedSexOrGender: {url: 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender', min: 0, type: Extension, short: Extension for representing an individuals recorded sex or gender., index: 1}
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 2.2.0
required: [name, birthDate]