Oof don't get me started on drugs. Flouroquinolone antibiotics have been causing disabling reactions since the 80s now. I suffered some severe side effects also and met hundreds of people in the same boat. I even met people who suffered from CFS, fibro, tendonitis and didn't know antibiotic could results in getting such condition and they took it shortly prior to onset of their illness(doesn't mean it is the drug, but frankly it should be looked at).
I have seen physicians at top hospitals. Nobody cares about the reaction to the drug but only about treating the current symptoms. I have heard maybe it was the drug, maybe it wasn't. My reaction was instant during a hospital visit. It makes me feel terribly uneasy, getting the word out there doesn't help me in anyway, it helps to protect other people, which frankly the government should be doing.
I honestly don't know how nobody thought maybe we should look at the data we have, look at medications patient took and then if they suffered from an illness within certain period of time.
There is a group who met with senators on flouroquinolone antibiotics.
FDA has updated the "black" label on the drugs multiple times. First with tendonitis issues, then depression/anxiety, now with possible permanent nervous system damage. Yet doctors remain completely uninformed and the drug is given out for 'suspected' UTI. EMA in Europe now recommends these drugs should only be used in life threatening infections.
Recently, a physician submitted a request to the FDA to require written patient consent to take the medication, due to possible side effects. FDA said due to covid they are unable to review it at this time.
I would suggest adding a feature to your algorithm, before taking a drug also look for groups of suffers. If there are many groups....you might want to take something older and safer.