Hi Team,
I am new to HL7 format, and i have been asked to work on parsing HL7 data into dataframes using python.
i have started to use hl7apy lib. i have parsed some files successfully but have been facing problem in parsing one of the files (file attached).
the parsed message from hl7apy parser returns parsed messages but DG1 and IN1 are missing.
Test_1.txt
i am passing the entire message as string. below call that i use to parse data. can you help in understanding what is going wrong
from hl7apy.parser import parse_message
hl7_message=read_file_from_directory("Test_1.hl7")
hl7_messages=hl7_message.replace('\n','\r').split("MSH|")
message = parse_message("MSH|" + hl7_message,validation_level=VALIDATION_LEVEL.TOLERANT)
Regards,
Vij
Hi Team,
I am new to HL7 format, and i have been asked to work on parsing HL7 data into dataframes using python.
i have started to use hl7apy lib. i have parsed some files successfully but have been facing problem in parsing one of the files (file attached).
the parsed message from hl7apy parser returns parsed messages but DG1 and IN1 are missing.
Test_1.txt
i am passing the entire message as string. below call that i use to parse data. can you help in understanding what is going wrong
from hl7apy.parser import parse_message
hl7_message=read_file_from_directory("Test_1.hl7")
hl7_messages=hl7_message.replace('\n','\r').split("MSH|")
message = parse_message("MSH|" + hl7_message,validation_level=VALIDATION_LEVEL.TOLERANT)
Regards,
Vij