Фикс функции в логике отчетов исполнителя
This commit is contained in:
parent
c73e54da8e
commit
68329a7444
@ -52,14 +52,13 @@ namespace PolyclinicBusinessLogic.BusinessLogics
|
||||
{
|
||||
diagnoseMedicaments.AddRange(medicaments.Where(x => x.SymptomId == symptom.Id));
|
||||
}
|
||||
diagnoseMedicaments.Distinct();
|
||||
var diagnoseReportModel = new ReportMedicamentsByDiagnoseViewModel {
|
||||
DiagnoseId = diagnose.Id,
|
||||
DiagnoseName = diagnose.Name,
|
||||
DiagnoseComment = diagnose.Comment,
|
||||
DiagnoseDateStart = diagnose.DateStartDiagnose,
|
||||
DiagnoseDateStop = diagnose.DateStopDiagnose,
|
||||
Medicaments = diagnoseMedicaments.Select(x => x.Name).ToList()
|
||||
Medicaments = diagnoseMedicaments.Distinct().Select(x => x.Name).ToList()
|
||||
};
|
||||
result.Add(diagnoseReportModel);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user