web stats
HL7 Integration - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2013, 10:23 PM
dorylb dorylb is offline
What's HL7?
 
Join Date: Feb 2013
Posts: 5
dorylb is on a distinguished road
Default HL7 Integration

Dears,

I do not have any experience in HL7 and mirth.
What are the basic requirements for us to start using the mirth tool? we want to know what is required from the system which generates HL7 messages and what is required from our side to achieve the below.
Our purpose is to access the hl7 messages, export there information from a General Electric System to our database.

Please, can any one give us the steps in order for us to start?

Thanks,
Dory
Reply With Quote
  #2  
Old 02-07-2013, 07:46 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,116
narupley is on a distinguished road
Default

Quote:
Originally Posted by dorylb View Post
Dears,

I do not have any experience in HL7 and mirth.
What are the basic requirements for us to start using the mirth tool? we want to know what is required from the system which generates HL7 messages and what is required from our side to achieve the below.
Our purpose is to access the hl7 messages, export there information from a General Electric System to our database.

Please, can any one give us the steps in order for us to start?

Thanks,
Dory
I would start here: http://www.mirthcorp.com/webinars/mi...ect-screencast

Basically all that is required is a Windows/OSX/Linux operating system and a Java 6/7 JRE.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 03-16-2015, 04:09 AM
kkrgr8 kkrgr8 is offline
What's HL7?
 
Join Date: Jan 2015
Posts: 5
kkrgr8 is on a distinguished road
Default Way to access HL7 and get the required data

Hey,

I am just sharing the way to get the data by integrating mirth with HL7.

Create a channel

summary - type your channel name

Source - connection type - tcp listener

Left tab -> go to edit transformer and right click and create step

change the mapper to javascript and paste the below code

Code starts ____________________________

var msglength = msg.children().length(); // get total leng of the HL& message
var obxCount = 0; // intialize obx

for(var i=0;i<msg['OBR'].length();i++) // iterate the u can get the OBR segment values
{

var prov_id = msg['OBR'][i]['OBR.16']['OBR.16.1'].toString(); // provider
var proc_code = msg['OBR'][i]['OBR.4']['OBR.4.3'].toString();
var proc_name = msg['OBR'][i]['OBR.4']['OBR.4.2'].toString();

// logger.info(proc_name); remove this comment to test
var index = msg['OBR'][i].childIndex(); // get the childIndex of current OBR
while( index < msglength )
{
index++;
}
while( index < msglength && msg.children()[index].name()=="OBX") // Iterate its child and takes only OBX below it and stop it once it reached the OBR segment
{
// Here are the list of data from obx segments.
var res_code = msg['OBX'][obxCount]['OBX.3']['OBX.3.3'].toString();
// logger.info(res_text); remove this comment to test
var res_text = msg['OBX'][obxCount]['OBX.3']['OBX.3.2'].toString();
var res_units = msg['OBX'][obxCount]['OBX.6']['OBX.6.2'].toString();
var res_result = msg['OBX'][obxCount]['OBX.5']['OBX.5.1'].toString();
obxCount++;
index++;
}
}



code ends _________________________________


Paste his code and save this channel and deploy it

Goto dash board and right click and send HL7 message

sample message :

Message
MSH|^~\&|NIST Test Lab APP|NIST Lab Facility||NIST EHR Facility|20110531140551-0500||ORU^R01^ORU_R01|NIST-LRI-NG-002.00|T|2.5.1|||AL|NE|||||LRI_Common_Component^^2 .16.840.1.113883.9.16^ISO~LRI_NG_Component^^2.16.8 40.1.113883.9.13^ISO~LRI_RU_Component^^2.16.840.1. 113883.9.14^ISO
PID|1||PATID1234^^^NIST MPI^MR||Jones^William^A||19610615|M||2106-3^White^HL70005
ORC|RE|ORD666555^NIST EHR|R-991133^NIST Lab Filler|GORD874233^NIST EHR||||||||57422^Radon^Nicholas^^^^^^NIST-AA-1^L^^^NPI
OBR|1|ORD666555^NIST EHR|R-991133^NIST Lab Filler|57021-8^CBC W1 Auto Differential panel in Blood^LN^4456544^CBC^99USI^^^CBC W1 Auto Differential panel in Blood|||20110103143428-0800|||||||||57422^Radon^Nicholas^^^^^^NIST-AA-1^L^^^NPI||||||20110104170028-0800|||F|||10093^Deluca^Naddy^^^^^^NIST-AA-1^L^^^NPI|||||||||||||||||||||CC^Carbon Copy^HL70507
OBX|1|NM|26453-1^Erythrocytes [#/volume] in Blood^XN^^^^^^Erythrocytes [#/volume] in Blood||4.41|10*6/uL^million per microliter^UCUM|4.3 to 6.2|N|||F|||20110103143428-0800|||||20110103163428-0800||||Century Hospital^^^^^NIST-AA-1^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^^B|2343242^Knowsalot^Phil^^^Dr.^^ ^NIST-AA-1^L^^^DN
OBX|2|NM|718-7^Hemoglobin [Mass/volume] in Blood^LN^^^^^^Hemoglobin [Mass/volume] in Blood||12.5|g/mL^grams per milliliter^UCUM|13 to 18|L|||F|||20110103143428-0800|||||20110103163428-0800||||Century Hospital^^^^^NIST-AA-1^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^^B|2343242^Knowsalot^Phil^^^Dr.^^ ^NIST-AA-1^L^^^DN
ORC|RE|ORD666567^NIST EHR|R-991133^NIST Lab Filler|GORD874233^NIST EHR||||||||57422^Radon^Nicholas^^^^^^NIST-AA-1^L^^^NPI
OBR|2|ORD666567^NIST EHR|R-991133^NIST Lab Filler|57021-8^CBC W2 Auto Differential panel in Blood^LN^4456544^CBC^99USI^^^CBC W2 Auto Differential panel in Blood|||20110103143428-0800|||||||||57422^Radon^Nicholas^^^^^^NIST-AA-1^L^^^NPI||||||20110104170028-0800|||F|||10093^Deluca^Naddy^^^^^^NIST-AA-1^L^^^NPI|||||||||||||||||||||CC^Carbon Copy^HL70507
OBX|1|NM|26453-1^Erythrocytes [#/volume] in Blood^CN^^^^^^Erythrocytes [#/volume] in Blood||4.41|10*6/uL^million per microliter^UCUM|4.3 to 6.2|N|||F|||20110103143428-0800|||||20110103163428-0800||||Century Hospital^^^^^NIST-AA-1^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^^B|2343242^Knowsalot^Phil^^^Dr.^^ ^NIST-AA-1^L^^^DN
OBX|2|NM|718-7^Hemoglobin [Mass/volume] in Blood^LN^^^^^^Hemoglobin [Mass/volume] in Blood||12.5|g/mL^grams per milliliter^UCUM|13 to 18|L|||F|||20110103143428-0800|||||20110103163428-0800||||Century Hospital^^^^^NIST-AA-1^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^^B|2343242^Knowsalot^Phil^^^Dr.^^ ^NIST-AA-1^L^^^DN
ORC|RE|ORD666568^NIST EHR|R-991133^NIST Lab Filler|GORD874233^NIST EHR||||||||57422^Radon^Nicholas^^^^^^NIST-AA-1^L^^^NPI
OBR|3|ORD666568^NIST EHR|R-991133^NIST Lab Filler|57021-8^CBC W3 Auto Differential panel in Blood^LN^4456544^CBC^99USI^^^CBC W3 Auto Differential panel in Blood|||20110103143428-0800|||||||||57422^Radon^Nicholas^^^^^^NIST-AA-1^L^^^NPI||||||20110104170028-0800|||F|||10093^Deluca^Naddy^^^^^^NIST-AA-1^L^^^NPI|||||||||||||||||||||CC^Carbon Copy^HL70507
OBX|1|NM|26453-1^Erythrocytes [#/volume] in Blood^VN^^^^^^Erythrocytes [#/volume] in Blood||4.41|10*6/uL^million per microliter^UCUM|4.3 to 6.2|N|||F|||20110103143428-0800|||||20110103163428-0800||||Century Hospital^^^^^NIST-AA-1^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^^B|2343242^Knowsalot^Phil^^^Dr.^^ ^NIST-AA-1^L^^^DN
OBX|2|NM|718-7^Hemoglobin [Mass/volume] in Blood^LN^^^^^^Hemoglobin [Mass/volume] in Blood||12.5|g/mL^grams per milliliter^UCUM|13 to 18|L|||F|||20110103143428-0800|||||20110103163428-0800||||Century Hospital^^^^^NIST-AA-1^XX^^^987|2070 Test Park^^Los Angeles^CA^90067^^B|2343242^Knowsalot^Phil^^^Dr.^^ ^NIST-AA-1^L^^^DN
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation