PackagesCanonicalsLogsProblems
    Packages
    rs/il.core.fhir.r4@0.3.0
    http://fhir.health.gov.il/StructureDefinition/il-core-patient
description: Proposed constraints and extensions on the Patient Resource.
package_name: rs/il.core.fhir.r4
derivation: constraint
name: ILCorePatient
type: Patient
elements:
  address: {type: Address, index: 22}
  managingOrganization:
    type: Reference
    refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
    index: 26
  name:
    mustSupport: true
    index: 14
    elements:
      family: {mustSupport: true, index: 15}
      given: {mustSupport: true, index: 16}
    required: [family, given]
  birthDate: {mustSupport: true, index: 21}
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        hmo:
          match: {url: null}
          schema: {short: 'Extension: Israel Core HMO (קופת חולים)', type: Extension, mustSupport: true, url: 'http://fhir.health.gov.il/StructureDefinition/ext-il-hmo', index: 1}
          min: 0
          max: 1
        parentName:
          match: {url: null}
          schema: {short: 'Extension: The name of the parent', type: Extension, mustSupport: true, url: 'http://fhir.health.gov.il/StructureDefinition/ext-parent-name', index: 2}
          min: 0
  link:
    elements:
      other:
        type: Reference
        refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-patient', 'http://fhir.health.gov.il/StructureDefinition/il-core-related-person']
        index: 27
  communication:
    elements:
      language: {mustSupport: true, index: 24}
  identifier:
    index: 3
    elements:
      system: {mustSupport: true, index: 4}
      value: {short: The value that is unique within the system., mustSupport: true, index: 5}
    required: [system, value]
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        il-id:
          match: {system: 'http://fhir.health.gov.il/identifier/il-national-id'}
          schema:
            short: Israeli National Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value: {system: 'http://fhir.health.gov.il/identifier/il-national-id'}
            type: Identifier
            index: 6
            elements:
              value:
                short: An Israeli ID number
                constraint:
                  il-id-chk:
                    human: Israeli ID must be 9-digits with a correct check-digit at the end.
                    source: http://fhir.health.gov.il/StructureDefinition/il-core-patient
                    severity: error
                    expression: "\r\nmatches('[0-9]{9}') and\r\nsubstring(8,1).toInteger()=\r\n(10-((substring(0,1).toInteger() +\r\nsubstring(1,1).toInteger()*2 mod 10 +\r\nsubstring(1,1).toInteger()*2 div 10 +\r\nsubstring(2,1).toInteger() +\r\nsubstring(3,1).toInteger()*2 mod 10 +\r\nsubstring(3,1).toInteger()*2 div 10 +\r\nsubstring(4,1).toInteger() +\r\nsubstring(5,1).toInteger()*2 mod 10 +\r\nsubstring(5,1).toInteger()*2 div 10 +\r\nsubstring(6,1).toInteger() +\r\nsubstring(7,1).toInteger()*2 mod 10 +\r\nsubstring(7,1).toInteger()*2 div 10) mod 10)) mod 10\r\n"
                index: 7
        pna-id:
          match: {system: 'http://fhir.health.gov.il/identifier/pna-national-id'}
          schema:
            short: Palestinian National Identifier
            mustSupport: false
            pattern:
              type: Identifier
              value: {system: 'http://fhir.health.gov.il/identifier/pna-national-id'}
            type: Identifier
            index: 8
            elements:
              value: {short: A Palestininan ID number, index: 9}
        ppn:
          match:
            type:
              coding:
              - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            short: Passport Number
            mustSupport: false
            array: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
            type: Identifier
            index: 10
            elements:
              type: {index: 11}
              system:
                binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/passport-uri'}
                index: 12
              value: {short: Passport Number, index: 13}
            required: [type]
  telecom:
    elements:
      system: {mustSupport: true, index: 17}
      value: {mustSupport: true, index: 18}
      use: {mustSupport: true, index: 19}
    required: [system, value]
  generalPractitioner:
    type: Reference
    refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization', 'http://fhir.health.gov.il/StructureDefinition/il-core-practitioner', 'http://fhir.health.gov.il/StructureDefinition/il-core-practitioner-role']
    index: 25
  gender: {mustSupport: true, index: 20}
  contact:
    elements:
      organization:
        type: Reference
        refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
        index: 23
package_version: 0.3.0
extensions:
  hmo: {url: 'http://fhir.health.gov.il/StructureDefinition/ext-il-hmo', min: 0, max: 1, short: 'Extension: Israel Core HMO (קופת חולים)', type: Extension, mustSupport: true, index: 1}
  parentName: {url: 'http://fhir.health.gov.il/StructureDefinition/ext-parent-name', min: 0, short: 'Extension: The name of the parent', type: Extension, mustSupport: true, index: 2}
class: profile
kind: resource
url: http://fhir.health.gov.il/StructureDefinition/il-core-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.3.0
required: [birthDate, gender, identifier, name]