We have a form that should be calculating dosage for medication based on the previous form. If the medication has been entered the dosage calculates:
{fn GetDose(chkBox){
If chkBox <> "" then return ".20" else return "" endif
}}
However on the second, third and/or fourth visits some of these are not working. It is hit and miss. Can't call GE for help because it is a custom form
Without seeing how your function is being called, it is difficult to diagnose the problem.
Would you mind posting the form, or emailing it to me?
Thank you!
Daniel Carpenter
Sure I will email it to you.
Thank you for sending me the form.
I didn't see anything out of the ordinary on looking through it, and it seemed to run well when testing it in my system.
Are you doing the 3 different doses at each visit? Or does Dose #1 = Visit #1, Dose #2 = Visit#2, etc...?
if you can describe the process for me, it may make any bug hunting a little easier.
and if you happen to have the Obs term clinical kit for this form that would be lovely as well. if it is the same sections failing over and over, then the obs term may be wrong.
Thank you very much!
Daniel Carpenter
It’s never the same section over and over. The does should always be the .20. It falls correctly the first time but when we bring the patient back (we pull in previous) it will suddenly disappear. Let me get you the obs terms.