Skip to main content

Medical Library Reference

MOISSCode ships with 20 built-in modules, all accessible via the med. prefix.

Module Index

ModuleDescription
med.scoresClinical scores - qSOFA, SOFA, NEWS2, MELD-Na, CHA2DS2-VASc, HEART, Framingham, and 5 more
med.pkPharmacokinetic engine - 100+ drugs, dosing, interactions, plasma curves, TDM, renal/hepatic adjustment
med.labLab panels - 80+ tests, reference ranges, interpretation
med.microMicrobiology - organisms, MIC breakpoints, empiric therapy
med.genomicsPharmacogenomics - CYP450, CPIC guidelines, sequence tools
med.biochemEnzyme kinetics - Michaelis-Menten, metabolic pathways
med.epiEpidemiology - SIR/SEIR models, R0, herd immunity
med.nutritionClinical nutrition - BMI, BEE, TPN, IV fluids
med.fhirFHIR R4 bridge - Patient to Bundle, MedicationRequest
med.dbSQLite persistence - patients, audit trail, alerts
med.ioDevice I/O - pumps, ventilators, monitors, waveforms, alarms
med.financeCPT billing and cost tracking
med.researchResearch privacy, RCT randomization, sample size, stratification
med.glucoseDiabetes - HbA1c, CGM analytics, insulin dosing, DKA assessment
med.chemMedicinal chemistry - drug-likeness, ADMET, compound screening
med.signalBiosignals - HR, HRV, rhythm, SpO2, waveform analysis
med.icdMedical coding - ICD-10-CM, DRG grouping, SNOMED CT mapping
med.kaeKalman-Autoencoder estimator - biomarker prediction
med.moissMOISS classifier - drug timing and intervention state space
med.papersResearch paper generation - IEEE, medRxiv, bioRxiv, JAMA, Nature, Lancet, PLOS ONE

Usage

All modules are available instantly - no imports needed:

protocol Example {
input: Patient p;
let score = med.scores.qsofa(p);
med.finance.bill("99291", "Critical Care");
}

From Python:

from moisscode import StandardLibrary

lib = StandardLibrary()
print(lib.scores.qsofa(patient))
print(lib.pk.calculate_dose("Vancomycin", weight_kg=70))

Next Steps