PackagesCanonicalsLogsProblems
    Packages
    il.core.fhir.r4@0.15.2
    http://fhir.health.gov.il/StructureDefinition/il-core-related-person
description: Israel Core proposed constraints and extensions on the RelatedPerson Resource
package_name: il.core.fhir.r4
derivation: constraint
name: ILCoreRelatedPerson
type: RelatedPerson
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        parentName:
          match: {url: null}
          schema: {short: 'Extension: The name of the parent', type: Extension, mustSupport: true, url: 'http://fhir.health.gov.il/StructureDefinition/ext-administrative-parent-name', index: 1}
          min: 0
  identifier:
    index: 2
    elements:
      system: {mustSupport: true, index: 3}
      value: {short: The value that is unique within the system., mustSupport: true, index: 4}
      assigner:
        type: Reference
        refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-organization']
        index: 5
    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: 6
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/il-national-id'}
                index: 7
              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-related-person
                    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: 8
        pna-id:
          match: {system: 'http://fhir.health.gov.il/identifier/pna-national-id'}
          schema:
            short: Palestinian National Identifier
            mustSupport: false
            index: 9
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/pna-national-id'}
                index: 10
              value: {short: A Palestininan ID number, index: 11}
        ppn:
          match: {system: null}
          schema:
            short: Passport Number
            mustSupport: false
            array: true
            index: 12
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: PPN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                index: 13
              system:
                binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/passport-uri'}
                index: 14
              value: {short: Passport Number, index: 15}
        enc:
          match: {system: 'http://fhir.health.gov.il/identifier/encrypted-id-primary-moh'}
          schema:
            short: Person's Identifier - MoH encrypted
            mustSupport: false
            array: true
            index: 16
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.health.gov.il/identifier/encrypted-id-primary-moh'}
                index: 17
              value: {short: An encrypted identifier, index: 18}
  active: {mustSupport: true, index: 19}
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-patient']
    index: 20
  relationship:
    binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/patient-relationship-type'}
    mustSupport: true
    index: 21
  name:
    mustSupport: true
    index: 22
    extensions:
      dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 23}
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/data-absent-reason
        index: 23
        slicing:
          slices:
            dataAbsentReason:
              match: {}
              schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 23}
              min: 0
              max: 1
    slicing:
      rules: open
      discriminator:
      - {path: 'extension(''http://hl7.org/fhir/StructureDefinition/language'').value.ofType(code)', type: value}
      min: null
      slices:
        Hebrew:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'):
                value: {ofType(code): null}
          schema:
            array: true
            index: 24
            extensions:
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 26}
              language:
                url: http://hl7.org/fhir/StructureDefinition/language
                type: Extension
                index: 27
                elements:
                  value:
                    pattern: {type: Code, value: he}
                    choices: []
                    index: 29
            elements:
              extension:
                index: 25
                slicing:
                  slices:
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 26}
                      min: 0
                      max: 1
                    language:
                      match: {}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/language
                        index: 27
                        elements:
                          value:
                            pattern: {type: Code, value: he}
                            choices: []
                            index: 29
            required: [extension]
        English:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'):
                value: {ofType(code): null}
          schema:
            array: true
            index: 30
            extensions:
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 32}
              language:
                url: http://hl7.org/fhir/StructureDefinition/language
                type: Extension
                index: 33
                elements:
                  value:
                    pattern: {type: Code, value: en}
                    choices: []
                    index: 35
            elements:
              extension:
                index: 31
                slicing:
                  slices:
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 32}
                      min: 0
                      max: 1
                    language:
                      match: {}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/language
                        index: 33
                        elements:
                          value:
                            pattern: {type: Code, value: en}
                            choices: []
                            index: 35
            required: [extension]
        Arabic:
          match:
            extension('http://hl7:
              org/fhir/StructureDefinition/language'):
                value: {ofType(code): null}
          schema:
            array: true
            index: 36
            extensions:
              dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, index: 38}
              language:
                url: http://hl7.org/fhir/StructureDefinition/language
                type: Extension
                index: 39
                elements:
                  value:
                    pattern: {type: Code, value: ar}
                    choices: []
                    index: 41
            elements:
              extension:
                index: 37
                slicing:
                  slices:
                    dataAbsentReason:
                      match: {}
                      schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 38}
                      min: 0
                      max: 1
                    language:
                      match: {}
                      schema:
                        type: Extension
                        url: http://hl7.org/fhir/StructureDefinition/language
                        index: 39
                        elements:
                          value:
                            pattern: {type: Code, value: ar}
                            choices: []
                            index: 41
            required: [extension]
  telecom: {mustSupport: true, index: 42}
  address: {type: Address, index: 43}
package_version: 0.15.2
extensions:
  parentName: {url: 'http://fhir.health.gov.il/StructureDefinition/ext-administrative-parent-name', min: 0, short: 'Extension: The name of the parent', type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://fhir.health.gov.il/StructureDefinition/il-core-related-person
base: http://hl7.org/fhir/StructureDefinition/RelatedPerson
version: 0.15.1
required: [identifier]