Dermatophytosis / tinea (corporis, cruris, pedis, capitis, onychomycosis)
DERMATOLOGY-framed dermatophytosis engine — SITE-FRAMED: body site (glabrous corporis/cruris/pedis vs scalp/hair vs nail) selects the confirmatory test AND the treatment-ladder step. Tinea capitis is ALWAYS systemic (topical inadequate). Diagnosis is confirmed mycologically (KOH first-line, culture/PCR for species + resistance, PAS/biopsy if KOH−-but-compelling), never assumed before an oral course. Two trap states explicitly owned: tinea incognito (steroid-modified — the commonest reason a dermatophytosis is misdiagnosed as eczema/psoriasis; stop the steroid + confirm + treat the fungus) and terbinafine-resistant Trichophyton indotineae (ITS genotype VIII, T. mentagrophytes complex; SQLE Phe397Leu/Leu393Phe/Ser; terbinafine MIC 0.04→≥32 µg/mL) — culture+susceptibility/molecular ID, higher-dose longer itraconazole, antifungal stewardship, public-health awareness. Guidelines refreshed (not merely tagged) 2026-05-18 via PubMed MCP: T. indotineae — Gupta JEADV 2025 (PMID 40613321), Gupta Am J Clin Dermatol 2023 (PMID 37553539), Gupta Expert Rev Anti Infect Ther 2024 (PMID 39114868), Gupta Antibiotics 2025 (PMID 40426539), Jabet Emerg Infect Dis 2022 (PMID 34932456), Sonego J Clin Med 2024 (PMID 38930086); tinea capitis — Chen JAAD/Cochrane 2016 (PMID 27816294), González Cochrane 2007 (PMID 17943825), Gupta JEADV 2018 (PMID 29797669); onychomycosis — Gupta JEADV 2006 (PMID 17062029), Pajaziti Med Arch 2015 (PMID 26261386); glabrous topicals — El-Gohary Cochrane 2014 (PMID 25090020), van Zuuren BJD 2015 (PMID 25294700); diagnostics — Cuchí-Burgos 2021 (PMID 34353508), Villanueva-Reyes 2026 (PMID 41793813); tinea incognito — Gallegos Espadas Cureus 2024 (PMID 39569254), Wacker Mycoses 2004 (PMID 15504132). All cited PMIDs PubMed-verified this session; the 2024-2026 T. indotineae literature is the newest authority and is applied. RxCUIs validated live against RxNav 2026-05-18 (forward name→cui + reverse cui→RxNorm Name, ingredient-level): terbinafine 37801, clotrimazole 2623, ketoconazole 6135, naftifine 31476, ciclopirox 21090, itraconazole 28031, fluconazole 4450, griseofulvin 5021, selenium sulfide 36345, efinaconazole 1539753, tavaborole 1543173, miconazole 6932. Forward search returned multiple concepts for terbinafine (235838 product / 37801 ingredient) and naftifine (31476 ingredient / 91293 product); reverse lookup confirmed the clean ingredient codes used. No hand-authored codes; non-pharmacologic entries (sporicidal-shampoo role, reservoir control, deprescribing rule) carry non_pharm where no single ingredient applies. Disease-severity scoring (SCIO for onychomycosis; tinea-capitis kerion grading) is schema-blocked — not present in clinical-tools-registry; captured narratively in RISK_STRATIFICATION + severity_triggers. Decision surface satisfied by the site-stepwise regimen ladder + workup.chronic_pruritus + workup.diabetic_foot_ulcer + calc.ckd_epi_2021. Bayesian linkage (site-specific pre-test priors, LR+/LR− for ≥8 distinguishing findings incl. the KOH/culture/dermoscopy/advancing-border/steroid-worsens pivots, ≥4 conditional dependencies — KOH yield | prior antifungal/steroid; culture yield | site, T_treat/T_test, ≥4 cross-engine routing edges by engine_id to derm.atopic-dermatitis/psoriasis/cellulitis) is documented in the co-located _design-brief.md + _research-bundle.md; first-class TS LR fields remain schema-blocked (same constraint as the cellulitis + atopic-dermatitis gold templates). Effect sizes (≥10): topical terbinafine glabrous clinical cure RR 4.51 (95% CI 3.10–6.56, NNT 3) vs placebo; naftifine 1% mycologic cure RR 2.38 (1.80–3.14, NNT 3); clotrimazole 1% mycologic cure RR 2.87 (2.28–3.62, NNT 2); tinea capitis terbinafine vs griseofulvin T. tonsurans RR 1.47 (1.22–1.77); griseofulvin vs terbinafine M. canis RR 0.68 (0.53–0.86); tinea capitis terbinafine mycologic cure ~81% / itraconazole ~79% (Gupta 2018); onychomycosis continuous terbinafine mycologic cure ~79% vs pulse itraconazole ~88% (NS; Gupta 2006); onychomycosis terbinafine+ciclopirox lacquer 100% (low-severity SCIO; Pajaziti 2015); onychomycosis qPCR sensitivity 92.8% vs culture; KOH ~90% vs culture ~69% positivity (nail; Villanueva-Reyes 2026); T. indotineae terbinafine MIC range 0.04→≥32 µg/mL with SQLE mutations (Gupta 2023). Full numerics + PMID/DOI anchors in _research-bundle.md.
Entry points (5)
- symptomAnnular/arciform scaly plaque with an active advancing scaly border and central clearing (tinea corporis/cruris; El-Gohary Cochrane 2014 PMID 25090020)annular_scaly_plaque_central_clearing
- symptomInterdigital maceration/fissuring or moccasin-distribution hyperkeratotic plantar scale ± vesicles (tinea pedis; Cochrane topical evidence PMID 25090020)interdigital_or_moccasin_foot_scale
- symptomScaly scalp patch with broken hairs / black dots / kerion in a child → tinea capitis entry — ALWAYS systemic (Chen JAAD/Cochrane 2016 PMID 27816294)scaly_patch_alopecia_broken_hairs
- symptomSubungual hyperkeratosis, onycholysis, yellow-brown discolouration of toenail(s) (onychomycosis; Gupta JEADV 2006 PMID 17062029)dystrophic_subungual_thickened_nail
- historyAtypical, ill-defined, recurrent or treatment-resistant rash with prior topical/systemic corticosteroid OR recent travel / treatment-failure → tinea incognito / T. indotineae entry (Gallegos Espadas Cureus 2024 PMID 39569254; Gupta JEADV 2025 PMID 40613321)steroid_modified_atypical_or_treatment_resistant_rash
Required inputs (16)
- body_site_of_lesionsrequiredsymptom • used at ENTRYSite (glabrous skin vs foot vs groin vs scalp/hair vs nail) is the master variable that selects the diagnostic test and the entire treatment ladder step (El-Gohary Cochrane 2014 PMID 25090020; Chen JAAD 2016 PMID 27816294)
- lesion_morphology_border_scalerequiredsymptom • used at CONTEXTActive advancing scaly border with central clearing is the cardinal tinea sign; loss of scale/border = steroid-modified tinea incognito (Wacker Mycoses 2004 PMID 15504132)
- prior_topical_or_systemic_corticosteroidrequiredhistory • used at CONTEXTCorticosteroid exposure modifies morphology, suppresses antifungal immunity, and is the commonest cause of misdiagnosis as eczema/psoriasis (tinea incognito) (Gallegos Espadas Cureus 2024 PMID 39569254)
- prior_antifungal_use_or_treatment_failurerequiredhistory • used at CONTEXTPrior antifungal lowers KOH/culture yield and, with recent travel or extensive disease, raises the terbinafine-resistant T. indotineae prior (Gupta JEADV 2025 PMID 40613321; Gupta Am J Clin Dermatol 2023 PMID 37553539)
- extent_and_follicular_involvementrequiredsymptom • used at RISK_STRATIFICATIONExtensive disease, follicular pustules, or Majocchi granuloma cannot be cleared by topicals and mandates oral therapy (Gupta JEADV 2018 PMID 29797669)
- agerequireddemographic • used at TREATMENTTinea capitis is overwhelmingly pediatric and needs weight-based systemic dosing; nail/oral-azole DDIs cluster in the polypharmacy elderly (Chen JAAD 2016 PMID 27816294)
- pregnancy_lactationhistory • used at TREATMENTGriseofulvin teratogenic / azoles teratogenic / oral terbinafine generally avoided — topical-only is preferred in pregnancy and gates the oral ladder (El-Gohary Cochrane 2014 PMID 25090020)
- immunocompromisehistory • used at CONTEXTHIV/transplant/biologic immunosuppression → extensive, deep (Majocchi), atypical disease needing oral therapy + lower confirm threshold (Gupta JEADV 2025 PMID 40613321)
- diabetes_or_peripheral_vascular_diseasehistory • used at CONTEXTTinea pedis / onychomycosis is the modifiable cellulitis portal of entry in diabetes — route to derm.cellulitis.core.v1 and prioritise eradication (cellulitis portal evidence)
- hepatic_diseasehistory • used at TREATMENTOral terbinafine and azoles are hepatotoxic — significant hepatic disease contraindicates or modifies the oral ladder (Gupta JEADV 2006 PMID 17062029)
- cyp3a4_interacting_comedicationsmedication • used at TREATMENTItraconazole is a strong CYP3A4 inhibitor (statins, DOACs, many others) — drug-interaction screen gates azole selection (Gupta JEADV 2025 PMID 40613321)
- koh_microscopyrequiredlab • used at INITIAL_WORKUPFirst-line, rapid, high-sensitivity confirmation (~90% in nail series) — confirm BEFORE oral therapy especially for nail/scalp/incognito (Villanueva-Reyes 2026 PMID 41793813)
- fungal_culture_or_dermatophyte_pcrlab • used at INITIAL_WORKUPSpecies identification (Trichophyton vs Microsporum drives capitis drug; PCR sens ~93% vs culture) + the only way to flag T. indotineae for susceptibility testing (Cuchí-Burgos 2021 PMID 34353508; Gupta JEADV 2025 PMID 40613321)
- lftlab • used at INITIAL_WORKUPBaseline ± on-treatment hepatic monitoring for prolonged oral terbinafine/azole/griseofulvin courses (Gupta JEADV 2006 PMID 17062029)
- cbc_with_differentiallab • used at INITIAL_WORKUPBaseline before prolonged oral antifungal (rare terbinafine cytopenia; griseofulvin) and pre-immunosuppression context (Chen JAAD 2016 PMID 27816294)
- creatininelab • used at TREATMENTCKD-EPI 2021 race-free eGFR for fluconazole renal dose-adjustment and oral-antifungal safety in CKD (Inker NEJM 2021)
12-phase flow (12)
- 1FRAMEFrame as a SITE-DEFINED superficial dermatophyte infection where body site selects both the confirmatory test and the treatment-ladder step. Tinea capitis is ALWAYS systemic. Diagnosis is confirmed mycologically, never assumed — especially before any oral course. The two trap states framed here: tinea incognito (steroid-modified, the commonest mimic trap) and terbinafine-resistant T. indotineae (the emerging-resistance trap).advance: site-framed scope set; confirm-before-oral + incognito + T. indotineae traps noted
- 2ENTRYRecognise the site-specific presentation (annular glabrous plaque / interdigital-moccasin foot / scaly scalp + broken hairs / dystrophic nail) vs the steroid-modified-or-resistant atypical entry; capture body site up front because it drives everything downstream.inputs: body_site_of_lesionsactions: workup.chronic_pruritusadvance: entry trigger present; body site recorded
- 3CONTEXTBuild the context that bends the prior and the ladder: lesion morphology/border/scale (advancing border + central clearing vs steroid-flattened incognito), prior corticosteroid exposure (incognito), prior antifungal + travel + treatment-failure (T. indotineae), immunocompromise (extensive/Majocchi), diabetes/PVD (tinea pedis as the cellulitis portal — route derm.cellulitis.core.v1).inputs: lesion_morphology_border_scale, prior_topical_or_systemic_corticosteroid, prior_antifungal_use_or_treatment_failure, immunocompromise, diabetes_or_peripheral_vascular_diseaseactions: workup.chronic_pruritusadvance: morphology + steroid-exposure + resistance-risk + portal context established
- 4RED_FLAGSTinea capitis KERION (boggy, tender, inflammatory scalp mass ± lymphadenopathy) → systemic antifungal urgently (± short adjunctive steroid for inflammation) to limit scarring alopecia. Tinea incognito recognised here = STOP the corticosteroid and confirm mycologically before any further treatment. Suspected T. indotineae outbreak / extensive treatment-resistant disease → culture + susceptibility + stewardship. Tinea pedis as a cellulitis portal in diabetes → route derm.cellulitis.core.v1.inputs: extent_and_follicular_involvement, prior_topical_or_systemic_corticosteroidactions: panel.cbcadvance: kerion / incognito / resistance / portal red flags screened and escalated/routed if present
- 5INITIAL_WORKUPCONFIRM BEFORE TREATING — KOH microscopy is first-line, rapid, ~90% sensitive in nail series. Fungal culture or dermatophyte PCR (PCR sens ~93% vs culture; turnaround hours) for nail, scalp (species: Trichophyton vs Microsporum changes the capitis drug), and any resistance-suspect case. PAS/nail-plate histology when KOH-negative but clinically compelling. Baseline LFT/CBC if a prolonged oral course is anticipated. Onychomycosis and tinea capitis must be lab-confirmed before committing to months of oral therapy.inputs: koh_microscopy, fungal_culture_or_dermatophyte_pcr, lft, cbc_with_differentialactions: panel.cbc, panel.lft, panel.renaladvance: mycologic confirmation obtained (KOH ± culture/PCR ± PAS); species sought for scalp/nail/resistance; pre-oral safety labs drawn if needed
- 6BRANCHING_WORKUPSite-and-mimic decision tree. Glabrous: KOH+ advancing annular scale → tinea corporis/cruris vs nummular eczema/AD (route derm.atopic-dermatitis.core.v1 if KOH−, no advancing border) vs psoriasis (route derm.psoriasis.core.v1) vs pityriasis rosea / granuloma annulare (no scale, KOH−) / erythema migrans / candidal intertrigo / seborrheic dermatitis. Scalp: tinea capitis vs alopecia areata (no scale, exclamation hairs) / seborrheic / psoriasis. Nail: onychomycosis vs psoriatic nail (pitting, oil-drop — route derm.psoriasis.core.v1) / lichen planus (dorsal pterygium) / trauma. Steroid-modified or KOH−-but-compelling → repeat sampling off steroid, culture/PCR; resistance-suspect → susceptibility testing / molecular ID for T. indotineae.inputs: prior_antifungal_use_or_treatment_failureactions: workup.chronic_pruritusadvance: dermatophytosis confirmed by site OR a mimic assigned + routed by engine_id; resistance-suspect cases flagged for susceptibility/molecular ID
- 7DIFFERENTIALTerminal differential with named pivots: tinea corporis vs nummular eczema/AD (KOH+ + advancing scaly annular border with central clearing pivot; route derm.atopic-dermatitis.core.v1) vs psoriasis (sharp salmon plaque + silver scale + nail pits pivot; route derm.psoriasis.core.v1) vs pityriasis rosea (herald patch + collarette + Christmas-tree, KOH− pivot) vs granuloma annulare (no scale, dermal, KOH− pivot) vs erythema migrans (expanding non-scaly, tick exposure pivot) vs candidal intertrigo (satellite pustules, moist, KOH yeast/pseudohyphae pivot) vs seborrheic dermatitis (greasy scale, central-face/scalp pivot); tinea capitis vs alopecia areata (smooth, exclamation hairs, KOH− pivot) / seborrheic / psoriasis; onychomycosis vs psoriatic nail (pitting + oil-drop + skin psoriasis pivot) vs lichen planus (pterygium + longitudinal ridging pivot) vs traumatic dystrophy (single great-toe, history pivot). Steroid-response-worsens favours occult tinea (incognito).advance: single best site-specific diagnosis selected; incognito actively excluded if steroid history; mimic routed if assigned
- 8RISK_STRATIFICATIONStratify by what mandates oral vs topical: localized glabrous limited BSA, immunocompetent, no follicular/nail/scalp involvement → topical adequate (Step 1). Extensive, follicular/Majocchi, immunocompromised, tinea incognito, any scalp (Step 3 always systemic), any nail (Step 4) → oral. Resistance modifiers: prior antifungal failure + extensive + travel → treat as possible terbinafine-resistant T. indotineae and adjust the ladder.inputs: extent_and_follicular_involvement, body_site_of_lesionsadvance: topical-adequate vs oral-required tier assigned; resistance modifier applied
- 9TREATMENTSITE-STEPWISE ladder. Step 1 localized glabrous (corporis/cruris/pedis): topical allylamine (terbinafine — highest cure, Cochrane RR 4.51 vs placebo) or azole (clotrimazole/ketoconazole/miconazole) / naftifine / ciclopirox; duration by site (2 wk corporis/cruris, up to 4 wk + interdigital pedis, longer moccasin). Step 2 extensive/follicular/Majocchi/incognito/immunocompromised: oral terbinafine or itraconazole/fluconazole; in tinea incognito STOP the corticosteroid first. Step 3 tinea capitis ALWAYS systemic — oral terbinafine for Trichophyton (better for T. tonsurans, RR 1.47), griseofulvin for Microsporum (better for M. canis, RR 0.68), weight-based pediatric dosing + sporicidal selenium-sulfide/ketoconazole shampoo + treat household/fomites. Step 4 onychomycosis (confirm first): oral terbinafine continuous/pulse (~70-79% mycologic cure) or itraconazole pulse (~80-88%) or fluconazole; topical efinaconazole/tavaborole/ciclopirox for limited disease; eradicate the tinea-pedis reservoir; counsel slow nail outgrowth. Emerging-resistance branch: suspected/confirmed T. indotineae or terbinafine failure → higher-dose longer-course itraconazole, culture + susceptibility, stewardship. Gate on pregnancy (topical only), hepatic disease, CYP3A4 DDIs, age (weight-based peds), renal (fluconazole).inputs: age, pregnancy_lactation, hepatic_disease, cyp3a4_interacting_comedications, creatinineadvance: site-appropriate ladder step started; oral course confirmed mycologically; agent gated on pregnancy/hepatic/DDI/age/renal; resistance branch applied if indicated
- 10DISPOSITIONEntirely outpatient/derm-clinic. No admission pathway: kerion, tinea incognito, and T. indotineae are managed in clinic with systemic therapy + dermatology continuity. Public-health notification/awareness for confirmed T. indotineae; treat household contacts and fomites for tinea capitis. Route the cellulitis-portal diabetic and the psoriatic/eczematous mimics OUT by engine_id.inputs: body_site_of_lesionsadvance: outpatient disposition documented; contacts/fomites + stewardship/notification addressed; mimics routed
- 11MONITORINGDisease: clinical + mycologic cure (repeat KOH/culture) at end of course — onychomycosis cure lags clinical outgrowth by months (slow nail growth is EXPECTED, not early failure; toenail clear-out ~9-12 mo). Tinea capitis: clinical + mycologic clearance at ~4-8 wk, treat to mycologic cure. Drug safety: LFT for prolonged oral terbinafine/azole/griseofulvin per duration/symptoms; itraconazole CYP3A4 DDIs ongoing. Non-response or relapse → reconfirm diagnosis, reassess adherence/reservoir, and consider terbinafine-resistant T. indotineae with susceptibility testing.inputs: lftactions: panel.lftadvance: clinical + mycologic response assessed at the site-appropriate interval; nail-outgrowth expectation set; resistance reconsidered if failing
- 12FOLLOWUPRecurrence prevention + reservoir control: footwear/hosiery hygiene, antifungal foot powder, treat tinea pedis as the onychomycosis + cellulitis reservoir, household/fomite treatment and screening for tinea capitis (combs, hats, pets for M. canis), athlete/communal-shower precautions, occupational counselling. Onychomycosis relapse-prevention with intermittent topical maintenance and pedis eradication. Confirmed T. indotineae → antifungal stewardship counselling (no empiric terbinafine monotherapy, avoid OTC combination steroid-antifungal creams that breed incognito) and dermatology continuity.inputs: diabetes_or_peripheral_vascular_disease, prior_antifungal_use_or_treatment_failureactions: workup.chronic_pruritusadvance: reservoir + fomite + recurrence-prevention plan documented; stewardship counselling given; derm continuity arranged