Hi,
I am trying to create a listbox with Dx codes appearing automatically. Right now I have a Dx button that once pressed will display as a new problem in a listbox, from there the provider can check of the Dx in the listbox and then press the CPT code button so the Dx code will attach automatically to the order.
The providers will like to eliminate that one extra click of the press the Dx button first and then selecting the code in the list box. So was just wondering if there is a way to list all the Dx codes that I need into the listbox and then once selected still be able to attach it to the order code?
Thanks,
Mike
Mike,
it sounds like you need a watcher expression that will update the list box once the form is opened. Are you familiar with watcher expressions? Preceding the expression with an exclamation point (!) will cause the expression to run when form is first opened.
For example:
{!if (DOCUMENT.LISTBOX == "") then
//run code to update list box with active diagnoses
else
endif
}
The above code is a logical representation of what you might do. The DOCUMENT.LISTBOX is the variable name of your listbox. If it's empty (which would be the case when the form first opens) then it would run code to update the dynamic variable you are using to populate the listbox. If you want to send me the .dlg file, I could get it working for you and send it back if this doesn't make sense.
Thanks for your help I am not familar with watcher but emailed you the dlg file