TransWikia.com

openFDA: Is there any way to match NDC data in different format?

Open Data Asked by ksona on November 10, 2021

I’d like to know whether or not there is a possible way to match NDC codes in different formats by using openFDA API like Recall Enforcement Reports. For example, matching 0187-0798-30 with 0187-079-830 but without the hyphen, it is the same number.

One Answer

Using a simple regular expression, you can convert the NDC number to the expected format and then query the API.

Answered by Denis Krylov on November 10, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP