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.
Expected behavior
The Condition resources generated from the DG1 segments in the HL7 message shouldn't include Condition.note.text from the NTE segments.
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: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.