Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conneraiken/kineticdose
Python script for estimating the half life of dangerous medications
https://github.com/conneraiken/kineticdose
Last synced: about 2 months ago
JSON representation
Python script for estimating the half life of dangerous medications
- Host: GitHub
- URL: https://github.com/conneraiken/kineticdose
- Owner: ConnerAiken
- Created: 2024-11-08T16:36:08.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-08T17:00:54.000Z (about 2 months ago)
- Last Synced: 2024-11-08T18:17:43.040Z (about 2 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
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 application 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. 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!
## Long term plans
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.## Version
This was developed using Python 3, `3.13.0`.# Usage
1) `brew install pyenv`
2) `echo "eval \"$(pyenv init --path)\" >> ~/.zshrc`
3) `brew install 3.13.0`
4) `brew global 3.13.0`
5) `source ~/.zshrc`
6) `cd `
7) `pip install -r requirements.txt`
8) `source calculate.py`