Re: [ANN] A library for parsing EDIFACT, NCPDP, and soon HL7 for medical data

1,128 views
Skip to first unread message

Wayne E. Seguin

unread,
Apr 18, 2014, 10:10:06 PM4/18/14
to golan...@googlegroups.com
I just found this post, good to see this type of library thanks Kevin :)

  ~Wayne

On Sunday, March 10, 2013 8:27:22 PM UTC-4, Kevin D wrote:
https://github.com/kdar/edi

Here is a library that will encode/decode various formats for dealing with medical data. We use this at our company for our backends, and I'll be releasing anything else I can extract out of the main code.

Hopefully this will help anyone deciding whether they want to use Go for medical stuff.

I also have some other libraries on my github that may be of some use, but are constantly changing as I convert a lot of our code over to Go.

Kevin D

unread,
Apr 19, 2014, 11:58:29 PM4/19/14
to golan...@googlegroups.com
Np! Link has been updated to https://github.com/kdar/health.

I'll be doing more work on it soon most likely.

bsr

unread,
Apr 20, 2014, 9:13:09 AM4/20/14
to golan...@googlegroups.com
Thanks Kevin. I had looked at a python package, bots, https://code.google.com/p/bots/ , long back and it could handle general purpose EDI.
They support various EDI format through plugins http://sourceforge.net/projects/bots/files/plugins/
and grammer also can be specified http://sourceforge.net/projects/bots/files/grammars/
I am not familiar with medical domain, but is it easy to extend `health` to other domains (invoices, purchase order,...)

thanks
bsr.

Kevin D

unread,
Apr 20, 2014, 9:54:43 PM4/20/14
to golan...@googlegroups.com
Not atm. I wasn't planning on releasing it when I originally developed it. It's just used internally for a couple of our medical services.

shiree...@gmail.com

unread,
Jun 2, 2016, 5:17:05 PM6/2/16
to golang-nuts
Hello Kevin,

Can you please let me know how to use you libraries to Parse NCPDP file ?


Thanks,.
siri.

Kevin D

unread,
Jun 3, 2016, 8:33:18 AM6/3/16
to golang-nuts, shiree...@gmail.com
The NCPDP package hasn't been touched in a while, and I'm not sure how exhaustive it is in covering the spec. 
We used it in our backend when we were dealing with NCPDP, but currently we don't integrate with it.

You can look at the ncpdp_test.go file to see how it's used. Or just go to https://godoc.org/github.com/kdar/health/ncpdp
and look at the API. Basically you'll be calling ncpdp.Unmarshal(data).

Since the NCPDP package is old and most likely not complete, and may not be useful for you, you can use
the edifact package directly and then you'll have to determine which parts of the edifact data you need
pertaining to the NCPDP protocol: https://godoc.org/github.com/kdar/health/edifact

Again, you can check the test file to see how it's used:
Reply all
Reply to author
Forward
0 new messages