`4F2MSH0\Ec:\tempHL7#7g #7g|~FR#7g^S#7g&T HL7y]՝{vcgy]՝{vcgY4FV6&defaultE53TE53T9'MSH52Field SeparatorcSTCb3Value String Data52Encoding Characters52Sending ApplicationcHDCb3 Namespace IDcISCb3Value String DataCb3 Universal IDCb3Universal ID TypecIDCb3Value String DataHierarchic Designator52Sending Facility 52Receiving Application 52Receiving Facility 52Date/time Of MessagecTSCb3TimecDTMCb3ValueTrDateTime !0 DTM DateTime Date/TimeCb3Degree Of Precision Time Stamp52Security52 Message TypecMSGCb3 Message CodeCb3 Trigger EventCb3Message Structure Message Type52Message Control ID52 Processing IDcPTCb3 Processing IDCb3Processing ModeProcessing Type52 Version IDcVIDCb3 Version IDCb3Internationalization CodecCECb3 IdentifierCb3TextCb3Name Of Coding SystemCb3Alternate IdentifierCb3Alternate TextCb3Name Of Alternate Coding System Coded ElementCb3International Version ID*Version Identifier52Sequence NumbercNMCb3ValueNumeric52Continuation Pointer52Accept Acknowledgment Type52Application Acknowledgment Type52 Country Code52 Character Set52Principal Language Of Message*52'Alternate Character Set Handling Scheme52Message Profile IdentifiercEICb3Entity IdentifierCb3 Namespace ID Cb3 Universal IDCb3Universal ID TypeEntity IdentifierMessage HeaderMessagedefaultY4FV6&DuplicateMessageE53TE53TMessageC DUPLICATEx#DuplicateMessage   =#*'3 MACHINEIDCODEMSHdefaultC DUPLICATEx#MSHCBtry: if value == LastMessage: segments = value.split("\r") MSH_fields = segments[0].split("|") MSH_fields[8] += "^DUPLICATE" segments[0] = "|".join(MSH_fields) value = "\r".join(segments) else: LastMessage = value except NameError: LastMessage = value .ASCIISTANDARD VER 2V$q