PackagesCanonicalsLogsProblems
    Packages
    rs/il.core.fhir.r4@0.7.0
    http://fhir.health.gov.il/StructureDefinition/il-core-related-person
description: Proposed constraints and extensions on theILCoreRelatedPerson Resource
package_name: rs/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-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}
    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: 5
            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-related-person
                    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: 6
        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: 7
            elements:
              value: {short: A Palestininan ID number, index: 8}
        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: 9
            elements:
              type: {index: 10}
              system:
                binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/passport-uri'}
                index: 11
              value: {short: Passport Number, index: 12}
            required: [type]
        enc:
          match: {system: 'http://fhir.health.gov.il/identifier/encrypted-id-primary-moh'}
          schema:
            short: Person's Identifier - MoH encrypted
            mustSupport: false
            array: true
            pattern:
              type: Identifier
              value: {system: 'http://fhir.health.gov.il/identifier/encrypted-id-primary-moh'}
            type: Identifier
            index: 13
            elements:
              value: {short: An encrypted identifier, index: 14}
  active: {mustSupport: true, index: 15}
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://fhir.health.gov.il/StructureDefinition/il-core-patient']
    index: 16
  relationship:
    binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/patient-relationship-type'}
    mustSupport: true
    index: 17
  name: {mustSupport: true, index: 18}
  telecom: {mustSupport: true, index: 19}
  address: {type: Address, index: 20}
package_version: 0.7.0
extensions:
  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: 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.7.0
required: [active, identifier]