maintenance: title: SCH_UNSUBMITTED_MED_ORDERS;; mlmname: SCH_UNSUBMITTED_MED_ORDERS;; arden: version 2.5;; version: 16.3;; institution: Allscripts;; author: Teresa Spicuzza;; specialist: Teresa Spicuzza;; date: 2017-08-17;; validation: testing;; library: purpose: Capture unsubmitted medication orders. ;; explanation: Capture the unsubmitted medication orders for use by MLM logic. Change History -------------- 11.13.2017 TMS CSR 35723: Created for capturing IV Steriods for Diabetic Management Protocol. ;; keywords: medication; IV Steroid; unsubmitted; orders ;; knowledge: type: data-driven;; data: //.Net libraries standard_libs := mlm {{{SINGLE-QUOTE}}}std_include_libs{{{SINGLE-QUOTE}}}; include standard_libs; //Local session object local_session := cds_session.local; /*******************************************************************/ //Set to true if logging needed log_execution_info := false; IVSteroidOrders := read { " select Name from cv3ordercatalogmasteritem ocmi where ocmi.TherapeuticCategory = {{{SINGLE-QUOTE}}}hormones/hormone modifiers | adrenal cortical steroids{{{SINGLE-QUOTE}}} and expirydate is null" }; med_order_event := EVENT { OrderEnter User Order : WHERE TypeCode = "Medication" }; if called_by_editor then evokingobject := read last {Order : THIS where Name = "MethylPREDNISolone Inj"}; endif; if evokingobject.name in IVSteroidOrders and EVOKINGOBJECT.OrderRouteCode in ("IV", "IV Push", "IVPB") then local_session.SessionUnsubIVSteroidOrder := true; endif; ;; priority: 50 ;; evoke: med_order_event; // npo_order_event ; ;; logic: conclude true; ;; action: ;; Urgency: 50;; end: