adapting BatchCodeTableIntoHistogramDescriptionTableMergerTest for Hospitalization
This commit is contained in:
@@ -28,6 +28,7 @@ class BatchCodeTableIntoHistogramDescriptionTableMerger:
|
|||||||
'Deaths',
|
'Deaths',
|
||||||
'Disabilities',
|
'Disabilities',
|
||||||
'Life Threatening Illnesses',
|
'Life Threatening Illnesses',
|
||||||
|
'Hospitalization',
|
||||||
'Company'
|
'Company'
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
|||||||
@@ -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': [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user