On July 22, 2022, FDA announced the availability of Proposed Rule on Revising the 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.
fda.gov/Drugs/InformationOnDrugs
Write methods
- Refactor panics to instead return an error value
- Support parsing package.txt into a ProductPackage data structure linked to the proper product