asulis
asulis
Hi, thanks for your message. The second element of the tuple is related to the number of repetitions that the specific segment/group can have, according to the message structure definition...
Hi, that's strange, because, as the cardinality is (0,-1) for SFT, the message parsing should succeed in both cases (either with or without the SFT segment presence). Could you post...
Hi, I've made a quick try: ``` from hl7apy.parser import parse_message msg1 = """ MSH|^~\&|^SureSignsVS||||20230629094736||ORU^R01^ORU_R01|CN2120532800000000C9|P|2.5|||||||||2.16.840.1.113883.9.2.1 PID|||4||smith^bob^ PV1|||^^6|||||||||||||||A|124 ORC|NW|||||||||||||||||CN21205328 OBR||||SPOTCHECK|||20230505074221|||9087 OBX||NM|0002-4bb8^SpO2^MDIL||97|0004-0220^%^MDIL|||||F OBX||NM|0002-4182^HR_Pulse^MDIL||105|0004-0aa0^bpm^MDIL|||||F||||||0002-4bb8^SpO2^MDIL """ message = parse_message(msg1) msg2 = """ MSH|^~\&|SendingSystem|SendingApplication|ReceivingSystem|ReceivingApplication|20230906120000||ORU^R01|123456789|P|2.5||||||ASCII PID|1||123456789|123456789|Doe^John^A^Jr.^Dr.|Doe^Jane^A^||19700101|M|||123...