I have a form that has data displays for various things that our IM doctors want to see. (Immunizations, last colon, last mammo, PSA, DEXA, etc.) It currently autopopulates the information into their chart note. They now want the information to only populate if they check a box to insert it into the note. I can't seem to figure out how to set up the check box or button to do this. What is the setting and language that I would want to use? I can email the form if needed! Any help is appreciated.
add a checkbox 'To Note', check if this checkbox is checked in the translation for the display field, if it is, translate the display field, if not, translate nothing.
Could you be more specific? I am a nurse who has little training at VFE, so I kind of fly by the seat of my pants!! Would the translation be in the data boxes and how would the translation be? Would there be one for each data box or a large one on the side?
You could have a separate checkbox for each display field, or just one that triggers all display fields.
{if DOCUMENT.CHECKBOX<>"" then
CFMT(DOCUMENT.DISPLAY, "", "label: ", "B", hret)
else
""
endif}
I would put this code in the display field translation area and clear the checkbox translation area.
Thank you for helping!!
If I just use one check box, would I repeat like this:
{if DOCUMENT.CHECKBOX<>"" then
CFMT(DOCUMENT.DISPLAY, "", "label: ", "B", hret) +
CFMT(DOCUMENT.DISPLAY, "", "label: ", "B", hret) +
CFMT(DOCUMENT.DISPLAY, "", "label: ", "B", hret)
else
""
endif}
yes, if you want to put all of the translations into one area, otherwise put the code in each of the displays' translation areas using the same checkbox.
Thank you so much for your help!
I am getting MEL garbage with a compiler error? Question, since I am using previous obs in the data displays, do I need to make the document.data into obs prev ? Here is what I have made?
{if DOCUMENT.Z111<>"" then
CFMT(DOCUMENT.FLU VAX, "", "Flu Vaccine: ", "B", hret) +
CFMT(DOCUMENT.FLU VAX #2, "", "High Dose Flu: ", "B", hret) +
CFMT(DOCUMENT.TIV_HIGHDOSE, "", "High Dose Flu: ", "B", hret) +
CFMT(DOCUMENT.FLU VAX #3, "", "Intradermal Flu: ", "B", hret) +
CFMT(DOCUMENT.PNEUMOVAX, "", "Pneumovax: ", "B", hret) +
CFMT(DOCUMENT.ZOSTAVAX, "", "Zostavax: ", "B", hret) +
CFMT(DOCUMENT.HEPBVAX#1, "", "Hep B #1 ", "B", hret) +
CFMT(DOCUMENT.HEPBVAX#2, "", "Hep B #2 ", "B", hret) +
CFMT(DOCUMENT.HEPBVAX#3, "", "Hep B #3 ", "B", hret) +
CFMT(DOCUMENT.HEPBVAX#4, "", "Hep B #4 ", "B", hret) +
CFMT(DOCUMENT.TD BOOSTER, "", "TD: ", "B", hret) +
CFMT(DOCUMENT.DPT #1, "", "TDAP: ", "B", hret) +
CFMT(DOCUMENT.MAMMOGRAM, "", "Mammogram: ", "B", hret) +
CFMT(DOCUMENT.PAP SMEAR, "", "Pap Smear: ", "B", hret) +
CFMT(DOCUMENT.BON DEN DEXA, "", "DEXA Scan: ", "B", hret) +
CFMT(DOCUMENT.COLONOSCOPY, "", "Colonoscopy: ", "B", hret) +
CFMT(DOCUMENT.PSA, "", "PSA: ", "B", hret) +
CFMT(DOCUMENT.DIAB EYE EX, "", "Diabetic Eye Exam: ", "B", hret) +
else
""
endif}
yes, replace DOCUMENT.name with OBSPREV("obs") where obsprev is used for the display field. also, remove the last '+'.