// drugs_j.sy -- FDA drug labels: generic names starting with 'J'
// Entries: 8 | 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_j(generic: String) -> DrugRecord {
    if generic == "JABON ANTISEPTICO EN ESPUMA" { return drug("Key Dermoxine Jabon Espuma", "JABON ANTISEPTICO EN ESPUMA", "TOPICAL", "", "HUMAN OTC DRUG", "505G(a)(3)", "2b26a872-c29f-8486-e063-6294a90ab023", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "JACOBAEA MARITIMA" { return drug("Cineraria maritima", "JACOBAEA MARITIMA", "ORAL", "", "HUMAN OTC DRUG", "", "163b27c3-d145-e049-e063-6294a90a165c", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "JATEORHIZA PALMATA, BOLDO LEAF, RHAMNUS FRANGULA, SCABIOSA SUCCISA UNDERGROUND PARTS, VALERIANA OFFICINALIS, DULCAMARA, RUMEX CRISPUS, ARGENTUM METALLICUM" { return drug("Unda 17", "JATEORHIZA PALMATA, BOLDO LEAF, RHAMNUS FRANGULA, SCABIOSA SUCCISA UNDERGROUND PARTS, VALERIANA OFFICINALIS, DULCAMARA, RUMEX CRISPUS, ARGENTUM METALLICUM", "ORAL", "", "HUMAN OTC DRUG", "", "ecfce43b-7241-2f77-e053-2a95a90a26bd", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "JOINT HEALTH CAPSULES" { return drug("Joint health", "JOINT HEALTH CAPSULES", "ORAL", "", "HUMAN OTC DRUG", "", "2e16abe1-07d9-c96a-e063-6394a90a3ddb", "", "", "", "", "", "", "", "Amino Acid Hypertonic Solution [EPC], Non-Standardized Food Allergenic Extract [EPC], Non-Standardized Plant Allergenic Extract [EPC]", "", "", "") }
    if generic == "JUGLANS REGIA 30X" { return drug("Juglans Regia 30X", "JUGLANS REGIA 30X", "ORAL", "", "HUMAN OTC DRUG", "", "19392345-2a97-cbf6-e063-6394a90a61f1", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "JUGLANS REGIA WHOLE" { return drug("T-33", "JUGLANS REGIA WHOLE", "SUBLINGUAL", "", "HUMAN OTC DRUG", "", "2b53ddfc-1816-ae62-e063-6294a90a8fd8", "", "", "", "", "", "", "", "", "", "", "") }
    if generic == "JUGLANS REGIA WHOLE AND ANHYDROUS CITRIC ACID" { return drug("CitriPlus", "JUGLANS REGIA WHOLE AND ANHYDROUS CITRIC ACID", "ORAL", "", "HUMAN OTC DRUG", "", "33ce0ab6-8bec-468d-9f7c-522779c4827d", "", "", "", "", "", "", "", "Calculi Dissolution Agent [EPC], Anti-coagulant [EPC]", "", "", "") }
    if generic == "JUNIPER CLEAN HAND SOAP LAVENDER" { return drug("JuniperClean Lavender", "JUNIPER CLEAN HAND SOAP LAVENDER", "TOPICAL", "", "HUMAN OTC DRUG", "505G(a)(3)", "49119396-3d9f-daf7-e063-6394a90afe7f", "", "", "", "", "", "", "", "", "", "", "") }
    return unknown_drug()
}

fn drug_count_j() -> Int {
    return 8
}