ClearHealth/HealthCloud CHMED API and OpenEMR

d2uhlman wrote on Tuesday, July 01, 2008:

We just rolled out our beta CHMED API for drug details, interactions, information sheets and e-prescribing (available later this month) and would like to contribute a compatible meds form for OpenEMR. You can sign up at https://openid.clear-health.com and the current docs are available at http://www.clear-health.com/forum/index.php?t=msg&th=758 and a simple demo of the technology is available from: http://www.clear-health.com/content/view/33/46/ .

What is the best resource and structure to follow with respect to contributing this? We would generally want to provide something similar/based on the sample application included in the download. Current support is still via the rxscripts code I wrote if I am not mistaken? Any pointers to information online or a person would be great thanks.

Thanks.

drbowen wrote on Tuesday, July 01, 2008:

Dear David,

Rod Roark manages most of the contributions and would be the best to talk to about information on the code base.

Sam Bowen, MD

markleeds wrote on Tuesday, July 01, 2008:

The API seems easy enough.  Would we get one key for all OpenEMR users or would each user need their own key?

d2uhlman wrote on Wednesday, July 02, 2008:

Each separate site would want there own key. The API is pretty straightforward however things get a little more complicated in how interactions/allergies and patient information sheets and labels are delivered. As I said we are happy to contribute a form, if someone else should do it that is fine too.

Can someone summarize what the current medications setup in OpenEMR is today?

Is Rod on this list?

Thanks.

sunsetsystems wrote on Wednesday, July 02, 2008:

I’m here, but will be on vacation for a few days.

David, thanks for the offer.  I’m sure this will generate some interest.  What’s the licensing of the API and your proposed medications form for OpenEMR?  Obviously we want everything to be GPL-compatible.

I haven’t looked at the medications lookup code recently, but I believe it was screen-scraping the rxlist.com site.  The module library/classes/RXList.class.php would be of interest in understanding that.  Prescribing has not greatly changed in recent years, though there is now support for in-house drug inventory, dispensation and sales as well as the necessary support for NDC codes in insurance claims.

Rod
www.sunsetsystems.com

d2uhlman wrote on Thursday, July 03, 2008:

Is there a place to look at far as how we should construct this, should we just rip and replace the RX-List thing? Should we use our coding conventions, etc. We want to play nice with others.

The licensing on the code to access the API’s can be contributed under whatever license you prefer, GPL is our default. The data itself falls under the service license which you approve when you first enable your key (this is described in the docs I linked to). Different data will have different terms but generally speaking you can do whatever you like with the data, our interests in the license are in waiving liability for how you use it and for any errors that may be present.

It gets complicated though, for example with an e-prescribing history (3rd party RX history) which isn’t yet part of the public beta but will be soon you are not permitted to use that for anything other than that patients treatment (no aggregate reporting, no anonymized disctribution). That is a limit of the upstream providers.

In most cases data comes from the government so it is available under public domain but when a commercial/NPO provider is involved we have to live with their terms.

We aren’t trying to force this on anyone but just needed to solve the problem for our own project and decided to do so in a way that is portable. I would hate to see 7  OS projects maintaining drug database, trust me when I say it is a lot of work.

It should be noted to that the CHMED API is just one, we have several other in the cooker for working with pubmed data, clinical trial data and automated eligibility, ghealth.

Thanks. Have a great 4th.