|
|
|
@ -143,7 +143,7 @@ namespace Shentun.Peis.Diagnosises |
|
|
|
IsSummaryTemplate = s.FirstOrDefault().a.IsSummaryTemplate, |
|
|
|
ItemTypeId = s.FirstOrDefault().a.ItemTypeId, |
|
|
|
SuggestionName = s.FirstOrDefault().a.SuggestionName, |
|
|
|
|
|
|
|
IsActive = s.FirstOrDefault().a.IsActive, |
|
|
|
MedicalInterpretations = s.Where(m => m.ab != null && m.ab.SuggestionType == SuggestionTypeFlag.MedicalInterpretation).Select(ss => new SuggestionDto |
|
|
|
{ |
|
|
|
CreationTime = ss.ab.CreationTime, |
|
|
|
@ -202,10 +202,10 @@ namespace Shentun.Peis.Diagnosises |
|
|
|
[HttpPost("api/app/Diagnosis/GetSimpleList")] |
|
|
|
public async Task<List<SimpleDiagnosisDto>> GetSimpleListAsync() |
|
|
|
{ |
|
|
|
var diagnosisList = await Repository.GetListAsync(); |
|
|
|
var diagnosisList = await Repository.GetListAsync(m => m.IsActive == 'Y'); |
|
|
|
var entlist = diagnosisList.Select(s => new SimpleDiagnosisDto |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
DisplayName = s.DisplayName, |
|
|
|
Id = s.Id, |
|
|
|
SimpleCode = s.SimpleCode |
|
|
|
@ -216,7 +216,7 @@ namespace Shentun.Peis.Diagnosises |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取诊断列表,加诊断建议
|
|
|
|
/// 获取诊断列表,加诊断建议 总检医生诊台使用,增加是否启用状态筛选
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost("api/app/Diagnosis/GetSimpleDiagnosisWithSuggestions")] |
|
|
|
@ -225,6 +225,7 @@ namespace Shentun.Peis.Diagnosises |
|
|
|
var query = from a in await Repository.GetQueryableAsync() |
|
|
|
join b in await _suggestionRepository.GetQueryableAsync() on a.Id equals b.DiagnosisId into bb |
|
|
|
from ab in bb.DefaultIfEmpty() |
|
|
|
where a.IsActive == 'Y' |
|
|
|
select new |
|
|
|
{ |
|
|
|
a = new |
|
|
|
|