I was wondering if anyone has built a VFE form that had a “click to commit” button function. I’m modifying a custom VFE Risk Factors for MU form for pulling in the required Smoking Status values and our providers wanted the Risk Factor-CCC Colonoscopy, Mammo, Pap section added to the new form. I’ve created this, with visibility for male/female, but am not sure how to incorporate the “click to commit” function as it is in the Risk Factors-CCC form, or whether that’s even needed considering the MEL function is new obs with previous values. Has anyone done this?
Here is a form I used for entering labs. It does something similar so you maybe you can use something from it.
Yes, I can edit to work with my form. Thank you.
I'm running into a VFE text translation problem with a dropdown list, listing risk factor tests (colonoscopy, mammogram and pap smear) being used with visibility for each choice, each displaying a date field for entering the date of last, and a dropdown list of results.
The problem is the text translation from the first test date and result does not stick in the note when selecting the next test, with related date/result field variable, to document.
What can I do to lock down the text translations for these multiple test results?
You can create a button that "records" these values into another invisible field. The button would be a RUNPROCESS with the following MEL:
{if DOCUMENT.TEST_NAME=="Colonoscopy" then
DOCUMENT.ALL_RESULTS=DOCUMENT.ALL_RESULTS + HRET + fmt("Colonoscopy Result: ","B") + DOCUMENT.COLON_RESULT + fmt(" Date: ","B") + DOCUMENT.COLON_DATE
DOCUMENT.COLON_RESULT="" DOCUMENT.COLON_DATE=""
else if DOCUMENT.TEST_NAME=="Mammogram" then
DOCUMENT.ALL_RESULTS=DOCUMENT.ALL_RESULTS + HRET + fmt("Mammo Result: ","B") + DOCUMENT.MAMMO_RESULT + fmt(" Date: ","B") + DOCUMENT.MAMMO_DATE
DOCUMENT.MAMMO_RESULT="" DOCUMENT.MAMMO_DATE=""
else if DOCUMENT.TEST_NAME=="Pap Smear" then
DOCUMENT.ALL_RESULTS=DOCUMENT.ALL_RESULTS + HRET + fmt("Pap Result: ","B") + DOCUMENT.PAP_RESULT + fmt(" Date: ","B") + DOCUMENT.PAP_DATE
DOCUMENT.PAP_RESULT="" DOCUMENT.PAP_DATE=""
else "" endif endif endif}
This will accumulate all of your results. Just put the DOCUMENT.ALL_RESULTS field into a visibility region that is always FALSE. The user would have to click the button after each result to record it into this field.