LinuxForHealth / hl7v2-fhir-converter

Converts HL7 v2 Messages to FHIR Resources
Apache License 2.0
89 stars 36 forks source link

Fix statusReason shows for 59784-9 && RXA.20!=RE #451

Closed cragun47 closed 2 years ago

cragun47 commented 2 years ago

Signed-off-by: Brian Cragun cragun@us.ibm.com

Fixes a problem where OBX.3 59784-9 sometimes was not activated. The logic required RXA.20 to be NULL, but RXA.20 != RE (such as NA) should also activate.
Small changes to logic to handle complex case added. Test added.