переименование логики репортов

This commit is contained in:
ValAnn 2024-05-05 02:52:19 +04:00
parent b5e9c5c194
commit 13b1baf5cb

View File

@ -47,13 +47,15 @@ namespace HospitalBusinessLogic.BusinessLogics
List<string> medicineList = new List<string>();
foreach (var recipe in _recipeStorage.GetFilteredList(new RecipeSearchModel {PatientId = patient.Id}))
{
foreach (var medicine in _medicineStorage.GetFilteredList(new MedicineSearchModel { RecipeId = recipe.Id}))
foreach (var medicine in _medicineStorage.GetFilteredList(new MedicineSearchModel { RecipeId = recipe.Id }))
{
medicineList.Add(new(medicine.Name));
}
foreach (var disease in _diseaseStorage.GetFilteredList(new DiseaseSearchModel {RecipeId = recipe.Id}))
{
diseaseList.Add(disease.Name);
foreach (var disease in medicine.MedicineRecipes)
{
diseaseList.Add(disease.Value.Description);
}
}
}
var record = new ReportPatientViewModel