public ApiReturnViewModel <IEnumerable <EBMModel> > GetPatients(ChartNoViewModel viewModel) { var result = new ApiReturnViewModel <IEnumerable <EBMModel> >() { Status = "Ok", Data = _patientService.GetEBMByChartNo(viewModel.ChartNo), ErrorMessage = "" }; return(result); }
public ApiReturnViewModel <IEnumerable <PatientRoundViewModel> > GetPatientRounds(PatientViewModel viewModel) { var result = new ApiReturnViewModel <IEnumerable <PatientRoundViewModel> >() { Status = "Ok", Data = _patientService.GetPatientData(viewModel.RID) .Select(x => new PatientRoundViewModel() { ChartNo = x.ChartNo, Date = DateTime.Now.ToString("yyyyMMdd") }), ErrorMessage = "" }; return(result); }