Files
HowBadIsMyBatch/docs/SymptomsCausedByVaccines/js/PrrByVaccineProvider.js
frankknoll e6492708b2 refactoring
2023-11-10 11:34:30 +01:00

10 lines
358 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());
}
}