导出模板修改
parent
2530843931
commit
17ce41209f
Binary file not shown.
|
|
@ -7357,6 +7357,11 @@
|
||||||
签名时间
|
签名时间
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ExportVisitData.IsConvertedTask">
|
||||||
|
<summary>
|
||||||
|
是否为转变任务
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ExportVisitData.DoctorSignTime">
|
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ExportVisitData.DoctorSignTime">
|
||||||
<summary>
|
<summary>
|
||||||
医生签名时间
|
医生签名时间
|
||||||
|
|
|
||||||
|
|
@ -283,6 +283,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string OneDoctorSign { get; set; } = string.Empty;
|
public string OneDoctorSign { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public bool OneIsConvertedTask { get; set; } = false;
|
||||||
|
|
||||||
public string TwoVisitName { get; set; } = string.Empty;
|
public string TwoVisitName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string TwoCheckDate { get; set; } = string.Empty;
|
public string TwoCheckDate { get; set; } = string.Empty;
|
||||||
|
|
@ -339,6 +341,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public string TwoDoctorSign { get; set; } = string.Empty;
|
public string TwoDoctorSign { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public bool TwoIsConvertedTask { get; set; } = false;
|
||||||
|
|
||||||
public string ThreeVisitName { get; set; } = string.Empty;
|
public string ThreeVisitName { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string ThreeCheckDate { get; set; } = string.Empty;
|
public string ThreeCheckDate { get; set; } = string.Empty;
|
||||||
|
|
@ -393,6 +397,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public string ThreeDoctorSignTime { get; set; } = string.Empty;
|
public string ThreeDoctorSignTime { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string ThreeDoctorSign { get; set; } = string.Empty;
|
public string ThreeDoctorSign { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public bool ThreeIsConvertedTask { get; set; } = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ExportVisitData
|
public class ExportVisitData
|
||||||
|
|
@ -488,6 +494,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SignTime { get; set; } = string.Empty;
|
public string SignTime { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否为转变任务
|
||||||
|
/// </summary>
|
||||||
|
public bool IsConvertedTask { get; set; } = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 医生签名时间
|
/// 医生签名时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
.Include(x => x.SourceSubjectVisit).Include(x => x.SourceSubjectVisit.StudyList)
|
.Include(x => x.SourceSubjectVisit).Include(x => x.SourceSubjectVisit.StudyList)
|
||||||
.Include(x => x.DoctorUser).ToListAsync();
|
.Include(x => x.DoctorUser).ToListAsync();
|
||||||
|
|
||||||
|
var isConvertedTaskList= await _visitTaskRepository.Where(x => relatedTaskIds.Contains(x.Id)).Select(x => new { x.Id, x.IsConvertedTask }).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
string getHavePreviousNewLesions(Guid visitId)
|
string getHavePreviousNewLesions(Guid visitId)
|
||||||
|
|
@ -134,8 +136,8 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
HaveNewLesion = _generalCalculateService.GetTaskanswer(answerList, dictionList, unitDictionary, x.Id, QuestionType.NewLesions),
|
HaveNewLesion = _generalCalculateService.GetTaskanswer(answerList, dictionList, unitDictionary, x.Id, QuestionType.NewLesions),
|
||||||
// 是否有明确既往新病灶 // 结果为IPUD就是有 其他的是无
|
// 是否有明确既往新病灶 // 结果为IPUD就是有 其他的是无
|
||||||
HavePreviousNewLesions = getHavePreviousNewLesions(x.Id),
|
HavePreviousNewLesions = getHavePreviousNewLesions(x.Id),
|
||||||
|
IsConvertedTask= isConvertedTaskList.Where(y=>y.Id==x.Id).Select(x=>x.IsConvertedTask).FirstOrDefault(),
|
||||||
// 是否有明确既往新病灶
|
// 是否有触发iRECIST后新病灶
|
||||||
HaveTriggeringIRECSITNewLesions = _generalCalculateService.GetTaskanswer(answerList, dictionList, unitDictionary, x.Id, QuestionType.IRECISTNewTargetLesion),
|
HaveTriggeringIRECSITNewLesions = _generalCalculateService.GetTaskanswer(answerList, dictionList, unitDictionary, x.Id, QuestionType.IRECISTNewTargetLesion),
|
||||||
|
|
||||||
NewTargetResult = _generalCalculateService.GetTaskanswer(answerList, dictionList, unitDictionary, x.Id, QuestionType.NewTargetLesion),
|
NewTargetResult = _generalCalculateService.GetTaskanswer(answerList, dictionList, unitDictionary, x.Id, QuestionType.NewTargetLesion),
|
||||||
|
|
@ -232,6 +234,19 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
var subjectName = subjectInfo.ShortName;
|
var subjectName = subjectInfo.ShortName;
|
||||||
var subjectCode = string.Join(",", patientIdStrList); //患者编号;
|
var subjectCode = string.Join(",", patientIdStrList); //患者编号;
|
||||||
|
|
||||||
|
foreach (var item in exportVisitDatas)
|
||||||
|
{
|
||||||
|
if (!item.IsConvertedTask)
|
||||||
|
{
|
||||||
|
item.HavePreviousNewLesions = "NA";
|
||||||
|
item.HaveTriggeringIRECSITNewLesions = "NA";
|
||||||
|
item.NewTargetResult = "NA";
|
||||||
|
item.NewNoTargetResult = "NA";
|
||||||
|
item.OtherPreviousNewLesionResult = "NA";
|
||||||
|
item.TriggeringIRECSITResult = "NA";
|
||||||
|
item.NewLesionEvaluationResult = "NA";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
List<ExportTumorEvaluationInfo> resultdata = new List<ExportTumorEvaluationInfo>();
|
List<ExportTumorEvaluationInfo> resultdata = new List<ExportTumorEvaluationInfo>();
|
||||||
|
|
@ -252,6 +267,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
"OtherPreviousNewLesionResult",
|
"OtherPreviousNewLesionResult",
|
||||||
"TriggeringIRECSITResult",
|
"TriggeringIRECSITResult",
|
||||||
"NewLesionEvaluationResult",
|
"NewLesionEvaluationResult",
|
||||||
|
"IsConvertedTask",
|
||||||
};
|
};
|
||||||
|
|
||||||
var forCount = (int)Math.Ceiling((double)exportVisitDatas.Count() / 3);
|
var forCount = (int)Math.Ceiling((double)exportVisitDatas.Count() / 3);
|
||||||
|
|
@ -518,6 +534,14 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
new ExportReportQuestion (){QuestionType=QuestionType.LowVisit},
|
new ExportReportQuestion (){QuestionType=QuestionType.LowVisit},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var evaluationList= new List<ExportReportQuestion>()
|
||||||
|
{ new ExportReportQuestion (){QuestionType=QuestionType.TargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NoTargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NewLesions},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.ExistDisease},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.Tumor }
|
||||||
|
};
|
||||||
|
|
||||||
var isConvertedTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Select(x => x.IsConvertedTask).FirstOrDefaultAsync();
|
var isConvertedTask = await _visitTaskRepository.Where(x => x.Id == inDto.VisitTaskId).Select(x => x.IsConvertedTask).FirstOrDefaultAsync();
|
||||||
|
|
||||||
if (isConvertedTask)
|
if (isConvertedTask)
|
||||||
|
|
@ -529,6 +553,22 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
evaluationList = new List<ExportReportQuestion>()
|
||||||
|
{
|
||||||
|
new ExportReportQuestion (){QuestionType=QuestionType.TargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NoTargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NewLesions},
|
||||||
|
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NewTargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NewNoTargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.OtherNewTargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.IRECISTNewTargetLesion},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.NewLesionEvaluation},
|
||||||
|
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.ExistDisease},
|
||||||
|
new ExportReportQuestion (){ QuestionType=QuestionType.Tumor }
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var assessmentResult = string.Empty;
|
var assessmentResult = string.Empty;
|
||||||
|
|
@ -585,13 +625,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
|
|
||||||
{ "TNMValue",taskinfo.TNMValue}, // TNM分期
|
{ "TNMValue",taskinfo.TNMValue}, // TNM分期
|
||||||
{ "Result",getQuestionAnswerList(resultList)}, // 评估结果
|
{ "Result",getQuestionAnswerList(resultList)}, // 评估结果
|
||||||
{ "Curative",getQuestionAnswerList(new List<ExportReportQuestion>()
|
{ "Curative",getQuestionAnswerList(evaluationList)}, // 疗效结果
|
||||||
{ new ExportReportQuestion (){QuestionType=QuestionType.TargetLesion},
|
|
||||||
new ExportReportQuestion (){ QuestionType=QuestionType.NoTargetLesion},
|
|
||||||
new ExportReportQuestion (){ QuestionType=QuestionType.NewLesions},
|
|
||||||
new ExportReportQuestion (){ QuestionType=QuestionType.ExistDisease},
|
|
||||||
new ExportReportQuestion (){ QuestionType=QuestionType.Tumor},
|
|
||||||
})}, // 疗效结果
|
|
||||||
|
|
||||||
{ "ReportNo",await _generalCalculateService.GetReportExportNo(taskinfo) } ,
|
{ "ReportNo",await _generalCalculateService.GetReportExportNo(taskinfo) } ,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -255,7 +255,7 @@ public class VisitTask : BaseFullAuditEntity
|
||||||
[Projectable]
|
[Projectable]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public bool IsConvertedTask => BeforeConvertedTaskId != null || IsHistoryConvertedTask || Subject.SubjectVisitTaskList.Where(t => t.TrialReadingCriterionId == TrialReadingCriterionId
|
public bool IsConvertedTask => BeforeConvertedTaskId != null || IsHistoryConvertedTask || Subject.SubjectVisitTaskList.Where(t => t.TrialReadingCriterionId == TrialReadingCriterionId
|
||||||
&& t.DoctorUserId == DoctorUserId && t.BeforeConvertedTaskId != null
|
&& t.BeforeConvertedTaskId != null
|
||||||
&& t.TaskState == TaskState.Effect
|
&& t.TaskState == TaskState.Effect
|
||||||
&& t.VisitTaskNum < VisitTaskNum
|
&& t.VisitTaskNum < VisitTaskNum
|
||||||
&& t.IsSelfAnalysis == IsSelfAnalysis
|
&& t.IsSelfAnalysis == IsSelfAnalysis
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue