adapting DataFrameFilterTest for Hospitalization
This commit is contained in:
@@ -12,9 +12,9 @@ class DataFrameFilterTest(unittest.TestCase):
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
'VAERSDATA': TestHelper.createDataFrame(
|
'VAERSDATA': TestHelper.createDataFrame(
|
||||||
columns = ['DIED', 'L_THREAT', 'DISABLE'],
|
columns = ['DIED', 'L_THREAT', 'DISABLE', 'HOSPITAL'],
|
||||||
data = [ [1, 0, 0],
|
data = [ [1, 0, 0, 1],
|
||||||
[0, 0, 1]],
|
[0, 0, 1, 0]],
|
||||||
index = [
|
index = [
|
||||||
"0916600",
|
"0916600",
|
||||||
"0916601"]),
|
"0916601"]),
|
||||||
@@ -29,9 +29,9 @@ class DataFrameFilterTest(unittest.TestCase):
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
'VAERSDATA': TestHelper.createDataFrame(
|
'VAERSDATA': TestHelper.createDataFrame(
|
||||||
columns = ['DIED', 'L_THREAT', 'DISABLE'],
|
columns = ['DIED', 'L_THREAT', 'DISABLE', 'HOSPITAL'],
|
||||||
data = [ [0, 0, 0],
|
data = [ [0, 0, 0, 0],
|
||||||
[0, 0, 1]],
|
[0, 0, 1, 0]],
|
||||||
index = [
|
index = [
|
||||||
"1996873",
|
"1996873",
|
||||||
"1996874"]),
|
"1996874"]),
|
||||||
@@ -52,10 +52,10 @@ class DataFrameFilterTest(unittest.TestCase):
|
|||||||
|
|
||||||
# Then
|
# Then
|
||||||
dataFrameExpected = TestHelper.createDataFrame(
|
dataFrameExpected = TestHelper.createDataFrame(
|
||||||
columns = ['DIED', 'L_THREAT', 'DISABLE', 'VAX_TYPE', 'VAX_MANU', 'VAX_LOT', 'VAX_DOSE_SERIES'],
|
columns = ['DIED', 'L_THREAT', 'DISABLE', 'HOSPITAL', 'VAX_TYPE', 'VAX_MANU', 'VAX_LOT', 'VAX_DOSE_SERIES'],
|
||||||
data = [ [1, 0, 0, 'COVID19', 'MODERNA', '037K20A', '1'],
|
data = [ [1, 0, 0, 1, 'COVID19', 'MODERNA', '037K20A', '1'],
|
||||||
[0, 0, 1, 'COVID19', 'MODERNA', '025L20A', '1'],
|
[0, 0, 1, 0, 'COVID19', 'MODERNA', '025L20A', '1'],
|
||||||
[0, 0, 1, 'COVID19', 'MODERNA', '025L20A', '1']],
|
[0, 0, 1, 0, 'COVID19', 'MODERNA', '025L20A', '1']],
|
||||||
index = [
|
index = [
|
||||||
"0916600",
|
"0916600",
|
||||||
"0916601",
|
"0916601",
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ FK-TODO:
|
|||||||
- add HOSPITAL, 'Hospitalization':
|
- add HOSPITAL, 'Hospitalization':
|
||||||
see: L_THREAT, 'Life Threatening Illnesses'
|
see: L_THREAT, 'Life Threatening Illnesses'
|
||||||
+ BatchCodeTableFactoryTest
|
+ BatchCodeTableFactoryTest
|
||||||
- DataFrameFilterTest
|
+ DataFrameFilterTest
|
||||||
- SevereColumnAdder
|
- SevereColumnAdder
|
||||||
+ SummationTableFactory
|
+ SummationTableFactory
|
||||||
- VaersDescrReaderTest
|
+ VaersDescrReaderTest
|
||||||
- VaersDescrReader
|
+ VaersDescrReader
|
||||||
|
|
||||||
- AdverseReactionReportsChartView
|
- AdverseReactionReportsChartView
|
||||||
- batchCodes.html
|
- batchCodes.html
|
||||||
|
|||||||
Reference in New Issue
Block a user