I've been working on a production VFE form, editing and upgrading it, for some time. I have my edits done, but realized I needed to create new function libraries so that I can load it alongside production without causing issues with on-hold documents (right?).
This is where my troubles began... The form was originally written 3+ years ago, and appears to be different than how VFE now handles user-defined function library files... The .txt and .lib files for the current form are nearly identical. The new .txt and .lib files (created today from VFE) are very different--the .txt files state they point to Text Components in the EMR.
I'm having problems getting the new form with the new function libraries to work. I have a checkbox with the following chart translation that "inserts" the data into the chart note. Here is the checkbox's coding:
{
IF DOCUMENT.SHOWAUDIOGRAM = "" then "" else FMT("\r\nAudiogram:", "B,U,2") + "\r\n" +
/**LIBRARY::RightAudiogramv5**/RightAudiogramv5() +
if DOCUMENT.RIGHTEARCOMMENTS = "" then "" else CFMT(DOCUMENT.RIGHTEARCOMMENTS, "", "Right Ear Comments: ", "B", "") + "\r\n" endif +
if DOCUMENT.ACR125NR = "NR" then FMT("No Response at AC 125 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR250NR = "NR" then FMT("No Response at AC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR500NR = "NR" then FMT("No Response at AC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR750NR = "NR" then FMT("No Response at AC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR1000NR = "NR" then FMT("No Response at AC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR1500NR = "NR" then FMT("No Response at AC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR2000NR = "NR" then FMT("No Response at AC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR3000NR = "NR" then FMT("No Response at AC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR4000NR = "NR" then FMT("No Response at AC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR6000NR = "NR" then FMT("No Response at AC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR8000NR = "NR" then FMT("No Response at AC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR10000NR = "NR" then FMT("No Response at AC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR12000NR = "NR" then FMT("No Response at AC 12000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR250NR = "NR" then FMT("No Response at BC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR500NR = "NR" then FMT("No Response at BC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR750NR = "NR" then FMT("No Response at BC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR1000NR = "NR" then FMT("No Response at BC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR1500NR = "NR" then FMT("No Response at BC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR2000NR = "NR" then FMT("No Response at BC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR3000NR = "NR" then FMT("No Response at BC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR4000NR = "NR" then FMT("No Response at BC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR6000NR = "NR" then FMT("No Response at BC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR8000NR = "NR" then FMT("No Response at BC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR10000NR = "NR" then FMT("No Response at BC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR12000NR = "NR" then FMT("No Response at BC 12000 dB","") + "\r\n" else "" endif +
/**LIBRARY::LeftAudiogramv5**/LeftAudiogramv5() +
if DOCUMENT.LEFTEARCOMMENTS = "" then "" else CFMT(DOCUMENT.LEFTEARCOMMENTS, "", "Left Ear Comments: ", "B", "") + "\r\n" endif +
if DOCUMENT.ACL125NR = "NR" then FMT("No Response at AC 125 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL250NR = "NR" then FMT("No Response at AC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL500NR = "NR" then FMT("No Response at AC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL750NR = "NR" then FMT("No Response at AC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL1000NR = "NR" then FMT("No Response at AC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL1500NR = "NR" then FMT("No Response at AC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL2000NR = "NR" then FMT("No Response at AC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL3000NR = "NR" then FMT("No Response at AC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL4000NR = "NR" then FMT("No Response at AC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL6000NR = "NR" then FMT("No Response at AC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL8000NR = "NR" then FMT("No Response at AC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL10000NR = "NR" then FMT("No Response at AC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL12000NR = "NR" then FMT("No Response at AC 12000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL250NR = "NR" then FMT("No Response at BC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL500NR = "NR" then FMT("No Response at BC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL750NR = "NR" then FMT("No Response at BC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL1000NR = "NR" then FMT("No Response at BC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL1500NR = "NR" then FMT("No Response at BC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL2000NR = "NR" then FMT("No Response at BC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL3000NR = "NR" then FMT("No Response at BC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL4000NR = "NR" then FMT("No Response at BC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL6000NR = "NR" then FMT("No Response at BC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL8000NR = "NR" then FMT("No Response at BC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL10000NR = "NR" then FMT("No Response at BC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL12000NR = "NR" then FMT("No Response at BC 12000 dB","") + "\r\n" else "" endif
endif
}
Below is the error/text translation dropped into the note when I try to use the checkbox:
{/*VARIABLES FOR MEL BUILT-IN SYMBOLS USED IN FORM*/
<-VOID{/*START OF FORM TRANSLATION BODY*/
<-VOID
{IF DOCUMENT.SHOWAUDIOGRAM_4741_636_1426532138 = "" then "" else FMT("\r\nAudiogram:", "B,U,2") + "\r\n" +
RightAudiogramv5() +
if DOCUMENT.RIGHTEARCOMMENTS = "" then "" else CFMT(DOCUMENT.RIGHTEARCOMMENTS, "", "Right Ear Comments: ", "B", "") + "\r\n" endif +
if DOCUMENT.ACR125NR = "NR" then FMT("No Response at AC 125 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR250NR = "NR" then FMT("No Response at AC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR500NR = "NR" then FMT("No Response at AC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR750NR = "NR" then FMT("No Response at AC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR1000NR = "NR" then FMT("No Response at AC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR1500NR = "NR" then FMT("No Response at AC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR2000NR = "NR" then FMT("No Response at AC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR3000NR = "NR" then FMT("No Response at AC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR4000NR = "NR" then FMT("No Response at AC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR6000NR = "NR" then FMT("No Response at AC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR8000NR = "NR" then FMT("No Response at AC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR10000NR = "NR" then FMT("No Response at AC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACR12000NR = "NR" then FMT("No Response at AC 12000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR250NR = "NR" then FMT("No Response at BC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR500NR = "NR" then FMT("No Response at BC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR750NR = "NR" then FMT("No Response at BC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR1000NR = "NR" then FMT("No Response at BC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR1500NR = "NR" then FMT("No Response at BC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR2000NR = "NR" then FMT("No Response at BC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR3000NR = "NR" then FMT("No Response at BC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR4000NR = "NR" then FMT("No Response at BC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR6000NR = "NR" then FMT("No Response at BC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR8000NR = "NR" then FMT("No Response at BC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR10000NR = "NR" then FMT("No Response at BC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCR12000NR = "NR" then FMT("No Response at BC 12000 dB","") + "\r\n" else "" endif +
LeftAudiogramv5() +
if DOCUMENT.LEFTEARCOMMENTS = "" then "" else CFMT(DOCUMENT.LEFTEARCOMMENTS, "", "Left Ear Comments: ", "B", "") + "\r\n" endif +
if DOCUMENT.ACL125NR = "NR" then FMT("No Response at AC 125 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL250NR = "NR" then FMT("No Response at AC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL500NR = "NR" then FMT("No Response at AC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL750NR = "NR" then FMT("No Response at AC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL1000NR = "NR" then FMT("No Response at AC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL1500NR = "NR" then FMT("No Response at AC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL2000NR = "NR" then FMT("No Response at AC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL3000NR = "NR" then FMT("No Response at AC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL4000NR = "NR" then FMT("No Response at AC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL6000NR = "NR" then FMT("No Response at AC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL8000NR = "NR" then FMT("No Response at AC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL10000NR = "NR" then FMT("No Response at AC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.ACL12000NR = "NR" then FMT("No Response at AC 12000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL250NR = "NR" then FMT("No Response at BC 250 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL500NR = "NR" then FMT("No Response at BC 500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL750NR = "NR" then FMT("No Response at BC 750 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL1000NR = "NR" then FMT("No Response at BC 1000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL1500NR = "NR" then FMT("No Response at BC 1500 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL2000NR = "NR" then FMT("No Response at BC 2000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL3000NR = "NR" then FMT("No Response at BC 3000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL4000NR = "NR" then FMT("No Response at BC 4000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL6000NR = "NR" then FMT("No Response at BC 6000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL8000NR = "NR" then FMT("No Response at BC 8000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL10000NR = "NR" then FMT("No Response at BC 10000 dB","") + "\r\n" else "" endif +
if DOCUMENT.BCL12000NR = "NR" then FMT("No Response at BC 12000 dB","") + "\r\n" else "" endif
endif <-VOID