PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.psca@0.0.4
    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. It is informed by the constraints of the [Patient IPS-UV profile](http://hl7.org/fhir/uv/ips/StructureDefinition-Patient-uv-ips.html) and the [Canadian Baseline Profile](http://build.fhir.org/ig/HL7-Canada/ca-baseline/branches/master/StructureDefinition-profile-patient.html)
package_name: ca.infoway.io.psca
derivation: constraint
name: PatientPSCA
type: Patient
elements:
  address:
    constraint:
      pat-cnt-2or3-char: {human: 'The content of the country element (if present) SHALL be selected EITHER from ValueSet ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2 OR MAY be selected from ISO Country Alpha-3 Value Set http://hl7.org/fhir/ValueSet/iso3166-1-3, IF the country is not specified in value Set ISO Country Alpha-2 http://hl7.org/fhir/ValueSet/iso3166-1-2.', severity: warning, expression: 'country.empty() or (country.memberOf(''http://hl7.org/fhir/ValueSet/iso3166-1-2'') or country.memberOf(''http://hl7.org/fhir/ValueSet/iso3166-1-3''))'}
    index: 25
  name:
    constraint:
      cabaseline-pat-1: {human: Patient.name.given or Patient.name.family or both SHALL be present, severity: error, expression: family.exists() or given.exists()}
    mustSupport: true
    index: 18
    elements:
      text: {mustSupport: true, index: 19}
      family: {mustSupport: true, index: 20}
      given: {mustSupport: true, index: 21}
  birthDate: {mustSupport: true, index: 24}
  communication:
    index: 34
    elements:
      language:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/all-languages'}
        index: 35
  identifier:
    type: Identifier
    mustSupport: true
    index: 0
    elements:
      type: {index: 1}
      system: {index: 2}
      value: {short: The value that is unique within the system., index: 3}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: null
      slices:
        PPN:
          match:
            type:
              coding:
              - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Canada Passport Number
            index: 4
            elements:
              type:
                short: Passport number identifier type
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 5
              system:
                short: A Canadian passport number Naming System from the Canadian URI Registry
                pattern: {type: Uri, value: 'https://fhir.infoway-inforoute.ca/NamingSystem/ca-passport-number'}
                index: 6
              value: {short: A Canadian passport number, index: 7}
            required: [value, type, system]
        JPID:
          match:
            type:
              coding:
              - {code: JPID}
          schema:
            short: Jurisdictional Person Identification
            index: 8
            elements:
              type:
                short: Jurisdictional Person Identification
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JPID}
                index: 9
              system: {short: Jurisdictional Person identification Naming System from the Canadian URI Registry, index: 10}
              value: {short: Jurisdictional Person identification number, index: 11}
            required: [value, type, system]
        JHN:
          match:
            type:
              coding:
              - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Jurisdictional Health Number
            index: 12
            extensions:
              versionCode: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', type: Extension, short: Health Number Version Code, index: 14}
            elements:
              extension:
                index: 13
                slicing:
                  rules: open
                  discriminator:
                  - {path: url, type: value}
                  min: null
                  slices:
                    versionCode:
                      match: {url: null}
                      schema: {type: Extension, short: Health Number Version Code, url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', index: 14}
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 15
              system: {short: A Health Number Naming System from the Canadian URI Registry, index: 16}
              value: {index: 17}
            required: [value, type, system]
  telecom: {index: 22}
  generalPractitioner: {index: 36}
  gender: {mustSupport: true, index: 23}
  contact:
    index: 26
    elements:
      relationship:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/patient-contactrelationship'}
        index: 27
        elements:
          coding:
            index: 28
            slicing:
              rules: open
              description: Discriminated by value set
              discriminator:
              - {path: $this, type: pattern}
              min: null
              slices:
                personalrelationshipV3:
                  match: {}
                  schema:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/uv/ips/ValueSet/personal-relationship-uv-ips'}
                    _required: true
                    index: 29
                  min: 1
                  max: 1
      name: {index: 30}
      telecom: {index: 31}
      address: {index: 32}
      organization: {index: 33}
package_version: 0.0.4
class: profile
kind: resource
url: http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.0.4
required: [gender, name, birthDate]