Skip to content

Commit

Permalink
Merge pull request #1603 from CDCgov/1539-rse2e-cover-all-transformat…
Browse files Browse the repository at this point in the history
…ions

Complete transfrom coverage in RS e2e tests
  • Loading branch information
jbiskie authored Nov 21, 2024
2 parents 4e003ff + fdf2317 commit a289884
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etor/src/main/resources/transformation_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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')",
Expand Down
7 changes: 7 additions & 0 deletions examples/Test/Automated/009_CA_ORU_R01_remove_99717-5_OBX.hl7
Original file line number Diff line number Diff line change
@@ -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
12 changes: 11 additions & 1 deletion rs-e2e/src/main/resources/assertion_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down Expand Up @@ -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"
]
}
]
}

0 comments on commit a289884

Please sign in to comment.