{"version":"https:\/\/jsonfeed.org\/version\/1","title":"Docman 10 HL7 Integration > Docman Help","home_page_url":"https:\/\/help.docman.com\/knowledge-base\/docman-10-hl7-integration\/","feed_url":"https:\/\/help.docman.com\/knowledge-base\/docman-10-hl7-integration\/feed\/json","author":{"name":"nextSTL","url":"https:\/\/help.docman.com"},"items":[{"title":"Docman 10 HL7 Integration","date_published":"2021-02-26T10:51:54Z","date_modified":"2021-03-09T18:33:46Z","id":"https:\/\/help.docman.com\/knowledge-base\/docman-10-hl7-integration\/","url":"https:\/\/help.docman.com\/knowledge-base\/docman-10-hl7-integration\/","author":{"name":"Oliver Edwards","url":"","avatar":"https:\/\/secure.gravatar.com\/avatar\/916760a3861c94b0f12d9658070815ac6150c9ba5291c9b5304733d70e0fdb9e?s=96&d=mm&r=g"},"summary":"\nInstalling Mirth and Docbot\n\n\n\nBefore following this guide, Advanced will need to provide you with a API Consumer that has permissions to your Docman 10 organisation. \n\n\n\nOnce Advanced have provided you with the API consumer, download the AHC.Mirth.\u2026","content_html":"<!-- wp:heading -->\n<h2>Installing Mirth and Docbot<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Before following this guide, Advanced will need to provide you with a API Consumer that has permissions to your Docman 10 organisation. <\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Once Advanced have provided you with the API consumer, download the AHC.Mirth.ADT.Setup.exe.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Running the exe with -help or no switches will output the example commands.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Docbot is a commandline utility used for validating and transforming HL7 messages into Docman 10 via a rest API.  <\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":5} -->\n<h5><a href=\"https:\/\/apps.docman.com\/external\/software\/adt\/AHC.Mirth.ADT.Setup.exe\"><strong>Download Installer<\/strong><\/a><\/h5>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The installer does the following;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:list {\"ordered\":true,\"type\":\"1\"} -->\n<ol type=\"1\"><li>The installer is a command tool and will output the installer options when run.  <\/li><li>Start by downloading the AHC.Mirth.ADT.Setup.exe using the link above, this tool needs access to https:\/\/apps.docman.com <\/li><li>It will then install Java, then Mirth Connect.<\/li><li>During the automated install you may be prompted to install the Mirth Administrator Client manually to accept a license agreement!<\/li><li>&nbsp;It will then Download Docbot and configure using the credentials provided and create a HL7 and Logs folder.  C:\\Program Files (x86)\\PCTI Solutions Ltd\\Docman.Docbot.&lt;Suffix&gt;\\<\/li><li>Once setup it will download a series of test HL7 messages and run them through, on completion it will open the log file in cmtrace tool so you can check the output.<\/li><li>When the script completes restart the machine.<\/li><li>On reboot, open Mirth Server Manager and right click the mirth icon in your task tray and select Launch Administrator. The default logins for mirth are admin\/admin<\/li><\/ol>\n<!-- \/wp:list -->\n\n<!-- wp:image {\"id\":5086,\"sizeSlug\":\"large\"} -->\n<figure class=\"wp-block-image size-large\"><img src=\"https:\/\/help.docman.com\/wp-content\/uploads\/2021\/02\/Picture1.png\" alt=\"\" class=\"wp-image-5086\"\/><\/figure>\n<!-- \/wp:image -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4>Configuring&nbsp;Mirth<\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>Once you have installed&nbsp;Mirth, you will need to import the channel and update the listener address and port if they don\u2019t match what the PAS System has configured.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>During the setup of Docbot it will download the Mirth channel template that can be imported inside the Mirth Administrator. Depending on if you set the suffix Test or Live it would have outputted one of the files below.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>\"C:\\temp\\Docman.ADT.Sync.Mirth.Channel.Live.xml\"<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>\"C:\\temp\\Docman.ADT.Sync.Mirth.Channel.Test.xml\"<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>On the Source screen, change the connector type to \u2018LLP Listener\u2019, change the values for \u2018Listener Address\u2019 and \u2018Listener Port\u2019. The Listener Address is the IP of the server that the messages are being sent to, the Listener Port is the port that the messages are being sent to. The 127.0.0.1 address will need to be changed to the local machine\u2019s address where the messages are being sent. Next click the Destination tab.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If you haven\u2019t setup using the tool then the destination location will need updating to match your install directory.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>The File Name directory should contain the following naming convention:<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>DMMSG-${message.type}-${date.get('yyyyMdH.m.s.mm')}.${UUID}.hl7<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Template field should contain:&nbsp;${message.rawData}<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Next, click Channels, then Deploy Channel.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Mirth&nbsp;is now configured and is actively monitoring the specified port<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2>Docman HL7 Implementation Specification<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The purpose of this section is help improve understanding of the HL7 structure, how messages are processed and explanation of error handling.&nbsp;<br>&nbsp;<br>HL7 messages are consumed by DM10 tool&nbsp;DocBot. This would collect the HL7 messages from a local folder which is provided within the command line. Each message within the folder is processed and depending on successful process or failure, they are moved to folder sub folder within the&nbsp;existing folder.&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Below are examples of different HL7 messages:&nbsp;<br>&nbsp;<br>MSH|^~\\&amp;|AccMgr|1|||20050110114442||ADT^A02|59910287|P|2.3|||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>EVN|A02|20050110114442|||||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>PID||R9999^MRN|9999999999^^^1^NHS^1||DUCK^DONALD^D||19241010|M||1|111^DUCK ST^^FOWL^CA^999990000^^M|1|<a href=\"tel:+44%20(0)330%20404%200810\" target=\"_blank\" rel=\"noreferrer noopener\">03304040810<\/a>||1|2||40007716^^^AccMgr^VN^1|123121234|||||||||||&nbsp;<br>&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>&nbsp;<br>MSH|^~\\&amp;|AccMgr|1|||20050110114442||ADT^A18|59910287|P|2.3|||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>EVN|A18|20050110114442|||||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>PID||R9999^MRN|9999999999^^^1^NHS^1||DUCK^DONALD^D||19241010|M|||111^DUCK ST^^FOWL^CA^999990000^^M||<a href=\"tel:+44%20(0)330%20404%200810\" target=\"_blank\" rel=\"noreferrer noopener\">03304040810<\/a>||1|2||40007716^^^AccMgr^VN^1|123121234|||||||||||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>MRG|&nbsp;R9989^MRN|&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>So as can see from the examples, a HL7 message is broken down into message segments. These are identified by the keys for each segment&nbsp;i.e&nbsp;MSH, EVN, PID and MRG.&nbsp;<br>&nbsp;<br>There are more message segments within HL7 standard, but these are the ones we care about.&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>&nbsp;<br>When we validate a HL7 message we look for these identifier keys, if they do not exist, an exception would be thrown&nbsp;Exception processing ADT file: &lt;filename&gt; Missing &lt;segment key&gt; segment&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Page Break&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":3} -->\n<h3>Message Segment Break Down&nbsp;<\/h3>\n<!-- \/wp:heading -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4>MSH Segment&nbsp;<\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The first segment we will break down is MSH. This is the Message Header, the main piece of information we are looking for is the highlighted section below:&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>MSH|^~\\&amp;|AccMgr|1|||20050110114442||ADT^A02|59910287|P|2.3|||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>This informs use how that message is separated.&nbsp;&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>| = Field Separator&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>^ = Component Separator&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>~ = Repeat Separator&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>These are the common separator values, though these can be altered to user discretion.&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If this&nbsp;field was empty in the HL7 message, then the below error would be returned&nbsp;<br>Exception processing ADT file: &lt;filename&gt; MSH Segment: Missing Encoding Characters&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4>EVN Segment&nbsp;<\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The EVN segment contains information for what event type the HL7 message is. This would dictate if the message&nbsp;were&nbsp;a patient insert, update, delete, merge or a merge documents message. This is dictated by the highlighted section below:&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>&nbsp;<br>EVN|A02|20050110114442|||||&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>We would read this field to decide the action which needs to be performed, below is a table of the different event types and the action performed.&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:table -->\n<figure class=\"wp-block-table\"><table><tbody><tr><td>EVENT TYPE ID&nbsp;<\/td><td>ACTION PERFORMED&nbsp;<\/td><\/tr><tr><td><strong>A01<\/strong>&nbsp;<\/td><td>Insert Patient (Reg status set as \u2018Admit\u2019)&nbsp;<\/td><\/tr><tr><td><strong>A02<\/strong>&nbsp;<\/td><td>Insert Patient (Reg status set as \u2018Transfer)&nbsp;<\/td><\/tr><tr><td><strong>A04<\/strong>&nbsp;<\/td><td>Insert Patient (Reg status set as \u2018Register)&nbsp;<\/td><\/tr><tr><td><strong>A08<\/strong>&nbsp;<\/td><td>Update Patient Details&nbsp;<\/td><\/tr><tr><td><strong>A18<\/strong>&nbsp;<\/td><td>Merge&nbsp;Patient (Reg status set as \u2018Merged \u2013 Minor number)&nbsp;<\/td><\/tr><tr><td><strong>A28<\/strong>&nbsp;<\/td><td>Insert Patient (Reg status set as \u2018Referral Received)&nbsp;<\/td><\/tr><tr><td><strong>A29<\/strong>&nbsp;<\/td><td>Delete Patient (Set patient as Inactive)&nbsp;<\/td><\/tr><tr><td><strong>A31<\/strong>&nbsp;<\/td><td>Update Patient Details&nbsp;<\/td><\/tr><tr><td><strong>A34<\/strong>&nbsp;<\/td><td>Merge&nbsp;Patient (Reg status set as \u2018Merged \u2013 Minor number)&nbsp;<\/td><\/tr><tr><td><strong>A40<\/strong>&nbsp;<\/td><td>Merge Patient Documents&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n<!-- \/wp:table -->\n\n<!-- wp:paragraph -->\n<p>Any other event type provided would result in warning been thrown&nbsp;<strong><em>Exception processing ADT file: &lt;filename&gt; Invalid event type &lt;Event Type Id&gt;&nbsp;<\/em><\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If this field was empty in the HL7 message, then the below error would be returned&nbsp;<br><strong>Exception processing ADT file: &lt;filename&gt;&nbsp;EVN Segment: Missing Event Type&nbsp;<\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4>PID Segment&nbsp;<\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The PID section is&nbsp;what holds the information for the patient this message relates too. This is broken down into multiple data fields, below is an example PID segment and table showing how it\u2019s broken down:&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>PID||R9999^MRN|9999999999^^^1^NHS^1||DUCK^DONALD^D||19241010|M|||111^DUCK ST^^FOWL^CA^999990000^^M||<a href=\"tel:+44%20(0)330%20404%200810\" target=\"_blank\" rel=\"noreferrer noopener\">03304040810<\/a>|||||40007716^^^AccMgr^VN^1|123121234||||||||||20241010|&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:table -->\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Field Name<\/strong>&nbsp;<\/td><td><strong>Field Value<\/strong>&nbsp;<\/td><td><strong>Field Id<\/strong>&nbsp;<\/td><\/tr><tr><td>Segment Id&nbsp;<\/td><td>PID&nbsp;<\/td><td>0&nbsp;<\/td><\/tr><tr><td>Patient Id (External)&nbsp;<\/td><td>R9999^MRN&nbsp;<\/td><td>2&nbsp;<\/td><\/tr><tr><td>Patient Id (Internal)&nbsp;<\/td><td>9999999999^^^1^NHS^1&nbsp;<\/td><td>3&nbsp;<\/td><\/tr><tr><td>Patient Name&nbsp;<\/td><td>DUCK^DONALD^D&nbsp;<\/td><td>5&nbsp;<\/td><\/tr><tr><td>Patient DOB&nbsp;<\/td><td>19241010&nbsp;<\/td><td>7&nbsp;<\/td><\/tr><tr><td>Patient Sex&nbsp;<\/td><td>M&nbsp;<\/td><td>8&nbsp;<\/td><\/tr><tr><td>Patient Address&nbsp;<\/td><td>111^DUCK ST^^FOWL^CA^999990000^^M&nbsp;<\/td><td>11&nbsp;<\/td><\/tr><tr><td>Patient Phone Number&nbsp;<\/td><td><a href=\"tel:+44%20(0)330%20404%200810\" target=\"_blank\" rel=\"noreferrer noopener\">03304040810<\/a>&nbsp;<\/td><td>13&nbsp;<\/td><\/tr><tr><td>Patient Date of Death&nbsp;<\/td><td>20241010&nbsp;<\/td><td>29&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n<!-- \/wp:table -->\n\n<!-- wp:paragraph -->\n<p>The data fields with component separators i.e., ^ would be broken down into their own data values. So, example&nbsp;DUCK^DONALD^D&nbsp;would break down too:&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Title = D&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Forename = Donald&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>Surname = Duck&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If the&nbsp;field&nbsp;<strong>Patient Id (Internal)&nbsp;<\/strong>was empty in the HL7 message, then the below error would be returned&nbsp;<br><strong><em>Exception processing ADT file: &lt;filename&gt; PID Segment: Missing Internal Patient ID&nbsp;<\/em><\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If the field&nbsp;<strong>Patient&nbsp;Name&nbsp;<\/strong>was empty in the HL7 message, then the below error would be returned&nbsp;<br><strong><em>Exception processing ADT file: &lt;filename&gt; PID Segment: Missing Patient&nbsp;Name&nbsp;<\/em><\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If the field&nbsp;<strong>Patient&nbsp;Address&nbsp;<\/strong>was empty in the HL7 message, then the below error would be returned&nbsp;<br><em><strong>Exception processing ADT file: &lt;filename&gt; PID Segment: Missing Patient&nbsp;Address&nbsp;<\/strong><\/em><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If the&nbsp;element&nbsp;<strong>Patient&nbsp;<\/strong><strong>Forename<\/strong><strong>&nbsp;<\/strong>was empty in the HL7 message, then the below error would be returned&nbsp;<br>Exception processing ADT file: &lt;filename&gt; Missing Patient&nbsp;Forename element&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If the&nbsp;element&nbsp;<strong>Patient&nbsp;Surname&nbsp;<\/strong>was empty in the HL7 message, then the below error would be returned&nbsp;<br><strong><em>Exception processing ADT file: &lt;filename&gt; Missing Patient&nbsp;Surname&nbsp;element&nbsp;<\/em><\/strong><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading {\"level\":4} -->\n<h4><strong><em>MRG Segment&nbsp;<\/em><\/strong><\/h4>\n<!-- \/wp:heading -->\n\n<!-- wp:paragraph -->\n<p>The MRG segment is only used for event types A18, A34 and A40. This segment is used to provide the consumer with a patient\u2019s previous identifier.&nbsp;<br>&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>This information is highlighted in the below example:&nbsp;<br>MRG|&nbsp;R9989^MRN|&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If this field was empty in the HL7 message, then the below error would be returned&nbsp;<br><em><strong>Exception processing ADT file: &lt;filename&gt; MRG Segment: Missing&nbsp;PriorPatientID&nbsp;<\/strong><\/em><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>This Id is used during the merge process to locate the previous patient details. This would do the lookup on the Patient Reference field.&nbsp;&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>One thing to be aware with the MRG segment, when we attempt to get this Id value. We priorities an Id value, if it is a \u2018PAS\u2019 value. An example of this is below:&nbsp;&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>&nbsp;<br>MRG|&nbsp;R9989^MRN~P12345^PAS|&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>As the value has a repeat separator \u2018~\u2019 this field is broken into 2 separate values \u2018R9989^MRN\u2019 and \u2018P12345^PAS\u2019. As the second value supplied is defined as the \u2018PAS\u2019 value, we would choose this over the MRN value.&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>If you wish to try parsing any HL7 message\u2019s there are several online tools which will help break down a message&nbsp;<br>&nbsp;<br><a href=\"https:\/\/hl7messageparser.azurewebsites.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/hl7messageparser.azurewebsites.net\/<\/a>&nbsp;<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p><a href=\"https:\/\/hl7.cc\/farser\">https:\/\/hl7.cc\/farser<\/a><\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:heading -->\n<h2> PID Element Mappings<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:table {\"hasFixedLayout\":true,\"className\":\"is-style-regular\"} -->\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-fixed-layout\"><thead><tr><th><\/th><th><\/th><th><\/th><th><\/th><th><\/th><th><\/th><th><\/th><\/tr><\/thead><tbody><tr><td>DT<\/td><td>Required<\/td><td>RP\/#<\/td><td>ELEMENT NAME<\/td><td>Docman DB Mapping<\/td><td>Docman UI Mapping<\/td><td>FormatOptions\/Notes<\/td><\/tr><tr><td>SI<\/td><td>R<\/td><td><\/td><td>Set ID \u2013 Patient ID<\/td><td>1<\/td><td><\/td><td><\/td><\/tr><tr><td>CX<\/td><td>R<\/td><td><\/td><td>Patient ID (External ID)<\/td><td>Reference<\/td><td>Reference<\/td><td>Varchar<\/td><\/tr><tr><td>CX<\/td><td>R<\/td><td>Y<\/td><td>Patient ID (Internal ID)<\/td><td>Data11<\/td><td>NHS Number\/CHI Number\/IHI Number<\/td><td>Must contain national suffix of NHS for England\/Wales, CHI for scotland or IHI for Republic of Ireland.&nbsp;<\/td><\/tr><tr><td>CX<\/td><td>R<\/td><td>Y<\/td><td>Alternate Patient ID \u2013 PID<\/td><td>Reference<\/td><td><\/td><td>Required by HL7 Structure but not used by Docman<\/td><\/tr><tr><td>XPN<\/td><td>R<\/td><td>Y<\/td><td>Patient Name<\/td><td>data3^data2^^^data1<\/td><td>FamilyName^GivenName^^^Title<\/td><td><\/td><\/tr><tr><td>XPN<\/td><td>O<\/td><td><\/td><td>Mother\u2019s Maiden Name<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>TS<\/td><td>O<\/td><td><\/td><td>Date\/Time of Birth<\/td><td>Data44<\/td><td>DOB<\/td><td>YYYYMMDD<\/td><\/tr><tr><td>IS<\/td><td>O<\/td><td><\/td><td>Sex<\/td><td><\/td><td><\/td><td>MALE\/FEMALE\/OTHER<\/td><\/tr><tr><td>XPN<\/td><td>O<\/td><td>Y<\/td><td>Patient Alias<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>IS<\/td><td>O<\/td><td><\/td><td>Race<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>XAD<\/td><td>O<\/td><td>Y<\/td><td>Patient Address<\/td><td>data5^data6^data7^data8^Data9^data10<\/td><td>House^No \/ Road^Locality^Town^County^Post code<\/td><td><\/td><\/tr><tr><td>IS<\/td><td>B<\/td><td><\/td><td>Country Code<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>XTN<\/td><td>O<\/td><td>Y<\/td><td>Phone Number \u2013 Home<\/td><td>Data20<\/td><td>Home Telephone<\/td><td>If multiple numbers provided separate with ^<\/td><\/tr><tr><td>XTN<\/td><td>O<\/td><td>Y<\/td><td>Phone Number \u2013 Business<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>CE<\/td><td>O<\/td><td><\/td><td>Primary Language<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>IS<\/td><td>O<\/td><td><\/td><td>Marital Status<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>IS<\/td><td>O<\/td><td><\/td><td>Religion<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>CX<\/td><td>O<\/td><td><\/td><td>Patient Account Number<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>ST<\/td><td>O<\/td><td><\/td><td>SSN Number \u2013 Patient<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>DLN<\/td><td>O<\/td><td><\/td><td>Driver\u2019s License Number \u2013 Patient<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>CX<\/td><td>O<\/td><td>Y<\/td><td>Mother\u2019s Identifier<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>IS<\/td><td>O<\/td><td><\/td><td>Ethnic Group<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>ST<\/td><td>O<\/td><td><\/td><td>Birth Place<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>ID<\/td><td>O<\/td><td><\/td><td>Multiple Birth Indicator<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>NM<\/td><td>O<\/td><td><\/td><td>Birth Order<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>IS<\/td><td>O<\/td><td>Y<\/td><td>Citizenship<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>CE<\/td><td>O<\/td><td><\/td><td>Veterans Military Status<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>CE<\/td><td>O<\/td><td><\/td><td>Nationality<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>TS<\/td><td>O<\/td><td><\/td><td>Patient Death Date and Time<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>ID<\/td><td>O<\/td><td><\/td><td>Patient Death Indicator<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><td>Usable PID Section&nbsp;<\/td><td>PID|1|Reference|Data11|<br>Reference|data3^data2^^^data1||<br>Data44||||data5^data6^data7^data8^Data9^data10||<br>Data20|||||||||||||||||<\/td><td>PID||Reference|NHS Number\/CHI Number\/IHI Number||FamilyName^GivenName^^^Title||DOB||||House^No \/ Road^Locality^Town^County^Post code||Home Telephone|||||||||||||||||<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n<!-- \/wp:table -->\n\n<!-- wp:heading -->\n<h2>PID Element Generator<\/h2>\n<!-- \/wp:heading -->\n\n<!-- wp:file {\"id\":5088,\"href\":\"https:\/\/help.docman.com\/wp-content\/uploads\/2021\/02\/GenerateHL7-PID-Section.xlsx\"} -->\n<div class=\"wp-block-file\"><a href=\"https:\/\/help.docman.com\/wp-content\/uploads\/2021\/02\/GenerateHL7-PID-Section.xlsx\">GenerateHL7-PID-Section<\/a><a href=\"https:\/\/help.docman.com\/wp-content\/uploads\/2021\/02\/GenerateHL7-PID-Section.xlsx\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n<!-- \/wp:file -->\n\n<!-- wp:paragraph -->\n<p><\/p>\n<!-- \/wp:paragraph -->","tags":[]}]}