Пример #1
0
class LoadJSON(index_util.LoadJSONBase):
  index_name = 'substancedata'
  mapping_file = './schemas/substancedata_mapping.json'
  data_source = SubstanceData2JSON()
  use_checksum = False
  optimize_index = True
  last_update_date = lambda _: first_file_timestamp(RAW_DIR)
Пример #2
0
class LoadJSON(index_util.LoadJSONBase):
    index_name = 'deviceudi'
    mapping_file = './schemas/deviceudi_mapping.json'
    data_source = AnnotateDevice()
    use_checksum = False
    optimize_index = False
    last_update_date = lambda _: first_file_timestamp(DEVICE_UDI_LOCAL_DIR)
Пример #3
0
class LoadJSON(index_util.LoadJSONBase):
  index_name = 'drugsfda'
  mapping_file = './schemas/drugsfda_mapping.json'
  data_source = AnnotateDrugsFDA()
  use_checksum = False
  optimize_index = True
  last_update_date = lambda _: first_file_timestamp(os.path.dirname(RAW_DATA_FILE))
Пример #4
0
class LoadJSON(index_util.LoadJSONBase):
    index_name = 'devicepma'
    mapping_file = './schemas/pma_mapping.json'
    data_source = AnnotateDevice()
    use_checksum = False
    optimize_index = True
    last_update_date = lambda _: first_file_timestamp(RAW_DIR)
Пример #5
0
class LoadJSON(index_util.LoadJSONBase):
    index_name = 'covid19serology'
    mapping_file = './schemas/covid19serology_mapping.json'
    data_source = SerologyCSV2JSON()
    use_checksum = False
    optimize_index = True
    last_update_date = lambda _: first_file_timestamp(SEROLOGY_TEST_SYNC_DIR)