I'm trying to search for the number of adverse reports related to "quality" within the query and only for the year 2017. I've tried this query https://api.fda.gov/drug/event.json?search=receivedate:[20170101+TO+20171231]+AND+patient.reaction.reactionmedrapt:%22quality%22

and several others but everything I've done comes up with 0 results and I know there are some within 2017. I'd like to get down to be able to identify down to pharm_class_epc:"vaccine" ,"protein", "peptide", and others also.

But any help with constructing this query to pull data from 2017 first would be a great help.

up vote 0 down vote accepted

You simply have a minor typo in the field name, i.e. reactionmedrapt should be reactionmeddrapt. After correcting the query returns results as expected: https://api.fda.gov/drug/event.json?search=receivedate:[20170101+TO+20171231]+AND+patient.reaction.reactionmeddrapt:%22quality%22

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.