Skip to content

Commit

Permalink
Merge pull request #1487 from CDCgov/1452-add-rse2e-tests-and-asserti…
Browse files Browse the repository at this point in the history
…ons-for-truncation-logic

added rs e2e test files and assertions for truncation logic
  • Loading branch information
GilmoreA6 authored Oct 28, 2024
2 parents 1cc7129 + fb19be8 commit e0042dd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/Test/Automated/004_CA_ORU_R01_leading_zeroes.hl7
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^automated-staging-test-receiver-id^L,M,N|20240226034304||ORU^R01^ORU_R01|004|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||54079-9^Galactosemia newborn screening panel|||202402131546|||||||||^JOHNSON^KATHRYN||||||20240226034304|||F
OBX|1|NM|42906-8^Galactose 1 phosphate uridyl transferase^LN|1|05.100|enzyme units|>50|N|||F|||20240226034304
6 changes: 6 additions & 0 deletions examples/Test/Automated/005_CA_ORU_R01_no_leading_zeroes.hl7
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MSH|^~\&|SISGDSP|SISGDSP|SISHIERECEIVER^11903029^L,M,N|^automated-staging-test-receiver-id^L,M,N|20240226034304||ORU^R01^ORU_R01|005|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||54079-9^Galactosemia newborn screening panel|||202402131546|||||||||^JOHNSON^KATHRYN||||||20240226034304|||F
OBX|1|NM|42906-8^Galactose 1 phosphate uridyl transferase^LN|1|0.6500|enzyme units|>50|N|||F|||20240226034304
18 changes: 18 additions & 0 deletions rs-e2e/src/main/resources/assertion_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@
"OBR-16 = ORC-12",
"OBR.count() = 1"
]
},
{
"name": "CDPH leading zeros",
"conditions": [
"MSH-10 = '004'",
],
"rules": [
"OBX-5 = '5.100'"
]
},
{
"name": "CDPH no leading zeros",
"conditions": [
"MSH-10 = '005'",
],
"rules": [
"OBX-5 = '0.6500'"
]
}
]
}

0 comments on commit e0042dd

Please sign in to comment.