We are on CPS 12.2.2, and have been using the Med Admin HTML forms since they came out. Every now and then, our billing department audits and finds a blank "Medication Administration" note. there is no text, and if you look at the database, no clinical list changes were made. It is as though the MA opened a blank note, waited 10 minutes, and then signed it off.
it was rare enough that I thought maybe the MA's were canceling the med admin instead of hitting the commit button, but I just had a user who is good at double checking have this happen. she claimed to do the note, open it again a bit later to check her info for the doctor, and then sign it off. now it is a blank note with no data in it.
Has anyone else see this happen? I have yet to re-create it, or witness it live, so it is hard to really determine what is happening. If no one else has seen this, I will look into ways of making the cancel button give a popup and see if it does anything.
We are also on 12.2.2, in this version we have seen an uptick in service layer exception errors around the mel functions the HTML form uses to add/update/remove medication administrations. We use a custom form for this, and have popups with the error message and write a log file so I can see when it happens. If you are using the HTML form you can try to modify it to alert the user if a request or administration is not going through. That's my best guess,
Mike
Awesome! Glad to know I am not crazy. I am super interested in how are you detecting service layer errors and then making a popup appear based on it. Would you mind sharing? I would love to have a way to show the users that something went wrong.
Thank you again for letting me know. Hope you have a great week and a happy new year!
Daniel C.
Yes no problem, I wrap the MEL_ADD_MEDADMINISTRATION() function in another function that has a case statement. If the output of MEL_ADD_MEDADMINISTRATION() is > 0 then it worked, if less than 0 there is an error. Service Layer Exception is -3. I just do a userok("Service Layer Exception! Blah Blah..."). My message says something about closing Centricity and logging in again. That usually fixes the problem.
In the HTML form, you have to find the file on your jboss server, you want to edit the medAdmin.js. It looks like line 1947 (CCC basic 1.5.1). vOut holds the error code (if its an error). You should be able to go down to line 2051 and add an else statement with something like
Mel.eval("{userok('There is an error!')}");
Let me know if you need any clarification.
That is excellent! Thank you for even letting me know where to go to modify the javascript. I have some experience in this, so I should be OK. I'll hop back on if I get stuck.
Thank you so much again!