Is there a way to add text to a multi-line edit field, add a medication, add a dx, and an order from clicking 1 button in VFE?
I have been doing this exact same thing by creating it in the multi-factorial-ccc form but I'd rather avoid that if I can. At some point, we may not use CCC or this functionality may change at some point as well. I would then add a SETVALUES field to accomplish this.
Thank you!
Instead of SETVALUES, use RUNPROCESS and create the code to concatenate the values you want together in one field.
I'm not sure what code to put in the RUNPROCESS.
I used this one to add knee pain diagnosis button.
MEL_ADD_PROBLEM("dx of", "Knee pain, right", "ICD-719.46", str(._TODAYSDATE), "", "")
I'm needing more than just the problem added though.
I need the Dx added, a medication added, and the text to populate into a multi-line edit box.
MEL_ADD_MEDICATION SYNTAX FROM HELP MODULE OF CPS
MEL_ADD_MEDICATION(description[,instruction, onset date, ID, end date, quantity, refills, BMN indicator, medication comment, Diagnosis Codes, Diagnosis Code Descriptions, PrintDx])
The underline is where you can add comments that should show as text. You can have the button add several problems, medications or allergies at the same time by adding MEL syntax.
If I use the MEL syntax, can I direct where the data goes? For instance, if I have a button that adds the problems, meds, dx, order, and a narrative about the procedure, will the narrative populate into the box?
Basically I will have a button (or a number of different buttons) and a multi-line edit box to display the narrative.
You can set the button to RUNPROCESS and inside the MEL curly brackets, just put a statement for each thing you want to accomplish. The text block would either be setting a document variable or an obs term for your multi-line edit field, and MEL statements for the add order, add med and add problem. Just put one on each line inside the curly brackets.
What's the MEL code for adding the text?
I have a Multi-line edit box with COMMENTS_ as the variable. I've tried adding DOCUMENT.COMMENTS_("test") but that doesn't work. Not sure what to put there. Everything works except getting the text where I want it to go.
Thank you!
I use this on a runprocess button that enters the order, prints handout, sends a flag to the scheduler and MA and inserts a statement in a multiline edit field.
{DOCUMENT.ORDERS_ENTER = "Fluoroguided injection of the cervical spine was ordered today. Patient will be contacted to schedule injection. Procedure Patient Handout was given to patient. Flag was sent to Scheduling."}