public DiseaseDescriptionController(HealthDatabaseContext context) { _context = context; _diseaseDescriptions.Add("covid-19", new DiseaseDescription { Information = "Some information about covid", Symptoms = "High temperature", Treatment = "Keep home", Vaccination = "On their way", UsefulReferences = new List <DiseaseUsefulUrl> { new DiseaseUsefulUrl() { Name = "WHO", Url = "https://www.who.int/emergencies/diseases/novel-coronavirus-2019" } } }); _diseaseDescriptions.Add("ebola", new DiseaseDescription { Information = "Some information about ebola", Symptoms = "High temperature", Treatment = "Drink a lot", Vaccination = "Some specialized center", UsefulReferences = new List <DiseaseUsefulUrl> { new DiseaseUsefulUrl() { Name = "WHO", Url = "https://www.who.int/emergencies/diseases/ebola" } } }); }
public ImmunisationController(HealthDatabaseContext context) { _context = context; var status1 = new ImmuntisationStatus { Uuid = user1, ImmuneType = "covid-19", CertBody = "gov", Tested = true, CertDate = DateTime.Today.AddDays(-5).Date.ToString("o"), CertExpiry = DateTime.Today.AddDays(14).Date.ToString("o") }; var status2 = new ImmuntisationStatus { Uuid = user1, ImmuneType = "ebola", CertBody = "gov", CertDate = DateTime.Today.Date.ToString("o"), CertExpiry = DateTime.Today.AddDays(30).Date.ToString("o") }; var status3 = new ImmuntisationStatus { Uuid = user2, ImmuneType = "covid-19", CertBody = "gov", CertDate = DateTime.Today.Date.ToString("o"), CertExpiry = ForLive }; _immuntisationStatus.Add(status1); _immuntisationStatus.Add(status2); _immuntisationStatus.Add(status3); }
public InteractionTrackingsController(HealthDatabaseContext context) { _context = context; }
public DiseaseDescriptionsController(HealthDatabaseContext context) { _context = context; }
public ReportDiseaseController(HealthDatabaseContext context) { _context = context; }
public ImmuntisationStatusController(HealthDatabaseContext context) { _context = context; }