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} telecom: {mustSupport: true, index: 23} address: {type: Address, index: 24} package_version: 0.11.1 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.11.0 required: [identifier]