Files
HowBadIsMyBatch/docs/SymptomsCausedByDrugs/js/PrrByVaccineProvider.js
2024-07-10 23:45:21 +02: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());
}
}