Calculated field to display or hide a value
Posted: Wed Jun 13, 2007 7:16 am
Hi John:
I have added a several fields to my Contacts table, including cContactBalance, which displays the patient's (contact's) amount ($) due. I have added that field next to the CalDailyApptContacts::ContactNameLastFirstCalc field in my Daily Calendar view. That works fine. But I frequently schedule each patient twice on the same day, at the same time: once for the actual visit, and once for the patient's urine screen. As a result, the same "balance due" for that patient shows up twice.
I would like to create a calculated field that will display a patient's balance due only once on a given day. As I envision it, that calculation would test for the presence of another appointment for the same patient on the same day. If present, the balance would be hidden. If not, the balance would be displayed.
Can you point me to any examples/models of this sort?
I have added a several fields to my Contacts table, including cContactBalance, which displays the patient's (contact's) amount ($) due. I have added that field next to the CalDailyApptContacts::ContactNameLastFirstCalc field in my Daily Calendar view. That works fine. But I frequently schedule each patient twice on the same day, at the same time: once for the actual visit, and once for the patient's urine screen. As a result, the same "balance due" for that patient shows up twice.
I would like to create a calculated field that will display a patient's balance due only once on a given day. As I envision it, that calculation would test for the presence of another appointment for the same patient on the same day. If present, the balance would be hidden. If not, the balance would be displayed.
Can you point me to any examples/models of this sort?