continuing
This commit is contained in:
25
docs/SymptomsCausedByCOVIDLots/js/PrrBySymptomTableView.js
Normal file
25
docs/SymptomsCausedByCOVIDLots/js/PrrBySymptomTableView.js
Normal file
@@ -0,0 +1,25 @@
|
||||
class PrrBySymptomTableView {
|
||||
|
||||
#delegate;
|
||||
|
||||
constructor(prrBySymptomTableElement, downloadPrrBySymptomTableButton) {
|
||||
this.#delegate = new PrrByKeyTableView(
|
||||
this.#createPrrBySymptomTable(prrBySymptomTableElement),
|
||||
downloadPrrBySymptomTableButton,
|
||||
'Vaccine',
|
||||
PrrByVaccineProvider.getPrrBySymptom);
|
||||
}
|
||||
|
||||
displayPrrBySymptomTable4Vaccine(vaccine) {
|
||||
this.#delegate.displayPrrByKeyTable4Value(vaccine);
|
||||
}
|
||||
|
||||
#createPrrBySymptomTable(tableElement) {
|
||||
return new PrrByKeyTable({
|
||||
tableElement: tableElement,
|
||||
keyColumnName: 'Symptom',
|
||||
prrColumnName: 'Proportional Reporting Ratio > 1',
|
||||
shallMarkRowIfPrrTooHigh: false
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user