Фикс функции в логике отчетов исполнителя
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.AddRange(medicaments.Where(x => x.SymptomId == symptom.Id));
|
||||||
}
|
}
|
||||||
diagnoseMedicaments.Distinct();
|
|
||||||
var diagnoseReportModel = new ReportMedicamentsByDiagnoseViewModel {
|
var diagnoseReportModel = new ReportMedicamentsByDiagnoseViewModel {
|
||||||
DiagnoseId = diagnose.Id,
|
DiagnoseId = diagnose.Id,
|
||||||
DiagnoseName = diagnose.Name,
|
DiagnoseName = diagnose.Name,
|
||||||
DiagnoseComment = diagnose.Comment,
|
DiagnoseComment = diagnose.Comment,
|
||||||
DiagnoseDateStart = diagnose.DateStartDiagnose,
|
DiagnoseDateStart = diagnose.DateStartDiagnose,
|
||||||
DiagnoseDateStop = diagnose.DateStopDiagnose,
|
DiagnoseDateStop = diagnose.DateStopDiagnose,
|
||||||
Medicaments = diagnoseMedicaments.Select(x => x.Name).ToList()
|
Medicaments = diagnoseMedicaments.Distinct().Select(x => x.Name).ToList()
|
||||||
};
|
};
|
||||||
result.Add(diagnoseReportModel);
|
result.Add(diagnoseReportModel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user