Closed sloria closed 5 years ago
from hl7apy.parser import parse_message ack = """MSH|^~\&|LABADT|DH|EPICADT|DH|201301011228||ACK^A01^ACK |HL7ACK00001|P|2.3 MSA|AA|HL7MSG00001""" parse_message(ack)
check_version raises an error
check_version
UnsupportedVersion: The version 2.3 MSA is not supported
It looks like the version is not being parsed correctly: version is 2.3\nMSA in hl7apy.check_version.
version
2.3\nMSA
hl7apy.check_version
I think I was misunderstanding the ACK format. The MSA is a separate segment that is not part of the MSH, so it needs to be parsed separately. Sorry for the noise!
check_version
raises an errorIt looks like the version is not being parsed correctly:
version
is2.3\nMSA
inhl7apy.check_version
.