PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh.patient-summary@0.10.0-alpha-1
    http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-patient
description: This profile defines a set of constraints to the FHIR Patient resource for use in Ontario Patient Summaries (PS-ON).  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](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.on.oh.patient-summary
derivation: constraint
name: PatientPSON
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''))'}
    mustSupport: true
    index: 24
  meta:
    mustSupport: true
    index: 1
    elements:
      profile: {mustSupport: true, index: 2}
    required: [profile]
  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
    array: true
    min: 1
    index: 17
    elements:
      text: {mustSupport: true, index: 18}
      family: {mustSupport: true, index: 19}
      given: {mustSupport: true, index: 20}
  birthDate: {mustSupport: true, index: 23}
  communication:
    mustSupport: true
    index: 31
    elements:
      language:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/all-languages'}
        mustSupport: true
        index: 32
  id: {index: 0}
  identifier:
    type: Identifier
    mustSupport: true
    index: 3
    elements:
      type: {index: 4}
      system: {isModifier: false, index: 5}
      value: {short: The value that is unique within the system., isModifier: false, index: 6}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 1
      slices:
        JHN:
          match:
            type:
              coding:
              - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Jurisdictional Health Number
            mustSupport: true
            index: 7
            extensions:
              versionCode: {url: 'http://hl7.org/fhir/ca/baseline/StructureDefinition/ext-identifierversion', type: Extension, short: Health Number Version Code, index: 9}
            elements:
              extension:
                index: 8
                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: 9}
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: JHN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 10
              system: {short: A Health Number Naming System from the Canadian URI Registry, index: 11}
              value: {index: 12}
            required: [value, type, system]
        MRN:
          match:
            type:
              coding:
              - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Medical Record Number
            mustSupport: true
            index: 13
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: MR, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 14
              system: {short: An identifier for the system supplying the MRN, index: 15}
              value: {index: 16}
            required: [value, type, system]
  telecom: {mustSupport: true, index: 21}
  generalPractitioner:
    mustSupport: true
    index: 33
    slicing:
      rules: open
      discriminator:
      - {path: resolve(), type: profile}
      min: null
      slices:
        PractitionerRolePSON:
          match: {}
          schema:
            type: Reference
            mustSupport: true
            refers: ['http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-practitionerrole']
            index: 34
  gender: {mustSupport: true, index: 22}
  contact:
    mustSupport: true
    index: 25
    elements:
      relationship:
        type: CodeableConcept
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/patient-contactrelationship'}
        mustSupport: true
        index: 26
      name: {mustSupport: true, index: 27}
      telecom: {mustSupport: true, index: 28}
      address: {mustSupport: true, index: 29}
      organization: {index: 30}
package_version: 0.10.0-alpha-1
class: profile
kind: resource
url: http://ontariohealth.ca/fhir/StructureDefinition/ca-on-ps-profile-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.9.1
required: [gender, name, identifier, birthDate, meta]