hl7

How to correctly parse an HL7 message using python HL7Apy?

How to correctly parse an HL7 message using python HL7Apy? Question: Here is my code: from hl7apy.parser import parse_message hl7 = open(“hl7.txt”, “r”).read() msg = parse_message(hl7) print(msg.children) result: [<Segment MSH>] It shows only the first segment, seems simple but I don’t know what i’m doing wrong. I’ve tried from a text file, passing the message …

Total answers: 3