public IActionResult Visit(string p, RegistrationVisitViewModel model) { model.Visit.Patient = IPatientService.GetPatient(p); model.Codes = ICoreService.GetClientCodesIEnumerable(); model.Rooms = ICoreService.GetRoomsIEnumerable(); model.Types = ICoreService.GetRoomsIEnumerable(new RoomType { Id = Constants.ROOM_TRIAGE }); model.Referrals = IConceptService.GetConceptAnswersIEnumerable(new Concept { Id = Constants.REFERRAL_TYPE }); model.MedicoLegal = IConceptService.GetConceptAnswersIEnumerable(new Concept { Id = Constants.MEDICO_LEGAL }); model.Doctors = IDoctorService.GetDoctorsIEnumerable(); return(View(model)); }
public IActionResult Patient(string p, RegistrationVisitViewModel model) { model.Visit.Patient = IPatientService.GetPatient(p); return(View(model)); }