LinuxForHealth / hl7v2-fhir-converter

Converts HL7 v2 Messages to FHIR Resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple OBX records need to group by OBX.4, but don't

cragun47 opened this issue · comments

( This bug was found in "add mappings to Immunization from OBX" #400 That item was closed and this bug remains in the work. )

The expectation is the multiple OBX’s are combined to one component. See NHIIS Implemenation guide page 21: https://www.dhhs.nh.gov/dphs/immunization/documents/nhiis-delta-guide-hl7.pdf

We need a way to spec: OBX and also inner group on OBX.4

The OBX’s are “connected” by the reference string in OBX.4
image (14)
Here is another example. You can see looking at OBX.4 that there are three sets of records.
image (15)
This is consistent with CDC documents: https://www.cdc.gov/vaccines/programs/iis/technical-guidance/downloads/hl7-clarification-R6.pdf. Pages 5 & 6
VIS Conformance Statement
OBX conformance statements
Clarification
IZ-24: If RXA-9.1 is valued “00” and RXA-5.1 is valued with a CVX code from table PHVS_VISVaccines_IIS (See Appendix A) then there SHALL BE
an OBX segment with OBX-3.1 valued
“64764-9" (bar
coded) and one OBX with OBX-3.1 valued “29769-7” (presentation /delivery date) associated. Both OBX shall have the same value in OBX-4
OR
an OBX segment with OBX-3.1
valued “30956-7" (vaccine type) and an OBX segment with OBX-3.1 valued “29768-9” (version date) and one OBX with OBX-3.1 valued “29769-7" (presentation /delivery date) associated. Both OBX shall have the same value in OBX-4

This issue was opened to find a general solution to situations similar to Immunization.education multiple records. However no other needs were found for a general case. Instead a specific solution was found and captured in #449. It can be used as a pattern for future similar needs.

No further action is planned on this issue as described. Closing.