{ "description": "Proposed constraints and extensions on theILCoreRelatedPerson Resource", "_filename": "StructureDefinition-il-core-related-person.json", "package_name": "il.core.fhir.r4", "date": "2021-05-02", "derivation": "constraint", "publisher": "Israeli Ministry of Health", "fhirVersion": "4.0.1", "name": "ILCoreRelatedPerson", "mapping": [ { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping", "identity": "w5" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" } ], "abstract": false, "type": "RelatedPerson", "experimental": null, "resourceType": "StructureDefinition", "title": "ILCore RelatedPerson Profile", "package_version": "0.4.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category", "valueString": "Base.Individuals" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category", "valueCode": "patient" } ], "status": "draft", "language": "he-IL", "id": "def5667e-84cd-4a53-8aa2-c5badd72d719", "kind": "resource", "url": "http://fhir.health.gov.il/StructureDefinition/il-core-related-person", "version": "0.4.0", "differential": { "element": [ { "id": "RelatedPerson", "path": "RelatedPerson", "short": "ILCoreRelatedPerson Profile", "definition": "Definitions for the profile-RelatedPerson resource profile.", "mustSupport": true }, { "id": "RelatedPerson.identifier", "min": 1, "path": "RelatedPerson.identifier", "slicing": { "rules": "open", "discriminator": [ { "path": "$this", "type": "pattern" } ] } }, { "id": "RelatedPerson.identifier.system", "min": 1, "path": "RelatedPerson.identifier.system", "mustSupport": true }, { "id": "RelatedPerson.identifier.value", "min": 1, "path": "RelatedPerson.identifier.value", "short": "The value that is unique within the system.", "mustSupport": true }, { "path": "RelatedPerson.identifier", "min": 0, "definition": "Israeli ID number (9 digit unchangeable number, including leading zeros and includes a control digit)", "short": "Israeli National Identifier", "mustSupport": true, "sliceName": "il-id", "patternIdentifier": { "system": "http://fhir.health.gov.il/identifier/il-national-id" }, "max": "1", "id": "RelatedPerson.identifier:il-id" }, { "id": "RelatedPerson.identifier:il-id.value", "path": "RelatedPerson.identifier.value", "short": "An Israeli ID number", "constraint": [ { "key": "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" } ] }, { "path": "RelatedPerson.identifier", "min": 0, "definition": "Palestinian ID number", "short": "Palestinian National Identifier", "mustSupport": false, "sliceName": "pna-id", "patternIdentifier": { "system": "http://fhir.health.gov.il/identifier/pna-national-id" }, "max": "1", "id": "RelatedPerson.identifier:pna-id" }, { "id": "RelatedPerson.identifier:pna-id.value", "path": "RelatedPerson.identifier.value", "short": "A Palestininan ID number" }, { "path": "RelatedPerson.identifier", "min": 0, "definition": "Passport number", "short": "Passport Number", "mustSupport": false, "sliceName": "ppn", "patternIdentifier": { "type": { "coding": [ { "code": "PPN", "system": "http://terminology.hl7.org/CodeSystem/v2-0203" } ] } }, "max": "*", "id": "RelatedPerson.identifier:ppn" }, { "id": "RelatedPerson.identifier:ppn.type", "min": 1, "path": "RelatedPerson.identifier.type" }, { "id": "RelatedPerson.identifier:ppn.system", "path": "RelatedPerson.identifier.system", "binding": { "strength": "required", "valueSet": "http://fhir.health.gov.il/ValueSet/passport-uri" } }, { "id": "RelatedPerson.identifier:ppn.value", "path": "RelatedPerson.identifier.value", "short": "Passport Number" }, { "path": "RelatedPerson.identifier", "min": 0, "definition": "The person’s identifier after applying MoH’s standard primary encryption algorithm", "short": "Person's Identifier - MoH encrypted", "mustSupport": false, "sliceName": "enc", "patternIdentifier": { "system": "http://fhir.health.gov.il/identifier/moh-encrypted-id-primary" }, "max": "*", "id": "RelatedPerson.identifier:enc" }, { "id": "RelatedPerson.identifier:enc.value", "path": "RelatedPerson.identifier.value", "short": "An encrypted identifier" }, { "id": "RelatedPerson.patient", "path": "RelatedPerson.patient", "type": [ { "code": "Reference", "targetProfile": [ "http://fhir.health.gov.il/StructureDefinition/il-core-patient" ] } ] } ] }, "baseDefinition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" }