Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-11-11 14:08:57 +08:00
commit a0fe7be308
2 changed files with 14 additions and 3 deletions

View File

@ -24,6 +24,8 @@ public class TumorCommonQustionInfo
public string TranslateDicName { get; set; }
public ValueUnit? Unit { get; set; }
public ValueOfType? ValueType { get; set; }
}
public class TumorLessionInfo
@ -210,9 +212,9 @@ public class TU_TR_RSBaseModel
public string IsJudgeSelectStr => IsJudgeSelect == true ? "Y" : "";
public bool IsTargetPD = false;
public bool IsTargetPD { get; set; } = false;
public bool IsOverallResponsePD = false;
public bool IsOverallResponsePD { get; set; } = false;
//TR表 靶病灶PD了访视层级的都是最早拍片日期 RS表 整体肿瘤评估PD了那么疗效评估的拍片日期都给最早的
public bool IsPD => Domain == "TR" ? IsTargetPD : IsOverallResponsePD;

View File

@ -302,6 +302,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
QuestionName = isEn_Us ? c.ReadingQuestionTrial.QuestionEnName : c.ReadingQuestionTrial.QuestionName,
QuestionValue = c.IsGlobalChange ? c.GlobalChangeAnswer : c.Answer,
TranslateDicName = c.ReadingQuestionTrial.DictionaryCode,
ValueType = c.ReadingQuestionTrial.ValueType,
Unit = c.ReadingQuestionTrial.Unit
}).ToList(),
@ -576,7 +577,15 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
}
else
{
tr.OriginalMeasurements = questionAnswer.QuestionValue;
if (questionAnswer.ValueType == ValueOfType.Percentage)
{
tr.OriginalMeasurements = questionAnswer.QuestionValue +"%";
}
else
{
tr.OriginalMeasurements = questionAnswer.QuestionValue;
}
}
tr.OriginalUnit = translateDataList["ValueUnit"].Where(t => t.Code.ToLower() == ((int?)questionAnswer.Unit)?.ToString().ToLower()).Select(t => isEn_Us ? t.Value : t.ValueCN).FirstOrDefault() ?? String.Empty;