Fda Event Counts
fda_event_countsAggregate adverse events by reaction type, patient age, or outcome. Returns top reactions for a drug and event trends over time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | OpenFDA search query to filter events before counting. Same syntax as fda_drug_events. | |
| count_field | Yes | Field to count/aggregate by. Examples: "patient.reaction.reactionmeddrapt.exact" (top reactions), "receivedate" (timeline), "serious" (severity breakdown), "patient.drug.openfda.brand_name.exact" (co-reported drugs) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query used to filter events | |
| results | Yes | Array of count results by term | |
| count_field | Yes | The field aggregated/counted by | |
| requested_query | No | The search query as supplied, when it differs from the resolved query in `query` | |
| reaction_resolved | No | The MedDRA preferred term actually used for the filter | |
| reaction_requested | No | The reaction term as the caller supplied it, uppercased | |
| reaction_resolution | No | How the supplied reaction term mapped onto a MedDRA preferred term. not_a_meddra_preferred_term means the filter matched nothing — counts are zero because the term missed, not because no reports exist | |
| reaction_resolution_hint | No | Present when the term matched nothing; names a working way to discover the real preferred terms | |
| reaction_resolution_note | No | Present when word order was corrected; states the substitution made |