What dispensing prescriptions taught me about input validation
A prescription is an API call with life-or-death validation requirements. Pharmacy school taught me forms before code did.
By Nzubechukwu Cyprian · Pharmacy student at UNN, full-stack developer
The first time I filled a dispensing form in the lab, I thought I was learning pharmacy. I was actually learning input validation — the kind that software still struggles to match.
The validation layers on one prescription
Legibility and completeness. Does the form have every field? A prescription missing a dose isn't an edge case — it's an automatic reject. Software accepts half-empty forms daily; pharmacy refuses them at the door.
Range checking. Doses have plausible ranges. A prescription for 5000mg of a drug whose maximum is 500mg doesn't pass "the number parsed." It fails a clinical range check. My database forms learned the same lesson much later: not just type validation — plausibility validation.
Cross-field consistency. Age versus dose, weight versus volume, drug versus drug. Interactions check whether two fields, each individually valid, are poisonous together. This is the validation layer most web forms never grow, and the most important one in medicine.
The human signature. A valid form from an invalid authority is invalid. Pharmacy checks provenance; software is only now learning to (with signed requests and auth).
What I build differently now
Every form I design has three questions from the dispensing bench: what's complete, what's plausible, what's consistent. Most validation stops at the first. The second is where real data gets caught. The third is where real systems earn trust.
Keep reading
- Pharmacy × Tech
Pharmacy by school, software by conviction
I didn't choose between the lab and the keyboard. The combination isn't a compromise — it's a strategy neither discipline alone gives you.
- Pharmacy × Tech
Two vocabularies: translating between clinicians and compilers
Being bilingual in health and tech means seeing the same problem described twice — and knowing both descriptions are partial.
- Pharmacy × Tech
The stoichiometry of technical debt
Chemistry taught me that unbalanced equations explode. Unbalanced architecture does too — just slower, and with more meetings.