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