|
|
@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Authorization; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Microsoft.EntityFrameworkCore; |
|
|
using Shentun.Peis.Diagnosises; |
|
|
using Shentun.Peis.Diagnosises; |
|
|
|
|
|
using Shentun.Peis.Enums; |
|
|
using Shentun.Peis.GuidTypes; |
|
|
using Shentun.Peis.GuidTypes; |
|
|
using Shentun.Peis.HelperDto; |
|
|
using Shentun.Peis.HelperDto; |
|
|
using Shentun.Peis.Items; |
|
|
using Shentun.Peis.Items; |
|
|
@ -139,7 +140,21 @@ namespace Shentun.Peis.Diagnosises |
|
|
IsSummaryTemplate = s.FirstOrDefault().a.IsSummaryTemplate, |
|
|
IsSummaryTemplate = s.FirstOrDefault().a.IsSummaryTemplate, |
|
|
ItemTypeId = s.FirstOrDefault().a.ItemTypeId, |
|
|
ItemTypeId = s.FirstOrDefault().a.ItemTypeId, |
|
|
SuggestionName = s.FirstOrDefault().a.SuggestionName, |
|
|
SuggestionName = s.FirstOrDefault().a.SuggestionName, |
|
|
Suggestions = s.Where(m => m.ab != null).Select(ss => new SuggestionDto |
|
|
|
|
|
|
|
|
HealthGuidances = s.Where(m => m.ab != null && m.ab.SuggestionType == SuggestionTypeFlag.HealthGuidance).Select(ss => new SuggestionDto |
|
|
|
|
|
{ |
|
|
|
|
|
CreationTime = ss.ab.CreationTime, |
|
|
|
|
|
CreatorId = ss.ab.CreatorId, |
|
|
|
|
|
CreatorName = s.FirstOrDefault().ae != null ? s.FirstOrDefault().ae.UserName : "", |
|
|
|
|
|
LastModifierName = s.FirstOrDefault().af != null ? s.FirstOrDefault().af.UserName : "", |
|
|
|
|
|
DiagnosisId = ss.ab.DiagnosisId, |
|
|
|
|
|
DisplayOrder = ss.ab.DisplayOrder, |
|
|
|
|
|
Id = ss.ab.Id, |
|
|
|
|
|
LastModificationTime = ss.ab.LastModificationTime, |
|
|
|
|
|
LastModifierId = ss.ab.LastModifierId, |
|
|
|
|
|
SuggestionContent = ss.ab.SuggestionContent |
|
|
|
|
|
|
|
|
|
|
|
}).OrderBy(o => o.DisplayOrder).ToList(), |
|
|
|
|
|
MedicalInterpretations = s.Where(m => m.ab != null && m.ab.SuggestionType == SuggestionTypeFlag.MedicalInterpretation).Select(ss => new SuggestionDto |
|
|
{ |
|
|
{ |
|
|
CreationTime = ss.ab.CreationTime, |
|
|
CreationTime = ss.ab.CreationTime, |
|
|
CreatorId = ss.ab.CreatorId, |
|
|
CreatorId = ss.ab.CreatorId, |
|
|
|