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')", 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..626f84083 --- /dev/null +++ b/examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7 @@ -0,0 +1,7 @@ +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 +OBR|1|7181233072^FormNumber||54089-8^NB Screen Panel Patient AHIC|||202402131546|||||||||^JOHNSON^KATHRYN||||||20240226034304|||F +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..d8020c466 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" ] }, @@ -91,6 +91,16 @@ "rules": [ "OBX-6 = 'µmol/L'" ] + }, + { + "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" + ] } ] }