This is a Hack. It works for me and was fun to write. It was written as a celebration to the release of Mark Guzman’s ruby-hl7 library. It uses an Ethernet class by Paul Barry and of course Ruby PCAP by Masaki Fukushima. After these guys got there work done, all that was left to do was grab the hl7 message out of the payload of the packet and pass it over to Guzman’s library to make it an object…

cool eh ?

Now what…

Well, we can do all kinds of stuff once that message is an object.

1. Pass it to active-record?

2. Send it to multiple endpoints?

3. Email it to an IDS?

4. Forward it to Patient Privacy?

5. Transform it and then send it (.gsub anybody?)

At any rate, give it a whirl… satisfaction guaranteed or your GET HTTP/1.0 request back…


DONWLOAD hl7sniff.rb

QUICK DEMO SCREENCAST of HLSNIFF

Filed Under: