web stats
ASTM listener and protocol - Page 2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #11  
Old 11-30-2011, 06:15 AM
mkopinsky mkopinsky is offline
Mirth Newb
 
Join Date: Oct 2011
Posts: 8
mkopinsky is on a distinguished road
Default

There are a bunch of sample messages at this link starting at section 5.2.1. As noted in section 5.2, this is the message content (ASTM 1394) after it has been processed by the low-level stuff (ASTM 1381). 1381 specifies the format as: (red represents response sent by the LIS)
<ENQ>
<ACK>
<STX>FN text<ETB>C1 C2<CR><LF> <-- intermediate frames
<ACK>
<STX>FN text<ETX>C1 C2<CR><LF> <--end frame
<ACK>

FN is frame number which increments from 0 to 7. C1 and C2 are checksums that can essentially be ignored in TCP/IP. <ENQ>,<ACK>,<STX>,<ETB>,<ETX> etc are ASCII characters.

I think this is more than can be currently supported by the LLP listener. The most obvious blocker in my testing is that the instrument sends the <ENQ> and won't send anything else until it gets an <ACK> packet. Could this perhaps be added as an option in the LLP listener rather than by building a new listener?
__________________
Michael Kopinsky
Montefiore Medical Center
Bronx, NY
Reply With Quote
  #12  
Old 12-05-2011, 11:34 AM
gkberkheiser gkberkheiser is offline
Mirth Newb
 
Join Date: Nov 2011
Posts: 9
gkberkheiser is on a distinguished road
Default ASTM Protocol

ASTM protocol is actually 2 levels. The lower level provides framing. The upper level provides the message structure. It looks a bit like HL7 V2.x with a lobotomy. I worked on an instrument project that uses the ASTM/LIS protocol. What we ended up doing was to parse the LIS2 data to XML and then map to our data objects on the way in and reversed the procedure on the way out. You can find an HL7 2.x to XML converter somewhere on the web. That might be a good starting point for a conversion project.
Reply With Quote
  #13  
Old 12-05-2011, 11:42 AM
mkopinsky mkopinsky is offline
Mirth Newb
 
Join Date: Oct 2011
Posts: 8
mkopinsky is on a distinguished road
Default

How did you deal with LIS1 protocol?
__________________
Michael Kopinsky
Montefiore Medical Center
Bronx, NY
Reply With Quote
  #14  
Old 12-05-2011, 05:16 PM
gkberkheiser gkberkheiser is offline
Mirth Newb
 
Join Date: Nov 2011
Posts: 9
gkberkheiser is on a distinguished road
Default

Since we were writing software for an instrument, we wrote the low-level drivers and LIS1 protocol engine ourselves. We can switch via config files between serial and TCP/IP transports. I am in the middle of verification protocol reviews for the device now.

Once the LIS-1 layer was happy - framing/parity/checksum acknowledged, the translator got the message and then passed the XML to the mapper and son on into the database.
Reply With Quote
  #15  
Old 12-08-2011, 12:20 PM
mkopinsky mkopinsky is offline
Mirth Newb
 
Join Date: Oct 2011
Posts: 8
mkopinsky is on a distinguished road
Default

So the challenge still remains of how to do this within Mirth. I will take a look at this in a few days.
__________________
Michael Kopinsky
Montefiore Medical Center
Bronx, NY
Reply With Quote
  #16  
Old 12-12-2011, 02:04 PM
ricber ricber is offline
Mirth Guru
 
Join Date: Jun 2007
Location: Barcelona, Spain
Posts: 181
ricber
Default

Hi all,

maybe first step could be an ASTM "parser o ruler", like HAPI for HL7. Reading ASTM files from filesystem and identifiying different segments, etc...

Later we can deal with an ASTM channel at lower level. In my experience, every manufacturer uses it's own adoption of this lower protocol and this could be very hard to develope. Here we are using a third party interface at communication level that generates plain text file with all data and an ASTM file for future integrations.

What about?

Hope this helps,

Ricard Bernat
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 08:49 PM.


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