Compare commits

..

No commits in common. "53b2b9156f2c27c5997273a6a012c0768c3416a9" and "09ee238e50ab12a686f5be429edf0587fb112137" have entirely different histories.

1 changed files with 5 additions and 7 deletions

View File

@ -314,7 +314,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
LesionList = t.LesionList.OrderBy(t => t.RowMark).Select(c => new TumorLessionInfo() LesionList = t.LesionList.OrderBy(t => t.RowMark).Select(c => new TumorLessionInfo()
{ {
Id = c.Id, Id = c.Id,
OrganInfoId = c.OrganInfoId, OrganInfoId=c.OrganInfoId,
LessionType = c.ReadingQuestionTrial.LesionType, LessionType = c.ReadingQuestionTrial.LesionType,
LessionCode = c.RowMark, LessionCode = c.RowMark,
SplitRowId = c.SplitRowId, SplitRowId = c.SplitRowId,
@ -389,7 +389,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
.Union(new List<string>() { "ArmEnum", "ValueUnit", "GlobalAssessType", "ImageQualityIssues" }) .Union(new List<string>() { "ArmEnum", "ValueUnit", "GlobalAssessType", "ImageQualityIssues" })
.Distinct().ToArray(); .Distinct().ToArray();
var trialOrganDic = _trialOrganRepository.Where(t => t.TrialCriterionId == criterion.Id).Select(t => new { t.OrganInfoId, t.Part, t.PartEN }).ToDictionary( var trialOrganDic = _trialOrganRepository.Where(t => t.TrialCriterionId == criterion.Id).Select(t=>new {t.OrganInfoId,t.Part,t.PartEN}).ToDictionary(
t => t.OrganInfoId, t => t.OrganInfoId,
t => new { t.Part, t.PartEN } t => new { t.Part, t.PartEN }
); );
@ -660,7 +660,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
} }
else else
{ {
if (questionAnswer.ValueType == ValueOfType.Percentage && double.TryParse(questionAnswer.QuestionValue, out _)) if (questionAnswer.ValueType == ValueOfType.Percentage)
{ {
tr.OriginalMeasurements = questionAnswer.QuestionValue + "%"; tr.OriginalMeasurements = questionAnswer.QuestionValue + "%";
@ -721,9 +721,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
rs.RespondEfficacyAssessment = questionAnswer.QuestionValue; rs.RespondEfficacyAssessment = questionAnswer.QuestionValue;
} }
if ((questionAnswer.QuestionType == QuestionType.Tumor && criterion.CriterionType == CriterionType.RECIST1Point1)|| if (questionAnswer.QuestionType == QuestionType.Tumor)
(questionAnswer.QuestionType == QuestionType.ImgOncology && criterion.CriterionType == CriterionType.Lugano2014))
{ {
rs.AssessmentReason = task.VisitNote; rs.AssessmentReason = task.VisitNote;
@ -1279,7 +1277,7 @@ public class Tumor_CDISC_ExportService(IRepository<ReadingQuestionCriterionTrial
case QuestionType.NoTargetLesion: case QuestionType.NoTargetLesion:
rsValueTypeIndex = 1; rsValueTypeIndex = 1;
break; break;
case QuestionType.NewLesionEvaluation: case QuestionType.NewLesions:
rsValueTypeIndex = 2; rsValueTypeIndex = 2;
break; break;