eGFR calculator

eGFR calculator based on Chi-Mei Hospital Center of Pathology
 avatar
unknown
python
4 years ago
494 B
4
Indexable
#= 175×Scr–1.154×(Age)–0.203 (×0.742 if female) (×1.212 if black)。
# eGFR calculator based on Chi-Mei Hospital Center of Pathology

def calceGFR(crea, age, isFemale=False, isBlack=False, roundCorr=1):
    eGFRValue = 175*pow(crea, -1.154)*pow(age, -0.203)
    if(isFemale):
        eGFRValue = eGFRValue * 0.742
    if(isBlack):
        eGFRValue = eGFRValue * 1.212

    return round(eGFRValue, roundCorr)

if __name__ == "__main__":
    print(calceGFR(0.99, 21, False))
Editor is loading...