As a software engineer in the health tech space, I've always had an interest in pharmacokinetics. I've done a lot of work with insulin medications and creating applications around the administration/monitoring of these medications.
After I fractured my foot, I had to take some narcotic medication and I was really worried about mixing my medications and having adverse side effects with my ADHD meds. So I created this script that calculates the half life of various medications that can cause respiratory depression or may be dangerous to mix with other mediciations.
It's easy to estimate how much a mediciation is going to last when you know the half life and you take a single dose, but it gets tricky when you have overlapping doses of long acting medications.
I don't have a lot of python code in my GitHub so I took a break from Node.JS!
Eventually, I'd like to create a front-end for this and convert the python code into an API using something lightweight like flask. For now, it's just a python script with hard coded data points.
This was developed using Python 3, 3.13.0
.
brew install pyenv
echo "eval \"$(pyenv init --path)\" >> ~/.zshrc
brew install 3.13.0
brew global 3.13.0
source ~/.zshrc
cd <this dir>
pip install -r requirements.txt
source calculate.py