adapting BatchCodeTableIntoHistogramDescriptionTableMergerTest for Hospitalization

This commit is contained in:
Frank Knoll
2024-04-23 17:41:29 +02:00
parent 6c325bca1d
commit ce175faa78
3 changed files with 7 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ class BatchCodeTableIntoHistogramDescriptionTableMerger:
'Deaths', 'Deaths',
'Disabilities', 'Disabilities',
'Life Threatening Illnesses', 'Life Threatening Illnesses',
'Hospitalization',
'Company' 'Company'
]] ]]

View File

@@ -33,8 +33,8 @@ class BatchCodeTableIntoHistogramDescriptionTableMergerTest(unittest.TestCase):
data = ['1808982'])) data = ['1808982']))
batchCodeTable = TestHelper.createDataFrame( batchCodeTable = TestHelper.createDataFrame(
columns = ['Adverse Reaction Reports', 'Deaths', 'Disabilities', 'Life Threatening Illnesses', 'Company', 'Severe reports', 'Lethality'], columns = ['Adverse Reaction Reports', 'Deaths', 'Disabilities', 'Life Threatening Illnesses', 'Hospitalization', 'Company', 'Severe reports', 'Lethality'],
data = [ [2, 1, 2, 2, 'MODERNA', 2/2 * 100, np.nan]], data = [ [2, 1, 2, 2, 3, 'MODERNA', 2/2 * 100, np.nan]],
index = pd.Index( index = pd.Index(
name = 'VAX_LOT', name = 'VAX_LOT',
data = ['1808982'])) data = ['1808982']))
@@ -54,6 +54,7 @@ class BatchCodeTableIntoHistogramDescriptionTableMergerTest(unittest.TestCase):
'Deaths': 1, 'Deaths': 1,
'Disabilities': 2, 'Disabilities': 2,
'Life Threatening Illnesses': 2, 'Life Threatening Illnesses': 2,
'Hospitalization': 3,
'Company': 'MODERNA', 'Company': 'MODERNA',
'histograms': [ 'histograms': [
{ {

View File

@@ -25,7 +25,7 @@ FK-TODO:
see: L_THREAT, 'Life Threatening Illnesses' see: L_THREAT, 'Life Threatening Illnesses'
+ BatchCodeTableFactoryTest + BatchCodeTableFactoryTest
+ DataFrameFilterTest + DataFrameFilterTest
- SevereColumnAdder + SevereColumnAdder
+ SummationTableFactory + SummationTableFactory
+ VaersDescrReaderTest + VaersDescrReaderTest
+ VaersDescrReader + VaersDescrReader
@@ -34,8 +34,8 @@ FK-TODO:
- batchCodes.html - batchCodes.html
- BatchCodeTableInitializer - BatchCodeTableInitializer
+ BatchCodeTableFactory + BatchCodeTableFactory
- BatchCodeTableIntoHistogramDescriptionTableMergerTest + BatchCodeTableIntoHistogramDescriptionTableMergerTest
- BatchCodeTableIntoHistogramDescriptionTableMerger + BatchCodeTableIntoHistogramDescriptionTableMerger
- BatchCodeTablePersister.py - BatchCodeTablePersister.py