From 31b18828d6de803250f6f2b553bffd68a6077304 Mon Sep 17 00:00:00 2001 From: Joel Biskie Date: Wed, 20 Nov 2024 14:49:32 -0600 Subject: [PATCH 1/7] WIP - add 99717-5 test and failing assertion --- .../Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 | 8 ++++++++ rs-e2e/src/main/resources/assertion_definitions.json | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 diff --git a/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 new file mode 100644 index 000000000..a3a2a5403 --- /dev/null +++ b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 @@ -0,0 +1,8 @@ +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|009|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 +OBX|1|CE|57721-3^Reason for lab test in Dried blood spot^LN|1|LA12421-6^Initial screen^LN|||N|||F|||20240226034304 +OBX|2|TX|^^^99717-5^Accession Number^L|1|045-89-477/21-2024-21|||N|||F|||20240226034304 diff --git a/rs-e2e/src/main/resources/assertion_definitions.json b/rs-e2e/src/main/resources/assertion_definitions.json index 88323d3d8..ed02ea533 100644 --- a/rs-e2e/src/main/resources/assertion_definitions.json +++ b/rs-e2e/src/main/resources/assertion_definitions.json @@ -91,6 +91,15 @@ "rules": [ "OBX-6 = 'µmol/L'" ] + }, + { + "name": "UCSD ORU remove OBX when OBX-3.4 is 99717-5", + "conditions": [ + "MSH-10 = '009'" + ], + "rules": [ + "OBX.count() = 2" + ] } ] } From 303520cc00e4ca5c42645773d28ad376cbc98233 Mon Sep 17 00:00:00 2001 From: Joel Biskie Date: Wed, 20 Nov 2024 15:02:36 -0600 Subject: [PATCH 2/7] Change assertion to pass (hopefully) --- rs-e2e/src/main/resources/assertion_definitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs-e2e/src/main/resources/assertion_definitions.json b/rs-e2e/src/main/resources/assertion_definitions.json index ed02ea533..70d7fc990 100644 --- a/rs-e2e/src/main/resources/assertion_definitions.json +++ b/rs-e2e/src/main/resources/assertion_definitions.json @@ -98,7 +98,7 @@ "MSH-10 = '009'" ], "rules": [ - "OBX.count() = 2" + "OBX.count() = 1" ] } ] From 8de87626f1a7d8e962f038b7ab7629fae3724ab7 Mon Sep 17 00:00:00 2001 From: Joel Biskie Date: Wed, 20 Nov 2024 15:08:17 -0600 Subject: [PATCH 3/7] Change assertion to pass (again) --- examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 index a3a2a5403..e26940993 100644 --- a/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 +++ b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 @@ -3,6 +3,5 @@ PID|1||80008836^^^&NPI^MR||CDPHSIX^BOY MOMSIX^^^^^B|||M||2106-3^White|||||||||| 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 OBX|1|CE|57721-3^Reason for lab test in Dried blood spot^LN|1|LA12421-6^Initial screen^LN|||N|||F|||20240226034304 OBX|2|TX|^^^99717-5^Accession Number^L|1|045-89-477/21-2024-21|||N|||F|||20240226034304 From 7a0feab79e3fab9fad1a0af45c8e438fcb703c07 Mon Sep 17 00:00:00 2001 From: Joel Biskie Date: Wed, 20 Nov 2024 15:15:14 -0600 Subject: [PATCH 4/7] Update MSH to correspond to a CA message --- examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 index e26940993..626f84083 100644 --- a/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 +++ b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 @@ -1,4 +1,4 @@ -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|009|N|2.5.1|||||||||| +MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^automated-staging-test-receiver-id^L,M,N|20240226034304||ORU^R01^ORU_R01|009|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 From d3f218a6088b06a089bd8d0306de3e285680584c Mon Sep 17 00:00:00 2001 From: Luis Pabon Date: Thu, 21 Nov 2024 11:54:33 -0500 Subject: [PATCH 5/7] Update assertion_definitions.json Use ORC-12 input on the "UCSD ORU requirements" assertion. --- rs-e2e/src/main/resources/assertion_definitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs-e2e/src/main/resources/assertion_definitions.json b/rs-e2e/src/main/resources/assertion_definitions.json index 70d7fc990..381575c04 100644 --- a/rs-e2e/src/main/resources/assertion_definitions.json +++ b/rs-e2e/src/main/resources/assertion_definitions.json @@ -33,7 +33,7 @@ "ORC-21.10 = MSH-6", "OBR-2.1 = ORC-2.1", "OBR-2.2 = ORC-2.2", - "OBR-16 = ORC-12", + "OBR-16 = input.ORC-12", "OBR.count() = 1" ] }, From 89382bf9b28da7b7a6d1932b58992291617fec5f Mon Sep 17 00:00:00 2001 From: Luis Pabon Date: Thu, 21 Nov 2024 12:03:19 -0500 Subject: [PATCH 6/7] Update transformation_definitions.json Updated description of ucsdOruUpdateUniversalServiceIdentifier --- etor/src/main/resources/transformation_definitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etor/src/main/resources/transformation_definitions.json b/etor/src/main/resources/transformation_definitions.json index d88c6261b..985efa310 100644 --- a/etor/src/main/resources/transformation_definitions.json +++ b/etor/src/main/resources/transformation_definitions.json @@ -169,7 +169,7 @@ }, { "name": "ucsdOruUpdateUniversalServiceIdentifier", - "description": "Overrides the values of Name of Coding System (OBR-4.3) and Alternate Identifier (OBR-4.4) in Universal Type Code (OBR-4)", + "description": "Updates the coding system name (OBR-4.3) for ORU orders to the expected value", "message": "", "conditions": [ "Bundle.entry.resource.ofType(MessageHeader).destination.receiver.resolve().identifier.where(extension.value = 'HD.1').value in ('R797' | 'R508')", From fdf23177cd6c619a52534d5058320f8e54a7d14b Mon Sep 17 00:00:00 2001 From: Joel Biskie Date: Thu, 21 Nov 2024 14:57:12 -0600 Subject: [PATCH 7/7] Add check to ensure the correct OBX remains --- rs-e2e/src/main/resources/assertion_definitions.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rs-e2e/src/main/resources/assertion_definitions.json b/rs-e2e/src/main/resources/assertion_definitions.json index 381575c04..d8020c466 100644 --- a/rs-e2e/src/main/resources/assertion_definitions.json +++ b/rs-e2e/src/main/resources/assertion_definitions.json @@ -93,11 +93,12 @@ ] }, { - "name": "UCSD ORU remove OBX when OBX-3.4 is 99717-5", + "name": "UCSD ORU remove OBX when OBX-3.4 is local code 99717-5", "conditions": [ "MSH-10 = '009'" ], "rules": [ + "OBX-3.1 = '57721-3'", "OBX.count() = 1" ] }