LinuxForHealth / hl7v2-fhir-converter

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

Support Immunization.education structures #449

Closed cragun47 closed 2 years ago

cragun47 commented 2 years ago

Immunization.education structures need to be created from separate sibling OBX records that are related though a group number in OBX.4 of each record.

A general solution to this was attempted in #414. No other needs for the function were found.

So, this is a specific solution for Immunization.education. It is relatively small and specific. It uses parsed structure objects to look through the message groups and segments to locate and evaluate the sibling OBXs. It can serve as a future model for other situations where repeating sibling segments must be considered.

Added testing so that multiple groups of RXA components with their own set of OBX records are evaluated separately with no data bleed.

LisaWellman commented 2 years ago

In release 1.0.18