<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=HL7%2FTest_Connectivity</id>
	<title>HL7/Test Connectivity - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=HL7%2FTest_Connectivity"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=HL7/Test_Connectivity&amp;action=history"/>
	<updated>2026-05-01T13:43:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=HL7/Test_Connectivity&amp;diff=18169&amp;oldid=prev</id>
		<title>DavidWhitten: Created page with &quot;== Testing VistA HL7 on a FOIA VistA Instance ==   Sam Habiel Oct 15    Is there an easy way to check that the VistA HL7 system works? For example, can you send it a &quot;ping&quot; an...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=HL7/Test_Connectivity&amp;diff=18169&amp;oldid=prev"/>
		<updated>2019-10-25T16:40:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Testing VistA HL7 on a FOIA VistA Instance ==   Sam Habiel Oct 15    Is there an easy way to check that the VistA HL7 system works? For example, can you send it a &amp;quot;ping&amp;quot; an...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Testing VistA HL7 on a FOIA VistA Instance ==&lt;br /&gt;
&lt;br /&gt;
 Sam Habiel Oct 15 &lt;br /&gt;
&lt;br /&gt;
 Is there an easy way to check that the VistA HL7 system works? For example, can you send it a &amp;quot;ping&amp;quot; and it would respond back that it&amp;#039;s running? &lt;br /&gt;
 &lt;br /&gt;
 Steven McPhelan    Oct 15 &lt;br /&gt;
&lt;br /&gt;
 Years ago there was an HL7 Ping option.  Was it an actual option or just a APO call I do not remember.  Its purpose was to validate that all the VistA files and network connections were  set up properly and working.  I will see if I can find it.  In the meantime you could search  all HL* routine for &amp;#039;ping&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
 Paul Wesley Oct 15 &lt;br /&gt;
 RE: [External] Re: [Hardhats] Testing VistA HL7 on a FOIA VistA Instance&lt;br /&gt;
&lt;br /&gt;
 This is what has been working for connectivity to an external , or same system, port.&lt;br /&gt;
&lt;br /&gt;
 D CALL^%ZISTCP(VFDIPADD,VFDIPORT,5) S VFDPOP=POP&lt;br /&gt;
 &lt;br /&gt;
 That is just an IP address with port check. There is much more than that that has to be checked before it is called operational.&lt;br /&gt;
&lt;br /&gt;
 Paul Wesley DSS Senior Engineer Development&lt;br /&gt;
 (office)        561-847-5965&lt;br /&gt;
 (home)         505-218-2516&lt;br /&gt;
 &lt;br /&gt;
 Sam Habiel    Oct 15 &lt;br /&gt;
 Re: [External] Re: [Hardhats] Testing VistA HL7 on a FOIA VistA Instance&lt;br /&gt;
 &lt;br /&gt;
 Okay. I managed to step through the source code, and combined all suggestions to do this: &lt;br /&gt;
&lt;br /&gt;
 @test &amp;quot;HL7 Listener works&amp;quot; { &lt;br /&gt;
 run mumps -run %XCMD &amp;#039;D CALL^%ZISTCP(&amp;quot;127.0.0.1&amp;quot;,5001) U IO W &lt;br /&gt;
 $C(11)_&amp;quot;MSH^PING^OSEHRA&amp;quot;_$C(10,28,13) R X:1 C IO U 0 W X&amp;#039; &lt;br /&gt;
 [ $(expr &amp;quot;$output&amp;quot; : &amp;quot;.*OSEHRA.*&amp;quot;) -ne 0 ] &lt;br /&gt;
 &lt;br /&gt;
 Ben Irwin    Oct 15 &lt;br /&gt;
 I don&amp;#039;t know the difference between the HL7 server and the RPC Broker, but I use the following to make sure that the RPC Broker is running.&lt;br /&gt;
 W $$TEST^XWBTCPMT(&amp;quot;14.0.0.21&amp;quot;,9235,1),!&lt;br /&gt;
 &lt;br /&gt;
 Steven McPhelan    Oct 15 &lt;br /&gt;
 I will look for it.  It was years ago.  It sent an HL7 massage and waited for an HL7 reply thus proving the viability the configuration.  &lt;br /&gt;
 &lt;br /&gt;
 Adam Adam    Oct 16 &lt;br /&gt;
 Sam, &lt;br /&gt;
 Are you looking for a MUMPS-Based test to just determine if a HL LOGICAL LINK is flagged as active, or a remote TCP-Based test to actually receive an HL7 message (ACK or ERR) from VistA? &lt;br /&gt;
 For egress interfaces, you can use $$CHKLL^HLUTIL(institution) call, where &amp;quot;institution&amp;quot; is the Institution IEN, Station Number, or Institution Name. If the Logical Link is active, outbound, and has the INSTITUTION field populated, then it will return a 1. All other results returns a 0. (Obviously, there&amp;#039;s some cases that this API call doesn&amp;#039;t catch, so it&amp;#039;s probably not as robust as it needs to be).&lt;br /&gt;
 For ingress interfaces, I think you&amp;#039;d need a valid Sending/Receiving Application combo to get an actual message returned. I believe an invalid Application in an incoming MSH will log an error, but not return that error to the initiating client. &lt;br /&gt;
 Personally, what I do to test (especially when setting up new interfaces) is to point an outbound interface to an IP/Port combo on my workstation, then I launch a nifty little bastardized C/C++ socket app that I wrote that will display incoming HL7 messages in the console AND log them to a text file. Make sure the interface requires an ACK. Then you can register a single demo RA EXAM and the interface will continue to resend the same ORM every 5 seconds until an ACK is received. Of course, that all is a bit more involved than just a simple command to return a boolean. &lt;br /&gt;
 You could try to initialize the HL7 variables for a known protocol. For instance:&lt;br /&gt;
  &lt;br /&gt;
 K HL D INIT^HLFNC2($O(^ORD(101,&amp;quot;B&amp;quot;,&amp;quot;RA REG&amp;quot;,0)),.HL)&lt;br /&gt;
 &lt;br /&gt;
 W $G(HL)&lt;br /&gt;
 &lt;br /&gt;
 If the call to INIT^HLFNC2 completes without an error, HL will have been Killed (and thus undefined). If there&amp;#039;s an error, then the HL variable will contain that error.&lt;br /&gt;
 &lt;br /&gt;
 14^Server Application Missing in Protocol File&lt;br /&gt;
 15^No Client&lt;br /&gt;
 et cetera&lt;br /&gt;
&lt;br /&gt;
 Sam Habiel     &lt;br /&gt;
 I am looking for this: &amp;quot;a remote TCP-Based test to actually receive an &lt;br /&gt;
 HL7 message (ACK or ERR) from VistA?&amp;quot; Ideally, I would send a message &lt;br /&gt;
 (like a QRY message) and would get a meaningful response back. &lt;br /&gt;
 Unfortunately, I couldn&amp;#039;t find an easy message to send to VistA. For &lt;br /&gt;
 now, I send the VistA custom ping message.&lt;/div&gt;</summary>
		<author><name>DavidWhitten</name></author>
	</entry>
</feed>