修改临床数据

This commit is contained in:
2022-08-12 17:11:46 +08:00
parent 349839913c
commit 490e366408
4 changed files with 97 additions and 3 deletions
@@ -98,6 +98,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// </summary>
public string Path { get; set; }
/// <summary>
/// 是否盲化
/// </summary>
public bool? IsBlind { get; set; }
/// <summary>
/// 是否完整
/// </summary>
public bool? IsComplete { get; set; }
//public List<GetReadingClinicalDataListOutDto> ReadingClinicalDataList { get; set; }
public List<GetFileDto> PDFFileList { get; set; } = new List<GetFileDto>();
@@ -290,7 +300,21 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
}
public class PMClinicalDataConfirmCommand
{
public Guid Id { get; set; }
/// <summary>
/// 是否盲化
/// </summary>
public bool? IsBlind { get; set; }
/// <summary>
/// 是否完整
/// </summary>
public bool? IsComplete { get; set; }
}
public class GetReadingClinicalDataListOutDto
@@ -347,6 +371,17 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
/// </summary>
public bool IsSign { get; set; }
/// <summary>
/// 是否盲化
/// </summary>
public bool? IsBlind { get; set; }
/// <summary>
/// 是否完整
/// </summary>
public bool? IsComplete { get; set; }
/// <summary>
/// 文件数量
/// </summary>
@@ -147,6 +147,8 @@ namespace IRaCIS.Application.Services
FileName = x.ClinicalDataTrialSet.FileName,
UploadRole = x.ClinicalDataTrialSet.UploadRole,
Path = x.ClinicalDataTrialSet.Path,
IsBlind=x.IsBlind,
IsComplete=x.IsComplete
}).ToListAsync();
List<GetReadingClinicalDataListOutDto> clinicalData = (await this.GetReadingClinicalDataList(new GetReadingClinicalDataListIndto()
@@ -174,6 +176,11 @@ namespace IRaCIS.Application.Services
return cRCClinicalDataList;
}
/// <summary>
/// 添加CRC数据类型
/// </summary>
@@ -437,6 +444,19 @@ namespace IRaCIS.Application.Services
}) ;
}
[HttpPut]
public async Task<IResponseOutput> PMClinicalDataConfirm(PMClinicalDataConfirmCommand command)
{
await _readingClinicalDataRepository.BatchUpdateNoTrackingAsync(t => t.Id == command.Id, u => new ReadingClinicalData()
{
IsBlind=command.IsBlind,
IsComplete=command.IsComplete
});
await _readingClinicalDataRepository.SaveChangesAsync();
return ResponseOutput.Ok();
}
/// <summary>
/// 获取临床数据集合
/// </summary>
@@ -458,6 +478,8 @@ namespace IRaCIS.Application.Services
Id = x.Id,
UploadRole = x.ClinicalDataTrialSet.UploadRole,
IsCRCUpload = x.ClinicalDataTrialSet.UploadRole == UploadRole.CRC,
IsBlind=x.IsBlind,
IsComplete=x.IsComplete,
FileList = x.ReadingClinicalDataPDFList.Select(y => new GetFileDto()
{
Id = y.Id,