<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Tier 7 Support]]></title><description><![CDATA[Mike's experiences, thoughts, and tools found while covering tier 1, 2, and 3 support.

When a 1st, 2nd, and 3rd bit are all set they add up to 7.]]></description><link>https://hokanson.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 02:53:27 GMT</lastBuildDate><atom:link href="https://hokanson.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Introduction to reading HL7v2]]></title><description><![CDATA[What do I need to know to get started?]]></description><link>https://hokanson.dev/introduction-to-reading-hl7v2</link><guid isPermaLink="true">https://hokanson.dev/introduction-to-reading-hl7v2</guid><category><![CDATA[hl7 interface development]]></category><category><![CDATA[ HL7 integration]]></category><category><![CDATA[hl7]]></category><category><![CDATA[hl7 development]]></category><category><![CDATA[HL7 and interoberability]]></category><category><![CDATA[ Healthcare Integration Services]]></category><category><![CDATA[healthcare]]></category><category><![CDATA[Healthcare IT]]></category><dc:creator><![CDATA[Mike Hokanson]]></dc:creator><pubDate>Mon, 17 Jun 2024 21:09:29 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1718657301105/f9b3a518-9e3a-4701-b319-427b1a081be1.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>HL7v2 is a set of standards set out to allow healthcare systems to send each other updates on patient-related information. If you’re just starting out in healthcare IT and want a quick primer on these standards please read on.</p>
<h2 id="heading-reading-the-message">Reading the message</h2>
<p>HL7v2 messages are a collection of lines, each with their own standards. Each line, referred to as a <strong>segment</strong>, contains a collection of information related to one aspect of a patient’s information. Segments are made up of <strong>fields</strong>, which each contain a particular data point, which may need to be further broken down into <strong>repetitions</strong>, <strong>components</strong>, and <strong>sub-components</strong>. Generally, fields are separated by the pipe character (|), repetitions by a tilde (~), components by a caret (^) and sub-components by an ampersand (&amp;).</p>
<p>Let’s go through an example to see how all this comes together.</p>
<p>Below is the Patient Identification (PID) segment of an HL7v2 message for a patient named "Mickey M Mouse" with multiple EMR medical record numbers, a home address, phone number, and other demographic details:</p>
<pre><code class="lang-plaintext">PID|1||13579^BobsOrtho~2468~StevesHospital||Mouse^Mickey^M||19271118|M|||The Magic Kingdom^1675 North Buena Vista Drive^Lake Buena Vista^FL^32830||8777642539
</code></pre>
<p>Breakdown of example:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Field Name</td><td>Value</td><td>Description</td></tr>
</thead>
<tbody>
<tr>
<td>Segment Header (unofficial name)</td><td><code>PID</code></td><td>Indicates the segment is following the <strong>Patient Identification</strong> segment standard. The MSH segment would tell us which version of the Patient Identification standard to use. In this case we’ll assume version 2.3</td></tr>
<tr>
<td>PID-1</td><td><code>1</code></td><td>This indicates that we are referring to the first patient listed in the message. Generally you won't find a second.</td></tr>
<tr>
<td>PID-2</td><td></td><td>This isn't filled out in our example, but could contain a single patient ID/medical record number (MRN)</td></tr>
<tr>
<td>PID-3</td><td><code>13579^BobsOrtho~2468^StevesHospital</code></td><td>This PID-3 value uses the repetition indicator (~), meaning that there are two PID-3s here, <code>13579^BobsOrtho</code> and <code>2468^StevesHospital</code>. These are further broken down by the component separator (^) to show that <code>13579</code> is the MRN for the organization <code>BobsOrtho</code> and <code>2468</code> is the identifier for <code>StevesHospital</code></td></tr>
<tr>
<td>PID-4</td><td></td><td>This is blank in our example but could contain an alternate ID to what we saw in PID-2</td></tr>
<tr>
<td>PID-5</td><td><code>Mouse^Mickey^M</code></td><td>PID-5 always contains the patient's name. In this case the name is further broken down to the patient's last name, first name, and middle initial using the component separator (^).<br /><br />Each component is identified as a sub-item of the overall field by it's position.<br /><br />In this example: <br />PID-5.1 is "Mouse"<br />PID-5.2 is "Mickey"<br />PID-5.3 is "M"</td></tr>
<tr>
<td>PID-6</td><td></td><td>This is blank in our example but is where you may put the patient's mother's maiden name</td></tr>
<tr>
<td>PID-7</td><td><code>2019271118</code></td><td>The patient's date of birth. Time may also be added if known using numbers only but otherwise following the ISO 8601 basic standard of <code>yyyyMMddHHmmss</code>.</td></tr>
<tr>
<td>PID-8</td><td><code>M</code></td><td>Patient administrative sex.</td></tr>
<tr>
<td>PID-9</td><td></td><td>Patient Alias</td></tr>
<tr>
<td>PID-10</td><td></td><td>Patient Race, if known</td></tr>
<tr>
<td>PID-11</td><td><code>The Magic Kingdom^1675 North Buena Vista Drive^Lake Buena Vista^FL^32830</code></td><td>Patient Address<br /><br />In this example:<br />PID-11.1: Address line 1<br />PID-11.2: Address line 2<br />PID-11.3: City<br />PID-11.4: State<br />PID-11.5: Postal Code</td></tr>
<tr>
<td>PID-12</td><td></td><td>Blank in this example but could contain a County Code</td></tr>
<tr>
<td>PID-13</td><td><code>8777642539</code></td><td>Patient phone number</td></tr>
</tbody>
</table>
</div><p>You'll need some kind of reference to know what the formatting is for each segment and the versions of that segment. I find <a target="_blank" href="https://hl7-definition.caristix.com/v2/HL7v2.5.1">Caristix.com's HL7 Definition site</a> to be an invaluable resource in looking up these field definitions.</p>
<p><strong><u>PLEASE NOTE:</u></strong> The MSH segment uses <em>whatever</em> character comes after <code>MSH</code> as MSH-1, as the standard needed a way to indicate which character is the field separator. Because of this many people get confused over MSH field names and reference them incorrectly.</p>
<h1 id="heading-message-types">Message Types</h1>
<p>Because HL7v2 messages are triggered by events in an electronic medical record system, there is a list of events which may generate a message. Which event was the trigger is listed in MSH-9 (remember from the end of the last section that MSH numbering <em>appears</em> to be off due to MSH-1 being the first pipe character). A list of Message Types (MSH-9.1) can be found <a target="_blank" href="https://hl7-definition.caristix.com/v2/HL7v2.5.1/Tables/0076">here</a>, while a list of triggering events may be found <a target="_blank" href="https://hl7-definition.caristix.com/v2/HL7v2.5.1/Tables/0003">here</a>.</p>
<p>Please note that not all message types support all trigger events.</p>
<p>Common message types you'll encounter are:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Message Type</td><td>Description</td></tr>
</thead>
<tbody>
<tr>
<td>ADT</td><td><u><strong>A</strong></u>dmit/<u><strong>D</strong></u>ischarge/<u><strong>T</strong></u>ransfer messages<br /><br />Generally used for sharing patient demographic data</td></tr>
<tr>
<td>MDM</td><td><u><strong>M</strong></u>edical <u><strong>D</strong></u>ocument <u><strong>M</strong></u>anagement<br /><br />Documents from an EMR, usually transcribed notes or reports</td></tr>
<tr>
<td>ORM</td><td><u><strong>Or</strong></u>der <u><strong>M</strong></u>essage<br /><br />Information about a new order to a lab, radiology department, etc.</td></tr>
<tr>
<td>ORU</td><td><u><strong>O</strong></u>der <u><strong>R</strong></u>esults <u><strong>U</strong></u>nsolicited<br /><br />Results for a lab or test</td></tr>
<tr>
<td>SIU</td><td><u><strong>S</strong></u>cheduling <u><strong>I</strong></u>nformation <u><strong>U</strong></u>nsolicited<br /><br />Information about patient scheduling</td></tr>
</tbody>
</table>
</div><h1 id="heading-conclusion">Conclusion</h1>
<p>There's a TON more to HL7, such as determining which segments and fields are optional, what the proper order of segments are for a given message type, the differences between versions of HL7v2, custom segments for data outside the standard (those are called "z-segments" if you're curious), but those are beyond the scope of this primer on reading HL7v2 messages.</p>
]]></content:encoded></item><item><title><![CDATA[FTPS with Mirth Connect]]></title><description><![CDATA[The company I work for recently received notification that one of our vendors was moving their SFTP server to a service which only supported WebDAV and…]]></description><link>https://hokanson.dev/ftps-with-mirth-connect</link><guid isPermaLink="true">https://hokanson.dev/ftps-with-mirth-connect</guid><category><![CDATA[Ftp Client]]></category><category><![CDATA[file-transfer]]></category><category><![CDATA[Mirth connect]]></category><category><![CDATA[mirth]]></category><category><![CDATA[ftps]]></category><dc:creator><![CDATA[Mike Hokanson]]></dc:creator><pubDate>Sun, 26 Mar 2023 05:25:17 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1679806259288/ccc0cff3-6318-4e43-8ce8-7fd4cb51304c.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The company I work for recently received notification that one of our vendors was moving their SFTP server to a service which only supported WebDAV and FTPS. I've been trying to shift all our data exchanges from a hodge-podge of tools like WinSCP scripts, FTP Voyager, and Mirth Connect 3.X to a new server running Mirth Connect 4.X (Community Edition) and thought, "No problem! Mirth can do so much!"</p>
<p>I was wrong.</p>
<p>Out of the box Mirth Connect can easily handle TCP/IP transmissions, FTP transfers, SMB transfers, MLLP message, and many more BUT IT CANNOT HANDLE FTP OVER SSL/TLS! Mirth's corporate backer, Nextgen Healthcare, offers an extension which adds things like FTPS support, but that extension alone would cost $6,500 per year, which was more money than I wanted to request approval for just to consolidate our data exchanges  </p>
<p>Since Mirth Connect is built on Java I was able to take a day to learn to leverage Java packages already included in Mirth Connect into an FTPS channel WITHOUT the plugin. Details are below for anyone in need of a similar solution:</p>
<h3 id="heading-step-1">Step 1</h3>
<p>You'll need to set up a batch processor for the contents of the FTPS folder you're checking. I chose to use the default option that reads each line as a separate message until a blank line is reached.</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">return</span> reader.readLine();
</code></pre>
<h3 id="heading-step-2">Step 2</h3>
<p>After setting up the channel to handle batching we need to generate batches (i.e. lists) of files. To this end we need to configure a JavaScript channel reader to poll the FTPS server and output a list of files delimited with carriage returns. Below is a template based on what I came up with:</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> ftpsServerAddress = <span class="hljs-string">"subdomain.domain.com"</span>
<span class="hljs-comment">// The next line is unnecessary for port 990 if implicit SSL/TLS is used, but I left this in case a future vendor uses a non-standard port</span>
<span class="hljs-keyword">var</span> ftpsServerPort = <span class="hljs-number">990</span> 
<span class="hljs-keyword">var</span> ftpsUsername = <span class="hljs-string">"username"</span>
<span class="hljs-keyword">var</span> ftpsPassword = <span class="hljs-string">"password"</span>
<span class="hljs-keyword">var</span> ftpsFolder = <span class="hljs-string">"folder/path/on/server"</span>



<span class="hljs-comment">// A string to hand off to the channel's batch processor</span>
<span class="hljs-keyword">var</span> batchResults = <span class="hljs-string">""</span>


<span class="hljs-comment">// Parameter sets the connection to use Implicit SSL/TLS which defaults to port 990</span>
<span class="hljs-keyword">var</span> ftps = <span class="hljs-keyword">new</span> Packages.org.apache.commons.net.ftp.FTPSClient(<span class="hljs-literal">true</span>);

<span class="hljs-comment">// Even though the Implicit SSL/TLS sets the port to 990 ftpsServerPort was supplied to make code reuse on later projects easier</span>
ftps.connect(ftpsServerAddress, ftpsServerPort);

<span class="hljs-comment">// Needed to list files</span>
ftps.enterLocalPassiveMode()

ftps.login(ftpsUsername, ftpsPassword)

<span class="hljs-comment">// Get a list of all the objects in the ftpsFolder</span>
filesList = ftps.listNames(ftpsFolder)

<span class="hljs-comment">// Concatenate all the files into a string for handling by the batch processor</span>
<span class="hljs-keyword">for</span> each(filename <span class="hljs-keyword">in</span> filesList){
    <span class="hljs-keyword">var</span> byteArrayStream = <span class="hljs-keyword">new</span> java.io.ByteArrayOutputStream();
    <span class="hljs-comment">// Retrieve the remote file to the previously declared byteArrayStream</span>
    ftps.retrieveFile(ftpsFolder + filename, byteArrayStream)

    file = {
        <span class="hljs-string">"filename"</span>: filename,
        <span class="hljs-string">"b64"</span>: FileUtil.encode(byteArrayStream.toByteArray())
    }

    batchResults = batchResults + <span class="hljs-built_in">JSON</span>.stringify(file) + <span class="hljs-string">"\n"</span>
}

ftps.disconnect();
<span class="hljs-keyword">return</span> batchResults;
</code></pre>
<h3 id="heading-step-3">Step 3</h3>
<p>Once the Javascript reader was passing file names to the destination, I set up a File Writer channel destination, but needed to retrieve each file found in the Channel Source via a Destination Transformer. Below is the code I used:</p>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> message = <span class="hljs-built_in">JSON</span>.parse(connectorMessage.getRawData())

channelMap.put(<span class="hljs-string">"filename"</span>,message.filename)
channelMap.put(<span class="hljs-string">"b64"</span>,message.b64)
</code></pre>
<h3 id="heading-step-4">Step 4</h3>
<p>The Channel Destination needed to be set up to write the file to a destination folder</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1679807662000/166bcced-877d-4a98-8872-957bbb79344f.png" alt class="image--center mx-auto" /></p>
<p>After all that I was able to set the File Writer as below and found the files flowing appropriately, saving us $6,500 per year!</p>
]]></content:encoded></item><item><title><![CDATA[How to have better interactions with users]]></title><description><![CDATA[Do you ever get calls from flustered users, who are obviously stressed and can't seem to get to the point when they call for help troubleshooting an issue?…]]></description><link>https://hokanson.dev/how-to-have-better-interactions-with-users</link><guid isPermaLink="true">https://hokanson.dev/how-to-have-better-interactions-with-users</guid><category><![CDATA[public relations]]></category><category><![CDATA[#techsupport]]></category><category><![CDATA[helpdesk]]></category><dc:creator><![CDATA[Mike Hokanson]]></dc:creator><pubDate>Fri, 13 Jan 2023 16:53:26 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/1K9T5YiZ2WU/upload/400e9ef2256efe96837a4cc95dd57da3.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Do you ever get calls from flustered users, who are obviously stressed and can't seem to get to the point when they call for help troubleshooting an issue? Perhaps you get irate board members demanding answers you don't have about areas of your infrastructure you aren't involved in. The following steps have proved to be helpful to me in de-escalating these calls and even having a positive experience with the caller.</p>
<h3 id="heading-the-tips">The Tips</h3>
<h4 id="heading-let-them-talk">Let them talk</h4>
<p>You may feel like you already know what the user is going to say as they stumble to describe their issue. Resist the urge to interrupt a distressed caller and let them get their built-up frustration at the issue out before you start solving the issue (NOTE: They may rail against the issue, but don't tolerate verbal abuse towards yourself).</p>
<p>Not letting someone finish their sentences is a horrible way to start a call.</p>
<h4 id="heading-reassure-them">Reassure them</h4>
<p>I find it helpful to start these calls with something like, "I'm not sure what that is, but I'm going to do my best to get this taken care of for you." By making the issue my own (using "for you") it takes the stress of being solely responsible for mitigating the issue off the user and usually calms them down. You can also say, "with you" if you don't want to appear to be relieving the user of all responsibility, but at this point in the call I'm usually just trying to calm the user down enough to determine what the issue is.</p>
<h4 id="heading-follow-through-on-your-commitment-to-doing-whatever-you-can-to-help-them">Follow through on your commitment to doing whatever you can to help them</h4>
<p>I think one reason IT departments are often characterized as being unhelpful is that the IT field is largely made up of individuals who are able to solve their own problems, whether that requires some research or prior knowledge, and when we are expected to provide support we approach the situation as if we are speaking with a colleague. My experience is that most non-IT staff are not these kinds of people and need hand-holding all the way up until a resolution is reached. We should not say, "This should fix your issue. Please try it and let us know if it doesn't work." If we want our staff to have a positive experience with us <strong>we need to remain on the phone with the user until the problem is resolved</strong>. This can be a hard behavior change to make on our part, especially if we have other pressing projects we need to get back to, but staying with the user until resolution is the single most important thing you can do in helping the user have better feelings towards your department.</p>
<p>If you can't resolve the issue on that call make sure you let the caller know what the plan is for following up on the issue to make sure things are taken care of.</p>
<h4 id="heading-keep-a-calming-tone">Keep a calming tone</h4>
<p>I hope you already recognize you should not yell at users or belittle them, but for the sake of completeness, I'm adding it to this list. <strong>**BE NICE!**</strong></p>
<h4 id="heading-remind-them-and-yourself-that-youre-all-on-the-same-team">Remind them (and yourself) that you're all on the same team</h4>
<p>Some users seem to think their IT department's sole purpose is to make their work-life harder. This is the total opposite of what a decent IT department should be doing, as an inefficient business doesn't increase revenue, and therefore can't pay for upgrades or raises. Helping staff realize that you don't benefit in any way from their processes being difficult is hard, but can go a long way in making calls easier to take.</p>
<h3 id="heading-in-summary">In Summary</h3>
<p>If you can get callers to see you as an ally, rather than a resource of last resort, support calls and your department's public relations will improve.</p>
<h3 id="heading-additional-resources">Additional Resources</h3>
<ul>
<li><a target="_blank" href="https://www.ringcentral.com/gb/en/blog/angry-phone-call-techniques-to-handle-an-angry-caller/">https://www.ringcentral.com/gb/en/blog/angry-phone-call-techniques-to-handle-an-angry-caller/</a> - I found this article when looking for a header photo for this post and think most of it is applicable</li>
</ul>
]]></content:encoded></item></channel></rss>