From f40faa55199b14426171e6b1d7fc32cd8f7aa92e Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 11 Nov 2025 09:58:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=97=85=E7=81=B6=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E5=92=8C=E6=8B=8D=E7=89=87=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E4=BB=A5=E5=8F=8APD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/Export/CDISCExportBaseModel.cs | 18 +++++++++++++++++- .../Common/Export/RESISTExportService.cs | 18 +++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Common/Export/CDISCExportBaseModel.cs b/IRaCIS.Core.Application/Service/Common/Export/CDISCExportBaseModel.cs index 596324c51..073ed414f 100644 --- a/IRaCIS.Core.Application/Service/Common/Export/CDISCExportBaseModel.cs +++ b/IRaCIS.Core.Application/Service/Common/Export/CDISCExportBaseModel.cs @@ -178,6 +178,8 @@ public class TU_TR_RSBaseModel /// public DateTime? LatestScanDate { get; set; } + public DateTime? EarliestScanDate { get; set; } + /// /// eCRF标识 TUREFID TRREFID RSREFID /// @@ -208,8 +210,22 @@ public class TU_TR_RSBaseModel public string IsJudgeSelectStr => IsJudgeSelect == true ? "Y" : ""; + public bool IsTargetPD = false; + + public bool IsOverallResponsePD = false; + + //TR表 靶病灶PD了,访视层级的都是最早拍片日期 RS表 整体肿瘤评估PD了,那么疗效评估的拍片日期都给最早的 + public bool IsPD => Domain == "TR" ? IsTargetPD : IsOverallResponsePD; + public string ArmEnumStr { get; set; } - public string LatestScanDateStr => LatestScanDate != null ? LatestScanDate?.ToString("yyyy-MM-dd")! : ""; + public string LatestScanDateStr + { + get + { + var date = IsPD ? EarliestScanDate : LatestScanDate; + return date?.ToString("yyyy-MM-dd") ?? ""; + } + } public string TrialSiteSubjectCode => ResearchProgramNo + SubjectCode; #endregion } diff --git a/IRaCIS.Core.Application/Service/Common/Export/RESISTExportService.cs b/IRaCIS.Core.Application/Service/Common/Export/RESISTExportService.cs index 8384242ca..e28be0d9d 100644 --- a/IRaCIS.Core.Application/Service/Common/Export/RESISTExportService.cs +++ b/IRaCIS.Core.Application/Service/Common/Export/RESISTExportService.cs @@ -258,6 +258,7 @@ public class Tumor_CDISC_ExportService(IRepository t.ShowOrder)) { var trLessionIndex = -1; @@ -560,6 +561,10 @@ public class Tumor_CDISC_ExportService(IRepository t.VisitTaskId == tr.VisitTaskId && t.TumorIdentificationResult == "TARGET" && t.IdentificationMethod.IsNotNullOrEmpty()).Select(t => t.IdentificationMethod).Distinct()); + + //填充固定信息 Fill_TR_IndexValue(tr, trValueTypeIndex, trValueList); @@ -630,6 +635,17 @@ public class Tumor_CDISC_ExportService(IRepository t.VisitTaskId == rs.VisitTaskId && t.TRGRPID.IsNullOrEmpty() && t.ARM_TumorNo.IsNullOrEmpty())) + { + tr.IsTargetPD = true; + } } var findTask = reReadingList.FirstOrDefault(t => t.UserName == rs.UserName && t.ArmEnum == rs.ArmEnum && t.VisitTaskNum == rs.VisitNum);