← Back to the worklist · Whole encounter ENC-00135
Kenji Juniper: Heart failure
ENC-00135 · 67M · Hospital Medicine · admitted Mon Oct 26, 2026 11:42 AM · discharged Sun Nov 01, 2026 01:51 PM · attending Dr. Odette Galloway · resident Dr. Camila Oyelaran
Documented “diastolic heart failure” (I50.30); criteria support the more specific Acute diastolic (HFpEF) heart failure (I50.31).
Documented vs supported
- Documented
- “diastolic heart failure” · I50.30 Unspecified diastolic (congestive) heart failure
- Criteria support
- Acute diastolic (HFpEF) heart failure · I50.31 Acute diastolic (congestive) heart failure
- Outcome
- LVEF 65% with 3 acute indicators, no prior heart failure on file
- Rule
- Heart failure type (LVEF) and acuity v2026.11-1
- Published source
- Universal Definition and Classification of Heart Failure (HFSA/HFA/JHFS, 2021), as restated in Chandramouli et al., Clin Cardiol 2022 (2021), LVEF classification: HFrEF <=40%, HFmrEF 41-49%, HFpEF >=50%; HFimpEF = baseline <=40%, rise >=10 points, second LVEF >40% · source (checked 2026-11-14)
- Contested
- No guideline gives a numeric definition of "acute" versus "chronic" heart failure. This rule uses a LOCAL CONVENTION: at least two acute indicators (IV loop diuretic, elevated natriuretic peptide, new oxygen requirement) = acute; with a prior history of heart failure = acute on chronic; none with history = chronic; exactly one = clinical judgement.
Effect if the clinician agrees (illustrative)
- Change
- I50.30 -> I50.31
- Secondary-diagnosis level
- CC → MCC
- MS-DRG (illustrative)
- 689 Kidney and urinary tract infections with MCC → 689 Kidney and urinary tract infections with MCC
- Relative weight
- 1.1603 → 1.1603 (+0.0000)
- Codes before
- N39.0, E66.9, N28.9, I50.30, J96.01, E78.5, E11.9, K21.9
- Codes after
- N39.0, E66.9, N28.9, J96.01, E78.5, E11.9, K21.9, I50.31
All open gaps on this encounter together: MS-DRG 689 → 689 (RW +0.0000). The grouping does not change; the record becomes accurate.
CC/MCC status, CC exclusions (subset) and relative weights from the public CMS FY2026 IPPS final rule tables (5, 6I, 6J, 6K). This is not a grouper and not a payment estimate. Queries never mention any of this.
Severity documentation index change SIMULATED
0.5 points
SIMULATED: Illustrative severity weights (MCC = 1.0, CC = 0.5, non-CC = 0) summed over secondary diagnoses; not a validated risk-adjustment model and not a measured effect.
Evidence
Structured values are read by code from the cited rows. Note facts are shown only when the model's quote was found verbatim in the note.
| Input | Value | Source |
|---|---|---|
| Latest LVEF within 12 months (%) | 65.0 |
echo LVEF 65%
|
| IV loop diuretic given this stay | True |
furosemide 40 mg IV
furosemide 40 mg IV
furosemide 40 mg IV
furosemide 40 mg IV
|
| Highest BNP this stay (pg/mL) | 1111.0 |
BNP 1111 pg/mL
|
| Supplemental oxygen started this stay without home oxygen supplemental oxygen started this stay without home oxygen on file |
True |
O2 5 L/min (nasal cannula)
|
Rule trace (inputs, thresholds, outcome)
| Step | Expression | Inputs and thresholds read | Result |
|---|---|---|---|
| derived: np_elevated | coalesce(bnp_max >= t.bnp, false) or coalesce(ntprobnp_max >= t.ntprobnp, false) |
bnp_max=1111.0, ntprobnp_max=unknown, t.bnp=100, t.ntprobnp=300 | true |
| derived: acute_count | count(iv_loop_diuretic, np_elevated, new_o2) |
iv_loop_diuretic=True, new_o2=True, np_elevated=True | 3 |
| derived: hf_type | case(lvef <= t.ref, 'systolic', lvef >= t.pres, 'diastolic', 'midrange') |
lvef=65.0, t.pres=50, t.ref=40 | diastolic |
| derived: improved | coalesce(lvef_prior_min <= t.ref and lvef > t.ref and lvef - lvef_prior_min >= t.improved_rise, false) |
lvef=65.0, lvef_prior_min=unknown, t.improved_rise=10, t.ref=40 | false |
| derived: acuity | case(acute_count >= 2 and hf_history, 'acute on chronic', acute_count >= 2, 'acute', acute_count == 0 and hf_history, 'chronic', null) |
acute_count=3, hf_history=False | acute |
| outcome: improved_ef | improved |
improved=False | false |
| outcome: midrange | hf_type == 'midrange' |
hf_type=diastolic | false |
| outcome: sys_aoc | hf_type == 'systolic' and acuity == 'acute on chronic' |
acuity=acute, hf_type=diastolic | false |
| outcome: sys_acute | hf_type == 'systolic' and acuity == 'acute' |
acuity=acute, hf_type=diastolic | false |
| outcome: sys_chronic | hf_type == 'systolic' and acuity == 'chronic' |
acuity=acute, hf_type=diastolic | false |
| outcome: dia_aoc | hf_type == 'diastolic' and acuity == 'acute on chronic' |
acuity=acute, hf_type=diastolic | false |
| outcome: dia_acute | hf_type == 'diastolic' and acuity == 'acute' |
acuity=acute, hf_type=diastolic | true |
Documentation query
Title and question drafted by model clockworks-mock (audit entry #2230); clinical indicators and answer options assembled by code from the rule and the record.
Sign in to act. Sign in as a demo user (a CDI specialist sends queries).
DOCUMENTATION QUERY (draft) Title: Clarification request: cardiac documentation Encounter: ENC-00135 Patient: Kenji Juniper To: Dr. Odette Galloway Clinical indicators from the health record: - Documented in the record: "diastolic heart failure" [Progress note DOC-000458] - echo LVEF 65% (2026-10-27 04:42) [echo ECH-000063] - furosemide 40 mg IV (2026-10-26 20:00) [med MED-000529] - furosemide 40 mg IV (2026-10-27 08:00) [med MED-000530] - furosemide 40 mg IV (2026-10-27 20:00) [med MED-000531] - furosemide 40 mg IV (2026-10-28 08:00) [med MED-000532] - BNP 1111 pg/mL (2026-10-26 12:42) [lab LAB-004610] - O2 5 L/min (nasal cannula) (2026-10-26 12:12) [vital VIT-013213] Question: Based on your clinical judgement and the indicators above, can the type and acuity of the heart failure being treated be further specified? Response options (select one or write your own): ( ) Acute diastolic heart failure (HFpEF) ( ) Acute on chronic diastolic heart failure (HFpEF) ( ) Other (please specify): ____________ ( ) Unable to determine Please respond based on your independent clinical judgement. Any response, including "unable to determine", is acceptable. This query and your response are kept as part of the health record.
Other findings on this encounter
- Acute kidney injury · Clinical judgement required Clinical judgement required: AKI criteria met only against a presumed baseline (no pre-admission creatinine on file).
- Obesity · Specificity gap Documented “obesity” (E66.9); criteria support the more specific Obesity, class 1 (E66.811).
History
| Seq | When (UTC) | Actor | Action | Entities | Decision / reason | Model / hashes |
|---|---|---|---|---|---|---|
| 2230 | 2026-11-14T20:57:25 | system:llm system |
llm.call |
ENC-00135, ENC-00135.heart_failure | — | clockworks-mock mock-1/exactdx.draft_query@1 prompt 97eeabcf72dd output 752ce96b1cd3 entry 681f30a16dce |
| 1404 | 2026-11-14T19:24:31 | system:llm system |
llm.call |
ENC-00135, ENC-00135.heart_failure | — | clockworks-mock mock-1/exactdx.draft_query@1 prompt 97eeabcf72dd output 752ce96b1cd3 entry 265b67f37e16 |
| 662 | 2026-11-14T18:29:06 | system:llm system |
llm.call |
ENC-00135, ENC-00135.heart_failure | — | clockworks-mock mock-1/exactdx.draft_query@1 prompt 97eeabcf72dd output 752ce96b1cd3 entry 32a916cf9792 |