Undifferentiated dyspnea (ED)
Phase C shard-3-neuro-sym expansion (2026-05-14) — pattern-matches symptom.chest_pain.ed_undifferentiated.v1 (be7b7d2f) and symptom.vertigo.v1. Engine scope: ED triage + risk-stratification + disposition for undifferentiated adult dyspnea. Downstream confirmed diagnoses route to: cardio.acute-hf.core.v1, pulm.pe.core.v1, pulm.copd.core.v1, pulm.asthma.core.v1, pulm.cap.core.v1, pulm.pneumothorax.core.v1, pulm.ards.core.v1, allergy.anaphylaxis.v1, endo.dka.core.v1, cardio.idiopathic-pulmonary-arterial-hypertension.v1. Bayesian linkage (LR+, LR−, T_treat, T_test, conditional dependencies, pre-test priors) lives in companion depth bundle _briefs/symptom.dyspnea.ed.v1.depth.md — schema has no first-class likelihood-ratio field. 10 sibling-differentiation rows cover the 10 look-alike phenotypes in user spec (acute HF / PE / COPD / asthma / pneumonia / pneumothorax / ARDS / anaphylaxis / DKA-metabolic-acidosis / pulmonary HTN). Hyperventilation/anxiety pivot lives in severity_triggers (diagnosis of exclusion). 12 severity triggers (≥8 per spec): acute_hf_decompensation + massive_pe_pattern + copd_exacerbation_hypercapnic + severe_asthma_exacerbation + community_acquired_pneumonia + tension_pneumothorax + ards_pattern + anaphylaxis + severe_anemia_or_gi_bleed + metabolic_acidosis_dka_pattern + pulmonary_hypertension_decompensation + hyperventilation_anxiety_panic. Schema-blocked emitted: workup.dyspnea (not in clinical-tools-registry — pending shard-0 ticket). Regimen_axes intentionally empty — engine is triage-only. Supportive drug actions (O2, SABA/SAMA, steroid, furosemide, epinephrine, fluids, NIV) live in setting_playbooks.ed.drug_actions; definitive treatment is owned by downstream routed engines. Setting playbook: single `ed` per user spec — outpatient dyspnea is a future engine.
Entry points (8)
- symptomAcute dyspnea presenting to ED — undifferentiated trigger for the full workup (Welch JAMA 2005)acute_dyspnea
- symptomOrthopnea / PND / peripheral edema — cardiogenic dyspnea cluster (Maisel NEJM 2002 BNP; 2022 AHA/ACC/HFSA HF Heidenreich)orthopnea_pnd_edema
- symptomPleuritic dyspnea ± unilateral leg pain — PE suspicion (ESC 2019 PE Konstantinides)pleuritic_dyspnea_with_leg_pain
- symptomWheezing dyspnea — asthma / COPD exacerbation (GINA 2026; GOLD 2026)wheeze_with_dyspnea
- symptomFever + productive cough + dyspnea — community-acquired pneumonia (ATS/IDSA 2019)fever_cough_dyspnea
- symptomSudden unilateral pleuritic chest pain + dyspnea — pneumothorax (ATS/CHEST 2010)sudden_unilateral_pleuritic_dyspnea
- symptomDyspnea + stridor + urticaria + exposure — anaphylaxis (WAO 2020; EAACI 2021)dyspnea_with_stridor_urticaria
- vital_abnormalitySpO2 <90% on room air OR RR >30 OR accessory muscle use — life-threat triage (ATS/IDSA 2019)hypoxia_or_respiratory_failure
Required inputs (33)
- agerequireddemographic • used at CONTEXTAge shifts cardiogenic vs pulmonary priors; >65 raises HF and CAP priors (Heidenreich 2022)
- sexrequireddemographic • used at CONTEXTSex shifts COPD and asthma priors; pregnancy radically alters PE / cardiomyopathy workup
- dyspnea_onset_timerequiredsymptom • used at FRAMESudden = PE / PTX / anaphylaxis; subacute days-weeks = HF decompensation / pneumonia / COPD exac (Welch 2005)
- dyspnea_qualityrequiredsymptom • used at FRAMEAir hunger / chest tightness / wheeze / inability to lie flat — anchor cluster (Welch 2005)
- orthopnea_pndrequiredsymptom • used at ENTRYOrthopnea LR+ ~2.2 + PND LR+ ~2.6 for HF (Wang JAMA 2005 PMID 16204662)
- cough_sputumrequiredsymptom • used at ENTRYPurulent sputum = bacterial pneumonia / COPD exac; pink frothy = pulmonary edema (ATS/IDSA 2019)
- pleuritic_painrequiredsymptom • used at ENTRYPleuritic pain shifts toward PE / pneumonia / pneumothorax / pleurisy (ESC 2019 PE)
- leg_swelling_painrequiredsymptom • used at ENTRYUnilateral leg pain/swelling is a Wells PE criterion (Wells 2000; ESC 2019)
- exposure_trigger_allergensymptom • used at ENTRYKnown allergen / sting / food / drug exposure → anaphylaxis pivot (WAO 2020)
- sbprequiredvital • used at CONTEXTHypotension = cardiogenic shock / massive PE / tension PTX / anaphylactic shock (ESC 2019; Heidenreich 2022)
- hrrequiredvital • used at CONTEXTTachycardia non-specific; sinus tach in PE; AF rapid rate triggers HF decompensation (Heidenreich 2022)
- rrrequiredvital • used at CONTEXTTachypnea (RR >24) is a sepsis-screen + PE + HF marker (ATS/IDSA 2019)
- spo2requiredvital • used at CONTEXTHypoxia (<90% RA) shifts toward PE / pneumonia / PTX / HF; titrate O2 88-92% in COPD (GOLD 2026)
- temperaturerequiredvital • used at CONTEXTFever shifts toward CAP / aspiration / atypical (ATS/IDSA 2019)
- hf_historyrequiredhistory • used at CONTEXTKnown HF triples HF prior; informs BNP / NT-proBNP interpretation (Heidenreich 2022)
- copd_asthma_historyrequiredhistory • used at CONTEXTKnown COPD / asthma shifts wheezing dyspnea workup toward exacerbation (GOLD 2026; GINA 2026)
- smoking_statusrequiredhistory • used at CONTEXTPack-years anchor COPD prior; smoking is an independent PE risk (GOLD 2026; Wells 2000)
- vte_risk_factorsrequiredhistory • used at CONTEXTRecent surgery / immobility / cancer / hormonal / prior VTE → Wells PE criteria (Wells 2000; ESC 2019)
- allergy_historyrequiredhistory • used at CONTEXTKnown atopy / prior anaphylaxis / drug allergies (WAO 2020)
- diabetes_statusrequiredhistory • used at CONTEXTDKA prior; uncontrolled DM with Kussmaul respirations + ketosis → endo.dka (ADA 2026)
- anticoagulant_userequiredhistory • used at CONTEXTAffects PE workup interpretation + thrombolysis decision (ESC 2019)
- ecg_12_leadrequiredimaging • used at INITIAL_WORKUPECG: AF/flutter, ischemia driving HF decompensation, S1Q3T3 / RV strain in PE, low voltage in effusion/tamponade
- cxr_portablerequiredimaging • used at INITIAL_WORKUPPulmonary edema (cephalization, Kerley B, vascular congestion), infiltrate, pneumothorax, effusion, hyperinflation (GOLD 2026)
- bnp_or_nt_probnprequiredlab • used at INITIAL_WORKUPBNP <100 / NT-proBNP <300 rules out acute HF in dyspnea (Maisel NEJM 2002 PMID 12124404); age-adjusted NT-proBNP cutoffs apply (Heidenreich 2022)
- d_dimer_age_adjustedlab • used at BRANCHING_WORKUPAge-adjusted D-dimer rule-out for PE with low Wells (Klok 2017 PMID 24643601)
- cbc_with_diffrequiredlab • used at INITIAL_WORKUPLeukocytosis (pneumonia / sepsis); anemia (low O2 carrying — high-output dyspnea, GI bleed); eosinophilia (asthma / allergic)
- bmp_lactaterequiredlab • used at INITIAL_WORKUPAnion gap (DKA / lactic acidosis); BUN/Cr for contrast (CTPA), DOAC dose, HF perfusion; lactate for shock (SSC 2026)
- abg_or_vbglab • used at INITIAL_WORKUPpH + PaCO2 in COPD exac (hypercapnia → NIV); A-a gradient elevated in PE / pneumonia / ARDS (GOLD 2026)
- procalcitoninlab • used at BRANCHING_WORKUPPCT supports bacterial vs viral / non-infectious dyspnea (Christ-Crain Lancet 2004 PMID 14987884)
- troponin_hslab • used at INITIAL_WORKUPElevated troponin in HF decompensation, type-2 MI, RV strain from massive PE (Thygesen 2018 4th UDef MI)
- ctpa_chestimaging • used at BRANCHING_WORKUPCTPA for confirmed PE workup when Wells >4 or age-adjusted D-dimer positive (ESC 2019)
- bedside_lung_pocusimaging • used at BRANCHING_WORKUPB-lines (pulmonary edema), pleural sliding (PTX), consolidation (pneumonia), pleural effusion — Lichtenstein BLUE protocol
- bedside_echoimaging • used at BRANCHING_WORKUPPOCUS — EF estimate, RV strain (PE), pericardial effusion (tamponade), IVC plethora (volume status)
12-phase flow (12)
- 1FRAMEED dyspnea triage — onset (sudden vs subacute), quality (air hunger / wheeze / orthopnea), severity (RR / WOB / SpO2), trigger (allergen / exertion / supine) (Welch JAMA 2005)inputs: dyspnea_onset_time, dyspnea_qualityadvance: dyspnea characterized + onset clock started
- 2ENTRYCapture cardinal cluster: orthopnea/PND (HF), pleuritic ± leg pain (PE), wheeze (asthma/COPD), fever+cough (CAP), sudden pleuritic (PTX), allergen exposure (anaphylaxis)inputs: orthopnea_pnd, cough_sputum, pleuritic_pain, leg_swelling_pain, exposure_trigger_allergenadvance: entry cluster captured
- 3CONTEXTAge, sex, HF / COPD / asthma / DM histories, smoking, VTE risk factors, allergies, anticoagulant, vital signs (Heidenreich 2022; GOLD 2026; GINA 2026; ESC 2019 PE)inputs: age, sex, sbp, hr, rr, spo2, temperature, hf_history, copd_asthma_history, smoking_status, vte_risk_factors, allergy_history, diabetes_status, anticoagulant_useadvance: context complete + life-threat screen run
- 4RED_FLAGSImpending respiratory failure (RR >30, accessory muscles, paradoxical, exhausted), tension PTX physiology, anaphylactic shock, massive PE with hypotension, cardiogenic shock, suspected ARDS (P/F <300)inputs: sbp, spo2, rradvance: no immediate life-threat OR routed to dedicated downstream engine / setting:icu
- 5INITIAL_WORKUP12-lead ECG, CXR portable, BNP / NT-proBNP, CBC, BMP, lactate, hs-troponin if cardiac concern, ABG/VBG if hypoxia or COPD exac (Maisel 2002; Heidenreich 2022; GOLD 2026)inputs: ecg_12_lead, cxr_portable, bnp_or_nt_probnp, cbc_with_diff, bmp_lactateactions: panel.cardiac, panel.coag, panel.renaladvance: first-line labs + imaging reviewed
- 6BRANCHING_WORKUPPivot on findings: BNP/NT-proBNP elevated + congestion → HF; Wells/PERC + D-dimer → CTPA → PE; wheeze + hx → asthma/COPD; infiltrate + fever → CAP; PTX sliding absent → pneumothorax; allergen + urticaria → anaphylaxis; AG elevated + ketones → DKA (Klok 2017; ESC 2019; ATS/IDSA 2019)inputs: d_dimer_age_adjusted, procalcitonin, troponin_hs, abg_or_vbg, ctpa_chest, bedside_lung_pocus, bedside_echoadvance: branching workup pivots to one of the downstream routes OR confirms low-risk
- 7DIFFERENTIALAcute HF (~25%) / COPD or asthma (~20%) / pneumonia (~10%) / PE (~5-7%) / pneumothorax (~1%) / anaphylaxis / anemia / metabolic acidosis (DKA / lactic) / pulmonary HTN / anxiety hyperventilation (~5-10%) — priors per Ray Eur Resp J 2006 PMID 16723034; Kelly NEJM 2005advance: differential ranked with pre-test priors documented
- 8RISK_STRATIFICATIONWells-PE / PERC / sPESI for PE pathway; HEART if cardiac chest discomfort overlay; Wells DVT if leg signs; CURB-65 / PSI for CAP severity if pneumonia route (Pollack 2016; Konstantinides 2019; Lim Thorax 2003)inputs: ageactions: calc.wells_pe, calc.perc, calc.spesi, calc.wells_dvt, calc.heartadvance: risk scores documented + band-mapped disposition determined
- 9TREATMENTSupportive at this layer: O2 to SpO2 ≥94% (88-92% in COPD per GOLD 2026); NIV / BiPAP for COPD hypercapnic exac or cardiogenic pulmonary edema; SABA + ipratropium for wheeze; IM epinephrine for anaphylaxis; loop diuretic for HF congestion; defer definitive Rx to downstream engineinputs: sbp, spo2advance: supportive Rx initiated; definitive treatment lives in downstream routed engine
- 10DISPOSITIONHF → cardio.acute-hf; PE → pulm.pe; COPD exac → pulm.copd; asthma exac → pulm.asthma; CAP per CURB-65 → pulm.cap; PTX → pulm.pneumothorax; anaphylaxis → allergy.anaphylaxis; ARDS → pulm.ards / ICU; DKA → endo.dka; pulm HTN → cardio.idiopathic-pulmonary-arterial-hypertension (Heidenreich 2022; ESC 2019; GOLD 2026; GINA 2026; ATS/IDSA 2019; ATS/CHEST 2010; WAO 2020; ADA 2026)advance: disposition assigned + downstream handoff complete
- 11MONITORINGContinuous SpO2 + RR + telemetry; serial ABG/VBG if NIV; serial BNP/NT-proBNP if HF axis; reassess WOB q15-30 min; capnography if NIV (GOLD 2026; Heidenreich 2022)inputs: spo2, rradvance: monitoring trend captured
- 12FOLLOWUPDischarge: PCP / specialty f/u 7 d; return precautions (worsening dyspnea, fever, chest pain, syncope, hemoptysis); inhaler technique; smoking cessation; vaccinate (flu, COVID, pneumococcal — ATS/IDSA 2019; 2025 ACIP)advance: discharge bundle prescribed + follow-up scheduled