maintenance: title: Labs Deselected On Order Sets;; mlmname: FORM_Set_Labs_Deselected_ICU;; arden: version 2;; version: 4.50;; institution: St Clair Admissions;; author: Robert Spence, Eclipsys Corp Ext 7461;; specialist: Dean Miklavic, Eclipsys Corp ext 7466;; date: 2009-08-20;; validation: testing;; library: purpose: Used for all Lab Grids with a Deselect all button Initial use within ICU CPOE Order sets ;; explanation: This MLM is called from all possible orders with Lab grids ;; keywords: Called MLMs, Lab Grids on Order Sets, Inital ED ;; 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; CallingEvent := this_communication.CallingEvent; CallingField := this_communication.CallingFieldName; DeSelect := "Deselect All Lab Orders"; OccNumber:=2; // Now do True and false logic for EVERY grid on this form //Get the multi order grid check box value Grid_fld := last of (field_list where field_list.DataItemName = "MultiOrderCheckBox" and field_List.Control_MultiFieldOccNum = OccNumber); Grid_list :=Grid_fld.Value; Grid_SelList := Grid_List.IsSelected; Found_DeSelect:= First of (Grid_list where Grid_list.Name = DeSelect ); If (this_form.Name = "CCM Admission OS") then Urinalysis := FIRST OF (Grid_list where Grid_list.Name = "Urinalysis with Reflex Culture"); Urinalysis_selected := true; EndIf; If Found_DeSelect.IsSelected = True then ListMembs:= count Grid_SelList; FalseList := (); for k in (1 seqto ListMembs) do FalseList := FalseList,False; enddo; Grid_List.IsSelected:= FalseList; endif; If (this_form.Name = "CCM Admission OS") then Urinalysis.IsSelected := Urinalysis_selected; EndIf; /* this_communication.DisplayForm := "Yes"; this_communication.Message := "One Of Rest Selection is " || OneOfRest|| "\n\n" || "NoRisk Select" || Found_NoRisk.IsSelected || "\n\n" || "NoRisk Value " || Found_NoRisk.Value; this_communication.MessageType := "Informational"; */ ;; evoke: // No evoke statement ;; logic: conclude true; ;; action: // This MLM returns two parameters, of types communication_type and form_type respectively. return this_communication, this_form; ;; end: