use drugs_m
use drugs_a
use drugs_l
use drugs_o
use drugs_w
use drugs_s

fn show(d: DrugRecord) {
    println("  Generic:   " + d.generic_name)
    println("  Route:     " + d.route)
    println("  Half-life: " + d.half_life)
    println("  Bioavail:  " + d.bioavailability)
    println("  Binding:   " + d.protein_binding)
    println("  Clearance: " + d.clearance)
    println("  CYP:       " + d.cyp_profile)
    println("  Class:     " + d.pharmacologic_class)
    println("")
}

fn main() {
    println("=== SPOT CHECK v3 — PK-INFORMED + RANGE VALIDATED ===")
    println("")
    println("METFORMIN:")
    show(lookup_drug_m("METFORMIN HYDROCHLORIDE"))
    println("ATORVASTATIN:")
    show(lookup_drug_a("ATORVASTATIN CALCIUM"))
    println("LISINOPRIL:")
    show(lookup_drug_l("LISINOPRIL"))
    println("OMEPRAZOLE:")
    show(lookup_drug_o("OMEPRAZOLE"))
    println("WARFARIN:")
    show(lookup_drug_w("WARFARIN SODIUM"))
    println("SERTRALINE:")
    show(lookup_drug_s("SERTRALINE HYDROCHLORIDE"))
}
