refactoring

This commit is contained in:
frankknoll
2023-10-15 16:12:46 +02:00
parent 91c7bebeb5
commit 53c776ed78
7 changed files with 30 additions and 64 deletions

View File

@@ -4,7 +4,7 @@ class PrrBySymptomTableView {
constructor(prrBySymptomTableElement, downloadPrrBySymptomTableButton) {
this.#delegate = new PrrByKeyTableView(
new PrrBySymptomTable(prrBySymptomTableElement),
this.#createPrrBySymptomTable(prrBySymptomTableElement),
downloadPrrBySymptomTableButton,
'Vaccine',
PrrByVaccineProvider.getPrrBySymptom);
@@ -13,4 +13,13 @@ class PrrBySymptomTableView {
displayPrrBySymptomTable4Vaccine(vaccine) {
this.#delegate.displayPrrByKeyTable4Value(vaccine);
}
#createPrrBySymptomTable(tableElement) {
return new PrrByKeyTable({
tableElement: tableElement,
keyColumnName: 'Symptom',
prrColumnName: 'Proportional Reporting Ratio > 1',
shallMarkRowIfPrrTooHigh: false
});
}
}