SafetyGraphics / nepExplorer

Interactive Graphic for Exploring Kidney Function Data in Clinical Trials
https://safetygraphics.github.io/nepExplorer/
MIT License
6 stars 0 forks source link

Add eGFR calculation function #68

Open pburnsdata opened 2 years ago

pburnsdata commented 2 years ago

Currently, we assume users bring their own eGFR values, however we decided to implement a helper function to calculate egfr for users according to the specification provided by Dr. Buchanan

eGFR is calculated using serum creatinine by the following equation (2021 EPI-CKD): eGFRcr = 142 x min(Scr/K, 1)α x max(Scr/K, 1)-1.200 x 0.9938Age x 1.012 [if female] where, eGFR (estimated glomerular filtration rate) = mL/min/ 1.73 m2 Scr (serum creatinine) = mg/dL K = 0.7 (females) or 0.9 (males) α = -0.241 (females) or -0.302 (males) min = indicates the minimum of Scr/K or 1 max = indicates the maximum of Scr/K or 1

eGFR based on both serum creatinine and Cystatin C is calculated by the following equation (2021 EPI-CKD): eGFRcr-cys = = 135 x min(Scr/K, 1)α x max(Scr/K, 1)-0.544 x min(Scys/0.8, 1)-0.323 x max (Scys/0.8, 1)-0.778 x 0.9961Age x 0.963 [if female] where, eGFR (estimated glomerular filtration rate) = mL/min/ 1.73 m2 Scr (serum creatinine) = mg/dL K = 0.7 (females) or 0.9 (males) α = -0.219 (females) or -0.144 (males) min = indicates the minimum of Scr/K or 1 max = indicates the maximum of Scr/K or 1