コード例 #1
0
    def __init__(self):
        BaseDynamicData.__init__(self)

        self.requestData["sim_patient_id"] = ""
        self.requestData["sim_time"] = ""
        self.requestData["loadActive"] = "false"
        # Default to showing whole order history instead of just active (not inactive / completed) orders
        self.requestData["enableRecommender"] = "True"
        # By default, asssume recommender is enabled
        self.requestData["activeCompleted"] = "Active"
        self.requestData["activeOrderButtonClass"] = "buttonSelected"
        self.requestData["completedOrderButtonClass"] = ""
        self.requestData["historyTime"] = ""
        self.requestData["detailTable"] = ""

        self.addHandler("sim_patient_id", ActiveOrders.action_default.__name__)
コード例 #2
0
ファイル: RelatedOrders.py プロジェクト: xxxx3/CDSS
    def __init__(self):
        BaseDynamicData.__init__(self)

        self.requestData["searchStr"] = ""
        self.requestData["analysisStatus"] = "1"

        self.requestData["sim_patient_id"] = ""
        self.requestData["sim_time"] = ""

        self.requestData["sourceTables"] = "stride_order_proc,stride_order_med"
        # Default comma-separated list of source tables to expect orders to reside in
        self.requestData["queryItemIds"] = ""
        self.requestData["targetItemIds"] = ""
        self.requestData["excludeItemIds"] = ""
        self.requestData["excludeCategoryIds"] = ""
        self.requestData["timeDeltaMax"] = "86400"
        # Look for recommendations likely within 24 hours
        self.requestData["sortField"] = ""
        self.requestData["enableRecommender"] = "True"
        # By default, asssume recommender is enabled
        self.requestData["displayFields"] = ""
        #"prevalence","PPV","RR","P-YatesChi2"
        self.requestData["sortReverse"] = "True"
        self.requestData["nPreCols"] = "1"
        self.requestData["groupByCategory"] = "True"
        self.requestData["resultCount"] = "10"
        # Default for related order search
        self.requestData["invertQuery"] = ""
        self.requestData["showCounts"] = ""
        self.requestData["countPrefix"] = "patient_"
        self.requestData["aggregationMethod"] = "weighted"

        self.requestData["title"] = "Order Search Results"
        self.requestData["fieldHeaders"] = ""
        self.requestData[
            "dataRows"] = '<tr><td colspan=100 align=center height=200><img src="../../resource/ajax-loader.gif"></td></tr>'

        self.addHandler("searchStr", RelatedOrders.action_orderSearch.__name__)
        self.addHandler("RelatedOrders", RelatedOrders.action_default.__name__)
コード例 #3
0
ファイル: ItemRecommendationTable.py プロジェクト: xxxx3/CDSS
    def __init__(self):
        BaseDynamicData.__init__(self);
        
        self.requestData["queryItemIds"] = "";
        self.requestData["targetItemIds"] = "";
        self.requestData["excludeItemIds"] = "";
        self.requestData["excludeCategoryIds"] = "";
        self.requestData["timeDeltaMax"] = "";
        self.requestData["sortField"] = "PPV";
        self.requestData["sortReverse"] = "True";
        self.requestData["resultCount"] = "10";
        self.requestData["invertQuery"] = "";
        self.requestData["showCounts"] = "";
        self.requestData["countPrefix"] = "";
        self.requestData["aggregationMethod"] = "weighted";

        self.requestData["fieldHeaders"] = "";
        self.requestData["dataRows"] = "";
        
        self.addHandler("resultCount", ItemRecommendationTable.action_default.__name__);

        self.recommender = ItemAssociationRecommender();  # Instance to test on
        self.recommender.dataManager.dataCache = webDataCache;