Files
HowBadIsMyBatch/docs/SymptomsCausedByVaccines/js/PrrBySymptomTableView.js
frankknoll 53c776ed78 refactoring
2023-10-15 16:12:46 +02:00

26 lines
767 B
JavaScript

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
});
}
}