Clinical Commander

All dossiers
derm.basal-cell-carcinoma.core.v1

Basal cell carcinoma

dermatologysubacutechronicadultoutpatient

DERMATOLOGY-framed BCC engine — owns subtype recognition (nodular / superficial / morphoeic-infiltrative-sclerosing / pigmented / fibroepithelioma-of-Pinkus / basosquamous), biopsy, NCCN BCC 2025 risk stratification, risk-directed local therapy (Mohs / excision / ED&C / topical imiquimod-5FU / cryosurgery / definitive RT) AND the locally advanced / metastatic systemic ladder (Hedgehog-pathway inhibitor vismodegib / sonidegib first-line; cemiplimab second-line on HHI failure). Gorlin syndrome and chemoprevention (nicotinamide) are first-class. Pigmented BCC vs melanoma pivot routes to derm.melanoma.core.v1; field cancerisation routes to derm.actinic-keratosis-nmsc.core.v1; SCC/basosquamous routes to derm.squamous-cell-carcinoma-skin.core.v1. Guidelines refreshed 2026-05-26 via PubMed MCP: ERIVANCE (PMID 22670903, DOI 10.1056/NEJMoa1113713 — vismodegib in advanced BCC), BOLT primary (PMID 25981810, DOI 10.1016/S1470-2045(15)70100-2 — sonidegib 200 vs 800 mg), BOLT 42-mo final (PMID 33358380, DOI 10.1016/j.jaad.2020.08.042 — sonidegib by histologic subtype), Cemiplimab post-HHI laBCC (PMID 34000246, DOI 10.1016/S1470-2045(21)00126-1 — Stratigos Lancet Oncol 2021, ORR 31% in 84 patients), ONTRAC nicotinamide chemoprevention (PMID 26488693, DOI 10.1056/NEJMoa1506197), AAD 2019 melanoma for the pigmented-BCC-vs-melanoma pivot (PMID 30392755). NCCN BCC v.1.2025 is the framing authority but is referenced narratively (not a PMID). All six cited PMIDs are PubMed-metadata-confirmed this session. RxCUIs validated live against RxNav 2026-05-26 (forward name -> cui + reverse cui -> RxNorm Name, ingredient TTY=IN): vismodegib 1242987, sonidegib 1659191, cemiplimab 2058826, imiquimod 59943, fluorouracil 4492, niacinamide (nicotinamide) 7405. No hand-authored codes. Note RxNorm reverse name for cui 7405 returns "niacinamide" which is the same compound as nicotinamide / vitamin B3 amide (NOT niacin / nicotinic acid which is RxCUI 7393 and causes flushing). Non-pharmacologic entries (standard excision, ED&C, cryosurgery, Mohs, intra-op frozen-section excision, definitive / adjuvant RT, photoprotection) carry non_pharm:true and are exempt from the rxcui requirement. NCCN H/M/L zone + size risk staging is schema-blocked — not present as a TS calculator in clinical-tools-registry; captured narratively in RISK_STRATIFICATION + the design brief. Decision surface satisfied by the risk-directed regimen ladder + workup.chronic_pruritus + calc.ckd_epi_2021. Bayesian linkage (BCC-vs-mimic differential pre-test priors, LR+/LR- for ≥6 distinguishing dermoscopic findings incl. the pigmented-BCC-vs-melanoma pivot, conditional dependencies, T_test biopsy threshold, T_treat HHI/cemiplimab threshold, ≥3 cross-engine routing edges by engine_id to derm.squamous-cell-carcinoma-skin / derm.melanoma / derm.actinic-keratosis-nmsc) is documented in the co-located _design-brief.md + _research-bundle.md. Effect sizes (verified via PubMed this session): vismodegib ORR 43% locally advanced BCC, 30% metastatic BCC (ERIVANCE PMID 22670903); sonidegib 200 mg ORR ~43% locally advanced (BOLT PMID 25981810 / 33358380); cemiplimab post-HHI laBCC ORR 31% (95% CI 21-42%) with 6% CR / 25% PR in 84 patients (Stratigos PMID 34000246); nicotinamide 500 mg BID reduced new NMSC by ~23% at 12 mo in patients with ≥2 prior NMSC in last 5 y (ONTRAC PMID 26488693). Mohs primary BCC 5-year cure ~99%; recurrent ~94% (NCCN BCC 2025). Lifetime second-BCC risk after a first 60-90%; greatly elevated in Gorlin / organ transplant / prior RT.

Entry points (6)

  • symptom
    Pearly papule with arborising telangiectasia ± rolled border ± central ulceration on chronically UV-exposed skin (NCCN BCC 2025; AAD 2019)
    pearly_papule_or_telangiectatic_lesion
  • symptom
    Non-healing, recurrently bleeding or crusting skin lesion ("the lesion that will not heal") — classic BCC story (NCCN BCC 2025)
    non_healing_or_bleeding_skin_lesion
  • symptom
    Atrophic, scar-like, ill-defined plaque on the face/forehead — morphoeic/sclerosing/infiltrative BCC (high-risk histologic pattern, NCCN BCC 2025)
    scar_like_morphoeic_plaque
  • symptom
    Pigmented lesion with dermoscopic arborising telangiectasia, blue-grey ovoid nests or leaf-like areas — pigmented BCC vs melanoma pivot (route melanoma if uncertain)
    pigmented_lesion_with_arborising_vessels
  • history
    Multiple synchronous/metachronous BCC, basal-cell-nevus (Gorlin) syndrome features, or solid-organ-transplant skin-cancer surveillance (NCCN BCC 2025)
    multiple_bcc_gorlin_or_transplant_surveillance
  • history
    Recurrent BCC after prior excision/RT, or locally advanced/unresectable disease — HHI ± immunotherapy entry (NCCN BCC 2025; ERIVANCE PMID 22670903; BOLT PMID 25981810)
    recurrent_or_locally_advanced_bcc

Required inputs (12)

  • lesion_morphology_and_subtyperequired
    symptom • used at ENTRY
    Subtype recognition (nodular / superficial / morphoeic-infiltrative-sclerosing / pigmented / fibroepithelioma-of-Pinkus / basosquamous) is the master variable — drives both biopsy choice and risk stratification (NCCN BCC 2025)
  • dermoscopy_findingsrequired
    symptom • used at CONTEXT
    Arborising telangiectasia, blue-grey ovoid nests, leaf-like areas, spoke-wheel structures, in-focus dots and ulceration support BCC and pivot pigmented BCC vs melanoma (NCCN BCC 2025; AAD 2019 PMID 30392755)
  • anatomic_site_h_m_l_zonerequired
    symptom • used at RISK_STRATIFICATION
    NCCN high-risk H zone (mask of face, ears, genitalia, hands/feet/areola) drives Mohs / margin-assessed excision selection regardless of size (NCCN BCC 2025)
  • tumor_size_and_bordersrequired
    symptom • used at RISK_STRATIFICATION
    Size thresholds by zone (H any size; M ≥1 cm; L ≥2 cm) and ill-defined borders elevate to NCCN high-risk and Mohs/margin-assessed pathways (NCCN BCC 2025)
  • recurrence_immunosuppression_prior_rtrequired
    history • used at RISK_STRATIFICATION
    Recurrent disease, immunosuppression (transplant, haematologic malignancy, HIV), and tumour arising in previously irradiated skin are NCCN high-risk and shift to Mohs / definitive surgery (NCCN BCC 2025)
  • perineural_or_motor_sensory_symptomsrequired
    symptom • used at RED_FLAGS
    Perineural invasion (PNI; pain, paraesthesia, motor weakness, named-nerve deficit) is a NCCN high-risk feature and may indicate deep / skull-base disease — imaging + multidisciplinary care (NCCN BCC 2025)
  • gorlin_basal_cell_nevus_syndrome_featuresrequired
    history • used at CONTEXT
    Multiple synchronous BCC, palmar/plantar pits, odontogenic keratocysts, calcified falx, hypertelorism, medulloblastoma history → Gorlin (PTCH1) — gates lifelong surveillance, HHI for diffuse disease and AVOID ionising radiation (NCCN BCC 2025)
  • pregnancy_statusrequired
    history • used at TREATMENT
    Vismodegib and sonidegib are EMBRYOFETAL TOXIC (boxed warning) — pregnancy testing + contraception are mandatory before HHI; gates the systemic arm (NCCN BCC 2025; ERIVANCE PMID 22670903)
  • cbc_with_differential
    lab • used at INITIAL_WORKUP
    Baseline before HHI / cemiplimab; cemiplimab irAE workup baseline (NCCN BCC 2025; Stratigos PMID 34000246)
  • lft
    lab • used at INITIAL_WORKUP
    Baseline + on-treatment for HHI hepatic monitoring and cemiplimab immune-hepatitis surveillance (NCCN BCC 2025)
  • creatinine_and_egfr
    lab • used at TREATMENT
    Race-free eGFR (CKD-EPI 2021) for renal-dose context if cemiplimab + iodinated-contrast staging imaging needed in advanced disease (NCCN BCC 2025; Inker NEJM 2021)
  • staging_imaging_for_locally_advanced_or_metastatic
    imaging • used at BRANCHING_WORKUP
    CT/MRI for locally advanced / suspected bone or orbital invasion / PNI; CT chest-abdomen for metastatic disease — not for routine low-risk BCC (NCCN BCC 2025)

12-phase flow (12)

  1. 1FRAME
    Frame BCC as the most common cancer in fair-skinned populations — locally destructive, rarely metastatic. The dermatology engine owns recognition, biopsy, NCCN risk stratification, definitive local therapy (Mohs / excision / ED&C / topical / RT) AND the locally advanced/metastatic systemic ladder (HHI → cemiplimab), routing only the rare bona-fide visceral metastatic / skull-base disease to multidisciplinary care. Gorlin syndrome and field cancerisation overlap with SCC and melanoma are recognised here.
    advance: derm-owned scope set; sibling routes (SCC, AK-NMSC, melanoma) noted
  2. 2ENTRY
    Recognise a pearly papule with arborising vessels, a non-healing/bleeding lesion, a scar-like morphoeic plaque, a pigmented arborising-vessel lesion (melanoma-mimic), or a Gorlin/transplant-surveillance entry. Capture subtype morphology up front.
    inputs: lesion_morphology_and_subtype
    actions: workup.chronic_pruritus
    advance: entry trigger recognised; subtype morphology recorded
  3. 3CONTEXT
    Build the recognition context: dermoscopy (arborising telangiectasia, blue-grey ovoid nests, leaf-like / spoke-wheel areas, ulceration), full-body skin exam for synchronous BCC + AK + SCC + melanoma, Gorlin-syndrome features (palmar/plantar pits, odontogenic keratocyst history, hypertelorism, falx calcification, medulloblastoma family history), UV burden, organ-transplant / immunosuppression status, and field-cancerisation context.
    inputs: dermoscopy_findings, gorlin_basal_cell_nevus_syndrome_features
    actions: workup.chronic_pruritus
    advance: dermoscopy + total-body skin exam done; syndromic / immunosuppression context established
  4. 4RED_FLAGS
    Perineural invasion symptoms (pain, paraesthesia, motor weakness along a named nerve such as V or VII branches) → cross-sectional imaging + multidisciplinary care. Locally advanced disease invading bone / orbit / cartilage / muscle — surgically unresectable or unacceptable morbidity. Bona-fide metastatic disease (regional nodes, lung, bone) — extremely rare (<0.1%) but mandates systemic + multidisciplinary management. Suspected basosquamous histology (hybrid BCC/SCC) shifts management toward SCC-grade aggression.
    inputs: perineural_or_motor_sensory_symptoms
    actions: panel.cbc, panel.inflammation
    advance: PNI/locally-advanced/metastatic flags screened and imaging/MDT routed if positive
  5. 5INITIAL_WORKUP
    DIAGNOSTIC BIOPSY: shave or punch biopsy of the most representative area is acceptable for BCC (unlike melanoma; shave does not compromise BCC management because BCC is not Breslow-staged). Histology should report subtype (nodular / superficial / micronodular / infiltrative / morphoeic / basosquamous), depth, perineural invasion, lymphovascular invasion, and margin status when an excision specimen. Routine bloods / imaging are NOT indicated for asymptomatic localised low/intermediate-risk BCC; obtain baseline labs only when systemic therapy is anticipated.
    inputs: lesion_morphology_and_subtype, cbc_with_differential, lft
    actions: panel.cbc, panel.lft
    advance: biopsy obtained with subtype reported; baseline labs drawn if HHI/cemiplimab anticipated
  6. 6BRANCHING_WORKUP
    Histopathology-driven branch: nodular / superficial low-risk → ED&C, excision 4 mm, or topical (superficial only). Aggressive subtype (morphoeic, micronodular, infiltrative, basosquamous), PNI, deep invasion, recurrent, or H-zone / immunosuppressed → Mohs micrographic surgery OR excision with intra-operative frozen-section circumferential margin assessment. Locally advanced (unresectable / unacceptable morbidity) or metastatic → cross-sectional imaging (CT/MRI for PNI/orbit/bone; CT chest-abdomen for distant) + systemic HHI ± cemiplimab.
    inputs: staging_imaging_for_locally_advanced_or_metastatic
    actions: panel.inflammation
    advance: risk tier (low / high / locally advanced / metastatic) assigned; appropriate imaging done; treatment route selected
  7. 7DIFFERENTIAL
    Terminal differential with named pivots: BCC vs squamous-cell carcinoma (hyperkeratotic firm plaque + tender + faster growing — route derm.squamous-cell-carcinoma-skin.core.v1) vs actinic keratosis (rough hyperkeratotic macule on UV-damaged field — route derm.actinic-keratosis-nmsc.core.v1) vs sebaceous hyperplasia (yellowish umbilicated papule, crown-vessels dermoscopy pivot) vs intradermal nevus (soft skin-coloured papule, no telangiectasia pivot) vs molluscum contagiosum (central umbilication, often multiple pivot) vs pigmented seborrheic keratosis (stuck-on, milia-like cysts pivot) vs MELANOMA (asymmetric network, blue-white veil — route derm.melanoma.core.v1 if any doubt — pigmented BCC is the principal melanoma-mimic) vs fibrous papule (firm conical papule, nose) vs Merkel-cell carcinoma (rapidly growing, red-purple, immunosuppressed-elderly — high suspicion → urgent biopsy + MDT). Field cancerisation means BCC + SCC + AK frequently co-exist.
    advance: best diagnosis selected; pigmented-BCC-vs-melanoma branch resolved by biopsy if any doubt
  8. 8RISK_STRATIFICATION
    NCCN BCC 2025 risk grouping (schema-blocked as a TS calculator — captured narratively): LOW-risk = trunk/extremity <2 cm (L zone), no aggressive features, primary, immunocompetent, no PNI, well-defined borders, non-aggressive histologic subtype. HIGH-risk = any H-zone, M-zone ≥1 cm, L-zone ≥2 cm, ill-defined borders, recurrent, immunosuppressed, site of prior RT, aggressive histologic subtype (morphoeic / micronodular / infiltrative / basosquamous / sclerosing), PNI. Risk tier drives the local therapy choice; locally advanced / unresectable / metastatic disease is a separate tier requiring systemic therapy.
    inputs: anatomic_site_h_m_l_zone, tumor_size_and_borders, recurrence_immunosuppression_prior_rt
    advance: NCCN risk tier (low / high / locally advanced / metastatic) assigned
  9. 9TREATMENT
    RISK-DIRECTED LOCAL THERAPY (NCCN BCC 2025). LOW-RISK: standard surgical excision with 4-mm clinical margins (non-pharm) OR electrodesiccation-and-curettage (non-pharm, NOT on terminal-hair-bearing sites) OR cryosurgery (non-pharm) OR for superficial BCC only — topical imiquimod 5% 5x/wk x 6 wk OR topical 5-fluorouracil 5% BID x 3-6 wk OR photodynamic therapy. HIGH-RISK: MOHS micrographic surgery (preferred) OR excision with intra-operative frozen-section complete-margin assessment OR definitive radiotherapy (non-surgical candidate). LOCALLY ADVANCED / METASTATIC / RECURRENT-AFTER-MOHS: Hedgehog-pathway inhibitor — vismodegib 150 mg PO daily (ERIVANCE PMID 22670903) or sonidegib 200 mg PO daily (BOLT PMID 25981810 / Dummer 33358380). HHI-refractory or HHI-intolerant: cemiplimab 350 mg IV q3wk (Stratigos PMID 34000246). Gate on pregnancy (HHI EMBRYOFETAL TOXIC — boxed warning), Gorlin (AVOID ionising radiation), and HHI-class toxicities (muscle spasm, alopecia, dysgeusia, weight loss).
    inputs: pregnancy_status, creatinine_and_egfr
    advance: risk-appropriate local therapy chosen OR systemic ladder started for advanced disease; pregnancy + Gorlin gates applied
  10. 10DISPOSITION
    Almost entirely outpatient: ED&C / excision / Mohs / topical / cryotherapy / HHI start are all outpatient procedures. Multidisciplinary tumour-board referral for locally advanced / PNI / orbital-bony invasion / planned reconstructive flap / metastatic disease. Radiation oncology referral for definitive RT or adjuvant RT for PNI / positive deep margin. Genetics referral for suspected Gorlin (≥2 BCCs <30 y, ≥5 BCC lifetime, or syndromic features).
    inputs: perineural_or_motor_sensory_symptoms
    advance: disposition documented; MDT / radiation oncology / genetics referrals made as indicated
  11. 11MONITORING
    Surveillance: total-body skin exam every 6-12 months for life (60-90% lifetime risk of a second BCC after a first; rises further in Gorlin, organ transplant, prior RT). On HHI: monitor for muscle spasm / cramps (manage with hydration, magnesium, dose holds; serum CK if severe), alopecia, dysgeusia, weight loss, hepatic transaminases (LFT), and pregnancy status in any female of reproductive potential (contraception during + 24 months after vismodegib, 20 months after sonidegib per labelling). On cemiplimab: immune-related adverse events (skin, thyroid, hepatitis, colitis, pneumonitis, hypophysitis, myocarditis).
    inputs: cbc_with_differential, lft
    actions: panel.cbc, panel.lft
    advance: lifelong skin surveillance + agent-specific monitoring schedule set
  12. 12FOLLOWUP
    Lifelong derm continuity: photoprotection (broad-spectrum SPF ≥30, sun-protective clothing, behavioural avoidance), skin self-examination education, family / Gorlin counselling, chemoprevention discussion (nicotinamide 500 mg BID — ONTRAC trial NEJM PMID 26488693 reduced new NMSC ~23% in high-risk patients; consider for those with multiple BCC / SCC / dense field). Organ-transplant recipients receive intensified surveillance and individualised immunosuppression review with transplant team. Recurrence at the prior site → re-biopsy + escalate to Mohs / margin-assessed excision; new advanced / metastatic disease → re-enter systemic ladder.
    inputs: gorlin_basal_cell_nevus_syndrome_features, recurrence_immunosuppression_prior_rt
    actions: workup.chronic_pruritus
    advance: photoprotection + self-exam + chemoprevention + surveillance schedule documented