Files
HowBadIsMyBatch/docs/SymptomsCausedByDrugs/js/PrrBySymptomTableView.js
2024-07-16 11:48:04 +02:00

30 lines
873 B
JavaScript

class PrrBySymptomTableView {
#delegate;
constructor(prrBySymptomTableElement, downloadPrrBySymptomTableButton, valueName) {
this.#delegate = new PrrByKeyTableView(
this.#createPrrBySymptomTable(prrBySymptomTableElement),
downloadPrrBySymptomTableButton,
valueName,
PrrByVaccineProvider.getPrrBySymptom);
}
displayPrrBySymptomTable4Vaccine(id, text) {
this.#delegate.displayPrrByKeyTable4Value(id, text);
}
getTable() {
return this.#delegate.getTable();
}
#createPrrBySymptomTable(tableElement) {
return new PrrByKeyTable({
tableElement: tableElement,
keyColumnName: 'Symptom',
prrColumnName: 'Lower Confidence Limit of Proportional Reporting Ratio >= 2',
shallMarkRowIfPrrTooHigh: false
});
}
}