`4F2MSH0\Ec:\tempcsharp.client.HL7CSharp3#7g #7g|~FR#7g^S#7g&T HL7kffObUw/2SCDDgy4`#cPatient_#c PatientIDSurname FirstNameSocialSecurityNumberPatient informationG68x#G68x#G68x#G68x#`#c MessageInfo_#cMessageControlIDMessage informationG68x# Y4FV6&PatientRegisterE53TE53T9'MSH52Field SeparatorcSTCb3Value String Data52Encoding Characters 52Sending ApplicationcHDCb3 Namespace IDcISCb3Value String DataCb3 Universal ID Cb3Universal ID TypecIDCb3Value String DataHierarchic Designator52Sending Facility52Receiving Application52Receiving Facility52Date/time Of MessagecTSCb3TimecDTMCb3ValueTrDateTime !0 DTM DateTime Date/TimeCb3Degree Of Precision Time Stamp52Security 52 Message TypecMSGCb3 Message CodeCb3 Trigger EventCb3Message Structure Message Type52Message Control ID 52 Processing IDcPTCb3 Processing IDCb3Processing ModeProcessing Type52 Version IDcVIDCb3 Version IDCb3Internationalization CodecCECb3 Identifier Cb3Text Cb3Name Of Coding SystemCb3Alternate Identifier Cb3Alternate Text Cb3Name Of Alternate Coding System Coded ElementCb3International Version ID1Version Identifier52Sequence NumbercNMCb3ValueNumeric52Continuation Pointer 52Accept Acknowledgment Type52Application Acknowledgment Type52 Country Code52 Character Set52Principal Language Of Message152'Alternate Character Set Handling Scheme52Message Profile IdentifiercEICb3Entity Identifier Cb3 Namespace IDCb3 Universal ID Cb3Universal ID TypeEntity IdentifierMessage HeaderE53T9'PID'52 Set ID - PidcSICb3Value Sequence ID52 Patient IDcCX Cb3 ID Number Cb3 Check Digit Cb3Check Digit SchemeCb3Assigning AuthorityCb3Identifier Type CodeCb3Assigning FacilityCb3Effective DatecDTCb3ValueTrDateDT DateDateCb3Expiration DateWCb3Assigning JurisdictioncCWE Cb3 Identifier Cb3Text Cb3Name Of Coding SystemCb3Alternate Identifier Cb3Alternate Text Cb3Name Of Alternate Coding SystemCb3Coding System Version ID Cb3"Alternate Coding System Version ID Cb3 Original Text Coded With ExceptionsCb3Assigning Agency Or Department\&Extended Composite ID With Check Digit52Patient Identifier ListO52Alternate Patient ID - PidO52 Patient NamecXPNCb3 Family NamecFNCb3Surname Cb3Own Surname Prefix Cb3 Own Surname Cb3"Surname Prefix From Partner/spouse Cb3Surname From Partner/spouse Family NameCb3 Given Name Cb32Second And Further Given Names Or Initials Thereof Cb3Suffix (e.g., Jr Or III) Cb3Prefix (e.g., Dr) Cb3Degree (e.g., Md)Cb3Name Type CodeCb3Name Representation CodeCb3 Name Context1Cb3Name Validity RangecDRCb3Range Start Date/timeCb3Range End Date/timeDate/Time RangeCb3Name Assembly OrderCb3Effective DateCb3Expiration DateCb3Professional Suffix Extended Person Name52Mother's Maiden Namej52Date/time Of Birth52Administrative Sex52 Patient Aliasj52Race152Patient AddresscXADCb3Street AddresscSADCb3Street Or Mailing Address Cb3 Street Name Cb3Dwelling Number Street AddressCb3Other Designation Cb3City Cb3State Or Province Cb3Zip Or Postal Code Cb3CountryCb3 Address TypeCb3Other Geographic Designation Cb3County/parish CodeCb3 Census TractCb3Address Representation CodeCb3Address Validity Range{Cb3Effective DateCb3Expiration DateExtended Address52 County Code52Phone Number - HomecXTN Cb3Telephone Number Cb3Telecommunication Use CodeCb3 Telecommunication Equipment TypeCb3 Email Address Cb3 Country Code:Cb3Area/city Code:Cb3 Local Number:Cb3 Extension:Cb3Any Text Cb3Extension Prefix Cb3Speed Dial Code Cb3Unformatted Telephone Number !Extended Telecommunication Number52Phone Number - Business52Primary Language152Marital Status152Religion152Patient Account NumberO52Ssn Number - Patient 52!Driver's License Number - PatientcDLNCb3License Number Cb3 Issuing State, Province, CountryCb3Expiration DateWDriver's License Number52Mother's IdentifierO52 Ethnic Group152 Birth Place 52Multiple Birth Indicator52 Birth Order:52 Citizenship152Veterans Military Status152 Nationality152Patient Death Date And Time52Patient Death Indicator52Identity Unknown Indicator52Identity Reliability Code52Last Update Date/time52Last Update Facility52 Species Code152 Breed Code152Strain 52Production Class Code152Tribal Citizenship\Patient IdentificationMessageV6&V6&ADTx#A04x#PatientRegisterRegister a Patient!cXON Cb3Organization Name Cb3Organization Name Type CodeCb3 ID Number:Cb3 Check Digit:Cb3Check Digit SchemeCb3Assigning AuthorityCb3Identifier Type CodeCb3Assigning FacilityCb3Name Representation CodeCb3Organization Identifier CExtended Composite Name And Identification Number For Organizations :cFCCb3Financial Class CodeCb3Effective DateFinancial Class{WLj1lcJCCCb3Job CodeCb3 Job ClassCb3Job Description TextcTXCb3Value Text DataJob Code/ClassO\cCPCb3PricecMOCb3Quantity:Cb3 DenominationMoneyCb3 Price TypeCb3 From Value:Cb3To Value:Cb3 Range Units1Cb3 Range TypeComposite PricecAUICb3Authorization Number Cb3DateWCb3Source Authorization InformationcXCNCb3 ID Number Cb3 Family NamelCb3 Given Name Cb32Second And Further Given Names Or Initials Thereof Cb3Suffix (e.g., Jr Or III) Cb3Prefix (e.g., Dr) Cb3Degree (e.g., Md)Cb3 Source TableCb3Assigning AuthorityCb3Name Type CodeCb3Identifier Check Digit Cb3Check Digit SchemeCb3Identifier Type CodeCb3Assigning FacilityCb3Name Representation CodeCb3 Name Context1Cb3Name Validity Range{Cb3Name Assembly OrderCb3Effective DateCb3Expiration DateCb3Professional Suffix Cb3Assigning Jurisdiction\Cb3Assigning Agency Or Department\1Extended Composite ID Number And Name For Persons$D*.cDLDCb3Discharge LocationCb3Effective DateDischarge Location And DatecPL Cb3 Point Of CareCb3RoomCb3BedCb3FacilityCb3Location StatusCb3Person Location TypeCb3BuildingCb3FloorCb3Location Description Cb3!Comprehensive Location IdentifierDCb3 Assigning Authority For LocationPerson Location9'GT1952 Set ID - Gt1L52Guarantor NumberO52Guarantor Namej52Guarantor Spouse Namej52Guarantor Address52Guarantor Ph Num - Home52Guarantor Ph Num - Business52Guarantor Date/time Of Birth52Guarantor Administrative Sex52Guarantor Type52Guarantor Relationship152 Guarantor Ssn 52Guarantor Date - BeginW52Guarantor Date - EndW52Guarantor Priority:52Guarantor Employer Namej52Guarantor Employer Address52Guarantor Employer Phone Number52Guarantor Employee ID NumberO52Guarantor Employment Status52Guarantor Organization Name52Guarantor Billing Hold Flag52Guarantor Credit Rating Code152Guarantor Death Date And Time52Guarantor Death Flag52 Guarantor Charge Adjustment Code152!Guarantor Household Annual Income52Guarantor Household Size:52Guarantor Employer ID NumberO52Guarantor Marital Status Code152Guarantor Hire Effective DateW52Employment Stop DateW52Living Dependency52Ambulatory Status52 Citizenship152Primary Language152Living Arrangement52Publicity Code152Protection Indicator52Student Indicator52Religion152Mother's Maiden Namej52 Nationality152 Ethnic Group152Contact Person's Namej52!Contact Person's Telephone Number52Contact Reason152Contact Relationship52 Job Title 52Job Code/class52&Guarantor Employer's Organization Name52Handicap52 Job Status52Guarantor Financial Class52Guarantor Race152Guarantor Birth Place 52 Vip Indicator Guarantor9'IN1552 Set ID - In1L52Insurance Plan ID152Insurance Company IDO52Insurance Company Name52Insurance Company Address52Insurance Co Contact Personj52Insurance Co Phone Number52 Group Number 52 Group Name52Insured's Group Emp IDO52Insured's Group Emp Name52Plan Effective DateW52Plan Expiration DateW52Authorization Information52 Plan Type52Name Of Insuredj52!Insured's Relationship To Patient152Insured's Date Of Birth52Insured's Address52Assignment Of Benefits52Coordination Of Benefits52Coord Of Ben. Priority 52Notice Of Admission Flag52Notice Of Admission DateW52Report Of Eligibility Flag52Report Of Eligibility DateW52Release Information Code52Pre-admit Cert (pac) 52Verification Date/time52Verification By52Type Of Agreement Code52Billing Status52Lifetime Reserve Days:52Delay Before L.r. Day:52Company Plan Code52 Policy Number 52Policy Deductible52Policy Limit - Amount52Policy Limit - Days:52Room Rate - Semi-private52Room Rate - Private52Insured's Employment Status152Insured's Administrative Sex52Insured's Employer's Address52Verification Status 52Prior Insurance Plan ID52 Coverage Type52Handicap52Insured's ID NumberO52Signature Code52Signature Code DateW52Insured_s Birth Place 52 Vip Indicator Insurance 9'NK1'52 Set ID - Nk1L52Namej52 Relationship152Address52 Phone Number52Business Phone Number52 Contact Role152 Start DateW52End DateW52*Next Of Kin / Associated Parties Job Title 52/Next Of Kin / Associated Parties Job Code/class520Next Of Kin / Associated Parties Employee NumberO52Organization Name - Nk152Marital Status152Administrative Sex52Date/time Of Birth52Living Dependency52Ambulatory Status52 Citizenship152Primary Language152Living Arrangement52Publicity Code152Protection Indicator52Student Indicator52Religion152Mother's Maiden Namej52 Nationality152 Ethnic Group152Contact Reason152Contact Person's Namej52!Contact Person's Telephone Number52Contact Person's Address52*Next Of Kin/associated Party's IdentifiersO52 Job Status52Race152Handicap52%Contact Person Social Security Number 52Next Of Kin Birth Place 52 Vip Indicator Next Of Kin / Associated PartiesJ9'PV1452 Set ID - Pv1L52 Patient Class52Assigned Patient Location52Admission Type52Preadmit NumberO52Prior Patient Location52Attending Doctor52Referring Doctor52Consulting Doctor52Hospital Service52Temporary Location52Preadmit Test Indicator52Re-admission Indicator52 Admit Source52Ambulatory Status52 Vip Indicator52Admitting Doctor52 Patient Type52 Visit NumberO52Financial Class52Charge Price Indicator52 Courtesy Code52 Credit Rating52 Contract Code52Contract Effective DateW52Contract Amount:52Contract Period:52 Interest Code52Transfer To Bad Debt Code52Transfer To Bad Debt DateW52Bad Debt Agency Code52Bad Debt Transfer Amount:52Bad Debt Recovery Amount:52Delete Account Indicator52Delete Account DateW52Discharge Disposition52Discharged To Location52 Diet Type152Servicing Facility52 Bed Status52Account Status52Pending Location52Prior Temporary Location52Admit Date/time52Discharge Date/time52Current Patient Balance:52 Total Charges:52Total Adjustments:52Total Payments:52Alternate Visit IDO52Visit Indicator52Other Healthcare Provider Patient Visit Y MACHINEIDCODEMSHMSH%value = "SAMPLE CLIENT APPLICATION" value = "SAMPLE LABS" 4import time value = time.strftime("%Y%m%d%H%M") value = "P" value = "2.5" defaultMapsetMapsetADTx#MSHA04x#MSH.ASCIISTANDARD VER 295''4