FDA / openfda

openFDA is a research project to provide open APIs, raw data downloads, documentation and examples, and a developer community for an important collection of FDA public datasets.
https://open.fda.gov
Creative Commons Zero v1.0 Universal
567 stars 131 forks source link

Find drugs based on health condition #184

Closed pradeepb28 closed 2 years ago

pradeepb28 commented 2 years ago

It seems to be straightforward to find information about drug details based on drug name. I am also looking for drug suggestions based on medical condition.

For example: I want to know medication suggestions for condition like for Fever, headache.

Is it possible to do with openFDA API?

dkrylovsb commented 2 years ago

You can try searching within the indications_and_usage section of Drug Labels, such as

https://api.fda.gov/drug/label.json?search=indications_and_usage:fever

However, please be advised that any results returned do not constitute a medical advice. Do not rely on openFDA to make decisions regarding medical care and always speak to your health provider about the risks and benefits of FDA-regulated products.

pradeepb28 commented 2 years ago

Thank you @dkrylovsb but it seems like it doesn't return brand name or generic name of the drug 🤔 . Is there a way to get those information too?

dkrylovsb commented 2 years ago

Yes, we can further modify the query to require the openfda section as follows:

https://api.fda.gov/drug/label.json?search=indications_and_usage:fever+AND+_exists_:openfda

Many old/discontinued drugs will not have the openfda section.