## What it is
drugdose is a Python library for pre-hospital and clinical drug-dosing math. Give it a patient weight and a drug and it returns the correct weight-based dose, backed by a 49-drug database and a set of interaction rules — so the arithmetic and the lookups happen in one place instead of in your head under pressure.
## Why I built it
In the field, dosing errors come from exactly the conditions you're working in: time pressure, mental math, and juggling reference cards. A small, fast, well-tested library that does the weight-based calculation and flags interactions removes a whole class of avoidable mistakes. This one comes straight out of the EMS side of what I do.
## What's inside
- Weight-based dosing — mg/kg, mcg/kg, or flat, with pediatric caps.
- IV drip-rate math — any rate unit to mL/hr pump rate plus bag duration.
- 39 interaction rules with severity and management guidance, allergy and cross-reactivity matching, and contraindication flags.
- 49-drug database spanning EMS, cardiac, anesthesia, ICU, antibiotics, and toxicology. Pure Python — only
richandclick.
## Try it
drugdose is on PyPI — pip install drugdose and import it into your own project. The README covers the API and the drug database.
## A note on use
drugdose is a calculation aid, not a substitute for clinical judgment, protocol, or medical direction. Always confirm doses against your local protocols before administration.