访视 和肿瘤学阅片结果
parent
ca3c818ac7
commit
a6c81418a4
|
@ -59,9 +59,11 @@ namespace IRaCIS.Core.Domain.Models
|
|||
/// </summary>
|
||||
public Guid CreateUserId { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("VisitTaskId")]
|
||||
public VisitTask VisitTask { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[ForeignKey("ReadingQuestionTrialId")]
|
||||
public ReadingQuestionTrial ReadingQuestionTrial { get; set; }
|
||||
}
|
||||
|
|
|
@ -263,6 +263,48 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
}
|
||||
|
||||
|
||||
//肿瘤学阅片结果
|
||||
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingOncologyTaskInfo)))
|
||||
{
|
||||
var type =AuditOpt.Add;
|
||||
|
||||
var entity = item.Entity as ReadingOncologyTaskInfo;
|
||||
|
||||
await InsertInspection<ReadingOncologyTaskInfo>(entity, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
VisitTaskId = entity.VisitTaskId,
|
||||
|
||||
ObjectRelationParentId = entity.VisitTaskId,
|
||||
|
||||
});
|
||||
}
|
||||
// 全局 阅片结果
|
||||
|
||||
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingGlobalTaskInfo)))
|
||||
{
|
||||
var type = AuditOpt.Add;
|
||||
|
||||
var entity = item.Entity as ReadingGlobalTaskInfo;
|
||||
|
||||
var questionName = string.Empty;
|
||||
if(entity.QuestionId != null)
|
||||
{
|
||||
questionName= await _dbContext.ReadingQuestionTrial.Where(t => t.Id == entity.QuestionId).Select(t => t.QuestionName).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
await InsertInspection<ReadingGlobalTaskInfo>(entity, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
VisitTaskId = entity.TaskId,
|
||||
|
||||
ObjectRelationParentId = entity.TaskId,
|
||||
|
||||
},new { QuestionName= questionName });
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Qc 问题答案
|
||||
if (entitys.Any(x => x.Entity.GetType() == typeof(TrialQCQuestionAnswer)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue