`4F„2‡„MSH0\Ec:\tempHL7#7ƒg ÿÿÿÿÿÿÿÿ#7ƒg|~FR#7ƒg^Sÿÿÿÿ#7ƒg&Tÿÿÿÿ ÿHL7•ìзCcÃ@g¥~ô %•ìзCcÃ@g¥~ô %`#c™Patient_#c™ PatientId FirstNameLastNameDOBSSN DischargedPatient DemographicsG68’™x#G68’™x#G68’™x#G68’™x#G68’™x#G68’™x#`#c™ PatientMerge_#c™ PatientID1 PatientID2 PatientID3PatientPriorID1PatientPriorID2PatientPriorID3Patient Merge InformationG68’™x#G68’™x#G68’™x#G68’™x#G68’™x#G68’™x#Y4F„V6&‡PatientRegisterÿÿÿÿ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 Facility52’Receiving Application52’Receiving Facility52’Date/Time of Messagec”DTMCb3Value‰TrDateTime !0 DTM DateTime Date/Time52’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”CWE Cb3 IdentifierCb3TextCb3Name of Coding SystemCb3Alternate IdentifierCb3Alternate TextCb3Name of Alternate Coding SystemCb3Coding System Version IDCb3"Alternate Coding System Version IDCb3 Original TextCoded with ExceptionsCb3International Version ID5Version Identifier52’Sequence Numberc”NMCb3ValueÿÿÿÿNumeric52’Continuation Pointer52’Accept Acknowledgment Type52’Application Acknowledgment Type52’ Country Code52’ Character Setÿÿÿÿ52’Principal Language Of Message552’'Alternate Character Set Handling Scheme52’Message Profile Identifierÿÿÿÿc”EICb3Entity IdentifierCb3 Namespace IDCb3 Universal IDCb3Universal ID TypeEntity Identifier52’ Sending Responsible Organizationc”XON Cb3Organization NameCb3Organization Name Type CodeCb3 ID NumberACb3Identifier Check DigitACb3Check Digit SchemeCb3Assigning AuthorityCb3Identifier Type CodeCb3Assigning FacilityCb3Name Representation CodeCb3Organization IdentifierCExtended Composite Name and Identification Number for Organizations52’"Receiving Responsible OrganizationQ52’Sending Network Address52’Receiving Network AddressMessage HeaderE53T9'PID'52’ Set ID - PIDc”SICb3Valueÿÿÿÿ String Data52’ Patient IDc”CX Cb3 ID NumberCb3Identifier Check DigitCb3Check Digit SchemeCb3Assigning AuthorityCb3Identifier Type CodeCb3Assigning FacilityCb3Effective Datec”DTCb3Value‰TrDateDT DateDateCb3Expiration DatemCb3Assigning Jurisdiction5Cb3Assigning Agency or Department5&Extended Composite ID with Check Digit52’Patient Identifier Listÿÿÿÿe52’Alternate Patient ID - PIDÿÿÿÿe52’ Patient Nameÿÿÿÿc”XPNCb3 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)Cb3Name Type CodeCb3Name Representation CodeCb3 Name Context5Cb3Name Validity Rangec”DRCb3Range Start Date/Time#Cb3Range End Date/Time#Date/Time RangeCb3Name Assembly OrderCb3Effective Date#Cb3Expiration Date#Cb3Professional SuffixExtended Person Name52’Mother's Maiden Nameÿÿÿÿv52’Date/Time of Birth#52’Administrative Sex52’ Patient Aliasÿÿÿÿv52’Raceÿÿÿÿ552’Patient Addressÿÿÿÿc”XADCb3Street Addressc”SADCb3Street or Mailing AddressCb3 Street NameCb3Dwelling NumberStreet AddressCb3Other DesignationCb3CityCb3State or ProvinceCb3Zip or Postal CodeCb3CountryCb3 Address TypeCb3Other Geographic DesignationCb3County/Parish CodeCb3 Census TractCb3Address Representation CodeCb3Address Validity Range‡Cb3Effective Date#Cb3Expiration Date#Cb3Expiration Reason5Cb3Temporary IndicatorCb3Bad Address IndicatorCb3 Address UsageCb3 AddresseeCb3CommentCb3Preference OrderACb3Protection Code5Cb3Address IdentifierKExtended Address52’ County Code52’Phone Number - Homeÿÿÿÿc”XTNCb3Telephone NumberCb3Telecommunication Use CodeCb3 Telecommunication Equipment TypeCb3Communication AddressCb3 Country CodeACb3Area/City CodeACb3 Local NumberACb3 ExtensionACb3Any TextCb3Extension PrefixCb3Speed Dial CodeCb3Unformatted Telephone numberCb3Effective Start Date#Cb3Expiration Date#Cb3Expiration Reason5Cb3Protection Code5Cb3#Shared Telecommunication IdentifierKCb3Preference OrderA!Extended Telecommunication Number52’Phone Number - Businessÿÿÿÿ²52’Primary Language552’Marital Status552’Religion552’Patient Account Numbere52’SSN Number - Patient52’!Driver's License Number - Patientc”DLNCb3License NumberCb3 Issuing State, Province, CountryCb3Expiration DatemDriver's License Number52’Mother's Identifierÿÿÿÿe52’ Ethnic Groupÿÿÿÿ552’ Birth Place52’Multiple Birth Indicator52’ Birth OrderA52’ Citizenshipÿÿÿÿ552’Veterans Military Status552’ Nationality552’Patient Death Date and Time#52’Patient Death Indicator52’Identity Unknown Indicator52’Identity Reliability Codeÿÿÿÿ52’Last Update Date/Time#52’Last Update Facility52’ Species Code552’ Breed Code552’Strain52’Production Class Code552’Tribal Citizenshipÿÿÿÿ5Patient IdentificationMessageV6&‡ÿÿÿÿADT™x#A04™x#PatientRegisterRegister a PatientY4F„V6&‡PatientDischargeÿÿÿÿE53TE53TE53T`MessageV6&‡ÿÿÿÿååADT™x#A03™x#PatientDischargeDischarge/End VisitY4F„V6&‡ PatientMergeÿÿÿÿE53TE53TE53T`E53T9'MRG52’Prior Patient Identifier Listÿÿÿÿe52’Prior Alternate Patient IDÿÿÿÿe52’Prior Patient Account Numbere52’Prior Patient IDe52’Prior Visit Numbere52’Prior Alternate Visit IDe52’Prior Patient NameÿÿÿÿvMerge Patient InformationMessageV6&‡ÿÿÿÿêêADT™x#A18™x# PatientMerge;Merge Patient Information (for Backward Compatibility Only)QA5c”FCCb3Financial Class CodeCb3Effective Date#Financial Class#”K‡–mbvxc”JCCCb3Job CodeCb3 Job ClassCb3Job Description Textc”TXCb3Valueÿÿÿÿ String DataJob Code/Classþe²c”CPCb3Pricec”MOCb3QuantityACb3 DenominationMoneyCb3 Price TypeCb3 From ValueACb3To ValueACb3 Range Units5Cb3 Range TypeComposite Pricec”AUICb3Authorization NumberCb3DatemCb3SourceAuthorization Informationc”XCNCb3 ID NumberCb3 Family NamexCb3 Given NameCb32Second and Further Given Names or Initials ThereofCb3Suffix (e.g., JR or III)Cb3Prefix (e.g., DR)Cb3Degree (e.g., MD)Cb3 Source TableCb3Assigning AuthorityCb3Name Type CodeCb3Identifier Check DigitCb3Check Digit SchemeCb3Identifier Type CodeCb3Assigning FacilityCb3Name Representation CodeCb3 Name Context5Cb3Name Validity Range‡Cb3Name Assembly OrderCb3Effective Date#Cb3Expiration Date#Cb3Professional SuffixCb3Assigning Jurisdiction5Cb3Assigning Agency or Department51Extended Composite ID Number and Name for Persons(.2Ìc”DLDCb3Discharge to Location5Cb3Effective Date#Discharge to Location and Datec”PL Cb3 Point of CareCb3RoomCb3BedCb3FacilityCb3Location StatusCb3Person Location TypeCb3BuildingCb3FloorCb3Location DescriptionCb3!Comprehensive Location IdentifierKCb3 Assigning Authority for LocationPerson Location9'GT1952’ Set ID - GT1b52’Guarantor Numberÿÿÿÿe52’Guarantor Nameÿÿÿÿv52’Guarantor Spouse Nameÿÿÿÿv52’Guarantor Addressÿÿÿÿ”52’Guarantor Ph Num - Homeÿÿÿÿ²52’Guarantor Ph Num - Businessÿÿÿÿ²52’Guarantor Date/Time Of Birth#52’Guarantor Administrative Sex52’Guarantor Type52’Guarantor Relationship552’ Guarantor SSN52’Guarantor Date - Beginm52’Guarantor Date - Endm52’Guarantor PriorityA52’Guarantor Employer Nameÿÿÿÿv52’Guarantor Employer Addressÿÿÿÿ”52’Guarantor Employer Phone Numberÿÿÿÿ²52’Guarantor Employee ID Numberÿÿÿÿe52’Guarantor Employment Status52’Guarantor Organization NameÿÿÿÿQ52’Guarantor Billing Hold Flag52’Guarantor Credit Rating Code552’Guarantor Death Date And Time#52’Guarantor Death Flag52’ Guarantor Charge Adjustment Code552’!Guarantor Household Annual Income52’Guarantor Household SizeA52’Guarantor Employer ID Numberÿÿÿÿe52’Guarantor Marital Status Code552’Guarantor Hire Effective Datem52’Employment Stop Datem52’Living Dependency52’Ambulatory Statusÿÿÿÿ52’ Citizenshipÿÿÿÿ552’Primary Language552’Living Arrangement52’Publicity Code552’Protection Indicator52’Student Indicator52’Religion552’Mother's Maiden Nameÿÿÿÿv52’ Nationality552’ Ethnic Groupÿÿÿÿ552’Contact Person's Nameÿÿÿÿv52’!Contact Person's Telephone Numberÿÿÿÿ²52’Contact Reason552’Contact Relationship52’ Job Title52’Job Code/Classú52’&Guarantor Employer's Organization NameÿÿÿÿQ52’Handicap52’ Job Status52’Guarantor Financial Class÷52’Guarantor Raceÿÿÿÿ552’Guarantor Birth Place52’ VIP Indicator Guarantor9'IN1552’ Set ID - IN1b52’Insurance Plan ID552’Insurance Company IDÿÿÿÿe52’Insurance Company NameÿÿÿÿQ52’Insurance Company Addressÿÿÿÿ”52’Insurance Co Contact Personÿÿÿÿv52’Insurance Co Phone Numberÿÿÿÿ²52’ Group Number52’ Group NameÿÿÿÿQ52’Insured's Group Emp IDÿÿÿÿe52’Insured's Group Emp NameÿÿÿÿQ52’Plan Effective Datem52’Plan Expiration Datem52’Authorization Information 52’ Plan Type52’Name Of Insuredÿÿÿÿv52’!Insured's Relationship To Patient552’Insured's Date Of Birth#52’Insured's Addressÿÿÿÿ”52’Assignment Of Benefits52’Coordination Of Benefits52’Coord Of Ben. Priority52’Notice Of Admission Flag52’Notice Of Admission Datem52’Report Of Eligibility Flag52’Report Of Eligibility Datem52’Release Information Code52’Pre-Admit Cert (PAC)52’Verification Date/Time#52’Verification Byÿÿÿÿ52’Type Of Agreement Code52’Billing Status52’Lifetime Reserve DaysA52’Delay Before L.R. DayA52’Company Plan Code52’ Policy Number52’Policy Deductible52’Policy Limit - Amount52’Policy Limit - DaysA52’Room Rate - Semi-Private52’Room Rate - Private52’Insured's Employment Status552’Insured's Administrative Sex52’Insured's Employer's Addressÿÿÿÿ”52’Verification Status52’Prior Insurance Plan ID52’ Coverage Type52’Handicap52’Insured's ID Numberÿÿÿÿe52’Signature Code52’Signature Code Datem52’Insured's Birth Place52’ VIP Indicator Insurance9'NK1'52’ Set ID - NK1b52’Nameÿÿÿÿv52’ Relationship552’Addressÿÿÿÿ”52’ Phone Numberÿÿÿÿ²52’Business Phone Numberÿÿÿÿ²52’ Contact Role552’ Start Datem52’End Datem52’*Next of Kin / Associated Parties Job Title52’/Next of Kin / Associated Parties Job Code/Classú52’0Next of Kin / Associated Parties Employee Numbere52’Organization Name - NK1ÿÿÿÿQ52’Marital Status552’Administrative Sex52’Date/Time of Birth#52’Living Dependencyÿÿÿÿ52’Ambulatory Statusÿÿÿÿ52’ Citizenshipÿÿÿÿ552’Primary Language552’Living Arrangement52’Publicity Code552’Protection Indicator52’Student Indicator52’Religion552’Mother's Maiden Nameÿÿÿÿv52’ Nationality552’ Ethnic Groupÿÿÿÿ552’Contact Reasonÿÿÿÿ552’Contact Person's Nameÿÿÿÿv52’!Contact Person's Telephone Numberÿÿÿÿ²52’Contact Person's Addressÿÿÿÿ”52’*Next of Kin/Associated Party's Identifiersÿÿÿÿe52’ Job Status52’Raceÿÿÿÿ552’Handicap52’%Contact Person Social Security Number52’Next of Kin Birth Place52’ VIP Indicator Next of Kin / Associated Parties`9'PV1452’ Set ID - PV1b52’ Patient Class52’Assigned Patient Location)52’Admission Type52’Preadmit Numbere52’Prior Patient Location)52’Attending Doctorÿÿÿÿ52’Referring Doctorÿÿÿÿ52’Consulting Doctorÿÿÿÿ52’Hospital Service52’Temporary Location)52’Preadmit Test Indicator52’Re-admission Indicator52’ Admit Source52’Ambulatory Statusÿÿÿÿ52’ VIP Indicator52’Admitting Doctorÿÿÿÿ52’ Patient Type52’ Visit Numbere52’Financial Classÿÿÿÿ÷52’Charge Price Indicator52’ Courtesy Code52’ Credit Rating52’ Contract Codeÿÿÿÿ52’Contract Effective Dateÿÿÿÿm52’Contract AmountÿÿÿÿA52’Contract PeriodÿÿÿÿA52’ Interest Code52’Transfer to Bad Debt Code52’Transfer to Bad Debt Datem52’Bad Debt Agency Code52’Bad Debt Transfer AmountA52’Bad Debt Recovery AmountA52’Delete Account Indicator52’Delete Account Datem52’Discharge Disposition52’Discharged to Location&52’ Diet Type552’Servicing Facility52’ Bed Status52’Account Status52’Pending Location)52’Prior Temporary Location)52’Admit Date/Time#52’Discharge Date/Time#52’Current Patient BalanceA52’ Total ChargesA52’Total AdjustmentsA52’Total PaymentsA52’Alternate Visit IDe52’Visit Indicator52’Other Healthcare Providerÿÿÿÿ Patient Visit9'EVN52’Event Type Code52’Recorded Date/Time#52’Date/Time Planned Event#52’Event Reason Code52’ Operator IDÿÿÿÿ52’Event Occurred#52’Event Facility Event Typeî%o MACHINEIDCODEMSHMSHMSHMSHMSHMSH'MessageType = field.subfield(1).value ÿÿÿÿÿÿÿÿdefaultÿÿÿÿ,if MessageType == 'A03': value = 'D' MapsetMapsetÿÿÿÿÿÿÿÿADT™x#MSHA04™x#MSHÿÿÿÿåÿÿÿÿåADT™x#MSHA03™x#MSHåÿÿÿÿêÿÿÿÿêADT™x#MSHA18™x#MSHêASCIIASCII.úúúúúúú úúúúúúú úúÁÁÁÁúÁúúÁú2úúúúúúúú úúúïúúúú úúúúãããã(Ç<´ú«77ããúÁúúúÁ<úúÁÁÁÁÁúÁÁúúúúÁúúúúÁúúúÁÁÁúúÁúÁÁñÁÁPÁÁPúPúúPúú2  /ÁPP úúñúúúúúASCIITABLE - Short Tags,if MessageType == 'A03': value = 'D' 95''4