`4F„2‡„MSH0\Ec:\tempHL7<#7ƒg ÿÿÿÿÿÿÿÿ#7ƒg|~FR#7ƒg^Sÿÿÿÿ#7ƒg&Tÿÿÿÿ ~HL7ýY Ìe:B”šô¼wrYš³è ½Bœ`B3~²ã`#c™ PatientTable_#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 Observation G68’™x#G68’™x#G68’™x#G68’™x#Y4F„V6&‡ PatientUpdateÿÿÿÿE53TE53T9'MSH52’Field Separatorc”STCb3ValueString52’Encoding Characters52’Sending Applicationc”HDCb3 Namespace IDc”ISCb3Value#Coded Value For User-defined TablesCb3 Universal IDCb3Universal ID Typec”IDCb3ValueCoded Values For Hl7 TablesHierarchic Designator52’Sending Facility52’Receiving Application52’Receiving Facility52’Date/Time Of Messagec”TSCb3Time Of An Event‰Tr Time Stamp !0(YYYY[MM[DD[HH[MM[SS[.SSSS]]]]]][+/-ZZZZ]Cb3Degree Of Precision Time Stamp52’Security52’ Message Typec”MSGCb3 Message Type"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”CECb3Identifier (ST)Cb3TextCb3Name Of Coding SystemCb3Alternate Identifier (ST)Cb3Alternate TextCb3Name Of Alternate Coding System Coded ElementCb3International Version ID;Version Identifier52’Sequence Numberc”NMCb3ValueNumeric52’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’Conformance Statement ID"Message HeaderE53T9'PID&52’ Set ID - PIDc”SICb3Value Sequence ID52’ Patient IDc”CXCb3ID"Cb3 Check DigitDCb30Code Identifying The Check Digit Scheme Employed"Cb3Assigning AuthorityCb3Identifier Type Code (ID)"Cb3Assigning FacilityCb3Effective Date (DT)c”DTCb3Value‰TrDate (YYYY[MM[DD]]DateCb3Expiration Date\&Extended Composite ID With Check Digit52’Patient Identifier ListT52’Alternate Patient ID - PIDT52’ Patient Namec”XPN Cb3 Family Namec”FNCb3SurnameCb3Own Surname PrefixCb3 Own SurnameCb3"Surname Prefix From Partner/spouseCb3Surname From Partner/spouse Familiy 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"Extended Person Name52’Mother's Maiden Namec52’Date/Time Of Birth(52’Administrative Sex52’ Patient Aliasc52’Race;52’Patient Addressc”XAD Cb3Street Address (SAD)c”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 RangetExtended Address52’ County Code52’Phone Number - Homec”XTN Cb3%[(999)] 999-9999 [x99999][c Any Text]c”TNCb3ValueTelephone NumberCb3Telecommunication Use Code"Cb3%Telecommunication Equipment Type (ID)"Cb3 Email AddressCb3 Country CodeDCb3Area/city CodeDCb3 Phone NumberDCb3 ExtensionDCb3Any Text!Extended Telecommunication Number52’Phone Number - Business‘52’Primary Language;52’Marital Status;52’Religion;52’Patient Account NumberT52’SSN Number - Patient52’!Driver's License Number - Patientc”DLNCb3Driver´s License NumberCb3 Issuing State, Province, CountryCb3Expiration Date\Driver's License Number52’Mother's IdentifierT52’ Ethnic Group;52’ Birth Place52’Multiple Birth Indicator"52’ Birth OrderD52’ Citizenship;52’Veterans Military Status;52’ Nationality;52’Patient Death Date and Time(52’Patient Death Indicator"52’Identity Unknown Indicator"52’Identity Reliability Code52’Last Update Date/Time(52’Last Update Facility52’ Species Code;52’ Breed Code;52’Strain52’Production Class Code;Patient identificationMessageV6&‡ÿÿÿÿADT™x#A04™x# PatientUpdatePatient Update MessageY4F„V6&‡IgnoreÿÿÿÿE53TE53TMessage¼IgnoreUnexpected MessagesY4F„V6&‡ PatientMergeÿÿÿÿE53TE53TE53TOE53T9'MRG52’Prior Patient Identifier ListT52’Prior Alternate Patient IDT52’Prior Patient Account NumberT52’Prior Patient IDT52’Prior Visit NumberT52’Prior Alternate Visit IDT52’Prior Patient NamecMerge patient informationMessageV6&‡ÿÿÿÿ¿¿ADT™x# PatientMergePatientMerge Message+D"4;.8(Q‘“¤\cte~€Tc”EIPCb3Parent´s Placer Order Numberc”EICb3Entity IdentifierCb3 Namespace IDCb3 Universal IDCb3Universal ID Type"Entity IdentifierCb3Parent´s Filler Order NumberÎ Parent OrderÎc”XCNCb3ID Number (ST)Cb3 Family NameeCb3 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 DigitCb30Code Identifying The Check Digit Scheme Employed"Cb3Identifier Type Code (IS)Cb3Assigning FacilityCb3Name Representation Code"Cb3 Name Context;Cb3Name Validity RangetCb3Name Assembly Order"1Extended Composite ID Number And Name For Personsc”TQ Cb3Quantityc”CQCb3QuantityDCb3Units;Composite Quantity With UnitsCb3Intervalc”RICb3Repeat PatternCb3Explicit Time IntervalRepeat IntervalCb3DurationCb3Start Date/time(Cb3 End Date/time(Cb3PriorityCb3 ConditionCb3 Text (TX)c”TXCb3Value Text DataCb3Conjunction Component"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 RepeatsDCb3!Placer Order Number: Universal IDCb3&Placer Order Number; Universal ID Type"Cb3!Filler Order Number: Universal IDCb3&Filler Order Number: Universal ID Type"Order SequenceCb3Occurrence Duration;Cb3Total OccurencesDTiming Quantityíöéúc”SPSCb3Specimen Source Name Or Code;Cb3 AdditivesöCb3FreetextöCb3 Body Site;Cb3 Site Modifier;Cb3Collection Modifier Method Code;Cb3 Specimen Role;Specimen Sourcec”NDL Cb3Namec”CN Cb3ID Number (ST)Cb3 Family NameeCb3 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 AuthorityComposite ID Number And NameCb3Start Date/time(Cb3 End Date/time(Cb3Point Of Care (IS)Cb3RoomCb3BedCb3 Facility (HD)Cb3Location StatusCb3Person Location TypeCb3BuildingCb3FloorObserving Practitionerc”PRLCb3-Obx-3 Observation Identifier Of Parent Result;Cb3Obx-4 Sub-id Of Parent ResultCb3,Part Of Obx-5 Observation Result From ParentöParent Result Linkc”MOCCb3 Dollar Amountc”MOCb3QuantityDCb3 Denomination"MoneyCb3 Charge Code;Charge To Practise,c”JCCCb3Job CodeCb3 Job ClassCb3Job Description TextöJob Code/classc”CPCb3Price,Cb3 Price Type"Cb3 From ValueDCb3To ValueDCb3 Range Units;Cb3 Range Type"Composite Pricec”FCCb3Financial Class CodeCb3Effective Date(Financial Classc”DTMCb3Value‰TrDateTime !0 DTM DateTime Date/timec”XON Cb3Organization NameCb3Organization Name Type CodeCb3 ID NumberDCb3 Check DigitDCb3Check Digit Scheme"Cb3Assigning AuthorityCb3Identifier Type Code"Cb3Assigning FacilityCb3Name Representation Code"Cb3Organization IdentifierCExtended Composite Name And Identification Number For Organizationsc”AUICb3Authorization NumberCb3Date\Cb3SourceAuthorization Informationc”PL Cb3 Point Of CareCb3RoomCb3BedCb3FacilityCb3Location StatusCb3Person Location TypeCb3BuildingCb3FloorCb3Location DescriptionCb3!Comprehensive Location IdentifierÎCb3 Assigning Authority For LocationPerson Locationc”DLDCb3Discharge LocationCb3Effective Date(Discharge Location And DateOÃ9'OBR/52’ Set ID - OBRQ52’Placer Order NumberÎ52’Filler Order NumberÎ52’Universal Service Identifier;52’Priority"52’Requested Date/Time(52’Observation Date/Time #(52’Observation End Date/Time #(52’Collection Volume *é52’Collector Identifier *Ô52’Specimen Action Code *"52’ Danger Code;52’Relevant Clinical Info.52’Specimen Received Date/Time *(52’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 +*52’Diagnostic Serv Sect ID"52’Result Status +"52’Parent Result +&52’Quantity/Timingç52’Result Copies ToÔ52’ParentÌ52’Transportation Mode"52’Reason for Study;52’Principal Result Interpreter +52’Assistant Result Interpreter +52’ Technician +52’Transcriptionist +52’Scheduled Date/Time +(52’Number of Sample Containers *D52’)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 Code;52’Procedure Code Modifier;52’'Placer Supplemental Service Information;52’'Filler Supplemental Service Information;Observation Request9'GT1952’ Set ID - Gt1Q52’Guarantor NumberÿÿÿÿT52’Guarantor Nameÿÿÿÿc52’Guarantor Spouse Nameÿÿÿÿc52’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 - Begin\52’Guarantor Date - End\52’Guarantor PriorityD52’Guarantor Employer Nameÿÿÿÿc52’Guarantor Employer Addressÿÿÿÿ~52’Guarantor Employer Phone Numberÿÿÿÿ‘52’Guarantor Employee ID NumberÿÿÿÿT52’Guarantor Employment Status52’Guarantor Organization NameÿÿÿÿA52’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 Income452’Guarantor Household SizeD52’Guarantor Employer ID NumberÿÿÿÿT52’Guarantor Marital Status Code;52’Guarantor Hire Effective Date\52’Employment Stop Date\52’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ÿÿÿÿc52’ Nationality;52’ Ethnic Groupÿÿÿÿ;52’Contact Person's Nameÿÿÿÿc52’!Contact Person's Telephone Numberÿÿÿÿ‘52’Contact Reason;52’Contact Relationship52’ Job Title52’Job Code/class052’&Guarantor Employer's Organization NameÿÿÿÿA52’Handicap52’ Job Status52’Guarantor Financial Class;52’Guarantor Raceÿÿÿÿ;52’Guarantor Birth Place52’ Vip Indicator Guarantor9'IN1552’ Set ID - In1Q52’Insurance Plan ID;52’Insurance Company IDÿÿÿÿT52’Insurance Company NameÿÿÿÿA52’Insurance Company Addressÿÿÿÿ~52’Insurance Co Contact Personÿÿÿÿc52’Insurance Co Phone Numberÿÿÿÿ‘52’ Group Number52’ Group NameÿÿÿÿA52’Insured's Group Emp IDÿÿÿÿT52’Insured's Group Emp NameÿÿÿÿA52’Plan Effective Date\52’Plan Expiration Date\52’Authorization InformationL52’ Plan Type52’Name Of Insuredÿÿÿÿc52’!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 Date\52’Report Of Eligibility Flag"52’Report Of Eligibility Date\52’Release Information Code52’Pre-admit Cert (pac)52’Verification Date/time(52’Verification ByÿÿÿÿÔ52’Type Of Agreement Code52’Billing Status52’Lifetime Reserve DaysD52’Delay Before L.r. DayD52’Company Plan Code52’ Policy Number52’Policy Deductible452’Policy Limit - Amount452’Policy Limit - DaysD52’Room Rate - Semi-private452’Room Rate - Private452’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ÿÿÿÿT52’Signature Code52’Signature Code Date\52’Insured_s Birth Place52’ Vip Indicator Insurance9'NK1'52’ Set ID - Nk1Q52’Nameÿÿÿÿc52’ Relationship;52’Addressÿÿÿÿ~52’ Phone Numberÿÿÿÿ‘52’Business Phone Numberÿÿÿÿ‘52’ Contact Role;52’ Start Date\52’End Date\52’*Next Of Kin / Associated Parties Job Title52’/Next Of Kin / Associated Parties Job Code/class052’0Next Of Kin / Associated Parties Employee NumberT52’Organization Name - Nk1ÿÿÿÿA52’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ÿÿÿÿc52’ Nationality;52’ Ethnic Groupÿÿÿÿ;52’Contact Reasonÿÿÿÿ;52’Contact Person's Nameÿÿÿÿc52’!Contact Person's Telephone Numberÿÿÿÿ‘52’Contact Person's Addressÿÿÿÿ~52’*Next Of Kin/associated Party's IdentifiersÿÿÿÿT52’ Job Status52’Raceÿÿÿÿ;52’Handicap52’%Contact Person Social Security Number52’Next Of Kin Birth Place52’ Vip Indicator Next Of Kin / Associated Parties9'PV1452’ Set ID - Pv1Q52’ Patient Class52’Assigned Patient LocationP52’Admission Type52’Preadmit NumberT52’Prior Patient LocationP52’Attending DoctorÿÿÿÿÔ52’Referring DoctorÿÿÿÿÔ52’Consulting DoctorÿÿÿÿÔ52’Hospital Service52’Temporary LocationP52’Preadmit Test Indicator52’Re-admission Indicator52’ Admit Source52’Ambulatory Statusÿÿÿÿ52’ Vip Indicator52’Admitting DoctorÿÿÿÿÔ52’ Patient Type52’ Visit NumberT52’Financial Classÿÿÿÿ;52’Charge Price Indicator52’ Courtesy Code52’ Credit Rating52’ Contract Codeÿÿÿÿ52’Contract Effective Dateÿÿÿÿ\52’Contract AmountÿÿÿÿD52’Contract PeriodÿÿÿÿD52’ Interest Code52’Transfer To Bad Debt Code52’Transfer To Bad Debt Date\52’Bad Debt Agency Code52’Bad Debt Transfer AmountD52’Bad Debt Recovery AmountD52’Delete Account Indicator52’Delete Account Date\52’Discharge Disposition52’Discharged To Location\52’ Diet Type;52’Servicing Facility52’ Bed Status52’Account Status52’Pending LocationP52’Prior Temporary LocationP52’Admit Date/time(52’Discharge Date/timeÿÿÿÿ(52’Current Patient BalanceD52’ Total ChargesD52’Total AdjustmentsD52’Total PaymentsD52’Alternate Visit IDT52’Visit Indicator52’Other Healthcare ProviderÿÿÿÿÔ Patient Visit*^@ MACHINEIDCODEMSHMSHMSH'MessageType = field.subfield(1).value PatientID = value; ÿÿÿÿþÿÿÿdefaultÿÿÿÿ*if MessageType == 'A03': value = 'D' value = PatientID MapsetMapsetMapsetÿÿÿÿÿÿÿÿADT™x#MSHA04™x#MSHÿÿÿÿ¼¼ÿÿÿÿ¿ÿÿÿÿ¿ADT™x#MSH¿.ASCIISTANDARD VER 2*if MessageType == 'A03': value = 'D' value = PatientID &/95'4