Esempio n. 1
0
    def dumpClinicalTablesToCsv(self, tempDir):
        log.info('Dumping clinical_item and clinical_item_category to CSV')

        DBUtil.dumpTableToCsv('clinical_item',
                              '{}/clinical_item.csv'.format(tempDir))
        DBUtil.dumpTableToCsv('clinical_item_category',
                              '{}/clinical_item_category.csv'.format(tempDir))
Esempio n. 2
0
    def dumpItemCollectionTablesToCsv(self, tempDir):
        log.info('Dumping item_collection_item and item_collection to CSV')

        DBUtil.dumpTableToCsv('item_collection_item',
                              '{}/item_collection_item.csv'.format(tempDir))
        DBUtil.dumpTableToCsv('item_collection',
                              '{}/item_collection.csv'.format(tempDir))
Esempio n. 3
0
    def dumpPatientItemToCsv(self, tempDir, batchCounter=999):
        log.info(
            'Dumping patient_item for batch {} to CSV'.format(batchCounter))

        DBUtil.dumpTableToCsv(
            'patient_item',
            '{}/{}_patient_item.csv'.format(tempDir, batchCounter))
Esempio n. 4
0
    def dumpPatientItemCollectionLinkToCsv(self, tempDir, batchCounter=999):
        log.info(
            'Dumping patient_item_collection_link for batch {} to CSV'.format(
                batchCounter))

        DBUtil.dumpTableToCsv(
            'patient_item_collection_link',
            '{}/{}_patient_item_collection_link.csv'.format(
                tempDir, batchCounter))