예제 #1
0
 def __init__(self):
     self.config = natus_config.NATUSConfig('ncqa')
     self.log = natus_logging.NATUSLogging(self.__class__.__name__,
                                           logging.INFO)
     self.mmdf_file_glob = glob.glob(
         self.config.read_value('setup', 'mmdf.input.filename.regex'))
     self.mmdf = {}
예제 #2
0
 def __init__(self):
     self.log = natus_logging.NATUSLogging(self.__class__.__name__,
                                           logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.db_con = connector.Connector()
     self.member_filter = {}
     #        self.load_filter()
     self.value_set_cache = {}
예제 #3
0
 def __init__(self):
     self.log = natus_logging.NATUSLogging(self.__class__.__name__, logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.dbname = self.config.read_value('db', 'mongodb.db.name')
     self.url = self.config.read_value('db', 'mongodb.url')
     self.log.info('Connecting to mongodb. db: ' + self.dbname + ', url: ' + self.url)
     self.client = pymongo.MongoClient(self.url)
     self.db = self.client[self.dbname]
예제 #4
0
 def __init__(self):
     self.log = natus_logging.NATUSLogging(self.__class__.__name__,
                                           logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.db_connection = connector.Connector()
     self.bulk_size = self.config.read_value('load', 'bulk.size')
     self.input_file_name = self.config.read_value('load', 'input.filename')
     self.documents = []
예제 #5
0
 def __init__(self):
     self.log = natus_logging.NATUSLogging(self.__class__.__name__,
                                           logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.db_con = connector.Connector()
     self.db_con.collection_name = 'measure_to_oid'
     self.excel_sheetname = self.config.read_value(
         'valueset', 'excel.measures.valuesets.sheet.name')
     self.excel_filename = self.config.read_value('valueset',
                                                  'excel.filename')
예제 #6
0
 def __init__(self, run_date: datetime):
     config = natus_config.NATUSConfig('ncqa')
     config_section_name = self.__class__.__name__
     self.log = natus_logging.NATUSLogging(config_section_name,
                                           logging.INFO)
     self.run_date = run_date
     measures = json.loads(
         config.read_value(config_section_name, 'measures'))
     self.db_con = connector.Connector()
     self.measure_pipeline = self.init_measures(measures)
예제 #7
0
 def __init__(self):
     self.log = natus_logging.NATUSLogging(self.__class__.__name__,
                                           logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.db_con = connector.Connector()
     self.db_con.collection_name = 'code_to_description'
     self.excel_sheetname = self.config.read_value('valueset',
                                                   'excel.sheetname')
     self.excel_filename = self.config.read_value('valueset',
                                                  'excel.filename')
     self.cpt_input_file = self.config.read_value('cms', 'cpt_input_file')
예제 #8
0
 def __init__(self):
     self.log = natus_logging.NATUSLogging(self.__class__.__name__, logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.merged_member_filename = self.config.read_value('merge', 'merged.member.filename')
     self.members_input_filename = self.config.read_value('merge', 'members.input.filename')
     self.filter_output_filename = self.config.read_value('merge', 'filter.output.filename')
     self.run_date = datetime.now()
     self.enrollments = {}
     self.visits = {}
     self.providers = {}
     self.pharm = {}
     self.mmdf = {}
예제 #9
0
 def __init__(self):
     self.config = natus_config.NATUSConfig('ncqa')
     self.log = natus_logging.NATUSLogging(self.__class__.__name__,
                                           logging.INFO)
예제 #10
0
파일: ndc_loader.py 프로젝트: skiiver/ncqa
 def __init__(self):
     self.log = natus_logging.NATUSLogging(__class__.__name__, logging.INFO)
     self.config = natus_config.NATUSConfig('ncqa')
     self.db_con = connector.Connector()
     self.input_filename = self.config.read_value('ndc',
                                                  'input.csv.filename')