Merge branch 'Test_HIR_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_HIR_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
697ac6f57b
|
|
@ -1298,13 +1298,14 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
_userInfo.AuditIdentification = "HCC";
|
_userInfo.AuditIdentification = "HCC";
|
||||||
|
|
||||||
|
|
||||||
var trialReadingCriterion=await _readingQuestionCriterionTrialRepository.Where(x => x.Id == taskinfo.TrialReadingCriterionId).FirstOrDefaultAsync();
|
var trialReadingCriterion = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == taskinfo.TrialReadingCriterionId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
var tableRowAnswers = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == recistTask.Id).ProjectTo<CopyTableAnswerRowInfo>(_mapper.ConfigurationProvider).ToListAsync();
|
var tableRowAnswers = await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == recistTask.Id).ProjectTo<CopyTableAnswerRowInfo>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
|
|
||||||
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => x.TrialCriterionId == taskinfo.TrialReadingCriterionId).ToListAsync();
|
var tableQuestionList = await _readingTableQuestionTrialRepository.Where(x => x.TrialCriterionId == taskinfo.TrialReadingCriterionId).ToListAsync();
|
||||||
foreach (var rowInfo in tableRowAnswers)
|
foreach (var rowInfo in tableRowAnswers)
|
||||||
{
|
{
|
||||||
|
rowInfo.ReportMark = rowInfo.RowMark;
|
||||||
var question = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == taskinfo.TrialReadingCriterionId && x.LesionType == rowInfo.LesionType).FirstOrDefaultAsync();
|
var question = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == taskinfo.TrialReadingCriterionId && x.LesionType == rowInfo.LesionType).FirstOrDefaultAsync();
|
||||||
|
|
||||||
var organ = await _organInfoRepository.Where(x => x.Id == rowInfo.OrganInfoId).FirstOrDefaultAsync();
|
var organ = await _organInfoRepository.Where(x => x.Id == rowInfo.OrganInfoId).FirstOrDefaultAsync();
|
||||||
|
|
@ -1323,7 +1324,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
rowInfo.OrganInfoId = newOrgan.Id;
|
rowInfo.OrganInfoId = newOrgan.Id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(rowInfo.MeasureData!=null)
|
if (rowInfo.MeasureData != null)
|
||||||
{
|
{
|
||||||
rowInfo.MeasureData = rowInfo.MeasureData.Replace(recistTask.Id.ToString(), taskinfo.Id.ToString());
|
rowInfo.MeasureData = rowInfo.MeasureData.Replace(recistTask.Id.ToString(), taskinfo.Id.ToString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1733,18 +1733,20 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
var entity = item.Entity as SCPStudySubjectVisit;
|
var entity = item.Entity as SCPStudySubjectVisit;
|
||||||
|
|
||||||
var sCPStudy=await _dbContext.SCPStudy.Where(x => x.Id == entity.SCPStudyId).FirstOrDefaultAsync();
|
var sCPStudy = await _dbContext.SCPStudy.Where(x => x.Id == entity.SCPStudyId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
await InsertInspection<SCPStudySubjectVisit>(item.Entity as SCPStudySubjectVisit, type, x => new InspectionConvertDTO()
|
await InsertInspection<SCPStudySubjectVisit>(item.Entity as SCPStudySubjectVisit, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
ObjectRelationParentId = x.SubjectId,
|
ObjectRelationParentId = x.SubjectId,
|
||||||
ObjectRelationParentId2=x.SubjectVisitId,
|
ObjectRelationParentId2 = x.SubjectVisitId,
|
||||||
ObjectRelationParentId3 = x.StudyId,
|
ObjectRelationParentId3 = x.StudyId,
|
||||||
|
|
||||||
|
IsDistinctionInterface=false,
|
||||||
|
|
||||||
|
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
StudyTime = sCPStudy!=null? sCPStudy.StudyTime:null,
|
StudyTime = sCPStudy != null ? sCPStudy.StudyTime : null,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -1766,6 +1768,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
var reason = string.Empty;
|
var reason = string.Empty;
|
||||||
|
|
||||||
|
if (type == AuditOpt.Add)
|
||||||
|
{
|
||||||
|
isDistinctionInterface = false;
|
||||||
|
}
|
||||||
|
|
||||||
#region 处理标识
|
#region 处理标识
|
||||||
|
|
||||||
switch (_userInfo.RequestUrl.ToLower())
|
switch (_userInfo.RequestUrl.ToLower())
|
||||||
|
|
@ -1860,8 +1867,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
await InsertInspection<TaskStudy>(item.Entity as TaskStudy, type, x => new InspectionConvertDTO()
|
await InsertInspection<TaskStudy>(item.Entity as TaskStudy, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
ObjectRelationParentId = x.VisitTaskId,
|
ObjectRelationParentId = x.VisitTaskId,
|
||||||
},new {
|
}, new
|
||||||
ArmEnum= armEnum,
|
{
|
||||||
|
ArmEnum = armEnum,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1914,7 +1922,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
var extraIdentification = string.Empty;
|
var extraIdentification = string.Empty;
|
||||||
|
|
||||||
Arm armEnum = Arm.SingleReadingArm;
|
Arm armEnum = Arm.SingleReadingArm;
|
||||||
if (entity.VisitTaskId!=null)
|
if (entity.VisitTaskId != null)
|
||||||
{
|
{
|
||||||
extraIdentification = "/VisitTask";
|
extraIdentification = "/VisitTask";
|
||||||
armEnum = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).Select(x => x.ArmEnum).FirstOrDefaultAsync();
|
armEnum = await _dbContext.VisitTask.Where(x => x.Id == entity.VisitTaskId).Select(x => x.ArmEnum).FirstOrDefaultAsync();
|
||||||
|
|
@ -1925,7 +1933,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
await InsertInspection<NoneDicomStudyFile>(item.Entity as NoneDicomStudyFile, type, x => new InspectionConvertDTO()
|
await InsertInspection<NoneDicomStudyFile>(item.Entity as NoneDicomStudyFile, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
TrialId= trialid,
|
TrialId = trialid,
|
||||||
ObjectRelationParentId = x.VisitTaskId,
|
ObjectRelationParentId = x.VisitTaskId,
|
||||||
ExtraIndentification = extraIdentification
|
ExtraIndentification = extraIdentification
|
||||||
}, new
|
}, new
|
||||||
|
|
@ -3422,7 +3430,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
await InsertInspection<VisitTask>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<VisitTask>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
VisitTaskId = x.Id,
|
VisitTaskId = x.Id,
|
||||||
SubjectVisitId= subjectVisitId,
|
SubjectVisitId = subjectVisitId,
|
||||||
ExtraIndentification = extraIdentification,
|
ExtraIndentification = extraIdentification,
|
||||||
|
|
||||||
IsDistinctionInterface = type == AuditOpt.Update && isDistinctionInterface ? true : false,
|
IsDistinctionInterface = type == AuditOpt.Update && isDistinctionInterface ? true : false,
|
||||||
|
|
@ -3635,7 +3643,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
if (generalData.SubjectId != null)
|
if (generalData.SubjectId != null)
|
||||||
{
|
{
|
||||||
if (generalData.TrialId == null )
|
if (generalData.TrialId == null)
|
||||||
{
|
{
|
||||||
var info = await _dbContext.Subject.Where(x => x.Id == generalData.SubjectId).Select(x => new { SubjectId = x.Id, x.TrialSiteId, x.TrialId, SubjectCode = x.Code, }).FirstOrDefaultAsync();
|
var info = await _dbContext.Subject.Where(x => x.Id == generalData.SubjectId).Select(x => new { SubjectId = x.Id, x.TrialSiteId, x.TrialId, SubjectCode = x.Code, }).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
@ -3687,7 +3695,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
//自定义 标识后面 补充由代码上层的 extraIdentification 附加
|
//自定义 标识后面 补充由代码上层的 extraIdentification 附加
|
||||||
if (isSelfDefine)
|
if (isSelfDefine)
|
||||||
{
|
{
|
||||||
result= $"{_userInfo.RequestUrl}/{entityTypeName}";
|
result = $"{_userInfo.RequestUrl}/{entityTypeName}";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue