Mapping: NZCentralRegionHL7V2ToAllergyIntolerance Source: NZCentralRegionAllergyIntolerance Target: "https://standards.digital.health.nz/ns/central-region/hl7-v2" Id: nzcr-allergyintolerance-from-hl7v2 Title: "Central Region Message Specification (1.14)" Description: "Central Region Message Specification (1.14) - Allergy Intolerance from ADT^031 ZAL where Alert Type field `ZAL-2.1` with values from [Allergy Alert Category](./ValueSet-nzcr-allergy-alert-category-vs.html) codes." * identifier.use -> "'usual'" * identifier.system -> "'https://standards.digital.health.nz/ns/central-region/pas-alert-id'" * identifier.value -> "PID-3.1 + '-' + ZAL2.1 + '-' + ZAL-3.1" "Concatenation of PatientId, Alert Category and Alert Code" * clinicalStatus * coding * code -> "ZAL-5 & ZAL-9" "**if** ZAL-5 is in the past **AND** ZAL-9 is in the future or empty\r\n **then** 'active'\r\n **else** 'inactive'" * system -> "'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical'" * display -> "ZAL-5 & ZAL-9" "**if** ZAL-5 is in the past **AND** ZAL-9 is in the future or empty\r\n **then** 'Active'\r\n **else** 'Inactive'" * verificationStatus * coding * code -> "'confirmed'" "No info available for any other coding" * system -> "'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification'" * display -> "'Confirmed'" * type -> "allergy | intolerance" "ConceptMap translation from ZAL-4.1 - [nzcr-allergy-type-map](./ConceptMap-nzcr-allergy-type-map.html) **Default Value:** 'allergy' when field `ZAL-4` is missing **Note:** not coding, so no system or display sub-fields" * category -> "food | medication | environment | biologic" "ConceptMap translation from ZAL-4.1 - [nzcr-allergy-category-map](./ConceptMap-nzcr-allergy-category-map.html) **Default Value:** when field `ZAL-4` is missing * 'medication' if `ZAL-2.1` is `H1` * 'environment' if `ZAL-2.1` is `H3` **Note:** not coding, so no system or display sub-fields" * criticality -> "low | high | unable-to-assess" "ConceptMap translation from ZAL-4.1 - [nzcr-allergy-criticality-map](./ConceptMap-nzcr-allergy-criticality-map.html) **Default Value:** 'unable-to-assess' when field `ZAL-4` is missing **Note:** not coding, so no system or display sub-fields" * code.coding.code -> "ZAL-3.1" * code.coding.system -> " " "One of: * https://standards.digital.health.nz/ns/central-region/allergy-alert-code-a3 * https://standards.digital.health.nz/ns/central-region/allergy-alert-code-a4 * https://standards.digital.health.nz/ns/central-region/allergy-alert-code-h1 * https://standards.digital.health.nz/ns/central-region/allergy-alert-code-h3 depending upon value of ZAL-2.1" * code.coding.display -> "ZAL-3.2" * patient.reference -> " " "read-only field" * patient.type -> "'Patient'" * patient.identifier -> " " "Select the NHI identifier from the list provided; where PID-3.4.2 = 2.16.840.1.113883.2.18.2" * patient.identifier.use -> "'usual'" * patient.identifier.system -> "'https://standards.digital.health.nz/ns/nhi-id'" * patient.identifier.value -> "PID-3.1" * patient.identifier.type.coding * code -> "'MR'" * system -> "'http://terminology.hl7.org/CodeSystem/v2-0203'" * display -> "'Medical record number'" * patient.display -> "PID-5.1 + ', ' + PID-5.2 + ' ' + PID-5.3 + ' ' + PID-5.5" * onsetDateTime -> "ZAL-5" "if there is no ZAL-9 value to complete onsetPeriod\r\n**Note:** ISO-8601 datetime format includes dashes, colons, 'T' and '+12:00' timezone" * onsetPeriod.start -> "ZAL-5" "only if there is ZAL-9 value to complete Period\r\n**Note:** ISO-8601 datetime format includes dashes, colons, 'T' and '+12:00' timezone" * onsetPeriod.end -> "ZAL-9" * recorder.reference -> " " "read-only field" * recorder.type -> "'Practitioner'" * recorder.identifier.use -> "'usual'" * recorder.identifier.system -> "'https://standards.digital.health.nz/ns/central-region/pas-practitioner-id'" * recorder.identifier.value -> "ZAL-10.1" * recorder.identifier.type.coding -> " " "Practitioner Identifiers are locally assigned within PAS" * code -> "'LR'" * system -> "'http://terminology.hl7.org/CodeSystem/v2-0203'" * display -> "'Local registry ID'" * recorder.display -> "ZAL-10.2 + ', ' + ZAL-10.3 + ' ' + ZAL-10.4 + ' ' + ZAL-10.5" * note * text -> "ZAL-14" * extension[allergy-alert].url -> "'https://standards.digital.health.nz/ns/central-region/alert'" * extension[allergy-alert].extension[webPASCategory].url -> "'webPASCategory'" * extension[allergy-alert].extension[webPASCategory].valueCoding * code -> "ZAL-2.1" * display -> "ZAL-2.2" * system -> "'https://standards.digital.health.nz/ns/central-region/alert-category'" // TODO: severityLevel should be integer?? * extension[allergy-alert].extension[severityLevel].url -> "'severityLevel'" * extension[allergy-alert].extension[severityLevel].valueString -> "ZAL-6" "TODO: severityLevel should be integer" * extension[allergy-alert].extension[allergyReaction].url -> "'allergyReaction'" * extension[allergy-alert].extension[allergyReaction].valueCodeableConcept * coding.code -> "ZAL-4.1" "**Note:** can be `NP` for `Not Present` when field `ZAL-4.1` is missing" * coding.system -> "'https://standards.digital.health.nz/ns/central-region/allergy-reaction-a3-a4' or 'https://standards.digital.health.nz/ns/central-region/allergy-reaction-h1-h3'" * coding.display -> "ZAL-4.2" "**Note:** can be `Not Present` when field `ZAL-4.1` is missing" * extension[allergy-alert].extension[reviewDate].url -> "'reviewDate'" * extension[allergy-alert].extension[reviewDate].valueDate -> "ZAL-7" "**Note:** ISO-8601 date format includes dashes" * extension[allergy-alert].extension[inactiveDate].url -> "'inactiveDate'" * extension[allergy-alert].extension[inactiveDate].valueDate -> "ZAL-8" "**Note:** ISO-8601 date format includes dashes" * extension[allergy-alert].extension[lastUpdatedDateTime].url -> "'lastUpdatedDateTime'" * extension[allergy-alert].extension[lastUpdatedDateTime].valueDateTime -> "ZAL-11" "**Note:** ISO-8601 datetime format includes dashes, colons, 'T' and '+12:00' timezone" * extension[allergy-alert].extension[lastUpdatedBy].url -> "'lastUpdatedBy'" * extension[allergy-alert].extension[lastUpdatedBy].valueString -> "ZAL-12.1 + ' - ' + ZAL-12.2" "Not to be confused with Recorder" * extension[allergy-alert].extension[recordingHospital].url -> "'recordingHospital'" * extension[allergy-alert].extension[recordingHospital].valueCodeableConcept * coding.code -> "ZAL-13.1" * coding.system -> "'https://standards.digital.health.nz/fhir/central-region/hospital-code'" * coding.display -> "ZAL-13.2"