Anesthesia Dosage CLI (Go)
Home |
Programming |
CV
Author: Moses G. Olson, MD
Copyright © 2020
A Linux/CLI program written in Go. It takes patient weight (kg) and age (years)
and prints common anesthesia-related dose estimates, including max-dose caps for
several drugs, plus age-adjusted MAC values for sevoflurane, desflurane, and
isoflurane using the Mapleson meta-analysis formula.
Educational / historical software only. NOT for clinical use.
Always verify doses with current protocols and clinical judgment.
This page recreates the 2020 program's calculations for demonstration;
it is not a medical device and must not guide patient care.
Source
How to run locally
The original module import path is "anesthesia/aduAnes".
Place the sources so that package layout matches that path (e.g. a module
named anesthesia with subdirectory aduAnes), then:
go run . <weight_kg> <age_years>
# example:
go run . 70 40
With fewer than two numeric arguments, the program prints a short help /
copyright banner and exits.
In-browser runner
Same calculations as main.go (constants, max-dose caps, and MAC
formula with coefficient -0.002679). Output mimics the CLI text.
Enter weight and age, then press Calculate.
References
Citations as recorded in the 2020 Go source comments (aduAnes constants
and the CLI help text). Listed for historical/educational context; verify current literature independently.
-
W.W. Mapleson, Effects of age on MAC in humans: a meta-analysis,
British Journal of Anaesthesia 76(2):179–185, 1996.
Formula used in the program: MAC(age) with coefficient −0.002679
(BJA Vol 76, Issue 2, Feb 1996, p. 181).
https://doi.org/10.1093/bja/76.2.179
-
Intramuscular ketamine, midazolam, and glycopyrrolate for pediatric sedation
(ketamine / midazolam / glycopyrrolate “dart”),
Journal of Oral and Maxillofacial Surgery, 1995.
-
Propofol: a new intravenous anesthetic,
Anesthesiology 1989 Aug;71(2):260–277
(propofol induction dose).
-
Etomidate induction dosing (averaged),
British Journal of Anaesthesia Volume 91, Issue 3, September 2003, Pages 341–346.
-
Clinical Studies of Induction Agents XXXVI: Ketamine,
British Journal of Anaesthesia, 1970
(ketamine induction dose).
-
Prevention of Pain on Injection of Propofol: A Comparison of Lidocaine with Alfentanil,
Anesthesia & Analgesia, March 1996
(lidocaine ~40 mg to reduce propofol injection pain; note author’s Jan 2020 comment that broader lidocaine/MAC evidence was limited / largely veterinary).
-
The optimal succinylcholine dose for intubating emergency patients: retrospective comparative study,
Journal of Anesthesia / Libyan Journal of Medicine, 2009–2011
(succinylcholine rapid-sequence choice 0.45 mg/kg; ED95 noted as 0.3 mg/kg in comments).
-
Remifentanil as an Analgesic Adjunct in Local/Regional Anesthesia and in Monitored Anesthesia Care,
Anesthesia & Analgesia, 1999
(remifentanil infusion coefficient 0.043 μg·kg for OAA/S ED50).
-
Single-dose ondansetron (Zofran) for prevention of PONV,
Anaesthesia, 1994; PMID: 8129156.
-
Metoclopramide anti-nausea effect at 10 mg no different than placebo,
British Journal of Anaesthesia 83, 1999
(noted in CLI antiemetic output).
-
Rocuronium and lidocaine induction constants also credited to residency practice at
Loma Linda University Medical Center (program comments, Jan 2020).
Return to Programming |
Return to personal page