From 1300a1e941cac9c39be3cb479a04e7d69342c990 Mon Sep 17 00:00:00 2001 From: Basilio Bogado <541149+basiliskus@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:17:16 -0800 Subject: [PATCH] Add assertion to make sure micro character is encoded correctly (#1587) * Added assertion to make sure micro character is encoded correctly * Copied over segments from another ORU * Fixed micro character * Fixed assertion expectation --- .../Automated/008_ORU_R01_micro_character_encoding.hl7 | 6 ++++++ rs-e2e/src/main/resources/assertion_definitions.json | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 examples/Test/Automated/008_ORU_R01_micro_character_encoding.hl7 diff --git a/examples/Test/Automated/008_ORU_R01_micro_character_encoding.hl7 b/examples/Test/Automated/008_ORU_R01_micro_character_encoding.hl7 new file mode 100644 index 000000000..26f472c31 --- /dev/null +++ b/examples/Test/Automated/008_ORU_R01_micro_character_encoding.hl7 @@ -0,0 +1,6 @@ +MSH|^~\&|Sender Application^sender.test.com^DNS|Sender Facility^0.0.0.0.0.0.0.0^ISO|Receiver Application^0.0.0.0.0.0.0.0^ISO|Receiver Facility^simulated-lab-id^DNS|20230101010000-0000||ORU^R01^ORU_R01|008|N|2.5.1|||||||||| +PID|1||80008836^^^&NPI^MR||CDPHSIX^BOY MOMSIX^^^^^B|||M||2106-3^White||||||||||||2186-5^Not Hispanic or Latino||N|1 +NK1|1|CDPHSIX|MTH^Mother|132 ST^^SAN DIEGO^CA^92126^USA +ORC|RE|7181233072^FormNumber||189430284^HospOrdNumber||||||||^ROSEN^REBECCA|||||||||UCSD JACOBS MEDICAL CENTER^^^^^^^^^R797| 2961DR YLLUT^^SAN DIEGO^CA^99999-9999 +OBR|1|7181233072^FormNumber||54089-8^NB Screen Panel Patient AHIC|||202402131546|||||||||^JOHNSON^KATHRYN||||||20240226034304|||F +OBX|1|NM|47633-3^Glycine [Moles/volume] in Dried blood spot^LN|1|0.5|µmol/L||N|||F|||20240212103049 diff --git a/rs-e2e/src/main/resources/assertion_definitions.json b/rs-e2e/src/main/resources/assertion_definitions.json index 2ec6eef10..88323d3d8 100644 --- a/rs-e2e/src/main/resources/assertion_definitions.json +++ b/rs-e2e/src/main/resources/assertion_definitions.json @@ -82,6 +82,15 @@ "OBX-3.5 = input.OBX-3.5", "OBX-3.6 = input.OBX-3.6" ] + }, + { + "name": "Micro (µ) character is encoded correctly", + "conditions": [ + "MSH-10 = '008'" + ], + "rules": [ + "OBX-6 = 'µmol/L'" + ] } ] }