Пример #1
0
        public async Task <DoctorPanelViewModel> GetDoctorPanelByEpiRowIdAsync(long epiRowId)
        {
            var vitalSigns = await _vitalSignsService.GetVitalSignsOPDByEpiRowIdAsync(epiRowId);

            var physicalExam = await _physicalExamService.GetPhysicalExamsByEpiRowIdAsync(epiRowId);

            var diet = await _dietService.GetDietByEpiRowIdAsync(epiRowId);

            var exercise = await _exerciseService.GetExerciseByEpiRowIdAsync(epiRowId);

            var treatment = await _treatmentService.GetPlanAndTreatmentsByEpiRowIdAsync(epiRowId);

            var result = new DoctorPanelViewModel()
            {
                VitalSignsOPDs        = vitalSigns,
                PhysicalExams         = physicalExam,
                NutritionInformations = diet,
                Exercises             = exercise,
                PlanAndTreatments     = treatment
            };

            return(result);
        }