Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added rs e2e test files and assertions for truncation logic #1487

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'"
GilmoreA6 marked this conversation as resolved.
Show resolved Hide resolved
]
},
{
"name": "CDPH no leading zeros",
"conditions": [
"MSH-10 = '005'",
],
"rules": [
"OBX-5 = '0.6500'"
]
}
]
}
Loading