I know we can populate an obs term when the form is loaded - but that doesn't tell us if the form is used. We could monitor every obs term on the form and if one is populated we can populate an obs term - obviously very cumbersome. Is anyone tracking form usage and if so, how are you doing it?
Thanks!
David Shower
OU Tulsa School of Community Medicine
We have a few workflow sensitive forms that write out log files to a share. Since there's not really an "on document sign" trigger event you have to use something else like a watcher or a button push to trigger it.
If you just want to see that the form was loaded you could write out the log file on form open and be done with it. We are tracking what was done so the log file is written based on a button being clicked. Put the username, date, location, form name, etc in a pipe or tab delimited text file then just read in to excel and do a pivot table.
If you use a watcher to trigger on form open be sure and create a doctemp
document.log_file_written = "done"
or something like that then use that to escape the watcher function at the top.
Consider setting up a watcher expression and logging an event based on
GET_FORM_TRANS(path, name) <> ""
Depends on what your form is doing though, obviously there could be issues with that method
You could have an obs term that isn't being used in your practice and, in the page close handler area, you could write code that increments this obs value each time:
OBSNOW("obsX",str(val(OBSPREV("obsX")) + 1)))
This way, the obsX value gets incremented every time one of your providers signs a document of this type. You could write some code to reset this value to zero at the end of the year.
{
!if(str(._TODAYSDATE)=="01/01/2014")then
OBSNOW("obsX","0")
endif
}