添加全局阅片期
parent
fbdda04913
commit
0a1074212c
|
@ -9,6 +9,7 @@ using IRaCIS.Core.Application.Interfaces;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using IRaCIS.Core.Application.Auth;
|
using IRaCIS.Core.Application.Auth;
|
||||||
using IRaCIS.Core.Domain.Share.Reading;
|
using IRaCIS.Core.Domain.Share.Reading;
|
||||||
|
using IRaCIS.Core.Infra.EFCore.Common;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Services
|
namespace IRaCIS.Core.Application.Services
|
||||||
{
|
{
|
||||||
|
@ -99,20 +100,24 @@ namespace IRaCIS.Core.Application.Services
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//// 末次访视添加全局阅片
|
// 末次访视添加全局阅片
|
||||||
//if (dbBeforeEntity.IsFinalVisit == false && svCommand.IsFinalVisit == true)
|
if (dbBeforeEntity.IsFinalVisit == false && svCommand.IsFinalVisit == true)
|
||||||
//{
|
{
|
||||||
// if (!await _readModuleRepository.AnyAsync(x => x.SubjectVisitId == svCommand.Id && x.ReadingSetType == ReadingSetType.ImageReading))
|
// 当前访视没有阅片期才添加
|
||||||
// {
|
if (!await _readModuleRepository.AnyAsync(x => x.SubjectVisitId == svCommand.Id && x.ReadingSetType == ReadingSetType.ImageReading))
|
||||||
// _readModuleRepository.AddAsync(new ReadModule()
|
{
|
||||||
// {
|
await _readModuleRepository.AddAsync(new ReadModule()
|
||||||
// IsUrgent= dbBeforeEntity.IsUrgent,
|
{
|
||||||
// SubjectVisitId= svCommand.Id.Value,
|
IsUrgent = dbBeforeEntity.IsUrgent,
|
||||||
// Status=
|
SubjectVisitId = svCommand.Id.Value,
|
||||||
|
Status = ReadingCommon.GetVisitSubmitStateEnum(dbBeforeEntity),
|
||||||
// });
|
SubjectId = dbBeforeEntity.SubjectId,
|
||||||
// }
|
ModuleName="G",// 全局阅片
|
||||||
//}
|
ReadingSetType= ReadingSetType.ImageReading,
|
||||||
|
ModuleType=ModuleTypeEnum.Global,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,11 @@ namespace IRaCIS.Core.Domain.Share.Reading
|
||||||
/// 肿瘤学
|
/// 肿瘤学
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Oncology = 4,
|
Oncology = 4,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 全局阅片
|
||||||
|
/// </summary>
|
||||||
|
Global = 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ReadingSetType
|
public enum ReadingSetType
|
||||||
|
|
Loading…
Reference in New Issue