Skip to content

Commit

Permalink
Add assertion to make sure micro character is encoded correctly (#1587)
Browse files Browse the repository at this point in the history
* Added assertion to make sure micro character is encoded correctly

* Copied over segments from another ORU

* Fixed micro character

* Fixed assertion expectation
  • Loading branch information
basiliskus authored Nov 15, 2024
1 parent 7ba2110 commit 1300a1e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions rs-e2e/src/main/resources/assertion_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
]
}
]
}

0 comments on commit 1300a1e

Please sign in to comment.