using System;
public class Program
{
public static void Main()
/*
New GFR = 141 × (Scr/k)^a × (0.993)^age × 1.018 [if female] × 1.159 [if black]
Constant is defined in the DB (MstLabTestInProcedures.GFRConstant)
Scr is serum creatinine in mg/dL – the testid for creatinine is defined in the db (MstLabTestInProcedures.Formula) (using serum creatinine values in mg/dL to two decimal places (e.g., 0.95 mg/dL))
κ is 0.70 for females and 0.90 for males,
α is a variant depending on sex and the value of Scr
• -0.329 – If Female and Scr value ≤ 0.70
• -0.411 – If Male and Scr value ≤ 0.90
• -1.209 – Everyone else.
age is PatientAge
× 1.018 – will be added to the equation if the patient is FEMALE
× 1.159 - will be added to the equation if the patient race is Black (ReceId = 2)
*/
//decimal places
string _format = "#";
int _const = 141;
Prueba Prueba Sari
Scr= .80
k: female therefore .70
a: female but Scr greater than .70 therefore -1.209
age: 42
Female therefore × 1.018
Black: N/A
//_const * Math.Pow((Scr/k),a) * Math.Pow(0.993,age) * 1.018 [if female] * 1.159 [if black];
Console.WriteLine((_const * Math.Pow((.80/0.70),-1.209) * Math.Pow(0.993,42) * 1.018).ToString(_format));
}