Top 10 reactions

Reactions

Let's look at the reaction that are present to find the reactions with most reports.

select
  reaction,
  count(*)
from
  import.substance_reaction
GROUP BY reaction   
order by count(*) desc limit 10;
reactioncount
Pyrexia840351
Headache831209
Fatigue752054
Nausea656244
Drug ineffective564964
Dyspnoea481568
Diarrhoea433502
Arthralgia430680
Rash429196
Dizziness427772

Let's do another check and find the reactions with most reports and segregate by outcome

select
  reaction,
  outcome,
  count(*)
from
  import.substance_reaction
GROUP BY reaction, outcome
order by count(*) desc limit 10;
reactionoutcomecount
PyrexiaRecovered/Resolved418006
Drug ineffective402969
Off label use302933
HeadacheRecovered/Resolved300059
DeathFatal292108
FatigueNot Recovered/Not Resolved248051
NauseaRecovered/Resolved241111
Fatigue208296
HeadacheNot Recovered/Not Resolved201347
Nausea191709

It is interesting to see that Death which has the outcome Fatal enters the top 10.

Fatal outcome

Let's find a top 10 with Fatal outcome.

select
 reaction,
 outcome,
 count(*)
from
 import.substance_reaction
where
 outcome ilike '%fatal%'
GROUP BY reaction, outcome
order by count(*) desc limit 10;
reactionoutcomecount
DeathFatal292108
Completed suicideFatal81474
Toxicity to various agentsFatal67831
Cardiac arrestFatal34689
PneumoniaFatal27633
SepsisFatal27031
Drug abuseFatal26598
Malignant neoplasm progressionFatal23101
Multiple organ dysfunction syndromeFatal22958
Respiratory failureFatal21990

Death is not always fatal

As extra analyses, we group the reports where the reaction contains the word death we assume not all reporting has been entered correct as it seems possible to have death as a reaction where the outcome is not equal to "Fatal". An interesting combination of reaction and outcome is "Recovered/Resolved" from "Foetal death". Foetal death is a synonym for "still birth", the death of a foetus needs not be fatal for the mother, whilst it is for the unborn child.

select
  reaction,
  outcome,
  count(*)
from
  import.substance_reaction
where
  reaction ilike '%death%'
GROUP BY reaction, outcome
order by count(*) desc limit 25;
reactionoutcomecount
DeathFatal292108
Sudden deathFatal9284
Near death experience2844
DeathNot Specified2456
Foetal death2341
Sudden cardiac deathFatal2090
Sudden infant death syndromeFatal1850
Foetal deathFatal1824
Death1786
Death neonatalFatal1652
Brain deathFatal1428
Fear of death1198
DeathNot Recovered/Not Resolved1171
Accidental deathFatal917
Cardiac deathFatal809
Foetal deathRecovered/Resolved754
Apparent deathRecovered/Resolved681
Sudden cardiac death641
Cell death562
Near death experienceRecovered/Resolved560
Cell deathRecovered/Resolved544
Sudden death497
Fear of deathRecovered/Resolved464
Sudden unexplained death in epilepsyFatal461
Foetal deathNot Recovered/Not Resolved446

(25 rows)