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
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)
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
def __init__(self): self.connFactory = DBUtil.ConnectionFactory()
def __init__(self): "Default constructor" self.connFactory = DBUtil.ConnectionFactory(); # Default connection source self.decayCount = 0
def __init__(self): self.connFactory = DBUtil.ConnectionFactory( ) # Default connection source
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
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;
def __init__(self): """Default constructor""" AssociationAnalysis.__init__(self) self.connFactory = DBUtil.ConnectionFactory() # Default connection source self.dataManager = DataManager()
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