`4F„2‡„MSH0\Ec:\tempHL7#7ƒg ˙˙˙˙˙˙˙˙#7ƒg|~FR#7ƒg^S˙˙˙˙#7ƒg&T˙˙˙˙ ˙HL7]ŮF3iß'ŮĺՇű*]ŮF3iß'ŮĺՇű*Y4F„V6&‡default˙˙˙˙E53TE53T9'MSH52’Field Separatorc”STCb3Value String Data52’Encoding Characters52’Sending Applicationc”HDCb3 Namespace IDc”ISCb3Value String DataCb3 Universal IDCb3Universal ID Typec”IDCb3Value String DataHierarchic Designator52’Sending Facility 52’Receiving Application 52’Receiving Facility 52’Date/time Of Messagec”TSCb3Timec”DTMCb3Value‰TrDateTime !0 DTM DateTime Date/TimeCb3Degree Of Precision Time Stamp52’Security52’ Message Typec”MSGCb3 Message CodeCb3 Trigger EventCb3Message Structure Message Type52’Message Control ID52’ Processing IDc”PTCb3 Processing IDCb3Processing ModeProcessing Type52’ Version IDc”VIDCb3 Version IDCb3Internationalization Codec”CECb3 IdentifierCb3TextCb3Name Of Coding SystemCb3Alternate IdentifierCb3Alternate TextCb3Name Of Alternate Coding System Coded ElementCb3International Version ID*Version Identifier52’Sequence Numberc”NMCb3ValueNumeric52’Continuation Pointer52’Accept Acknowledgment Type52’Application Acknowledgment Type52’ Country Code52’ Character Set˙˙˙˙52’Principal Language Of Message*52’'Alternate Character Set Handling Scheme52’Message Profile Identifier˙˙˙˙c”EICb3Entity IdentifierCb3 Namespace ID Cb3 Universal IDCb3Universal ID TypeEntity IdentifierMessage HeaderMessagedefaultY4F„V6&‡RejectedMessage˙˙˙˙E53TE53TMessageCREJECTED™x#RejectedMessage  c”XCNCb3 ID NumberCb3 Family Namec”FNCb3SurnameCb3Own Surname PrefixCb3 Own SurnameCb3"Surname Prefix From Partner/spouseCb3Surname From Partner/spouse Family NameCb3 Given NameCb32Second And Further Given Names Or Initials ThereofCb3Suffix (e.g., Jr Or III)Cb3Prefix (e.g., Dr)Cb3Degree (e.g., Md) Cb3 Source Table Cb3Assigning Authority Cb3Name Type CodeCb3Identifier Check DigitCb3Check Digit SchemeCb3Identifier Type CodeCb3Assigning Facility Cb3Name Representation CodeCb3 Name Context*Cb3Name Validity Rangec”DRCb3Range Start Date/timeCb3Range End Date/timeDate/Time RangeCb3Name Assembly OrderCb3Effective DateCb3Expiration DateCb3Professional SuffixCb3Assigning Jurisdictionc”CWE Cb3 IdentifierCb3TextCb3Name Of Coding SystemCb3Alternate IdentifierCb3Alternate TextCb3Name Of Alternate Coding SystemCb3Coding System Version IDCb3"Alternate Coding System Version IDCb3 Original TextCoded With ExceptionsCb3Assigning Agency Or Departmente1Extended Composite ID Number And Name For PersonseH*]=#'39'EVN52’Event Type Code52’Recorded Date/time52’Date/time Planned Event52’Event Reason Code 52’ Operator ID˙˙˙˙E52’Event Occurred52’Event Facility Event Type MACHINEIDCODEMSH˙˙˙˙default˙˙˙˙˙˙˙˙CREJECTED™x#MSHCčfrom reject_evn import * if reject_message(value): segments = value.split("\r") MSH_fields = segments[0].split("|") MSH_fields[8] += "^REJECTED" segments[0] = "|".join(MSH_fields) value = "\r".join(segments) .ASCIISTANDARD VER 2V$q