Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cardio Risk app incorrectly calculates LDL #16

Open
jmandel opened this issue Jul 12, 2012 · 2 comments
Open

Cardio Risk app incorrectly calculates LDL #16

jmandel opened this issue Jul 12, 2012 · 2 comments

Comments

@jmandel
Copy link
Contributor

jmandel commented Jul 12, 2012

The app is estimating Total Cholesterol - HDL. this is an overestimate of LDLs, since it doesn't take triglycerides into account. Should either:

  1. Look for an actual LDL lab result
  2. Look for a triglyceride reading and estimate LDL = Total Cholesterol - HDL - Triglycerides / 5
@p2
Copy link

p2 commented Jul 12, 2012

The commonly used Friedewald formula for LDL is:

LDL = Total Cholesterol - VLDL - HDL

Edit: Too fast with submitting. VLDL can be calculated from Triglycerides (if they are below 4 mmol/L / 350 mg/dL):

VLDL = Trig / 2.2 [mmol/L]
VLDL = Trig / 5 [mg/dL or g/L]

Edit 2: Now I see that that's what you're using, I was used to the 2.2. :D
Nevermind.

@jmandel
Copy link
Contributor Author

jmandel commented Jul 12, 2012

No, being explicit about units is important! The current app is also fragile in that regard...

I just did a quick 'spike' to explore porting the app to HL7's FHIR, and had to add units conversion in the process:
code: https://github.com/chb/fhir_cardiac_risk/blob/gh-pages/load_data.js
demo: http://chb.github.com/fhir_cardiac_risk?personId=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants