When trying to open some of our VFE encounter forms when using one specific test patient I end up getting lots of MEL vomit such as:
{/*VARIABLES FOR MEL BUILT-IN SYMBOLS USED IN FORM*/
<-VOID{/*START OF FORM TRANSLATION BODY*/
<-VOID{IF (STR(PROB_PRIOR("LIST")) == "") THEN "" ELSE ("
" + CFMT(PROB_PRIOR("LIST"), "", "Medical History:
", "B", "") + CFMT(DOCUMENT.MEDHXREVIEWED, "", "", "", "")) ENDIF <-VOID{IF (STR(PROB_LIST_CHANGES()) == "") THEN "" ELSE ("
" + CFMT(PROB_LIST_CHANGES(), "", "Medical History Update:
", "B", "")) ENDIF <-VOID
Any thoughts on what may be the source of this issue?
It only happens on one of our 10 test patients. Obviously this makes me think it is data related, but what exactly?
Any clues to pass on to our forms builder would be appreciated.
Mike
Since it appears to be keying off of problem list, I would check if the test patient:
has zero problems
has lots of problems (perhaps overflowing a counter)
has a custom problem (that may not map completely)
Agree, check to see if this occurs when Prob_Prior() and Prob_List_Changes() are null. Also, has the document variable MEDHXREVIEWED been declared, is it on a secondary tab, is it declared shared in VFE. As a start, delete the text translation statement entirely and verify that the problem goes away, then delete the document.MEDHXREVIED clause, repeat, then delete the symbol calls to Prob_...(). Be careful, the problem may go away on repeat form loading. Need to do new document load with each change.
There is a more likely explanation to the load error. Centricity may abort the initialization statements if they are too time consuming, load intensive and throw an error that doesn't really make any sense. My general approach to this problem is to place complex initialization routines, text translations in a function call, then monitor for completion of the function call. I do this by creating a document variable Form_Loaded that has the following text translation: {if document.form_loaded<>"yes" then Initialize_Form() "" else "" endif}. Inside Initialize_Form() the last statement before the function return is document.form_loaded="yes" I allow the field to be somewhat visible by having the background translucent, and font color dark grey, bottom right of the form. Then I know that the initialization has been successful. The above technique was suggested to me many years ago in a CHUG forum, and I have been forever indebted to the suggestion, thus passing it on.