PackagesCanonicalsLogsProblems
    Packages
    il.core.fhir.r4@0.21.0
    http://fhir.health.gov.il/StructureDefinition/il-core-patient
description: Israel Core Proposed constraints and extensions on the Patient Resource.
package_name: il.core.fhir.r4
derivation: constraint
name: ILCorePatient
type: Patient
elements:
  address: {type: Address, index: 73}
  managingOrganization:
    type: Reference
    refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
    index: 84
  name:
    constraint:
      il-patient-name: {human: Either Patient.name.given and/or Patient.name.family SHALL be present or a Data Absent Reason Extension SHALL be present., source: 'http://fhir.health.gov.il/StructureDefinition/il-core-patient', severity: error, expression: '(family.exists() or given.exists()) or extension(''http://hl7.org/fhir/StructureDefinition/data-absent-reason'').exists()'}
    mustSupport: true
    index: 43
    extensions:
      dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 44}
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        index: 44
        slicing:
          slices:
            dataAbsentReason:
              match: {}
              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 44}
              min: 0
              max: 1
      family: {mustSupport: true, index: 45}
      given: {mustSupport: true, index: 46}
    slicing:
      rules: open
      discriminator:
      - {path: 'extension(''http://hl7.org/fhir/StructureDefinition/language'').value', type: value}
      min: 1
      slices:
        Hebrew:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'): {value: null}
          schema:
            mustSupport: true
            array: true
            index: 47
            extensions:
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 49}
              language:
                url: http://fhir.health.gov.il/StructureDefinition/il-core-language
                type: Extension
                index: 50
                elements:
                  value:
                    pattern: {type: Code, value: he}
                    choices: []
                    index: 52
            elements:
              extension:
                index: 48
                slicing:
                  slices:
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 49}
                      min: 0
                      max: 1
                    language:
                      match: {}
                      schema:
                        type: Extension
                        url: http://fhir.health.gov.il/StructureDefinition/il-core-language
                        index: 50
                        elements:
                          value:
                            pattern: {type: Code, value: he}
                            choices: []
                            index: 52
            required: [extension]
        English:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'): {value: null}
          schema:
            mustSupport: true
            array: true
            index: 53
            extensions:
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 55}
              language:
                url: http://fhir.health.gov.il/StructureDefinition/il-core-language
                type: Extension
                index: 56
                elements:
                  value:
                    pattern: {type: Code, value: en}
                    choices: []
                    index: 58
            elements:
              extension:
                index: 54
                slicing:
                  slices:
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 55}
                      min: 0
                      max: 1
                    language:
                      match: {}
                      schema:
                        type: Extension
                        url: http://fhir.health.gov.il/StructureDefinition/il-core-language
                        index: 56
                        elements:
                          value:
                            pattern: {type: Code, value: en}
                            choices: []
                            index: 58
            required: [extension]
        Arabic:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'): {value: null}
          schema:
            mustSupport: true
            array: true
            index: 59
            extensions:
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 61}
              language:
                url: http://fhir.health.gov.il/StructureDefinition/il-core-language
                type: Extension
                index: 62
                elements:
                  value:
                    pattern: {type: Code, value: ar}
                    choices: []
                    index: 64
            elements:
              extension:
                index: 60
                slicing:
                  slices:
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 61}
                      min: 0
                      max: 1
                    language:
                      match: {}
                      schema:
                        type: Extension
                        url: http://fhir.health.gov.il/StructureDefinition/il-core-language
                        index: 62
                        elements:
                          value:
                            pattern: {type: Code, value: ar}
                            choices: []
                            index: 64
            required: [extension]
  birthDate: {mustSupport: true, index: 72}
  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: Administrative Parent Name', type: Extension, mustSupport: true, url: 'http://fhir.health.gov.il/StructureDefinition/ext-administrative-parent-name', index: 2}
          min: 0
        birthPlace:
          match: {url: null}
          schema:
            type: Extension
            short: 'Extension: Place of Birth for patient'
            url: http://hl7.org/fhir/StructureDefinition/patient-birthPlace
            index: 3
            elements:
              value[x]:
                elements:
                  country:
                    binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/il-core-extended-country-codes'}
                    index: 4
                required: [country]
        immigration:
          match: {url: null}
          schema: {type: Extension, short: 'Extension: Patient Immigration', url: 'http://fhir.health.gov.il/StructureDefinition/ext-patient-immigration', index: 5}
          min: 0
        birthSex:
          match: {url: null}
          schema:
            type: Extension
            short: 'Extension: Person Recorded Sex Or Gender'
            url: http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender
            index: 6
            extensions:
              value:
                url: null
                index: 7
                elements:
                  value:
                    choices: []
                    index: 9
              type:
                url: null
                index: 10
                elements:
                  value:
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: 76689-9, system: 'http://loinc.org', display: Sex assigned at birth}
                    choices: []
                    index: 12
            elements:
              extension:
                index: 7
                slicing:
                  slices:
                    value:
                      match: {}
                      schema:
                        index: 7
                        elements:
                          value:
                            choices: []
                            index: 9
                    type:
                      match: {}
                      schema:
                        index: 10
                        elements:
                          value:
                            pattern:
                              type: CodeableConcept
                              value:
                                coding:
                                - {code: 76689-9, system: 'http://loinc.org', display: Sex assigned at birth}
                            choices: []
                            index: 12
  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: 85
  communication:
    elements:
      language: {mustSupport: true, index: 82}
  identifier:
    type: Identifier
    index: 13
    elements:
      system: {mustSupport: true, index: 14}
      value: {short: The value that is unique within the system., mustSupport: true, index: 15}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        il-id:
          match: {system: 'http://fhir.health.gov.il/identifier/il-national-id'}
          schema:
            short: Israeli National Identifier
            mustSupport: true
            index: 16
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/il-national-id'}
                index: 17
              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: "matches('^[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"
                index: 18
              assigner:
                type: Reference
                refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
                index: 19
        pna-id:
          match: {system: 'http://fhir.health.gov.il/identifier/pna-national-id'}
          schema:
            short: Palestinian National Identifier
            mustSupport: false
            index: 20
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/pna-national-id'}
                index: 21
              value: {short: A Palestininan ID number, index: 22}
        ppn:
          match: {system: null}
          schema:
            short: Passport Number
            mustSupport: false
            array: true
            index: 23
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 24
              system:
                binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/passport-uri'}
                index: 25
              value: {short: Passport Number, index: 26}
        prisoner-id:
          match: {system: 'http://fhir.health.gov.il/identifier/il-prisoner-number'}
          schema:
            short: Prisoner Number
            mustSupport: true
            index: 27
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/il-prisoner-number'}
                index: 28
              value:
                short: Prisoner Number
                constraint:
                  il-prison-num: {human: 'up to 8 digits prisoner number, allowing for hebrew characters', source: 'http://fhir.health.gov.il/StructureDefinition/il-core-patient', severity: error, expression: 'matches(''^[a-zA-Z0-9_אבגדהוזחטי כלמנסעפצקרתשךףץ]{0,8}$'')'}
                index: 29
              assigner:
                type: Reference
                refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
                index: 30
        enc-il-id:
          match: {system: 'http://fhir.health.gov.il/identifier/encrypted-id-primary-moh'}
          schema:
            short: National Identifier - MoH encrypted
            mustSupport: false
            array: true
            index: 31
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/encrypted-id-primary-moh'}
                index: 32
              value: {short: An encrypted identifier, index: 33}
              assigner:
                type: Reference
                refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
                index: 34
        entry-permit:
          match: {system: 'http://fhir.health.gov.il/identifier/il-entry-permit'}
          schema:
            short: Israeli Temporary entry permit
            mustSupport: true
            array: true
            index: 35
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/il-entry-permit'}
                index: 36
              value: {short: An Israeli Visa Number, index: 37}
              assigner:
                type: Reference
                refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
                index: 38
        enc-pna-id:
          match: {system: 'http://fhir.health.gov.il/identifier/encrypted-pna-id-primary-moh'}
          schema:
            short: Palestinian ID number
            mustSupport: false
            index: 39
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/encrypted-pna-id-primary-moh'}
                index: 40
              value: {short: A Palestininan ID number, index: 41}
              assigner:
                type: Reference
                refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
                index: 42
  telecom:
    extensions:
      purpose:
        url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
        type: Extension
        index: 65
        elements:
          value:
            choices: []
            index: 67
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
        index: 65
        slicing:
          slices:
            purpose:
              match: {}
              schema:
                type: Extension
                url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
                index: 65
                elements:
                  value:
                    choices: []
                    index: 67
      system: {mustSupport: true, index: 68}
      value: {mustSupport: true, index: 69}
      use: {mustSupport: true, index: 70}
    required: [value, system]
  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: 83
  gender: {mustSupport: true, index: 71}
  contact:
    index: 74
    elements:
      telecom:
        extensions:
          purpose:
            url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
            type: Extension
            index: 75
            elements:
              value:
                choices: []
                index: 77
        elements:
          extension:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
            index: 75
            slicing:
              slices:
                purpose:
                  match: {}
                  schema:
                    type: Extension
                    url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
                    index: 75
                    elements:
                      value:
                        choices: []
                        index: 77
      organization:
        type: Reference
        refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
        index: 78
    slicing:
      rules: open
      discriminator:
      - {path: relationship, type: pattern}
      min: null
      slices:
        parent:
          match:
            relationship:
              coding:
              - {code: PRN, system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
          schema:
            array: true
            index: 79
            elements:
              relationship:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PRN, system: 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'}
                index: 80
              telecom:
                extensions:
                  purpose: {url: 'http://hl7.org/fhir/StructureDefinition/contactpoint-purpose', min: 0, max: 1, type: Extension, index: 81}
                elements:
                  extension:
                    type: Extension
                    url: http://hl7.org/fhir/StructureDefinition/contactpoint-purpose
                    index: 81
                    slicing:
                      slices:
                        purpose:
                          match: {}
                          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/contactpoint-purpose', index: 81}
                          min: 0
                          max: 1
package_version: 0.21.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-administrative-parent-name', min: 0, short: 'Extension: Administrative Parent Name', type: Extension, mustSupport: true, index: 2}
  birthPlace:
    url: http://hl7.org/fhir/StructureDefinition/patient-birthPlace
    type: Extension
    short: 'Extension: Place of Birth for patient'
    index: 3
    elements:
      value[x]:
        elements:
          country:
            binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/il-core-extended-country-codes'}
            index: 4
        required: [country]
  immigration: {url: 'http://fhir.health.gov.il/StructureDefinition/ext-patient-immigration', min: 0, type: Extension, short: 'Extension: Patient Immigration', index: 5}
  birthSex:
    url: http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender
    type: Extension
    short: 'Extension: Person Recorded Sex Or Gender'
    index: 6
    extensions:
      value:
        url: null
        index: 7
        elements:
          value:
            choices: []
            index: 9
      type:
        url: null
        index: 10
        elements:
          value:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: 76689-9, system: 'http://loinc.org', display: Sex assigned at birth}
            choices: []
            index: 12
    elements:
      extension:
        index: 7
        slicing:
          slices:
            value:
              match: {}
              schema:
                index: 7
                elements:
                  value:
                    choices: []
                    index: 9
            type:
              match: {}
              schema:
                index: 10
                elements:
                  value:
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: 76689-9, system: 'http://loinc.org', display: Sex assigned at birth}
                    choices: []
                    index: 12
class: profile
kind: resource
url: http://fhir.health.gov.il/StructureDefinition/il-core-patient
base: http://hl7.org/fhir/StructureDefinition/Patient
version: 0.21.0
required: [gender, name, identifier, birthDate]