예제 #1
0
    def __init__(self):
        """Default constructor"""
        self.bqConn = bigQueryUtil.connection()
        self.bqClient = bigQueryUtil.BigQueryClient()
        self.connFactory = DBUtil.ConnectionFactory(
        )  # Default connection source, but Allow specification of alternative DB connection source

        self.categoryBySourceDescr = dict(
        )  # Local cache to track the clinical item category table contents
        self.clinicalItemByCategoryIdCode = dict(
        )  # Local cache to track clinical item table contents
        self.itemCollectionByKeyStr = dict(
        )  # Local cache to track item collections
        self.itemCollectionItemByCollectionIdItemId = dict(
        )  # Local cache to track item collection items
예제 #2
0
    def connectionFactory(self):
        """Prepare a connection factory to the database specified
        by the current request parameters.
        """

        connParams = dict()

        for key, value in self.requestData.iteritems():
            if key.startswith("db"):  # Look for db parameters
                tagKey = key[len("db"):]
                if len(value) > 0:
                    connParams[tagKey] = value
                else:
                    connParams[tagKey] = None

        return DBUtil.ConnectionFactory(connParams)
예제 #3
0
    def __init__(self):
        """Default constructor"""
        self.bqConn = bigQueryUtil.connection()
        self.bqClient = bigQueryUtil.BigQueryClient()
        self.connFactory = DBUtil.ConnectionFactory(
        )  # Default connection source, but Allow specification of alternative DB connection source

        self.starrUtil = STARRUtil.StarrCommonUtils(self.bqClient)

        self.categoryBySourceDescr = dict(
        )  # Local cache to track the clinical item category table contents
        self.clinicalItemByCategoryIdExtId = dict(
        )  # Local cache to track clinical item table contents

        self.itemCollectionByKeyStr = dict(
        )  # Local cache to track item collections
        self.itemCollectionItemByCollectionIdItemId = dict(
        )  # Local cache to track item collection items

        self.patient_items = dict()  # Local cache of processed patient items
        self.patient_item_collection_links = set(
        )  # Local cache of processed patient item collection links
예제 #4
0
 def __init__(self):
     self.connFactory = DBUtil.ConnectionFactory()
예제 #5
0
	def __init__(self):
		"Default constructor"
		self.connFactory = DBUtil.ConnectionFactory();  # Default connection source
		self.decayCount = 0
예제 #6
0
 def __init__(self):
     self.connFactory = DBUtil.ConnectionFactory(
     )  # Default connection source
예제 #7
0
    def __init__(self):
        """Default constructor"""
        self.connFactory = DBUtil.ConnectionFactory();  # Default connection source, but Allow specification of alternative DB connection source

        self.categoryBySourceDescr = dict();    # Local cache to track the clinical item category table contents
        self.clinicalItemByCompositeKey = dict(); # Local cache to track clinical item table contents
예제 #8
0
 def __init__(self):
     self.connFactory = DBUtil.ConnectionFactory();  # Default connection source
     self.maxClinicalItemId = None;  # Can set to a value to limit what items will be processed.  Particularly for setting to 0, so will only work on negative values, generally only test cases, while leaving "real" data alone
     self.dataCache = dict();  # If set, use as in memory data cache.  Set to None to avoid usage if having memory leak problems with persistent processes
     self.queryCount = 0;
예제 #9
0
 def __init__(self):
     """Default constructor"""
     AssociationAnalysis.__init__(self)
     self.connFactory = DBUtil.ConnectionFactory()
     # Default connection source
     self.dataManager = DataManager()
예제 #10
0
 def __init__(self):
     self.connFactory = DBUtil.ConnectionFactory()
     # Default connection source
     self.dataManager = DataManager()
 def __init__(self):
     BaseCPOEAnalysis.__init__(self);
     self.connFactory = DBUtil.ConnectionFactory();  # Default connection source