Skip to main content
Exact Dx synthetic data · demonstration

← All runs · Open P16

Replay RUN-00016

Live recomputation (nothing written): identical hash

Stored replay hash
8a72ad4b8c268c971aeb3fac1fe8446daac0a123ef772121d06b5aa7e4784180
Recomputed replay hash
8a72ad4b8c268c971aeb3fac1fe8446daac0a123ef772121d06b5aa7e4784180
Stored output sha256
266a135e9e8a3aaa35900db561b5e3570899446d0f48bbf46e185bb3a2f64fb0
Recomputed output sha256
266a135e9e8a3aaa35900db561b5e3570899446d0f48bbf46e185bb3a2f64fb0
Inputs intact
yes
Engine
kidney-engine 2.0
Trigger
seed · Fri Nov 13, 2026 04:55 PM · audit entry #1601
Rule versions used (bodies stored at first use; replay never reads today's files)
RuleVersionBody sha256Source
ckd_epi_20091.0fee2ce2be035c1b6…Levey et al., Ann Intern Med 2009;150:604-12 (2009 eGFR equation, drift check)
ckd_epi_20211.02bc35edbf2f801a1…Inker et al., N Engl J Med 2021;385:1737-49 (2021 race-free eGFR equation)
kdigo_aki_20121.16927ab44b3d40429…KDIGO 2012 guideline, Kidney Int Suppl 2012;2:1-138 (Rec 2.1.1-2.1.2, Table 2)
kdigo_ckd_20241.11a5087a17cd1b339…KDIGO 2024 guideline, Kidney Int 2024;105(4S):S117-S314 (G/A categories, >3 months)
kidney_compare1.123fd394b4f02789e…Two-sided comparison (this tool); ICD-10-CM guideline I.A.19; ACDIS/AHIMA compliant query practice, 2026 update
kidney_exclusions1.098e08ca8b6f5a7f7…KDIGO 2024 guideline, limitations of creatinine-based eGFR (muscle mass, pregnancy, kidney replacement); local list
kidney_staff1.0fb90888ec6577619…ICD-10-CM FY2026 guidelines I.A.15, I.C.9.a.2; CMS FY2026 Tables 6I/6J (staff view only)
lab_units1.1a53d26a712b0777f…KDIGO 2012 and 2024 guidelines, unit conversion (creatinine 1 mg/dL = 88.4 umol/L; ACR 1 mg/mmol = 8.84 mg/g)

Replay history

Stored inputs (exactly what the rules read)
{
  "conditions": [],
  "encounter": {
    "admit_dt": "2026-11-11T09:00:00-05:00",
    "discharge_dt": null,
    "encounter_id": "KE-P16",
    "setting": "inpatient"
  },
  "labs": [
    {
      "collected_dt": "2026-04-25T09:00:00-04:00",
      "lab_id": "L-0035",
      "loinc": "2160-0",
      "unit": "mg/dL",
      "value": 1.75
    },
    {
      "collected_dt": "2026-08-03T09:00:00-04:00",
      "lab_id": "L-0036",
      "loinc": "2160-0",
      "unit": "mg/dL",
      "value": 1.8
    },
    {
      "collected_dt": "2026-11-11T10:00:00-05:00",
      "lab_id": "L-0037",
      "loinc": "2160-0",
      "unit": "mg/dL",
      "value": 1.8
    },
    {
      "collected_dt": "2026-11-12T07:00:00-05:00",
      "lab_id": "L-0038",
      "loinc": "2160-0",
      "unit": "mg/dL",
      "value": 3.9
    }
  ],
  "note_reading": {
    "aki": {
      "faults": [],
      "spans": [],
      "status": "silent"
    },
    "kidney": {
      "faults": [],
      "spans": [
        {
          "assertion": "affirmed",
          "end": 219,
          "kind": "chronic",
          "origin": "both",
          "stage": "3b",
          "start": 213
        }
      ],
      "status": "stated"
    },
    "lexicon": "kidney-lexicon 1.0",
    "model_status": "ok",
    "reader": "lexicon+model"
  },
  "patient": {
    "birth_date": "1952-11-16",
    "patient_id": "P16",
    "sex": "M"
  },
  "statements": [
    {
      "dx_id": "KD-KN-P16-1-S01",
      "icd10": "N18.32",
      "note_id": "KN-P16-1",
      "quoted_text": "CKD 3b",
      "source": "note_extraction",
      "span_end": 219,
      "span_start": 213
    }
  ]
}
Stored output
{
  "aki": {
    "abs_rise": [
      {
        "from": "L-0037",
        "hours": 21.0,
        "rise": 2.1,
        "to": "L-0038"
      }
    ],
    "admission": {
      "collected_dt": "2026-11-11T10:00:00-05:00",
      "lab_id": "L-0037",
      "loinc": "2160-0",
      "unit": "mg/dL",
      "value": 1.8
    },
    "assessable": true,
    "assessed": true,
    "baselines": {
      "back_calculated": {
        "available": true,
        "detail": "eGFR 75 at age 73, sex M",
        "lab_ids": [],
        "label": "Back-calculated from eGFR 75 (2021 equation, age and sex at admission)",
        "value": 1.049
      },
      "last_outpatient": {
        "available": true,
        "lab_ids": [
          "L-0036"
        ],
        "label": "Most recent outpatient value 7-365 days before admission",
        "value": 1.8
      },
      "lowest_365": {
        "available": true,
        "lab_ids": [
          "L-0035"
        ],
        "label": "Lowest value in the 365 days before admission",
        "value": 1.75
      },
      "median_365": {
        "available": true,
        "lab_ids": [
          "L-0035",
          "L-0036"
        ],
        "label": "Median of values in the 365 days before admission",
        "value": 1.775
      }
    },
    "clinician_text": "Creatinine 1.8 mg/dL at admission (lab row L-0037), peak 3.9 mg/dL (lab row L-0038). KDIGO creatinine criterion met: criteria met under 1 of 4 baselines at admission; 4 of 4 at peak. Urine-output criterion not evaluated (no structured source). Note: no statement about an acute kidney change found.",
    "criteria": [
      {
        "criterion_key": "no_exclusion_on_record",
        "detail": "none on record for this encounter date",
        "inputs": {
          "condition_ids": [],
          "dates": [],
          "lab_ids": [],
          "values": []
        },
        "label": "No condition on record that makes the creatinine-change criteria unreliable (maintenance dialysis, kidney transplant, pregnancy)",
        "passed": true,
        "rule_id": "kidney_exclusions"
      },
      {
        "criterion_key": "pre_admission_baseline_available",
        "detail": "available",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0035",
            "L-0036"
          ],
          "values": []
        },
        "label": "A creatinine value before admission is available (needed before a statement can be called not supported)",
        "passed": true,
        "rule_id": "kdigo_aki_2012"
      },
      {
        "criterion_key": "abs_rise_0_3_in_48h",
        "detail": "L-0037 -> L-0038: +2.1 mg/dL in 21.0 h",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0037",
            "L-0038"
          ],
          "values": [
            2.1
          ]
        },
        "label": "Creatinine rise >= 0.3 mg/dL within 48 hours",
        "passed": true,
        "rule_id": "kdigo_aki_2012"
      },
      {
        "criterion_key": "ratio_ge_1_5x_lowest_365",
        "detail": "baseline 1.75 mg/dL; admission stage 0, peak stage 2",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0035",
            "L-0037",
            "L-0038"
          ],
          "values": [
            1.75,
            1.8,
            3.9
          ]
        },
        "label": "Creatinine >= 1.5x baseline (lowest value in the 365 days before admission)",
        "passed": true,
        "rule_id": "kdigo_aki_2012"
      },
      {
        "criterion_key": "ratio_ge_1_5x_last_outpatient",
        "detail": "baseline 1.8 mg/dL; admission stage 0, peak stage 2",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0036",
            "L-0037",
            "L-0038"
          ],
          "values": [
            1.8,
            1.8,
            3.9
          ]
        },
        "label": "Creatinine >= 1.5x baseline (most recent outpatient value 7-365 days before admission)",
        "passed": true,
        "rule_id": "kdigo_aki_2012"
      },
      {
        "criterion_key": "ratio_ge_1_5x_median_365",
        "detail": "baseline 1.775 mg/dL; admission stage 0, peak stage 2",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0035",
            "L-0036",
            "L-0037",
            "L-0038"
          ],
          "values": [
            1.775,
            1.8,
            3.9
          ]
        },
        "label": "Creatinine >= 1.5x baseline (median of values in the 365 days before admission)",
        "passed": true,
        "rule_id": "kdigo_aki_2012"
      },
      {
        "criterion_key": "ratio_ge_1_5x_back_calculated",
        "detail": "baseline 1.049 mg/dL; admission stage 1, peak stage 3 (never used alone)",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0037",
            "L-0038"
          ],
          "values": [
            1.049,
            1.8,
            3.9
          ]
        },
        "label": "Creatinine >= 1.5x baseline (back-calculated from egfr 75 (2021 equation, age and sex at admission))",
        "passed": true,
        "rule_id": "kdigo_aki_2012"
      },
      {
        "criterion_key": "reverse_ge_1_5x_later_nadir",
        "detail": "L-0037 1.8 mg/dL vs L-0038 3.9 mg/dL: 0.46x",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0037",
            "L-0038"
          ],
          "values": [
            1.8,
            3.9
          ]
        },
        "label": "Reverse comparison: admission or peak creatinine >= 1.5x the lowest value in the following 7 days",
        "passed": false,
        "rule_id": "kdigo_aki_2012"
      }
    ],
    "direction": "UNDER",
    "episode_lab_ids": [
      "L-0037",
      "L-0038"
    ],
    "exclusions": [],
    "k_admission": 1,
    "k_peak": 4,
    "n_baselines": 4,
    "note_spans": 0,
    "note_status": "silent",
    "peak": {
      "collected_dt": "2026-11-12T07:00:00-05:00",
      "lab_id": "L-0038",
      "loinc": "2160-0",
      "unit": "mg/dL",
      "value": 3.9
    },
    "per_baseline": {
      "back_calculated": {
        "admission": {
          "met": true,
          "ratio": 1.72,
          "stage": 1
        },
        "peak": {
          "lab_id": "L-0038",
          "met": true,
          "ratio": 3.72,
          "stage": 3
        }
      },
      "last_outpatient": {
        "admission": {
          "met": false,
          "ratio": 1.0,
          "stage": 0
        },
        "peak": {
          "lab_id": "L-0038",
          "met": true,
          "ratio": 2.17,
          "stage": 2
        }
      },
      "lowest_365": {
        "admission": {
          "met": false,
          "ratio": 1.03,
          "stage": 0
        },
        "peak": {
          "lab_id": "L-0038",
          "met": true,
          "ratio": 2.23,
          "stage": 2
        }
      },
      "median_365": {
        "admission": {
          "met": false,
          "ratio": 1.01,
          "stage": 0
        },
        "peak": {
          "lab_id": "L-0038",
          "met": true,
          "ratio": 2.2,
          "stage": 2
        }
      }
    },
    "pre_admission_baseline": true,
    "reason": "",
    "reason_code": null,
    "reverse": {
      "days": 7,
      "from": "L-0037",
      "from_value": 1.8,
      "met": false,
      "ratio": 0.46,
      "to": "L-0038",
      "to_value": 3.9
    },
    "robustness": "criteria met under 1 of 4 baselines at admission; 4 of 4 at peak",
    "statement": null
  },
  "cdis": {
    "computed_code": "N18.32",
    "documented_code": "N18.32",
    "ladder": [
      {
        "code": "N18.9",
        "computed": false,
        "documented": false,
        "label": "Chronic kidney disease, unspecified",
        "level": "non-CC"
      },
      {
        "code": "N18.30",
        "computed": false,
        "documented": false,
        "label": "Chronic kidney disease, stage 3 unspecified",
        "level": "non-CC"
      },
      {
        "code": "N18.31",
        "computed": false,
        "documented": false,
        "label": "Chronic kidney disease, stage 3a",
        "level": "non-CC"
      },
      {
        "code": "N18.32",
        "computed": true,
        "documented": true,
        "label": "Chronic kidney disease, stage 3b",
        "level": "non-CC"
      },
      {
        "code": "N18.4",
        "computed": false,
        "documented": false,
        "label": "Chronic kidney disease, stage 4 (severe)",
        "level": "CC"
      },
      {
        "code": "N18.5",
        "computed": false,
        "documented": false,
        "label": "Chronic kidney disease, stage 5",
        "level": "CC"
      },
      {
        "code": "N18.6",
        "computed": false,
        "documented": false,
        "label": "End stage renal disease",
        "level": "MCC"
      }
    ],
    "linkage": []
  },
  "engine": "kidney-engine 2.0",
  "findings": [
    {
      "cdis_text": "CONSISTENT: documented N18.32; computed G3b -> N18.32 (2021 equation); criteria met under 2 of 2 eGFR equations (2021 race-free, 2009).",
      "clinician_text": "eGFR 39.3 on 2026-08-03 (lab row L-0036) and eGFR 40.6 on 2026-04-25 (lab row L-0035), 100 days apart, no value >= 60 between. KDIGO persistence: met. Persistent GFR category G3b (the range both values meet). Note: the kidney-function statement (quoted below) agrees with the persistent GFR category.",
      "direction": "CONSISTENT",
      "family": "kidney",
      "robustness": "criteria met under 2 of 2 eGFR equations (2021 race-free, 2009)"
    },
    {
      "cdis_text": "UNDER: nothing documented; N17.9 ladder applies only if the clinician documents it; criteria met under 1 of 4 baselines at admission; 4 of 4 at peak.",
      "clinician_text": "Creatinine 1.8 mg/dL at admission (lab row L-0037), peak 3.9 mg/dL (lab row L-0038). KDIGO creatinine criterion met: criteria met under 1 of 4 baselines at admission; 4 of 4 at peak. Urine-output criterion not evaluated (no structured source). Note: no statement about an acute kidney change found.",
      "direction": "UNDER",
      "family": "aki",
      "robustness": "criteria met under 1 of 4 baselines at admission; 4 of 4 at peak"
    }
  ],
  "kidney": {
    "acr": [],
    "acute_change": {
      "flag": false,
      "latest": "L-0036",
      "latest_value": 1.8,
      "lookback_days": 365,
      "lowest": "L-0035",
      "lowest_value": 1.75,
      "ratio": 1.03
    },
    "albuminuria": {
      "days_apart": null,
      "latest": null,
      "met": false,
      "pair": null,
      "pair_values": null,
      "persistent_value": null,
      "reason": "no qualifying value"
    },
    "by_equation": {
      "2009": {
        "direction": "CONSISTENT",
        "direction_why": "",
        "latest": {
          "confirmed": true,
          "date": "2026-08-03",
          "g": "G3b",
          "lab_id": "L-0036",
          "value": 36.5
        },
        "met": true,
        "persistence": {
          "days_apart": 100,
          "latest": "L-0036",
          "latest_value": 36.5,
          "met": true,
          "pair": [
            "L-0035",
            "L-0036"
          ],
          "pair_dates": [
            "2026-04-25",
            "2026-08-03"
          ],
          "pair_values": [
            37.8,
            36.5
          ],
          "persistent_value": 37.8,
          "reason": "met"
        },
        "reason": "two values below 60 at least 90 days apart, none of 60 or more between",
        "reason_code": "met",
        "route": "egfr",
        "stage": "G3b",
        "status": "met"
      },
      "2021": {
        "direction": "CONSISTENT",
        "direction_why": "",
        "latest": {
          "confirmed": true,
          "date": "2026-08-03",
          "g": "G3b",
          "lab_id": "L-0036",
          "value": 39.3
        },
        "met": true,
        "persistence": {
          "days_apart": 100,
          "latest": "L-0036",
          "latest_value": 39.3,
          "met": true,
          "pair": [
            "L-0035",
            "L-0036"
          ],
          "pair_dates": [
            "2026-04-25",
            "2026-08-03"
          ],
          "pair_values": [
            40.6,
            39.3
          ],
          "persistent_value": 40.6,
          "reason": "met"
        },
        "reason": "two values below 60 at least 90 days apart, none of 60 or more between",
        "reason_code": "met",
        "route": "egfr",
        "stage": "G3b",
        "status": "met"
      }
    },
    "clinician_text": "eGFR 39.3 on 2026-08-03 (lab row L-0036) and eGFR 40.6 on 2026-04-25 (lab row L-0035), 100 days apart, no value >= 60 between. KDIGO persistence: met. Persistent GFR category G3b (the range both values meet). Note: the kidney-function statement (quoted below) agrees with the persistent GFR category.",
    "criteria": [
      {
        "criterion_key": "no_exclusion_on_record",
        "detail": "none on record for this encounter date",
        "inputs": {
          "condition_ids": [],
          "dates": [],
          "lab_ids": [],
          "values": []
        },
        "label": "No condition on record that makes the estimating equation unreliable (maintenance dialysis, kidney transplant, pregnancy, limb amputation or another extreme of muscle mass)",
        "passed": true,
        "rule_id": "kidney_exclusions"
      },
      {
        "criterion_key": "persistence_egfr_lt60_ge90d_ckd_epi_2021",
        "detail": "pair L-0035 (40.6, 2026-04-25) and L-0036 (39.3, 2026-08-03), 100 days apart; persistent category G3b (the range both values meet)",
        "inputs": {
          "dates": [
            "2026-04-25",
            "2026-08-03"
          ],
          "lab_ids": [
            "L-0035",
            "L-0036"
          ],
          "values": [
            40.6,
            39.3
          ]
        },
        "label": "Two eGFR < 60 at least 90 days apart, none >= 60 between (2021 eGFR equation)",
        "passed": true,
        "rule_id": "kdigo_ckd_2024"
      },
      {
        "criterion_key": "persistence_egfr_lt60_ge90d_ckd_epi_2009",
        "detail": "pair L-0035 (37.8, 2026-04-25) and L-0036 (36.5, 2026-08-03), 100 days apart; persistent category G3b (the range both values meet)",
        "inputs": {
          "dates": [
            "2026-04-25",
            "2026-08-03"
          ],
          "lab_ids": [
            "L-0035",
            "L-0036"
          ],
          "values": [
            37.8,
            36.5
          ]
        },
        "label": "Two eGFR < 60 at least 90 days apart, none >= 60 between (2009 eGFR equation)",
        "passed": true,
        "rule_id": "kdigo_ckd_2024"
      },
      {
        "criterion_key": "albuminuria_a2_a3_persistent",
        "detail": "no urine ACR on file",
        "inputs": {
          "dates": [],
          "lab_ids": [],
          "values": []
        },
        "label": "Urine ACR >= 30 mg/g on two values at least 90 days apart (needed only when eGFR >= 60)",
        "passed": false,
        "rule_id": "kdigo_ckd_2024"
      },
      {
        "criterion_key": "steady_state_values",
        "detail": "excluded L-0037, L-0038",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0037",
            "L-0038"
          ],
          "values": []
        },
        "label": "Values used are steady-state (local convention: values from an admission meeting the creatinine-change criteria are excluded)",
        "passed": true,
        "rule_id": "kdigo_ckd_2024"
      },
      {
        "criterion_key": "latest_lt_1_5x_prior_lowest",
        "detail": "1.8 / 1.75 = 1.03x",
        "inputs": {
          "dates": [],
          "lab_ids": [
            "L-0035",
            "L-0036"
          ],
          "values": [
            1.75,
            1.8
          ]
        },
        "label": "Latest creatinine below 1.5x the lowest value in the previous 365 days (otherwise: possible acute change; repeat needed)",
        "passed": true,
        "rule_id": "kdigo_ckd_2024"
      }
    ],
    "direction": "CONSISTENT",
    "direction_why": "",
    "drift": false,
    "egfr": [
      {
        "age": 73,
        "collected_dt": "2026-04-25T09:00:00-04:00",
        "date": "2026-04-25",
        "egfr_2009": 37.8,
        "egfr_2021": 40.6,
        "excluded": null,
        "g_2009": "G3b",
        "g_2021": "G3b",
        "lab_id": "L-0035",
        "scr": 1.75
      },
      {
        "age": 73,
        "collected_dt": "2026-08-03T09:00:00-04:00",
        "date": "2026-08-03",
        "egfr_2009": 36.5,
        "egfr_2021": 39.3,
        "excluded": null,
        "g_2009": "G3b",
        "g_2021": "G3b",
        "lab_id": "L-0036",
        "scr": 1.8
      },
      {
        "age": 73,
        "collected_dt": "2026-11-11T10:00:00-05:00",
        "date": "2026-11-11",
        "egfr_2009": 36.5,
        "egfr_2021": 39.3,
        "excluded": "collected during an admission in which the creatinine-change criteria are met (not steady state)",
        "g_2009": "G3b",
        "g_2021": "G3b",
        "lab_id": "L-0037",
        "scr": 1.8
      },
      {
        "age": 73,
        "collected_dt": "2026-11-12T07:00:00-05:00",
        "date": "2026-11-12",
        "egfr_2009": 14.3,
        "egfr_2021": 15.5,
        "excluded": "collected during an admission in which the creatinine-change criteria are met (not steady state)",
        "g_2009": "G5",
        "g_2021": "G4",
        "lab_id": "L-0038",
        "scr": 3.9
      }
    ],
    "exclusions": [],
    "note_spans": 1,
    "note_status": "stated",
    "reason": "two values below 60 at least 90 days apart, none of 60 or more between",
    "robustness": "criteria met under 2 of 2 eGFR equations (2021 race-free, 2009)",
    "stated_stage": "G3b",
    "statement": {
      "dx_id": "KD-KN-P16-1-S01",
      "icd10": "N18.32",
      "note_id": "KN-P16-1",
      "quoted_text": "CKD 3b",
      "source": "note_extraction",
      "span_end": 219,
      "span_start": 213
    },
    "status": "met"
  },
  "measurement": {
    "aki": {
      "abs_rise": [
        {
          "from": "L-0037",
          "hours": 21.0,
          "rise": 2.1,
          "to": "L-0038"
        }
      ],
      "admission": {
        "collected_dt": "2026-11-11T10:00:00-05:00",
        "lab_id": "L-0037",
        "loinc": "2160-0",
        "unit": "mg/dL",
        "value": 1.8
      },
      "assessable": true,
      "assessed": true,
      "baselines": {
        "back_calculated": {
          "available": true,
          "detail": "eGFR 75 at age 73, sex M",
          "lab_ids": [],
          "label": "Back-calculated from eGFR 75 (2021 equation, age and sex at admission)",
          "value": 1.049
        },
        "last_outpatient": {
          "available": true,
          "lab_ids": [
            "L-0036"
          ],
          "label": "Most recent outpatient value 7-365 days before admission",
          "value": 1.8
        },
        "lowest_365": {
          "available": true,
          "lab_ids": [
            "L-0035"
          ],
          "label": "Lowest value in the 365 days before admission",
          "value": 1.75
        },
        "median_365": {
          "available": true,
          "lab_ids": [
            "L-0035",
            "L-0036"
          ],
          "label": "Median of values in the 365 days before admission",
          "value": 1.775
        }
      },
      "criteria": [
        {
          "criterion_key": "no_exclusion_on_record",
          "detail": "none on record for this encounter date",
          "inputs": {
            "condition_ids": [],
            "dates": [],
            "lab_ids": [],
            "values": []
          },
          "label": "No condition on record that makes the creatinine-change criteria unreliable (maintenance dialysis, kidney transplant, pregnancy)",
          "passed": true,
          "rule_id": "kidney_exclusions"
        },
        {
          "criterion_key": "pre_admission_baseline_available",
          "detail": "available",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0035",
              "L-0036"
            ],
            "values": []
          },
          "label": "A creatinine value before admission is available (needed before a statement can be called not supported)",
          "passed": true,
          "rule_id": "kdigo_aki_2012"
        },
        {
          "criterion_key": "abs_rise_0_3_in_48h",
          "detail": "L-0037 -> L-0038: +2.1 mg/dL in 21.0 h",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0037",
              "L-0038"
            ],
            "values": [
              2.1
            ]
          },
          "label": "Creatinine rise >= 0.3 mg/dL within 48 hours",
          "passed": true,
          "rule_id": "kdigo_aki_2012"
        },
        {
          "criterion_key": "ratio_ge_1_5x_lowest_365",
          "detail": "baseline 1.75 mg/dL; admission stage 0, peak stage 2",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0035",
              "L-0037",
              "L-0038"
            ],
            "values": [
              1.75,
              1.8,
              3.9
            ]
          },
          "label": "Creatinine >= 1.5x baseline (lowest value in the 365 days before admission)",
          "passed": true,
          "rule_id": "kdigo_aki_2012"
        },
        {
          "criterion_key": "ratio_ge_1_5x_last_outpatient",
          "detail": "baseline 1.8 mg/dL; admission stage 0, peak stage 2",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0036",
              "L-0037",
              "L-0038"
            ],
            "values": [
              1.8,
              1.8,
              3.9
            ]
          },
          "label": "Creatinine >= 1.5x baseline (most recent outpatient value 7-365 days before admission)",
          "passed": true,
          "rule_id": "kdigo_aki_2012"
        },
        {
          "criterion_key": "ratio_ge_1_5x_median_365",
          "detail": "baseline 1.775 mg/dL; admission stage 0, peak stage 2",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0035",
              "L-0036",
              "L-0037",
              "L-0038"
            ],
            "values": [
              1.775,
              1.8,
              3.9
            ]
          },
          "label": "Creatinine >= 1.5x baseline (median of values in the 365 days before admission)",
          "passed": true,
          "rule_id": "kdigo_aki_2012"
        },
        {
          "criterion_key": "ratio_ge_1_5x_back_calculated",
          "detail": "baseline 1.049 mg/dL; admission stage 1, peak stage 3 (never used alone)",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0037",
              "L-0038"
            ],
            "values": [
              1.049,
              1.8,
              3.9
            ]
          },
          "label": "Creatinine >= 1.5x baseline (back-calculated from egfr 75 (2021 equation, age and sex at admission))",
          "passed": true,
          "rule_id": "kdigo_aki_2012"
        },
        {
          "criterion_key": "reverse_ge_1_5x_later_nadir",
          "detail": "L-0037 1.8 mg/dL vs L-0038 3.9 mg/dL: 0.46x",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0037",
              "L-0038"
            ],
            "values": [
              1.8,
              3.9
            ]
          },
          "label": "Reverse comparison: admission or peak creatinine >= 1.5x the lowest value in the following 7 days",
          "passed": false,
          "rule_id": "kdigo_aki_2012"
        }
      ],
      "episode_lab_ids": [
        "L-0037",
        "L-0038"
      ],
      "exclusions": [],
      "k_admission": 1,
      "k_peak": 4,
      "n_baselines": 4,
      "peak": {
        "collected_dt": "2026-11-12T07:00:00-05:00",
        "lab_id": "L-0038",
        "loinc": "2160-0",
        "unit": "mg/dL",
        "value": 3.9
      },
      "per_baseline": {
        "back_calculated": {
          "admission": {
            "met": true,
            "ratio": 1.72,
            "stage": 1
          },
          "peak": {
            "lab_id": "L-0038",
            "met": true,
            "ratio": 3.72,
            "stage": 3
          }
        },
        "last_outpatient": {
          "admission": {
            "met": false,
            "ratio": 1.0,
            "stage": 0
          },
          "peak": {
            "lab_id": "L-0038",
            "met": true,
            "ratio": 2.17,
            "stage": 2
          }
        },
        "lowest_365": {
          "admission": {
            "met": false,
            "ratio": 1.03,
            "stage": 0
          },
          "peak": {
            "lab_id": "L-0038",
            "met": true,
            "ratio": 2.23,
            "stage": 2
          }
        },
        "median_365": {
          "admission": {
            "met": false,
            "ratio": 1.01,
            "stage": 0
          },
          "peak": {
            "lab_id": "L-0038",
            "met": true,
            "ratio": 2.2,
            "stage": 2
          }
        }
      },
      "pre_admission_baseline": true,
      "reason": "",
      "reason_code": null,
      "reverse": {
        "days": 7,
        "from": "L-0037",
        "from_value": 1.8,
        "met": false,
        "ratio": 0.46,
        "to": "L-0038",
        "to_value": 3.9
      },
      "robustness": "criteria met under 1 of 4 baselines at admission; 4 of 4 at peak",
      "text": "Creatinine 1.8 mg/dL at admission (lab row L-0037), peak 3.9 mg/dL (lab row L-0038). KDIGO creatinine criterion met: criteria met under 1 of 4 baselines at admission; 4 of 4 at peak. Urine-output criterion not evaluated (no structured source)."
    },
    "data_notes": [],
    "engine": "kidney-engine 2.0",
    "kidney": {
      "acr": [],
      "acute_change": {
        "flag": false,
        "latest": "L-0036",
        "latest_value": 1.8,
        "lookback_days": 365,
        "lowest": "L-0035",
        "lowest_value": 1.75,
        "ratio": 1.03
      },
      "albuminuria": {
        "days_apart": null,
        "latest": null,
        "met": false,
        "pair": null,
        "pair_values": null,
        "persistent_value": null,
        "reason": "no qualifying value"
      },
      "by_equation": {
        "2009": {
          "latest": {
            "confirmed": true,
            "date": "2026-08-03",
            "g": "G3b",
            "lab_id": "L-0036",
            "value": 36.5
          },
          "met": true,
          "persistence": {
            "days_apart": 100,
            "latest": "L-0036",
            "latest_value": 36.5,
            "met": true,
            "pair": [
              "L-0035",
              "L-0036"
            ],
            "pair_dates": [
              "2026-04-25",
              "2026-08-03"
            ],
            "pair_values": [
              37.8,
              36.5
            ],
            "persistent_value": 37.8,
            "reason": "met"
          },
          "reason": "two values below 60 at least 90 days apart, none of 60 or more between",
          "reason_code": "met",
          "route": "egfr",
          "stage": "G3b",
          "status": "met"
        },
        "2021": {
          "latest": {
            "confirmed": true,
            "date": "2026-08-03",
            "g": "G3b",
            "lab_id": "L-0036",
            "value": 39.3
          },
          "met": true,
          "persistence": {
            "days_apart": 100,
            "latest": "L-0036",
            "latest_value": 39.3,
            "met": true,
            "pair": [
              "L-0035",
              "L-0036"
            ],
            "pair_dates": [
              "2026-04-25",
              "2026-08-03"
            ],
            "pair_values": [
              40.6,
              39.3
            ],
            "persistent_value": 40.6,
            "reason": "met"
          },
          "reason": "two values below 60 at least 90 days apart, none of 60 or more between",
          "reason_code": "met",
          "route": "egfr",
          "stage": "G3b",
          "status": "met"
        }
      },
      "criteria": [
        {
          "criterion_key": "no_exclusion_on_record",
          "detail": "none on record for this encounter date",
          "inputs": {
            "condition_ids": [],
            "dates": [],
            "lab_ids": [],
            "values": []
          },
          "label": "No condition on record that makes the estimating equation unreliable (maintenance dialysis, kidney transplant, pregnancy, limb amputation or another extreme of muscle mass)",
          "passed": true,
          "rule_id": "kidney_exclusions"
        },
        {
          "criterion_key": "persistence_egfr_lt60_ge90d_ckd_epi_2021",
          "detail": "pair L-0035 (40.6, 2026-04-25) and L-0036 (39.3, 2026-08-03), 100 days apart; persistent category G3b (the range both values meet)",
          "inputs": {
            "dates": [
              "2026-04-25",
              "2026-08-03"
            ],
            "lab_ids": [
              "L-0035",
              "L-0036"
            ],
            "values": [
              40.6,
              39.3
            ]
          },
          "label": "Two eGFR < 60 at least 90 days apart, none >= 60 between (2021 eGFR equation)",
          "passed": true,
          "rule_id": "kdigo_ckd_2024"
        },
        {
          "criterion_key": "persistence_egfr_lt60_ge90d_ckd_epi_2009",
          "detail": "pair L-0035 (37.8, 2026-04-25) and L-0036 (36.5, 2026-08-03), 100 days apart; persistent category G3b (the range both values meet)",
          "inputs": {
            "dates": [
              "2026-04-25",
              "2026-08-03"
            ],
            "lab_ids": [
              "L-0035",
              "L-0036"
            ],
            "values": [
              37.8,
              36.5
            ]
          },
          "label": "Two eGFR < 60 at least 90 days apart, none >= 60 between (2009 eGFR equation)",
          "passed": true,
          "rule_id": "kdigo_ckd_2024"
        },
        {
          "criterion_key": "albuminuria_a2_a3_persistent",
          "detail": "no urine ACR on file",
          "inputs": {
            "dates": [],
            "lab_ids": [],
            "values": []
          },
          "label": "Urine ACR >= 30 mg/g on two values at least 90 days apart (needed only when eGFR >= 60)",
          "passed": false,
          "rule_id": "kdigo_ckd_2024"
        },
        {
          "criterion_key": "steady_state_values",
          "detail": "excluded L-0037, L-0038",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0037",
              "L-0038"
            ],
            "values": []
          },
          "label": "Values used are steady-state (local convention: values from an admission meeting the creatinine-change criteria are excluded)",
          "passed": true,
          "rule_id": "kdigo_ckd_2024"
        },
        {
          "criterion_key": "latest_lt_1_5x_prior_lowest",
          "detail": "1.8 / 1.75 = 1.03x",
          "inputs": {
            "dates": [],
            "lab_ids": [
              "L-0035",
              "L-0036"
            ],
            "values": [
              1.75,
              1.8
            ]
          },
          "label": "Latest creatinine below 1.5x the lowest value in the previous 365 days (otherwise: possible acute change; repeat needed)",
          "passed": true,
          "rule_id": "kdigo_ckd_2024"
        }
      ],
      "drift": false,
      "egfr": [
        {
          "age": 73,
          "collected_dt": "2026-04-25T09:00:00-04:00",
          "date": "2026-04-25",
          "egfr_2009": 37.8,
          "egfr_2021": 40.6,
          "excluded": null,
          "g_2009": "G3b",
          "g_2021": "G3b",
          "lab_id": "L-0035",
          "scr": 1.75
        },
        {
          "age": 73,
          "collected_dt": "2026-08-03T09:00:00-04:00",
          "date": "2026-08-03",
          "egfr_2009": 36.5,
          "egfr_2021": 39.3,
          "excluded": null,
          "g_2009": "G3b",
          "g_2021": "G3b",
          "lab_id": "L-0036",
          "scr": 1.8
        },
        {
          "age": 73,
          "collected_dt": "2026-11-11T10:00:00-05:00",
          "date": "2026-11-11",
          "egfr_2009": 36.5,
          "egfr_2021": 39.3,
          "excluded": "collected during an admission in which the creatinine-change criteria are met (not steady state)",
          "g_2009": "G3b",
          "g_2021": "G3b",
          "lab_id": "L-0037",
          "scr": 1.8
        },
        {
          "age": 73,
          "collected_dt": "2026-11-12T07:00:00-05:00",
          "date": "2026-11-12",
          "egfr_2009": 14.3,
          "egfr_2021": 15.5,
          "excluded": "collected during an admission in which the creatinine-change criteria are met (not steady state)",
          "g_2009": "G5",
          "g_2021": "G4",
          "lab_id": "L-0038",
          "scr": 3.9
        }
      ],
      "exclusions": [],
      "reason": "two values below 60 at least 90 days apart, none of 60 or more between",
      "robustness": "criteria met under 2 of 2 eGFR equations (2021 race-free, 2009)",
      "status": "met",
      "text": "eGFR 39.3 on 2026-08-03 (lab row L-0036) and eGFR 40.6 on 2026-04-25 (lab row L-0035), 100 days apart, no value >= 60 between. KDIGO persistence: met. Persistent GFR category G3b (the range both values meet)."
    },
    "rules": {
      "ckd_epi_2009": {
        "body_sha256": "fee2ce2be035c1b64d4404d5f2e9cfa8cdd37c98dac9d20c4148c9d2c45560d5",
        "version": "1.0"
      },
      "ckd_epi_2021": {
        "body_sha256": "2bc35edbf2f801a13194a537bb67b28d8c3b0175462b716b9f23c6c51f581517",
        "version": "1.0"
      },
      "kdigo_aki_2012": {
        "body_sha256": "6927ab44b3d4042994ba6f31a985cbae46ff27734c13546c8469110473baec49",
        "version": "1.1"
      },
      "kdigo_ckd_2024": {
        "body_sha256": "1a5087a17cd1b339f06da694dd8fcb92fe2f13fdbce57b886716763289bd95ad",
        "version": "1.1"
      },
      "kidney_exclusions": {
        "body_sha256": "98e08ca8b6f5a7f7a68b225b57239006b4664aa533200feaca96e84c0430217b",
        "version": "1.0"
      },
      "lab_units": {
        "body_sha256": "a53d26a712b0777f23b4b72dff9d65a8567ca57dadd924bc1ecf0cebc9ac2b18",
        "version": "1.1"
      }
    }
  },
  "measurement_sha256": "fea218268f1a0f69918d819a1308cce936e2375446cf182b54c3cfada7242420",
  "note_reading": {
    "aki": {
      "faults": [],
      "spans": [],
      "status": "silent"
    },
    "kidney": {
      "faults": [],
      "spans": [
        {
          "assertion": "affirmed",
          "end": 219,
          "kind": "chronic",
          "origin": "both",
          "stage": "3b",
          "start": 213
        }
      ],
      "status": "stated"
    },
    "lexicon": "kidney-lexicon 1.0",
    "model_status": "ok",
    "reader": "lexicon+model"
  },
  "rules": {
    "ckd_epi_2009": {
      "body_sha256": "fee2ce2be035c1b64d4404d5f2e9cfa8cdd37c98dac9d20c4148c9d2c45560d5",
      "version": "1.0"
    },
    "ckd_epi_2021": {
      "body_sha256": "2bc35edbf2f801a13194a537bb67b28d8c3b0175462b716b9f23c6c51f581517",
      "version": "1.0"
    },
    "kdigo_aki_2012": {
      "body_sha256": "6927ab44b3d4042994ba6f31a985cbae46ff27734c13546c8469110473baec49",
      "version": "1.1"
    },
    "kdigo_ckd_2024": {
      "body_sha256": "1a5087a17cd1b339f06da694dd8fcb92fe2f13fdbce57b886716763289bd95ad",
      "version": "1.1"
    },
    "kidney_compare": {
      "body_sha256": "23fd394b4f02789eec020368dcfc30acab0cb62e411c3f4651d2bc778e3ee6cf",
      "version": "1.1"
    },
    "kidney_exclusions": {
      "body_sha256": "98e08ca8b6f5a7f7a68b225b57239006b4664aa533200feaca96e84c0430217b",
      "version": "1.0"
    },
    "kidney_staff": {
      "body_sha256": "fb90888ec65776194e9b5fd58c973b451f4072b64dc12409453c6cd4a8042281",
      "version": "1.0"
    },
    "lab_units": {
      "body_sha256": "a53d26a712b0777f23b4b72dff9d65a8567ca57dadd924bc1ecf0cebc9ac2b18",
      "version": "1.1"
    }
  }
}