We are looking to replace our curent Framingham risk calculator with the 2013 AHA ACC Risk calculator on our CCC lipid form. Has anyone done this?
I am very interested in this project. I am unable to find the algorithm/equation for calculation. If you can furnish me with reference, I will share the VFE with you.
John W. Fitzgerald, MD
Unfortunately, the formula uses natural logarithms and using the natural exponential function, so it will have to be calculated in a program outside of Centricity. I'm using a C# program to do this currently, but the draw back is that it pops up the command shell when it runs. You also have to manage access to the program so it doesn't get called by different users simultaneously. I got the formula from reading the research on this pdf.
If you need more information, I can drop the exact equation in here.
I have created a VFE form to do the calculation. The lack of a Ln() function was annoying, but since x^y works, I created an algorithm that converges on the value to any degree of desired accuracy. If you use this, it is way pre-beta. Please let me know if there are any problems. Contact me a [email protected]
The algorithm.
I did something similar to get the Ln using loops, but I ran into an issue where everything is being rounded to the 2nd decimal place. So, e will always be 2.72 and my coefficients were rounded to 2nd decimal place. Were you able to get any more precise than just a whole percent value? (i.e. I'm getting 7% instead of 7.4%)