Hi all,
Does anyone know if it's possible to prevent signing of an encounter with a HTML Form using some javascript logic?
It's possible using VFE with a close handler, but I'm not seeing something that actually prevents users ability to sign the form due to some required fields. I have tried using the $window.external.RegisterOkToCloseCallback feature, but that doesn't prevent users from clicking the blue end button at the top right and signing the document, it only prevents them from moving between forms.
Thanks!
I don't believe this will work, as the JavaScript only runs on the HTML form. Since you can close the HTML with the X button in the corner, and the JavaScript won't run at this point, there is not a way to prevent a note from being signed via HTML form.
We have found that most of our issues where notes are signed off early or while missing important data have been solved by improving workflows and re-training staff. The few times we have prevented signing or form-navigation, it has only led to disgruntled providers. Could you fill us in on what scenarios you are encountering that makes you want to stop a user from signing?
Thank you,
Dan
Hi Dan, thanks for the reply.
I agree with you that it is frustrating, but sometimes we have these requirements for clients for certain reporting, or are asked by a client to require a field. It's just a feature we must have for our clinical content. Not for every field, but maybe 1 out of 100.
Have you tried the MEL showUrlDialog?
Maybe you can open a modal dialog and implement on close event validation with reopening it again. Just an idea...