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

NTE segments after PID segment get wrongly converted onto Condition.note.text #428

Open
claverols opened this issue Feb 1, 2022 · 0 comments

Comments

@claverols
Copy link

claverols commented Feb 1, 2022

Describe the bug
When converting a adt-a03 HL7 message, NTE segments after a PID segment ie:
PID|||PID-adt-a03-sample02-allergies^^^^MR||DOE^JANE^|
NTE|1||Generated by whi-hl7-deidentifier service for patient_id: fc4bc87a-ca16-4bb1-a803-2cd203b69648|PatComments
are getting wrongly converted onto Condition.note.text:

"note": [
                    {
                        "text": "Generated by whi-hl7-deidentifier service for patient_id: fc4bc87a-ca16-4bb1-a803-2cd203b69648"
                    }
                ],

To Reproduce
Convert the attached mock adt-a03 hl7 message in the zip file onto a JSON file using the current L4HtoFHIR converter.

adt-a03-hl7.zip
Check the contents of the converted JSON.

Expected behavior
The Condition resources generated from the DG1 segments in the HL7 message shouldn't include Condition.note.text from the NTE segments.

@LisaWellman LisaWellman changed the title NTE segments after PID segment get wrongly converted onto Condition.note.text instead of creating Observation resources NTE segments after PID segment get wrongly converted onto Condition.note.text Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant