jardilio-kpmg / ads-rfq-prototype

http://ec2-52-1-174-71.compute-1.amazonaws.com:8888/origin/master
Other
2 stars 1 forks source link

Recall Severity Visualization #13

Closed mtross-kpmg closed 9 years ago

mtross-kpmg commented 9 years ago

As a consumer user, I want to see the severity of active recalls to determine if any pose a health risk.

Acceptance Criteria:

  1. Display pie chart of active recalls by Class
jardilio-kpmg commented 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.

jcornwell-kpmg commented 9 years ago

04 severity 2015 - v1