If some day the programmers are to dive in Vital forms again I would launch the suggestion that there should be a division in these input fields:
Changes that take place within the same day like oxigen saturation and changes that take place during different visits like length and weight and head circumference.
Also once you have saved it is impossible to delete or changen made into the saved fields. I wanted to change the weight since mistakenly the weight of someone else was stated I could not do this. I needed to make a new line of input for that same day. For users it might be some kind of improvement to have the choice for numbers entered the same day. Long term and short term changes in a patients life.
Also the suggestion of Brady made some days ago would be a toggle to change from metric into standard English measurements. He suggested to make a calculation behind the scenes for metric and standard. After all the changes made in the recent past history of OpenEMR this would not have to be such a difficult thing for a Developer? Or do I underestimate the challenge?
1. metric and standard in same form.
I’d suggest you put this as a feature request in tracker. It really shouldn’t be too hard. We could use the standard form and do the following (this would require no sql database changes).
—keep using standard vital form, so will be storing standard units in sql database
—report.php can report units in the labels
—report.php can create the metric units on the fly and display them
—new.php and view.php can have inputs for metric units also. After typing in units (either standard or metric, the other can then be auto-calculated like BMI)
—place a toggle in globals.php that can control display and input options of units (ie. ‘metric’, ‘standard’, ‘both’)
I’ve had my fingers in the vitals code in the recent past. I could take a stab at making this work. After I evaluate the code I’ll post back here with what I can do.
Jason just submitted the new enhancement to the Growth Chart with PDF capability.
Now, the final frontier is to add the Metric version. I hope Jason can come up with a simple solution. It is difficult to maintain and update both "vitals" and "vitalsM" form at the same time.
I gave it a shot but gave up the idea for lack of knowledge
In your recent work, I noted you deleted this from report.php:
//modified by BM 06-2009 for internationalization
if ($key == "Temp Method" || $key == "BMI Status") {
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>" . xl($value) . "</span></td>";
}
else {
print "<td><span class=bold>" . xl($key) . ": </span><span class=text>$value</span></td>";
}
This was there to translate the values when displaying Temp method and BMI status. I’d re-substitute it for the following line (unless you had a specific reason for changing it, then let me know so i can figure out another mechanism):
echo “<td><span class=bold>”.xl($key).": </span><span class=text>".$value."</span></td>";
The file that was used for modification was from an old file prior to internationalization by you. I only want to display "see Growth Chart" in the "BMI Status" field if patient age is less than 21 year-old. Please fix it so that will work with internationalization.
thanks,
Just out of curiosity on a related issue. I’ve noted the tooltip in openemr/interface/patient_file/history/encounters.php bypasses report.php and lists data directly from database, which is rather ugly and won’t work with internationalization. Do you think there a way to get this to collect the information via report.php?
brady