Coding CKD. Documenting the stage of CKD—not the GFR—is vital for accurate coding. If the stage is not documented, then code 585.9, Chronic kidney disease, is assigned. If a provider documents both a stage of CKD and ESRD, then only the code for ESRD (585.6) is assigned.