Interfacing Mirth with OpenVistA –Simple ADT-A04 Commit and App ACKS jhthurber, May 2010 Following

is a very basic Mirth to OpenVistA EHR HL7 ADT A04 interface. The SENDACK routine does not place any patient information in the fileman. This setup merely accepts the messages and sends commit and application acknowledgements. My test setup is using OpenVista EHR with 64-bit GTM on 64-bit Ubuntu Karmic server. /etc/xinetd.d/vista-HL7 service vista-HL7 { port = 7777 socket_type = stream protocol = tcp wait = no user = vista (Note: this must be a superuser) server = /bin/bash server_args = /opt/openvista/open/common/bin/hl7tcp.sh groups = yes } /opt/openvista/open/common/bin/hl7tcp.sh #/bin/bash #HL7 Listener . /usr/lib/openvista/functions set_gtm_env "open" $gtm_dist/mumps -run PORT^HL7TCP 2>>/opt/openvista/open/common/bin/log/console.log exit 0 Note that console.log needs read write permissions set for all! /etc/services (end of file only) jhthurber@NCC184:/etc$ tail services binkp 24554/tcp # binkp fidonet protocol asp 27374/tcp # Address Search Protocol asp 27374/udp csync2 30865/tcp # cluster synchronization tool dircproxy 57000/tcp # Detachable IRC Proxy tfido 60177/tcp # fidonet EMSI over telnet fido 60179/tcp # fidonet EMSI over TCP

# Local services vista-HL7 7777/tcp Output of netstat command #vista HL7 Listener jhthurber@NCC184:/etc$ netstat -l|grep vista-HL7 tcp 0 0 *:vista-HL7 *:* LISTEN .

.

.

.

.

.

.

.

.

.

.

.

MSH^~|\&^CRH ADT A04 TO VISTA^50^CRH ADT A04 SUBSCRIBER^CENTRAL REGIONAL HOSPITAL^20100308163208+0200^^ADT~A04^100030^P^2.3^^^AL^AL^USA EVN^A04^201003081632+0200^^^22~DOCTOR~TWO PID^9878905^123456^123456^123456^LINCOLN.ABRAHAM^JONES^19331122^M^^^^^^^^^^^222 229222^^^^ . then restart links and filers. An example of a simple A04 message is below. Then send HL7 messages from Mirth.Remember to restart taskman.

The "P" just before the version ID (2. .3) in the message above indicates that the HL7 site parameters for this institution need to be set to allow production messages.

Also must be sure that the package is authorized in Visit Tracking Parameters: Select VA FileMan Option: enter or Edit File Entries Input to what File: PACKAGE// VISIT TRACKING PARAMETERS (1 entry) EDIT WHICH FIELD: ALL// Select VISIT TRACKING PARAMETERS NAME: ? Answer with VISIT TRACKING PARAMETERS NAME: 1 You may enter a new VISIT TRACKING PARAMETERS. Select VISIT TRACKING PARAMETERS NAME: 1 NAME: 1// MOBIL CLINIC FLAG: DEFAULT TYPE: VA// ? Choose from: I IHS C CONTRACT T TRIBAL O OTHER 6 638 V VA DEFAULT TYPE: VA// OTHER OTHER DEFAULT INSTITUTION: SOFTWARE SERVICE// ? Answer with LOCATION NAME Do you want the entire 68-Entry LOCATION List? y (Yes) Choose from: AMARILLO HCS (504) HCS AUSTIN 200 BLACK HILLS HCS (568) HCS BOSTON HCS (523) HCS BVA/VBA SUPPORT OFFICE DC BVA/VBA-SO 397 CENTRAL ALABAMA HCS (619) HCS CENTRAL ARKANSAS HCS (598) HCS CENTRAL CALIFORNIA HCS (570) HCS CENTRAL PLAINS NETWORK (636) HCS CENTRAL REGIONAL HOSPITAL NC CENTRAL TEXAS HCS (674) HCS CONNECTICUT HCS (689) HCS . if you wish Enter the Number '1'.

EASTERN COLORADO HCS (554) HCS EASTERN KANSAS HCS (677) HCS EL PASO VA HCS (756) HCS GENERAL HOSPITAL CA 058 GREATER NEBRASKA HCS (597) HCS HUDSON VALLEY HCS VAMC (620) HCS LONG BEACH HCS (600) HCS MARYLAND HCS (512) HCS to continue or '^' to exit: ^ DEFAULT INSTITUTION: SOFTWARE SERVICE// CENTRAL REGIONAL HOSPITAL NC Select PACKAGE: ORDER ENTRY/RESULTS REPORTING// ? Answer with PACKAGE Choose from: ORDER ENTRY/RESULTS REPORTING PCE PATIENT CARE ENCOUNTER SCHEDULING You may enter a new PACKAGE. or SYNONYM Do you want the entire 119-Entry PACKAGE List? n (No) Select PACKAGE: ORDER ENTRY/RESULTS REPORTING// HEALTH LEVEL SEVEN Are you adding 'HEALTH LEVEL SEVEN' as a new PACKAGE? No// y (Yes) ACTIVE FLAG: ? Choose from: 0 OFF 1 ON ACTIVE FLAG: 1 ON Select PACKAGE: HL . if you wish Answer with PACKAGE NAME. or PREFIX. or ADDITIONAL PREFIXES.

Sign up to vote on this title
UsefulNot useful