adding Hospitalization for UI

This commit is contained in:
Frank Knoll
2024-04-23 17:53:39 +02:00
parent ce175faa78
commit a2d4c356be
5 changed files with 87 additions and 71 deletions

View File

@@ -33,6 +33,7 @@ class AdverseReactionReportsChartView {
'Deaths', 'Deaths',
'Disabilities', 'Disabilities',
'Life Threatening Illnesses', 'Life Threatening Illnesses',
'Hospitalization',
'Other Adverse Events' 'Other Adverse Events'
], ],
datasets: [{ datasets: [{
@@ -42,7 +43,8 @@ class AdverseReactionReportsChartView {
ADRDescr['Deaths'], ADRDescr['Deaths'],
ADRDescr['Disabilities'], ADRDescr['Disabilities'],
ADRDescr['Life Threatening Illnesses'], ADRDescr['Life Threatening Illnesses'],
ADRDescr['Adverse Reaction Reports'] - (ADRDescr['Deaths'] + ADRDescr['Disabilities'] + ADRDescr['Life Threatening Illnesses']) ADRDescr['Hospitalization'],
ADRDescr['Adverse Reaction Reports'] - (ADRDescr['Deaths'] + ADRDescr['Disabilities'] + ADRDescr['Life Threatening Illnesses'] + ADRDescr['Hospitalization'])
], ],
backgroundColor: '#1a73e8' backgroundColor: '#1a73e8'
}] }]

View File

@@ -50,6 +50,7 @@ class BatchCodeTableInitializer {
this.#getColumnIndex('Deaths'), this.#getColumnIndex('Deaths'),
this.#getColumnIndex('Disabilities'), this.#getColumnIndex('Disabilities'),
this.#getColumnIndex('Life Threatening Illnesses'), this.#getColumnIndex('Life Threatening Illnesses'),
this.#getColumnIndex('Hospitalization'),
this.#getColumnIndex('Severe reports'), this.#getColumnIndex('Severe reports'),
this.#getColumnIndex('Lethality') this.#getColumnIndex('Lethality')
] ]
@@ -109,14 +110,16 @@ class BatchCodeTableInitializer {
return 3; return 3;
case 'Life Threatening Illnesses': case 'Life Threatening Illnesses':
return 4; return 4;
case 'Company': case 'Hospitalization':
return 5; return 5;
case 'Severe reports': case 'Company':
return 6; return 6;
case 'Lethality': case 'Severe reports':
return 7; return 7;
case 'Countries': case 'Lethality':
return 8; return 8;
case 'Countries':
return 9;
} }
} }

View File

@@ -1,34 +1,41 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport"/> <meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Batch Codes of Coronavirus 2019 Vaccines</title> <title>Batch Codes of Coronavirus 2019 Vaccines</title>
<!-- Google tag (gtag.js) --> <!-- Google tag (gtag.js) -->
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-ERHYDH4P64"></script> <script async="" src="https://www.googletagmanager.com/gtag/js?id=G-ERHYDH4P64"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); } function gtag() { dataLayer.push(arguments); }
gtag('js', new Date()); gtag('js', new Date());
gtag('config', 'G-ERHYDH4P64'); gtag('config', 'G-ERHYDH4P64');
</script> </script>
<link href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.css" rel="stylesheet" type="text/css"/> <link href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
<link href="batchCodeTable.css" rel="stylesheet" type="text/css"/> <link href="batchCodeTable.css" rel="stylesheet" type="text/css" />
<link href="forkMeOnGitHub.css" rel="stylesheet" type="text/css"/> <link href="forkMeOnGitHub.css" rel="stylesheet" type="text/css" />
<script crossorigin="anonymous" integrity="sha512-T5Bneq9hePRO8JR0S/0lQ7gdW+ceLThvC80UjwkMRz+8q+4DARVZ4dqKoyENC7FcYresjfJ6ubaOgIE35irf4w==" referrerpolicy="no-referrer" src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.5.1/nouislider.min.js"></script> <script crossorigin="anonymous"
<link crossorigin="anonymous" href="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.5.1/nouislider.css" integrity="sha512-MKxcSu/LDtbIYHBNAWUQwfB3iVoG9xeMCm32QV5hZ/9lFaQZJVaXfz9aFa0IZExWzCpm7OWvp9zq9gVip/nLMg==" referrerpolicy="no-referrer" rel="stylesheet"/> integrity="sha512-T5Bneq9hePRO8JR0S/0lQ7gdW+ceLThvC80UjwkMRz+8q+4DARVZ4dqKoyENC7FcYresjfJ6ubaOgIE35irf4w=="
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> referrerpolicy="no-referrer"
<script charset="utf8" src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js" type="text/javascript"></script> src="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.5.1/nouislider.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.2.0/dist/chart.umd.min.js"></script> <link crossorigin="anonymous" href="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/15.5.1/nouislider.css"
<script src="./Utils.js"></script> integrity="sha512-MKxcSu/LDtbIYHBNAWUQwfB3iVoG9xeMCm32QV5hZ/9lFaQZJVaXfz9aFa0IZExWzCpm7OWvp9zq9gVip/nLMg=="
<script src="./UIUtils.js"></script> referrerpolicy="no-referrer" rel="stylesheet" />
<script src="./DataTablesFilter.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="./ColumnSearch.js"></script> <script charset="utf8" src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"
<script src="./BatchCodeTableInitializer.js"></script> type="text/javascript"></script>
<script src="./BatchcodeByCountryBarChartView.js"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js@4.2.0/dist/chart.umd.min.js"></script>
<script src="./BatchcodeByCountryBarChart.js"></script> <script src="./Utils.js"></script>
<script> <script src="./UIUtils.js"></script>
<script src="./DataTablesFilter.js"></script>
<script src="./ColumnSearch.js"></script>
<script src="./BatchCodeTableInitializer.js"></script>
<script src="./BatchcodeByCountryBarChartView.js"></script>
<script src="./BatchcodeByCountryBarChart.js"></script>
<script>
$(document).ready(function () { $(document).ready(function () {
const urlSearchParams = new URLSearchParams(window.location.search); const urlSearchParams = new URLSearchParams(window.location.search);
new BatchCodeTableInitializer().initialize( new BatchCodeTableInitializer().initialize(
@@ -40,48 +47,51 @@
}); });
</script> </script>
</head> </head>
<body> <body>
<h1>Batch Codes of Coronavirus 2019 Vaccines</h1> <h1>Batch Codes of Coronavirus 2019 Vaccines</h1>
<table class="display" id="batchCodeTable"> <table class="display" id="batchCodeTable">
<thead> <thead>
<tr> <tr>
<th>Batch</th> <th>Batch</th>
<th>Adverse Reaction Reports</th> <th>Adverse Reaction Reports</th>
<th>Deaths</th> <th>Deaths</th>
<th>Disabilities</th> <th>Disabilities</th>
<th>Life Threatening Illnesses</th> <th>Life Threatening Illnesses</th>
<th>Company</th> <th>Hospitalization</th>
<th>Severe reports</th> <th>Company</th>
<th>Lethality</th> <th>Severe reports</th>
<th>Countries</th> <th>Lethality</th>
</tr> <th>Countries</th>
</thead> </tr>
</table> </thead>
<footer> </table>
<dl> <footer>
<dt>Data Source:</dt> <dl>
<dd><a href="https://vaers.hhs.gov/data/datasets.html" target="_blank">Vaccine Adverse Event Reporting System <dt>Data Source:</dt>
<dd><a href="https://vaers.hhs.gov/data/datasets.html" target="_blank">Vaccine Adverse Event Reporting System
(VAERS)</a></dd> (VAERS)</a></dd>
<dt>Last updated:</dt> <dt>Last updated:</dt>
<dd id="last_updated">April 05, 2024</dd> <dd id="last_updated">April 05, 2024</dd>
</dl> </dl>
<span id="forkongithub"><a href="https://github.com/KnollFrank/HowBadIsMyBatch" target="_blank">Fork me on <span id="forkongithub"><a href="https://github.com/KnollFrank/HowBadIsMyBatch" target="_blank">Fork me on
GitHub</a></span> GitHub</a></span>
<div class="clearfix"></div> <div class="clearfix"></div>
</footer> </footer>
<template id="template-canvas"> <template id="template-canvas">
<canvas></canvas> <canvas></canvas>
</template> </template>
<template id="template-chartWithSlider"> <template id="template-chartWithSlider">
<div class="chartWithSlider"> <div class="chartWithSlider">
<div class="chartContainer"> <div class="chartContainer">
<canvas class="canvas"></canvas> <canvas class="canvas"></canvas>
</div> </div>
<!-- FK-TODO: remove sliderContainer and slider --> <!-- FK-TODO: remove sliderContainer and slider -->
<div class="sliderContainer"> <div class="sliderContainer">
<div class="slider"></div> <div class="slider"></div>
</div> </div>
</div> </div>
</template> </template>
</body> </body>
</html> </html>

View File

@@ -17,6 +17,7 @@ def createGlobalBatchCodeTable(deleteEntriesWithADRsLessThanOrEqual, minADRsForL
'Deaths', 'Deaths',
'Disabilities', 'Disabilities',
'Life Threatening Illnesses', 'Life Threatening Illnesses',
'Hospitalization',
'Company', 'Company',
'Severe reports', 'Severe reports',
'Lethality' 'Lethality'

View File

@@ -30,13 +30,13 @@ FK-TODO:
+ VaersDescrReaderTest + VaersDescrReaderTest
+ VaersDescrReader + VaersDescrReader
- AdverseReactionReportsChartView + AdverseReactionReportsChartView
- batchCodes.html + batchCodes.html
- BatchCodeTableInitializer + BatchCodeTableInitializer
+ BatchCodeTableFactory + BatchCodeTableFactory
+ BatchCodeTableIntoHistogramDescriptionTableMergerTest + BatchCodeTableIntoHistogramDescriptionTableMergerTest
+ BatchCodeTableIntoHistogramDescriptionTableMerger + BatchCodeTableIntoHistogramDescriptionTableMerger
- BatchCodeTablePersister.py + BatchCodeTablePersister.py
anacron job: anacron job: