Can we use RXNORM api for retrieval of drug contents for mobile apps

268 views
Skip to first unread message

prashant waghulde

unread,
Jun 2, 2014, 1:35:58 PM6/2/14
to smart-app-...@googlegroups.com
Hi All, 

    I am currently working towards build a mobile app in Android/iOS to retrieve the drug information based on the bar code scanning method. 
If some one has worked on such project before, perhaps they could provide me some pointers towards the design. 

I had 2 major doubts 

1. Is there any specific format to which the UPC codes should be converted to use RXNORM API for performing retrieval of drug information.

2. Can we use RXNORM api for performing the lookups to identify any drug-drug interactions. If yes, are there any tutorials available for mobile platforms 
  if not , could you recommend me any alternative. 

Thanks a lot for your time.

Regards,
Prashant Waghulde
 


Pascal Pfiffner

unread,
Jun 8, 2014, 9:07:38 PM6/8/14
to smart-app-...@googlegroups.com
Hi Prashant

It is possible to use barcode scanning to arrive at RxNorm codes, however there is manual work involved. First, scanning the code is easy (I have forked the ZBar framework to update it for iOS 7 and 64 bit a while back, not sure if the official branch has catched up: https://github.com/p2/ZBar). This will give you an NDC (National Drug Code) number, which you will want to convert into an RXCUI. This was not possible via RxNav the last time I checked, but the codes are available in the RxNorm download. We have a Python 3 library that builds an NDC lookup table with normalized NDC numbers that you may want to use here: https://github.com/chb/py-umls#ndc-normalizer

So these steps allow you to scan a barcode and arrive at an RXCUI. As for looking up drug-drug interactions you'll have to hope for somebody else to provide some information, I have never done this.

Cheers
Pascal

Sam Habiel

unread,
Jun 8, 2014, 9:40:48 PM6/8/14
to smart-app-...@googlegroups.com
Thanks Pascal... that's terrific.

Sam
> --
> You received this message because you are subscribed to the Google Groups
> "SMART App Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to smart-app-develo...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

mr.than...@gmail.com

unread,
Feb 8, 2015, 2:11:09 PM2/8/15
to smart-app-...@googlegroups.com
Pascal,

How can scanning barcode gives an NDC number?
are you saying the UPC is same as NDC for drugs?

Pascal Pfiffner

unread,
Feb 9, 2015, 3:47:43 AM2/9/15
to smart-app-...@googlegroups.com, mr.than...@gmail.com
Yes, in the US the UPC barcodes are NDC numbers.

Best
Pascal

exim

unread,
Feb 9, 2015, 6:48:06 AM2/9/15
to smart-app-...@googlegroups.com

Prashant,
 
For information about the Drug Interactions API, pls visit http://usgovxml.com/DataService.aspx?ds=DRUGAPI .  Not only will you find information about the Drug Interactions API, there is information about other APIs, datasources and source code that you may find useful.  There are even some free mobile web apps that use the Drug Interactions API for you to take a look at.
 
 
Robert Loftin
USGovXML.com

mr.than...@gmail.com

unread,
Feb 9, 2015, 4:20:41 PM2/9/15
to smart-app-...@googlegroups.com, mr.than...@gmail.com
thanks for your response.
I thought that was the case but some UPC are not showing in Search.
Is there a pattern to convert UPC -> NDC ? like drop 1st and last 0?

Your python script does this with any UPC?

Pascal Pfiffner

unread,
Feb 9, 2015, 4:26:29 PM2/9/15
to smart-app-...@googlegroups.com, mr.than...@gmail.com
You might have to normalize the NDC codes first: https://github.com/chb/py-umls#ndc-normalizer


This might solve your issue, but I'm not entirely sure. Good luck!

Sam Habiel

unread,
Mar 8, 2015, 12:34:29 PM3/8/15
to smart-app-...@googlegroups.com, mr.than...@gmail.com
There is no reliable way to convert barcodes to NDCs. You may guess,
and guesses for barcodes starting with 00 will always be successful,
but they won't work with NDCs that start with other numbers.

--Sam
> --
> You received this message because you are subscribed to the Google Groups
> "SMART App Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to smart-app-develo...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Sam Habiel, Pharm.D.
VISTA Expertise Network

PS: If you find anything open source that I do useful to you, consider
buying me a present from my wish list as a token of thanks:
http://www.amazon.com/gp/registry/wishlist/?ie=UTF8&cid=A198EOA15E5N5B
Reply all
Reply to author
Forward
0 new messages