An open API service indexing awesome lists of open source software.

https://github.com/crhntr/go-ndcd

A bit of code to help with downloading and parsing the National Drug Code Directory from the FDA
https://github.com/crhntr/go-ndcd

biotechnology fda medical medical-information pharmacy prescription

Last synced: 10 months ago
JSON representation

A bit of code to help with downloading and parsing the National Drug Code Directory from the FDA

Awesome Lists containing this project

README

          

# National Drug Code Directory

> On July 22, 2022, FDA announced the availability of [Proposed Rule on Revising the National Drug Code Format](https://www.fda.gov/drugs/drug-approvals-and-databases/proposed-rule-revising-national-drug-code-format).

This package can be used to download and parse the NDCD database.
I am not affiliated with the FDA in any way. I initially wrote this to practice
writing text parsers; however, I have used it in conjunction with the openfda api
for data mining.

Feel free to submit pull requests.

## About NDCD
[fda.gov/Drugs/InformationOnDrugs](http://www.fda.gov/Drugs/InformationOnDrugs/ucm142438.htm)

## TODO
Write methods
1. Refactor panics to instead return an error value
2. Support parsing package.txt into a ProductPackage data structure linked to the proper product