I am trying to create an MEL_ADD_ORDER button that will allow the user to customize what goes into the instructions. Basically, I want the button to have the predefined order, service provider, date, etc. but I want to have an edit field where they can enter custom instructions, then click the button and the instructions gets added with the predefined button values.
Anyone know how to do this if it is even possible?
Thanks!
Have you looked at MEL_ADD_ORDER in help? If you have the button set to "run process" then enter something like:
{MEL_ADD_ORDER("T","Labs","Order Name", "","",DOCUMENT.INSTRUCTIONS, "","","","")}
Then use a multi-line edit field to define DOCUMENT.INSTRUCTIONS.
You'll probably want to include a diagnosis code and description in the 5th and 6th fields as well.
I've used this function quite a few times and it can be tricky, since there's several elements that have to match exactly what you have in your orders setup. The diagnosis description and code also have to match exact.
That is exactly what I did. I used a document variable and a bang function so that I default what I want in the edit field each time to allow for easier ordering for the user.
Thanks!
This worked great for mine below. I added a drop down of what we need in instructions, good idea, thanks.
MEL_ADD_ORDER("T", "SMRMC Lab", "Blood (Feces), Screen (OBFN)", "", "ICD-V76.51", "Special screening malignant neoplasm, colon",DOCUMENT.INSTRUCTIONS, "", "", "", "")