Closed mtross-kpmg closed 9 years ago
Example query structs:
All Coconut in 2012 regardless of Status, counts by Classification https://api.fda.gov/food/enforcement.json?search=product_description:Coconut+AND+report_date:[20120101+TO+20121231]&count=classification
All Coconut with Status of Ongoing, counts by Classification https://api.fda.gov/food/enforcement.json?search=product_description:Coconut+AND+status:Ongoing&count=classification
We should be able to utilize the existing FoodEnforcementService$getResultsByKeywords method and pass the count:'classification' into the options parameter object. Will need to add a new unit test to cover this scenario.
As a consumer user, I want to see the severity of active recalls to determine if any pose a health risk.
Acceptance Criteria: