maintenance: title: Form_Discharge_Ins_Autoselect;; mlmname: Form_Discharge_Ins_Autoselect;; arden: version 2.5;; version: 6.10;; institution: SCH ;; author: Deepty Singh;; specialist: Shivprasad Jadhav ;; date: 2014-12-23;; validation: testing;; library: purpose: To AutoSelect all items of "DISC_Call doctor if" dataitem, if "all of the above" is selected and vice - versa ;; explanation: ;; keywords: ;; citations: ;; knowledge: type: data-driven;; data: // This MLM is passed three arguments, of types // communication_type, form_type and client info object respectively. (this_communication, // Communication object this_form, // Form object client_info_obj //Arden ClientInfo object ) := argument; /*******************Make Changes To Spelling And Flags In This Section*******************/ /* Set to true if a decision.log is needed.*/ log_execution_info := FALSE; /***************************************************************************************/ // Initialize error message error_message:=""; // Assigns fields passed in the Form object to the Field object field_list:= this_form.fields; CT_Call_doc := last of ( field_list WHERE field_list.DataItemName = "DISC_Call doctor if"); CT_Call_doc_Value := CT_Call_doc.Value; IF CT_Call_doc_Value matches pattern "%all of the above%" then CT_Call_doc_Value := "any problems"; CT_Call_doc_Value := "all of the above"; CT_Call_doc.Value := "any problems; any questions about your wound; fever of 101.5 degrees; wound opens, swells, becomes red, or increased drainage; you develop a fever; you have fever, chills, diarrhea, increased pain or unrelieved pain; you observe any increase in redness around the wound site; nausea, vomiting, bleeding, increased abdominal pain, fever over 101.5, wound opens, swells, or increased drainage; All of the above"; //CT_Call_doc.Value := "All of the above; nausea, vomiting, bleeding, increased abdominal pain, fever over 101.5, wound opens, swells, or increased drainage; you observe any increase in redness around the wound site; you have fever, chills, diarrhea, increased pain or unrelieved pain; you develop a fever; wound opens, swells, becomes red, or increased drainage; fever of 101.5 degrees; any questions about your wound; any problems"; ENDIF; IF CT_Call_doc.Value = "any problems; any questions about your wound; fever of 101.5 degrees; wound opens, swells, becomes red, or increased drainage; you develop a fever; you have fever, chills, diarrhea, increased pain or unrelieved pain; you observe any increase in redness around the wound site; nausea, vomiting, bleeding, increased abdominal pain, fever over 101.5, wound opens, swells, or increased drainage" THEN CT_Call_doc.Value := null; ENDIF; ;; priority: 50 ;; evoke: ;; logic: conclude true; ;; action: return this_communication, this_form; ;; Urgency: 50;; end: