修改一版
parent
3e2fac0974
commit
160b9fb14e
|
@ -1980,6 +1980,11 @@
|
|||
路径
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetReadingOrTaskClinicalDataListInDto.SelectIsSign">
|
||||
<summary>
|
||||
只查询已经签名的临床数据
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:IRaCIS.Core.Application.Service.Reading.Dto.GetReadingClinicalDataListIndto">
|
||||
<summary>
|
||||
获取访视列表
|
||||
|
|
|
@ -346,7 +346,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
inDto.SelectIsSign = false;
|
||||
var result = await GetClinicalDataList(inDto);
|
||||
|
||||
var previousHistoryList = await _previousHistoryRepository.Where(x => x.SubjectVisitId == inDto.ReadingId).ProjectTo<PreviousHistoryView>(_mapper.ConfigurationProvider).ToListAsync();
|
||||
|
@ -433,6 +433,7 @@ namespace IRaCIS.Application.Services
|
|||
|
||||
var resultQuery = _readingClinicalDataRepository.Where(x => x.SubjectId == inDto.SubjectId)
|
||||
.WhereIf(inDto.ReadingClinicalDataId != null, x => x.Id == inDto.ReadingClinicalDataId)
|
||||
.WhereIf(inDto.SelectIsSign, x => x.IsSign == true)
|
||||
.Where(x => x.ReadingId == inDto.ReadingId || (x.SubjectId == inDto.SubjectId && x.ClinicalDataTrialSet.ClinicalDataLevel == ClinicalLevel.Subject))
|
||||
.Select(x => new GetReadingClinicalDataListOutDto()
|
||||
{
|
||||
|
|
|
@ -178,7 +178,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
|||
public Guid? VisitTaskId { get; set; }
|
||||
|
||||
public Guid? ReadingClinicalDataId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 只查询已经签名的临床数据
|
||||
/// </summary>
|
||||
public bool SelectIsSign { get; set; } = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取访视列表
|
||||
|
|
|
@ -917,7 +917,12 @@ namespace IRaCIS.Application.Services
|
|||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
// 自动计算
|
||||
await this._readingCalculateService.CalculateTask(new CalculateTaskInDto()
|
||||
{
|
||||
IsChangeOtherTask = false,
|
||||
VisitTaskId = inDto.VisitTaskId,
|
||||
});
|
||||
return ResponseOutput.Ok(true);
|
||||
}
|
||||
|
||||
|
@ -1067,7 +1072,7 @@ namespace IRaCIS.Application.Services
|
|||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[NonDynamicMethod]
|
||||
|
||||
public async Task<IResponseOutput> SubmitDicomVisitTask(SubmitDicomVisitTaskInDto inDto)
|
||||
{
|
||||
|
||||
|
@ -1495,6 +1500,7 @@ namespace IRaCIS.Application.Services
|
|||
OriginalVisitId = visitTaskId,
|
||||
ReadingCategory = GenerateTaskCategory.Global,
|
||||
TrialId = taskInfo.TrialId,
|
||||
|
||||
ReadingGenerataTaskList = needReadList
|
||||
});
|
||||
break;
|
||||
|
|
|
@ -408,24 +408,30 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
}
|
||||
#endregion
|
||||
// 修改修约小数位数
|
||||
try
|
||||
{
|
||||
List<ValueOfType?> valueOfTypes = new List<ValueOfType?>() {
|
||||
|
||||
List<ValueOfType?> valueOfTypes = new List<ValueOfType?>() {
|
||||
|
||||
ValueOfType.Decimals,
|
||||
ValueOfType.Percentage
|
||||
};
|
||||
|
||||
if (valueOfTypes.Contains(item.ValueType))
|
||||
if (inDto.DigitPlaces != null && inDto.DigitPlaces != -1)
|
||||
{
|
||||
try
|
||||
{
|
||||
item.Answer = decimal.Round(decimal.Parse(item.Answer??"0"), inDto.DigitPlaces).ToString();
|
||||
|
||||
if (valueOfTypes.Contains(item.ValueType))
|
||||
{
|
||||
item.Answer = decimal.Round(decimal.Parse(item.Answer ?? "0"), inDto.DigitPlaces).ToString();
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
needAddList.Add(new ReadingTaskQuestionAnswer()
|
||||
|
@ -1300,10 +1306,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
|||
{
|
||||
return TargetAssessment.NA.GetEnumInt();
|
||||
}
|
||||
if (tableQuestion.Count() == 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
TargetLesionCalculateDto resultData = new TargetLesionCalculateDto()
|
||||
{
|
||||
// 是否存在靶病灶
|
||||
|
|
Loading…
Reference in New Issue