Files
HowBadIsMyBatch/docs/SymptomsCausedByVaccines/js/PrrByVaccineProvider.js
2023-10-13 20:57:18 +02:00

10 lines
360 B
JavaScript

class PrrByVaccineProvider {
static getPrrByVaccine(symptom) {
return fetch(`../data/ProportionalReportingRatios/symptoms/${symptom}.json`).then(response => response.json());
}
static getPrrBySymptom(vaccine) {
return fetch(`../data/ProportionalReportingRatios/vaccines/${vaccine}.json`).then(response => response.json());
}
}