On the from properties, check Use Page Close Hander, then write a routine to inform the user of the required missing information. Check the Help file for VFE:
Page Close Handlers
Page close handlers are used to execute a group of MEL expressions when a page of the form is closed. By default, this expression will be triggered when the page is closed in any of the following situations.
- The Previous Form or Next Form buttons are pressed to change the open form.
- The Close button is pressed to close the form.
- The user presses the "tab" for one of the other pages in the form to change the open page.
Visual Form Editor also allows configuration so that the page close handler can be executed upon returning to an update after the EMR "times out" (through the Program Options dialog) or before executing the MEL expression in a RUNPROCESS button (in case these buttons call the OPEN_FORM_COMP or JUMP_TO_TAB data symbols).
NOTE: The ability to use page close handlers was added in EMR 2005. Users that are building forms for previous versions can turn page close handlers off by unselecting this feature in the Program Options dialog. If functionality is turned off in this way, page close handler and required field properties in individual items can be left in place, but will be ignored when the clinical kit is built.
Page close handlers that are meant to prompt the user if a field in the form is left blank can be added by using the Automated Page Close Handling feature in the Item Configuration dialog.
Custom MEL expressions to execute upon closing the page can be specified in the Page Configuration dialog. This can be used when more complex checking needs to be performed, such as to display a message only for certain provider types (e.g. nurses). It can also be used to prompt the user to perform an action. For example if a user has entered a date and result in a lab entry form, but has not pressed the button to push this information to the flowsheet, they could be prompted to do so when the page closes.
You also need to set the ClosePage(False) to return to the calling page. See the Centricity Help file.
A somewhat complicated procedure. Contact me directly if you have questions.
Posted : February 7, 2017 12:10 pm