// drugs_u.sy -- FDA drug labels: generic names starting with 'U'
// Entries: 16 | PK values: median of all FDA label records with units
// Source: kai_consciousness DB <- FDA/DailyMed SPL (public domain)
// Generated: 2026-04-12 | Marjorie McCubbins + Aether
// Patent pending: 64/034,536

struct DrugRecord {
    brand_name: String,
    generic_name: String,
    route: String,
    dosage_form: String,
    product_type: String,
    app_number: String,
    spl_id: String,
    half_life: String,
    bioavailability: String,
    protein_binding: String,
    clearance: String,
    volume_distribution: String,
    tmax: String,
    cmax: String,
    pharmacologic_class: String,
    therapeutic_category: String,
    cyp_profile: String,
    interactions: String,
}

fn drug(bn: String, gn: String, rt: String, df: String, pt: String, an: String, si: String, hl: String, ba: String, pb: String, cl: String, vd: String, tm: String, cm: String, pc: String, tc: String, cyp: String, ia: String) -> DrugRecord {
    return DrugRecord { brand_name: bn, generic_name: gn, route: rt, dosage_form: df, product_type: pt, app_number: an, spl_id: si, half_life: hl, bioavailability: ba, protein_binding: pb, clearance: cl, volume_distribution: vd, tmax: tm, cmax: cm, pharmacologic_class: pc, therapeutic_category: tc, cyp_profile: cyp, interactions: ia }
}

fn unknown_drug() -> DrugRecord {
    return drug("", "UNKNOWN", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "")
}

fn lookup_drug_u(generic: String) -> DrugRecord {
    if generic == "ULEX EUROPAEUS FLOWER" { return drug("Bach Original Flower Remedies", "ULEX EUROPAEUS FLOWER", "ORAL", "", "HUMAN OTC DRUG", "", "acc71597-44ad-4209-a006-4a5fb73daf4c", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "ULMUS RADIX 6X" { return drug("Ulmus Radix 6X", "ULMUS RADIX 6X", "ORAL", "", "HUMAN OTC DRUG", "", "056793ef-b2b7-1254-e063-6394a90abcf3", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "ULSPIRA" { return drug("Ulspira", "ULSPIRA", "RESPIRATORY (INHALATION)", "", "HUMAN PRESCRIPTION DRUG", "ANDA203144", "3a136eac-7cc3-31ea-e063-6294a90afb91", "", "", "", "", "", "", "", "Vasodilator [EPC]", "", "", "") }
    if generic == "ULTIMATE ERECTION ENHANCER" { return drug("Instant Erection", "ULTIMATE ERECTION ENHANCER", "TOPICAL", "", "HUMAN OTC DRUG", "M017", "434a858c-80cd-396b-e063-6294a90af493", "", "", "", "", "", "", "", "Standardized Chemical Allergen [EPC]", "", "", "") }
    if generic == "ULTRA SPF 50 LOTION" { return drug("H.E.B Solutions Sunscreen", "ULTRA SPF 50 LOTION", "TOPICAL", "", "HUMAN OTC DRUG", "M020", "248a0777-7394-dea1-e063-6394a90a444a", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "UNDECYLENIC ACID" { return drug("Tripenicol C", "UNDECYLENIC ACID", "TOPICAL", "", "HUMAN OTC DRUG", "M005", "c872059f-48b3-479c-8c1c-0893d67cc1e2", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "UREA" { return drug("UREA", "UREA", "TOPICAL", "", "HUMAN PRESCRIPTION DRUG", "", "463d3bdd-dc6d-8dfc-e063-6294a90acddc", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "URINARY TRACT DROPS" { return drug("Urinary Tract Drops 2122", "URINARY TRACT DROPS", "ORAL", "", "HUMAN OTC DRUG", "", "6d4accd2-7cde-4299-8316-2110b1971291", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "URSODIOL" { return drug("Ursodiol", "URSODIOL", "ORAL", "", "HUMAN PRESCRIPTION DRUG", "ANDA212452", "c663fa8c-ef49-4375-a30c-1a546735ac77", "", "", "1 %", "", "", "", "", "Bile Acid [EPC]", "", "", "") }
    if generic == "URTICA DIOICA, ALTHAEA OFFICINALIS ROOT, INULA HELENIUM ROOT, ANGELICA ARCHANGELICA ROOT, PINE NEEDLE OIL (PINUS SYLVESTRIS), SODIUM CHLORIDE, AND SILICON DIOXIDE" { return drug("Allergy Maximum Strength", "URTICA DIOICA, ALTHAEA OFFICINALIS ROOT, INULA HELENIUM ROOT, ANGELICA ARCHANGELICA ROOT, PINE NEEDLE OIL (PINUS SYLVESTRIS), SODIUM CHLORIDE, AND SILICON DIOXIDE", "SUBLINGUAL", "", "HUMAN OTC DRUG", "", "4b453b93-21bd-b234-e063-6294a90afd0b", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "URTICA DOICIA, RHUS TOXICODENDRON, LEDUM PALUSTRE" { return drug("Triflora", "URTICA DOICIA, RHUS TOXICODENDRON, LEDUM PALUSTRE", "TOPICAL", "", "HUMAN OTC DRUG", "", "be615942-cb86-4d3d-8177-efc815ac4ff8", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "URTICA URENS" { return drug("URTICA URENS", "URTICA URENS", "ORAL", "", "HUMAN OTC DRUG", "", "cd4f1118-6964-30ee-e053-2a95a90a5c1e", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "URTICA URENS, TOXICODENDRON PUBESCENS LEAF, AND ECHINACEA ANGUSTIFOLIA" { return drug("D-79", "URTICA URENS, TOXICODENDRON PUBESCENS LEAF, AND ECHINACEA ANGUSTIFOLIA", "SUBLINGUAL", "", "HUMAN OTC DRUG", "", "2b9ec3e6-b13b-d877-e063-6294a90ad789", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "USTEKINUMAB" { return drug("YESINTEK", "USTEKINUMAB", "SUBCUTANEOUS", "", "HUMAN PRESCRIPTION DRUG", "BLA761406", "c3b2dc18-4456-908e-f957-6bc50d22b925", "19 days", "", "", "", "3.6 L", "", "", "Interleukin-12 Antagonist [EPC], Interleukin-23 Antagonist [EPC]", "", "CYP1A2:substrate|CYP2C19:substrate|CYP2C9:substrate|CYP2D6:substrate", "") }
    if generic == "USTEKINUMAB-AEKN" { return drug("Ustekinumab-aekn", "USTEKINUMAB-AEKN", "SUBCUTANEOUS", "", "HUMAN PRESCRIPTION DRUG", "BLA761343", "a4f4c90a-668f-4c85-956f-9bc6a0b560b6", "19 days", "", "", "", "3.6 L", "", "", "", "", "CYP1A2:substrate|CYP2C19:substrate|CYP2C9:substrate|CYP2D6:substrate", "") }
    if generic == "UTERINE FORMULA" { return drug("Uterine Formula 2105", "UTERINE FORMULA", "ORAL", "", "HUMAN OTC DRUG", "", "b6ffdc9f-9570-4b8b-bb3d-a77236ac48d4", "", "", "", "", "", "", "", "", "", "", "") }
    return unknown_drug()
}

fn drug_count_u() -> Int {
    return 16
}