cfapress wrote on Friday, May 29, 2009:
UPDATE to the code
=-=-=-=-=-=-=-=-=-=
I’ve updated the logic a bit in the way the growth charts appear. It’s tricky to describe but I’ll try:
Depending on the date of the vitals you are viewing you will get the appropriate growth chart.
For example, let’s say our patient, John, has been visiting our practice since he was 12 months old. Today John is 4 years old and came for a visit. I added vitals form in his encounter. So now John has the following vital forms:
May 1 2006 (first visit when John was 12mo old)
Oct 1 2006 (John is 17 mo old)
May 1 2007 (John is 24 mo old)
May 2 2008 (John is 36 mo 1 day old)
May 1 2009 (John is 4 yr old)
Today, May 1 2009, I view John’s current vitals and click on the Growth Chart button. I get the 2-20yr growth chart.
But I also want to go back and see John’s birth-36mo chart. So, I choose an encounter anytime before John turned 25 months old. (Yes, the logic right now is set to 25-months) In this case I choose the vitals entry from May 1, 2007. Click on the growth chart button and up comes the birth-36mo growth chart with all data points up to 36 months plotted.
Now, I was just using my personal logic here and it might not reflect reality at all. So, please, step in and correct my assumptions, such as the 25-month cut off between the birth-36 month chart and the 2-20year chart.
I think the last improvements to make are:
- support the metric vitals
- create a PDF file instead of a PNG image
Thanks goes to Bo who has been diligently sending updates every night to me.
Jason