class PrrBySymptomTableView {

    #delegate;

    constructor(prrBySymptomTableElement, downloadPrrBySymptomTableButton) {
        this.#delegate = new PrrByKeyTableView(
            this.#createPrrBySymptomTable(prrBySymptomTableElement),
            downloadPrrBySymptomTableButton,
            'Batch',
            PrrByVaccineProvider.getPrrBySymptom);
    }

    displayPrrBySymptomTable4Vaccine(vaccine) {
        this.#delegate.displayPrrByKeyTable4Value(vaccine);
    }

    #createPrrBySymptomTable(tableElement) {
        return new PrrByKeyTable({
            tableElement: tableElement,
            keyColumnName: 'Symptom',
            prrColumnName: 'Proportional Reporting Ratio > 1',
            shallMarkRowIfPrrTooHigh: false
        });
    }
}
