`4F„2‡„MSH0\Ec:\tempHL7#7ƒg ÿÿÿÿÿÿÿÿ#7ƒg|~FR#7ƒg^Sÿÿÿÿ#7ƒg&Tÿÿÿÿ ÿHL7ÂoÕì]Ø9P†¢îæ““ªÂoÕì]Ø9P†¢îæ““ª`#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#`#c™PatientObservation_#c™IDTimeOrderingProviderPIDPatient ObservationG68’™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 Code"Cb3 Trigger Event"Cb3Message Structure" Message Type52’Message Control ID52’ Processing IDc”PTCb3 Processing ID"Cb3Processing Mode"Processing Type52’ Version IDc”VIDCb3 Version ID"Cb3Internationalization Codec”CWE Cb3 IdentifierCb3TextCb3Name of Coding System"Cb3Alternate IdentifierCb3Alternate TextCb3Name of Alternate Coding System"Cb3Coding System Version IDCb3"Alternate Coding System Version IDCb3 Original TextCoded with ExceptionsCb3International Version ID:Version Identifier52’Sequence Numberc”NMCb3ValueÿÿÿÿNumeric52’Continuation Pointer52’Accept Acknowledgment Type"52’Application Acknowledgment Type"52’ Country Code"52’ Character Setÿÿÿÿ"52’Principal Language Of Message:52’'Alternate Character Set Handling Scheme"52’Message Profile Identifierÿÿÿÿc”EICb3Entity IdentifierCb3 Namespace IDCb3 Universal IDCb3Universal ID Type"Entity Identifier52’ Sending Responsible Organizationc”XON Cb3Organization NameCb3Organization Name Type CodeCb3 ID NumberFCb3Identifier Check DigitFCb3Check Digit Scheme"Cb3Assigning AuthorityCb3Identifier Type Code"Cb3Assigning FacilityCb3Name Representation Code"Cb3Organization IdentifierCExtended Composite Name and Identification Number for Organizations52’"Receiving Responsible OrganizationV52’Sending Network Address52’Receiving Network AddressMessage HeaderE53T9'PID'52’ Set ID - PIDc”SICb3Valueÿÿÿÿ String Data52’ Patient IDc”CX Cb3 ID NumberCb3Identifier Check DigitCb3Check Digit Scheme"Cb3Assigning AuthorityCb3Identifier Type Code"Cb3Assigning FacilityCb3Effective Datec”DTCb3Value‰TrDateDT DateDateCb3Expiration DaterCb3Assigning Jurisdiction:Cb3Assigning Agency or Department:&Extended Composite ID with Check Digit52’Patient Identifier Listÿÿÿÿj52’Alternate Patient ID - PIDÿÿÿÿj52’ 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 Code"Cb3Name Representation Code"Cb3 Name Context:Cb3Name Validity Rangec”DRCb3Range Start Date/Time(Cb3Range End Date/Time(Date/Time RangeCb3Name Assembly Order"Cb3Effective Date(Cb3Expiration Date(Cb3Professional SuffixExtended Person Name52’Mother's Maiden Nameÿÿÿÿ{52’Date/Time of Birth(52’Administrative Sex52’ Patient Aliasÿÿÿÿ{52’Raceÿÿÿÿ:52’Patient Addressÿÿÿÿc”XADCb3Street Addressc”SADCb3Street or Mailing AddressCb3 Street NameCb3Dwelling NumberStreet AddressCb3Other DesignationCb3CityCb3State or ProvinceCb3Zip or Postal CodeCb3Country"Cb3 Address Type"Cb3Other Geographic DesignationCb3County/Parish CodeCb3 Census TractCb3Address Representation Code"Cb3Address Validity RangeŒCb3Effective Date(Cb3Expiration Date(Cb3Expiration Reason:Cb3Temporary Indicator"Cb3Bad Address Indicator"Cb3 Address Usage"Cb3 AddresseeCb3CommentCb3Preference OrderFCb3Protection Code:Cb3Address IdentifierPExtended Address52’ County Code52’Phone Number - Homeÿÿÿÿc”XTNCb3Telephone NumberCb3Telecommunication Use Code"Cb3 Telecommunication Equipment Type"Cb3Communication AddressCb3 Country CodeFCb3Area/City CodeFCb3 Local NumberFCb3 ExtensionFCb3Any TextCb3Extension PrefixCb3Speed Dial CodeCb3Unformatted Telephone numberCb3Effective Start Date(Cb3Expiration Date(Cb3Expiration Reason:Cb3Protection Code:Cb3#Shared Telecommunication IdentifierPCb3Preference OrderF!Extended Telecommunication Number52’Phone Number - Businessÿÿÿÿ·52’Primary Language:52’Marital Status:52’Religion:52’Patient Account Numberj52’SSN Number - Patient52’!Driver's License Number - Patientc”DLNCb3License NumberCb3 Issuing State, Province, CountryCb3Expiration DaterDriver's License Number52’Mother's Identifierÿÿÿÿj52’ Ethnic Groupÿÿÿÿ:52’ Birth Place52’Multiple Birth Indicator"52’ Birth OrderF52’ Citizenshipÿÿÿÿ:52’Veterans Military Status:52’ Nationality:52’Patient Death Date and Time(52’Patient Death Indicator"52’Identity Unknown Indicator"52’Identity Reliability Codeÿÿÿÿ52’Last Update Date/Time(52’Last Update Facility52’ Species Code:52’ Breed Code:52’Strain52’Production Class Code:52’Tribal Citizenshipÿÿÿÿ:Patient IdentificationMessageV6&‡ÿÿÿÿADT™x#A04™x#PatientRegisterRegister a PatientY4F„V6&‡PatientDischargeÿÿÿÿE53TE53TE53TeMessageV6&‡ÿÿÿÿêêADT™x#A03™x#PatientDischargeDischarge/End VisitY4F„V6&‡ PatientMergeÿÿÿÿE53TE53TE53TeE53T9'MRG52’Prior Patient Identifier Listÿÿÿÿj52’Prior Alternate Patient IDÿÿÿÿj52’Prior Patient Account Numberj52’Prior Patient IDj52’Prior Visit Numberj52’Prior Alternate Visit IDj52’Prior Patient Nameÿÿÿÿ{Merge Patient InformationMessageV6&‡ÿÿÿÿïïADT™x#A18™x# PatientMerge;Merge Patient Information (for Backward Compatibility Only)Y4F„V6&‡PatientObservationÿÿÿÿE53TE53TE53TeE53T9'OBR252’ Set ID - OBRg52’Placer Order NumberP52’Filler Order NumberP52’Universal Service Identifier:52’Priority"52’Requested Date/Time(52’Observation Date/Time #(52’Observation End Date/Time #(52’Collection Volume *c”CQCb3QuantityFCb3Units:Composite Quantity with Units52’Collector Identifier *ÿÿÿÿc”XCNCb3 ID NumberCb3 Family Name}Cb3 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 Code"Cb3Identifier Check DigitCb3Check Digit Scheme"Cb3Identifier Type Code"Cb3Assigning FacilityCb3Name Representation Code"Cb3 Name Context:Cb3Name Validity RangeŒCb3Name Assembly Order"Cb3Effective Date(Cb3Expiration Date(Cb3Professional SuffixCb3Assigning Jurisdiction:Cb3Assigning Agency or Department:1Extended Composite ID Number and Name for Persons52’Specimen Action Code *"52’ Danger Code:52’Relevant Clinical Information52’Specimen Received Date/Time(52’Specimen Sourcec”SPSCb3Specimen Source Name or Code:Cb3 Additives:Cb3Specimen Collection Methodc”TXCb3Valueÿÿÿÿ String DataCb3 Body Site:Cb3 Site Modifier:Cb3Collection Method Modifier Code:Cb3 Specimen Role:Specimen Source52’Ordering Providerÿÿÿÿ52’Order Callback Phone Numberÿÿÿÿ·52’Placer Field 152’Placer Field 252’Filler Field 1 +52’Filler Field 2 +52’%Results Rpt/Status Chng - Date/Time +(52’Charge to Practice +c”MOCCb3Monetary Amountc”MOCb3QuantityFCb3 Denomination"MoneyCb3 Charge Code:Money and Code52’Diagnostic Serv Sect ID"52’Result Status +"52’Parent Result +c”PRLCb3Parent Observation Identifier:Cb3!Parent Observation Sub-identifierCb3#Parent Observation Value Descriptor0Parent Result Link52’Quantity/Timingÿÿÿÿc”TQ Cb3Quantity Cb3Intervalc”RICb3Repeat PatternCb3Explicit Time IntervalRepeat IntervalCb3DurationCb3Start Date/Time(Cb3 End Date/Time(Cb3PriorityCb3 ConditionCb3Text0Cb3 Conjunction"Cb3Order Sequencingc”OSD Cb3Sequence/Results Flag"Cb3&Placer Order Number: Entity IdentifierCb3!Placer Order Number: Namespace IDCb3&Filler Order Number: Entity IdentifierCb3!Filler Order Number: Namespace IDCb3Sequence Condition ValueCb3Maximum Number of RepeatsFCb3!Placer Order Number: Universal IDCb3&Placer Order Number: Universal ID Type"Cb3!Filler Order Number: Universal IDCb3&Filler Order Number: Universal ID Type"Order Sequence DefinitionCb3Occurrence Duration:Cb3Total OccurrencesFTiming Quantity52’Result Copies Toÿÿÿÿ52’Parentc”EIPCb3Placer Assigned IdentifierPCb3Filler Assigned IdentifierPEntity Identifier Pair52’Transportation Mode"52’Reason for Studyÿÿÿÿ:52’Principal Result Interpreter +c”NDL Cb3Namec”CNN Cb3 ID NumberCb3 Family NameCb3 Given NameCb32Second and Further Given Names or Initials ThereofCb3Suffix (e.g., JR or III)Cb3Prefix (e.g., DR)Cb3Degree (e.g., MDCb3 Source TableCb3$Assigning Authority - Namespace IDCb3#Assigning Authority - Universal IDCb3(Assigning Authority - Universal ID Type"'Composite ID Number and Name SimplifiedCb3Start Date/time(Cb3 End Date/time(Cb3 Point of CareCb3RoomCb3BedCb3FacilityCb3Location StatusCb3Patient Location TypeCb3BuildingCb3FloorName with Date and Location52’Assistant Result Interpreter +ÿÿÿÿp52’ Technician +ÿÿÿÿp52’Transcriptionist +ÿÿÿÿp52’Scheduled Date/Time +(52’Number of Sample Containers *F52’)Transport Logistics of Collected Sample *ÿÿÿÿ:52’Collector's Comment *ÿÿÿÿ:52’$Transport Arrangement Responsibility:52’Transport Arranged"52’Escort Required"52’!Planned Patient Transport Commentÿÿÿÿ:52’Procedure Codec”CNE Cb3 IdentifierCb3TextCb3Name of Coding System"Cb3Alternate IdentifierCb3Alternate TextCb3Name of Alternate Coding System"Cb3Coding System Version IDCb3"Alternate Coding System Version IDCb3 Original TextCoded with No Exceptions52’Procedure Code Modifierÿÿÿÿ”52’'Placer Supplemental Service Informationÿÿÿÿ:52’'Filler Supplemental Service Informationÿÿÿÿ:52’.Medically Necessary Duplicate Procedure Reason:52’Result Handling52’#Parent Universal Service Identifier:Observation RequestMessageV6&‡ÿÿÿÿýV6&‡ÿÿÿÿýORU™x#PatientObservationPatient Observation Message*V"F:c”FCCb3Financial Class CodeCb3Effective Date(Financial Class(™PŒ›rg{}c”JCCCb3Job CodeCb3 Job ClassCb3Job Description Text0Job Code/Class0j·c”CPCb3Price@Cb3 Price Type"Cb3 From ValueFCb3To ValueFCb3 Range Units:Cb3 Range Type"Composite Price@c”AUICb3Authorization NumberCb3DaterCb3SourceAuthorization Information-37Ñc”DLDCb3Discharge to Location:Cb3Effective Date(Discharge to Location and Datec”PL Cb3 Point of CareCb3RoomCb3BedCb3FacilityCb3Location StatusCb3Person Location TypeCb3BuildingCb3FloorCb3Location DescriptionCb3!Comprehensive Location IdentifierPCb3 Assigning Authority for LocationPerson LocationGLO Zj”>,pr 9'GT1952’ Set ID - GT1g52’Guarantor Numberÿÿÿÿj52’Guarantor Nameÿÿÿÿ{52’Guarantor Spouse Nameÿÿÿÿ{52’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 Relationship:52’ Guarantor SSN52’Guarantor Date - Beginr52’Guarantor Date - Endr52’Guarantor PriorityF52’Guarantor Employer Nameÿÿÿÿ{52’Guarantor Employer Addressÿÿÿÿ™52’Guarantor Employer Phone Numberÿÿÿÿ·52’Guarantor Employee ID Numberÿÿÿÿj52’Guarantor Employment Status52’Guarantor Organization NameÿÿÿÿV52’Guarantor Billing Hold Flag"52’Guarantor Credit Rating Code:52’Guarantor Death Date And Time(52’Guarantor Death Flag"52’ Guarantor Charge Adjustment Code:52’!Guarantor Household Annual Income­52’Guarantor Household SizeF52’Guarantor Employer ID Numberÿÿÿÿj52’Guarantor Marital Status Code:52’Guarantor Hire Effective Dater52’Employment Stop Dater52’Living Dependency52’Ambulatory Statusÿÿÿÿ52’ Citizenshipÿÿÿÿ:52’Primary Language:52’Living Arrangement52’Publicity Code:52’Protection Indicator"52’Student Indicator52’Religion:52’Mother's Maiden Nameÿÿÿÿ{52’ Nationality:52’ Ethnic Groupÿÿÿÿ:52’Contact Person's Nameÿÿÿÿ{52’!Contact Person's Telephone Numberÿÿÿÿ·52’Contact Reason:52’Contact Relationship52’ Job Title52’Job Code/Class©52’&Guarantor Employer's Organization NameÿÿÿÿV52’Handicap52’ Job Status52’Guarantor Financial Class¦52’Guarantor Raceÿÿÿÿ:52’Guarantor Birth Place52’ VIP Indicator Guarantor9'IN1552’ Set ID - IN1g52’Insurance Plan ID:52’Insurance Company IDÿÿÿÿj52’Insurance Company NameÿÿÿÿV52’Insurance Company Addressÿÿÿÿ™52’Insurance Co Contact Personÿÿÿÿ{52’Insurance Co Phone Numberÿÿÿÿ·52’ Group Number52’ Group NameÿÿÿÿV52’Insured's Group Emp IDÿÿÿÿj52’Insured's Group Emp NameÿÿÿÿV52’Plan Effective Dater52’Plan Expiration Dater52’Authorization Information´52’ Plan Type52’Name Of Insuredÿÿÿÿ{52’!Insured's Relationship To Patient:52’Insured's Date Of Birth(52’Insured's Addressÿÿÿÿ™52’Assignment Of Benefits52’Coordination Of Benefits52’Coord Of Ben. Priority52’Notice Of Admission Flag"52’Notice Of Admission Dater52’Report Of Eligibility Flag"52’Report Of Eligibility Dater52’Release Information Code52’Pre-Admit Cert (PAC)52’Verification Date/Time(52’Verification Byÿÿÿÿ52’Type Of Agreement Code52’Billing Status52’Lifetime Reserve DaysF52’Delay Before L.R. DayF52’Company Plan Code52’ Policy Number52’Policy Deductible­52’Policy Limit - Amount52’Policy Limit - DaysF52’Room Rate - Semi-Private52’Room Rate - Private52’Insured's Employment Status:52’Insured's Administrative Sex52’Insured's Employer's Addressÿÿÿÿ™52’Verification Status52’Prior Insurance Plan ID52’ Coverage Type52’Handicap52’Insured's ID Numberÿÿÿÿj52’Signature Code52’Signature Code Dater52’Insured's Birth Place52’ VIP Indicator Insurance9'NK1'52’ Set ID - NK1g52’Nameÿÿÿÿ{52’ Relationship:52’Addressÿÿÿÿ™52’ Phone Numberÿÿÿÿ·52’Business Phone Numberÿÿÿÿ·52’ Contact Role:52’ Start Dater52’End Dater52’*Next of Kin / Associated Parties Job Title52’/Next of Kin / Associated Parties Job Code/Class©52’0Next of Kin / Associated Parties Employee Numberj52’Organization Name - NK1ÿÿÿÿV52’Marital Status:52’Administrative Sex52’Date/Time of Birth(52’Living Dependencyÿÿÿÿ52’Ambulatory Statusÿÿÿÿ52’ Citizenshipÿÿÿÿ:52’Primary Language:52’Living Arrangement52’Publicity Code:52’Protection Indicator"52’Student Indicator52’Religion:52’Mother's Maiden Nameÿÿÿÿ{52’ Nationality:52’ Ethnic Groupÿÿÿÿ:52’Contact Reasonÿÿÿÿ:52’Contact Person's Nameÿÿÿÿ{52’!Contact Person's Telephone Numberÿÿÿÿ·52’Contact Person's Addressÿÿÿÿ™52’*Next of Kin/Associated Party's Identifiersÿÿÿÿj52’ Job Status52’Raceÿÿÿÿ:52’Handicap52’%Contact Person Social Security Number52’Next of Kin Birth Place52’ VIP Indicator Next of Kin / Associated Partiese9'PV1452’ Set ID - PV1g52’ Patient Class52’Assigned Patient Location»52’Admission Type52’Preadmit Numberj52’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 Numberj52’Financial Classÿÿÿÿ¦52’Charge Price Indicator52’ Courtesy Code52’ Credit Rating52’ Contract Codeÿÿÿÿ52’Contract Effective Dateÿÿÿÿr52’Contract AmountÿÿÿÿF52’Contract PeriodÿÿÿÿF52’ Interest Code52’Transfer to Bad Debt Code52’Transfer to Bad Debt Dater52’Bad Debt Agency Code52’Bad Debt Transfer AmountF52’Bad Debt Recovery AmountF52’Delete Account Indicator52’Delete Account Dater52’Discharge Disposition52’Discharged to Location¸52’ Diet Type:52’Servicing Facility52’ Bed Status52’Account Status52’Pending Location»52’Prior Temporary Location»52’Admit Date/Time(52’Discharge Date/Time(52’Current Patient BalanceF52’ Total ChargesF52’Total AdjustmentsF52’Total PaymentsF52’Alternate Visit IDj52’Visit Indicator52’Other Healthcare Providerÿÿÿÿ Patient Visit9'EVN52’Event Type Code"52’Recorded Date/Time(52’Date/Time Planned Event(52’Event Reason Code52’ Operator IDÿÿÿÿ52’Event Occurred(52’Event Facility Event Typeó*t MACHINEIDCODEMSHMSHMSHMSHMSHMSHMSH'MessageType = field.subfield(1).value PatientID = value ÿÿÿÿþÿÿÿdefaultÿÿÿÿ,if MessageType == 'A03': value = 'D' value = PatientID MapsetMapsetMapsetÿÿÿÿÿÿÿÿADT™x#MSHA04™x#MSHÿÿÿÿêÿÿÿÿêADT™x#MSHA03™x#MSHêÿÿÿÿïÿÿÿÿïADT™x#MSHA18™x#MSHïÿÿÿÿýÿÿÿÿýÿÿÿÿORU™x#MSHýASCIIASCII.úúúúúúú úúúúúúú úúÁÁÁÁúÁúúÁú2úúúúúúúú úúúïúúúú úúúúãããã(Ç<´ú«77ããúÁúúúÁ<úúÁÁÁÁÁúÁÁúúúúÁúúúúÁúúúÁÁÁúúÁúÁÁñÁÁPÁÁPúPúúPúú2  /ÁPP úúñúúúúú««ÁÒ” Á,” · ÇÇÇÇø Ñ” WÁÁÁÁÁÁÁÁÁÁÁASCIITABLE - Short Tags,if MessageType == 'A03': value = 'D' value = PatientID 95''42