Hi all,
Relatively new to Cloverleaf. We use 6.0.2. Many of our tclprocs are embedded in inbound or outbound tps or Xlates (as intended) and we are finding that when there are errors with them, it goes largely unnoticed. Typically we are notified of a problem and find the errors hidden in the process logs. I’m looking for help on the ‘best’ strategy – ex. perhaps the thread queues up messages when a proc errors so that Alerts can be triggered and notifications & actions taken to correct immediately.
Here’s a scenario:
inbound ORU from third party going into our EHR. third party device simultaneously places a PDF file with acct number in shared dir. In Xlate, we call a proc to search that dir for the respective PDF file, then copy and rename to link them. Every so often we see errors where someone had the PDF open somewhere else and the proc fails because it can’t modify the open file.
Another scenario:
tpsproc uses odbc connection to query data to add to strip down message and then rebuild msg and send on. odbc connection fails for whatever reason. not as common but you get it.
It’s been suggested to us that we rethink how we’ve built our entire engine’s infrastructure. maybe we take out all the procs and built threads in between inbound and outbound and code them in such a way that if the proc fails then the thread goes into error state and messages queue up. I’m aware this method of ‘raw inbound – data manip – outbound’ is tried and true but cloverleaf provides all of these clever ways for us to embed procs and all of this was already built when I inherited the system.
Thoughts?
Email: joshua.cooper@allscripts.com
-------------------------------------
Allscripts
Mobile, AL