Files
HowBadIsMyBatch/docs/SymptomsCausedByDrugs/js/PrrByVaccineProvider.js
2024-07-12 08:48:27 +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());
}
}