Skip to content

DG1 IN1 segments missing from ORU^R01 #145

@VijrumbhanM

Description

@VijrumbhanM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions