`4F2MSH0\Ec:\tempHL7#7g #7g|~FR#7g^S#7g&T HL7iuG@P@DSD)&HY4FV6&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 HeaderMessageADTx#A31x#Default Person UpdatecAUICb3Authorization NumberCb3DatecDTCb3ValueTrDateDT DateDateCb3SourceAuthorization InformationEcXON Cb3Organization NameCb3Organization Name Type Code Cb3 ID Number3Cb3 Check Digit3Cb3Check Digit SchemeCb3Assigning Authority Cb3Identifier Type CodeCb3Assigning Facility Cb3Name Representation CodeCb3Organization IdentifierCExtended Composite Name And Identification Number For Organizations 3 cXADCb3Street AddresscSADCb3Street Or Mailing AddressCb3 Street NameCb3Dwelling NumberStreet AddressCb3Other DesignationCb3CityCb3State Or ProvinceCb3Zip Or Postal CodeCb3CountryCb3 Address TypeCb3Other Geographic DesignationCb3County/parish Code Cb3 Census Tract Cb3Address Representation CodeCb3Address Validity RangecDRCb3Range Start Date/timeCb3Range End Date/timeDate/Time RangeCb3Effective DateCb3Expiration DateExtended AddresseVcSICb3Value Sequence IDcXPNCb3 Family NamecFNCb3SurnameCb3Own 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) Cb3Name Type CodeCb3Name Representation CodeCb3 Name Context*Cb3Name Validity RangeeCb3Name Assembly OrderCb3Effective DateCb3Expiration DateCb3Professional SuffixExtended Person Name*ncXCNCb3 ID NumberCb3 Family NamenCb3 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 RangeeCb3Name Assembly OrderCb3Effective DateCb3Expiration DateCb3Professional SuffixCb3Assigning JurisdictioncCWE 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 Department1Extended Composite ID Number And Name For PersonscXTN Cb3Telephone NumberCb3Telecommunication Use CodeCb3 Telecommunication Equipment TypeCb3 Email AddressCb3 Country Code3Cb3Area/city Code3Cb3 Local Number3Cb3 Extension3Cb3Any TextCb3Extension PrefixCb3Speed Dial CodeCb3Unformatted Telephone Number!Extended Telecommunication NumbercCX Cb3 ID NumberCb3 Check DigitCb3Check Digit SchemeCb3Assigning Authority Cb3Identifier Type CodeCb3Assigning Facility Cb3Effective DateECb3Expiration DateECb3Assigning JurisdictionCb3Assigning Agency Or Department&Extended Composite ID With Check DigitcCPCb3PricecMOCb3Quantity3Cb3 DenominationMoneyCb3 Price TypeCb3 From Value3Cb3To Value3Cb3 Range Units*Cb3 Range TypeComposite Price=#'cJCCCb3Job Code Cb3 Job Class Cb3Job Description TextcTXCb3Value Text DataJob Code/ClasscDLNCb3License NumberCb3 Issuing State, Province, Country Cb3Expiration DateEDriver's License Number9'IN1552 Set ID - In1j52Insurance Plan ID*52Insurance Company ID52Insurance Company NameI52Insurance Company AddressT52Insurance Co Contact Personl52Insurance Co Phone Number52 Group Number52 Group NameI52Insured's Group Emp ID52Insured's Group Emp NameI52Plan Effective DateE52Plan Expiration DateE52Authorization InformationB52 Plan Type 52Name Of Insuredl52!Insured's Relationship To Patient*52Insured's Date Of Birth52Insured's AddressT52Assignment Of Benefits 52Coordination Of Benefits 52Coord Of Ben. Priority52Notice Of Admission Flag52Notice Of Admission DateE52Report Of Eligibility Flag52Report Of Eligibility DateE52Release Information Code 52Pre-admit Cert (pac)52Verification Date/time52Verification By52Type Of Agreement Code 52Billing Status 52Lifetime Reserve Days352Delay Before L.r. Day352Company Plan Code 52 Policy Number52Policy Deductible52Policy Limit - Amount52Policy Limit - Days352Room Rate - Semi-private52Room Rate - Private52Insured's Employment Status*52Insured's Administrative Sex 52Insured's Employer's AddressT52Verification Status52Prior Insurance Plan ID 52 Coverage Type 52Handicap 52Insured's ID Number52Signature Code 52Signature Code DateE52Insured_s Birth Place52 Vip Indicator Insurance9'NK1'52 Set ID - Nk1j52Namel52 Relationship*52AddressT52 Phone Number52Business Phone Number52 Contact Role*52 Start DateE52End DateE52*Next Of Kin / Associated Parties Job Title52/Next Of Kin / Associated Parties Job Code/class520Next Of Kin / Associated Parties Employee Number52Organization Name - Nk1I52Marital Status*52Administrative Sex 52Date/time Of Birth52Living Dependency 52Ambulatory Status 52 Citizenship*52Primary Language*52Living Arrangement 52Publicity Code*52Protection Indicator52Student Indicator 52Religion*52Mother's Maiden Namel52 Nationality*52 Ethnic Group*52Contact Reason*52Contact Person's Namel52!Contact Person's Telephone Number52Contact Person's AddressT52*Next Of Kin/associated Party's Identifiers52 Job Status 52Race*52Handicap 52%Contact Person Social Security Number52Next Of Kin Birth Place52 Vip Indicator Next Of Kin / Associated Parties9'PID'52 Set ID - Pidj52 Patient ID52Patient Identifier List52Alternate Patient ID - Pid52 Patient Namel52Mother's Maiden Namel52Date/time Of Birth52Administrative Sex 52 Patient Aliasl52Race*52Patient AddressT52 County Code 52Phone Number - Home52Phone Number - Business52Primary Language*52Marital Status*52Religion*52Patient Account Number52Ssn Number - Patient52!Driver's License Number - Patient52Mother's Identifier52 Ethnic Group*52 Birth Place52Multiple Birth Indicator52 Birth Order352 Citizenship*52Veterans Military Status*52 Nationality*52Patient Death Date And Time52Patient Death Indicator52Identity Unknown Indicator52Identity Reliability Code 52Last Update Date/time52Last Update Facility 52 Species Code*52 Breed Code*52Strain52Production Class Code*52Tribal CitizenshipPatient IdentificationG MACHINEIDCODEMSHMSHN# we invoke a global function called scrub_name value = scrub_name(field) N# we invoke a global function called scrub_name value = scrub_name(field) N# we invoke a global function called scrub_name value = scrub_name(field) defaultADTx#MSHA31x#MSHdef scrub_name(Field): for FieldIndex in range(0, Field.count_of_subfield()): if not Field.subfield(FieldIndex).is_null(): Field.subfield(FieldIndex).value = 'fff' return Field.subfield(0).value .current_segment = environment.input_segment_iterator() current_segment.apply_transform() output = current_segment.output() while current_segment.move_one(): # append each segment which is not a Z-segment if current_segment.segment_id()[0] <> 'Z': current_segment.apply_transform() # apply segment scripts output = output + current_segment.output() value = output ASCIISTANDARD VER 25''