DoseKinetics | NorCal Hacks 27 (Human Health)

Inspiration

Pharmacology students know Cockcroft-Gault clearance and half-life from their pharmacokinetics lessons, although there are few slides demonstrating how kidney function, dosage interval variations, and skipped doses affect the blood drug concentration within hours. For my NorCal Hacks 27 hackathon entry in the category Human Health, I have created DoseKinetics where one and two-compartment pharmacokinetics can be explored within an integrated browser.

What it does

This multi-dosage chart displays IV bolus, IV infusion, and Bateman oral graphs between minimum effective and minimum toxic levels. The renal scale dynamically calculates Ideal Body Weight by Devine formula, Adjusted Body Weight, Creatinine Clearance, and Elimination Half-Life.

It is possible to plot a missed, double or late dosing as a pink broken line graph. The two-compartment section implements RK4 integration method and checks mass conservation in micrograms at each step. The regimen optimizer finds the safe dosage regimen, determines loading dose, and allows you to export results to CSV and JSON files. All the five options from the js/pk-engine.js file are just examples to educate users, nothing clinical.

How we built it

DoseKinetics runs in vanilla HTML5, CSS3, and modular JavaScript (js/pk-engine.js, js/ui-svg.js, js/app.js) with zero external packages and 30 node --test checks.

Try it out Links

Built With

  • biomedical
  • clinical-pharmacology
  • css3
  • html5
  • javascript
  • mathematics
  • pharmacokinetics
  • simulation
  • svg
  • web-app
Share this project:

Updates

Submission history