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',
'Disabilities',
'Life Threatening Illnesses',
'Hospitalization',
'Company'
]]

View File

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

View File

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