Copy of snippet "CKD-EPI (semi automatique)"

CKD-EPI semi-automatique (dans PrioRx)

{note}{formtext: name=Scr_umol; default=} ← Creatinine sérique (µmol/L)  
{Age=extractregex({site: text; page=https://.priorx.ca/; select=ifneeded; selector=#BA01_Info > :nth-child(1)},"\d+")}{=age}← Age 
{Sex="H" if catch(substring({site: text; page=https://.priorx.ca/; select=ifneeded; selector=#BA01_WeightDateDiff + span}, 7, 1),"") <=1 else "F"}{=Sex; trim=yes} ← Sexe (F or H)

{note: preview=no}{=round(Scr_umol / 88.4, 3)} ← Converted Scr (mg/dL) {endnote}

{endnote}{if: Sex=="F"}
{=round(142 * (min(Scr_umol / 88.4 / 0.7, 1)^-0.241) * (max(Scr_umol / 88.4 / 0.7, 1)^-1.200) * (0.9938^Age) * 1.012, 1)} mL/min/1.73m²
{else}
{=round(142 * (min(Scr_umol / 88.4 / 0.9, 1)^-0.302) * (max(Scr_umol / 88.4 / 0.9, 1)^-1.200) * (0.9938^Age) * 1.000, 1)} mL/min/1.73m²
{endif}