Uat_Study
parent
62190198de
commit
5df89e1d2e
Binary file not shown.
Binary file not shown.
|
@ -67,10 +67,10 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GetReadingClinicalDataListIndto :PageInput
|
public class GetReadingClinicalDataListIndto :PageInput
|
||||||
{
|
{
|
||||||
[Required]
|
[Required(ErrorMessage = "SubjectId为null")]
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required(ErrorMessage = "ReadingId为null")]
|
||||||
public Guid ReadingId { get; set; }
|
public Guid ReadingId { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -212,6 +212,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsCRCUpload { get; set; }
|
public bool IsCRCUpload { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否签名
|
||||||
|
/// </summary>
|
||||||
|
public bool IsSign { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 文件数量
|
/// 文件数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -252,6 +258,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目ID
|
/// 项目ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Required(ErrorMessage = "TrialId为null")]
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -262,13 +269,16 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 对象ID
|
/// 对象ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Required(ErrorMessage = "ReadingId为null")]
|
||||||
public Guid ReadingId { get; set; }
|
public Guid ReadingId { get; set; }
|
||||||
|
|
||||||
|
[Required(ErrorMessage = "SubjectId为null")]
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否是访视
|
/// 是否是访视
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Required(ErrorMessage = "IsVisit为null")]
|
||||||
public bool IsVisit { get; set; }
|
public bool IsVisit { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,6 @@ namespace IRaCIS.Application.Services
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> AddOrUpdateReadingClinicalData(AddOrUpdateReadingClinicalDataDto indto)
|
public async Task<IResponseOutput> AddOrUpdateReadingClinicalData(AddOrUpdateReadingClinicalDataDto indto)
|
||||||
{
|
{
|
||||||
|
|
||||||
var existsQuery = _readingClinicalDataRepository
|
var existsQuery = _readingClinicalDataRepository
|
||||||
.WhereIf(indto.Id != null,x=>x.Id!=indto.Id)
|
.WhereIf(indto.Id != null,x=>x.Id!=indto.Id)
|
||||||
.Where(x => x.ClinicalDataTrialSetId == indto.ClinicalDataTrialSetId&&x.ReadingId==indto.ReadingId);
|
.Where(x => x.ClinicalDataTrialSetId == indto.ClinicalDataTrialSetId&&x.ReadingId==indto.ReadingId);
|
||||||
|
@ -130,13 +129,12 @@ namespace IRaCIS.Application.Services
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<List<GetTrialClinicalDataSelectOutDto>> GetTrialClinicalDataSelect(GetTrialClinicalDataSelectIndto inDto)
|
public async Task<List<GetTrialClinicalDataSelectOutDto>> GetTrialClinicalDataSelect(GetTrialClinicalDataSelectIndto inDto)
|
||||||
{
|
{
|
||||||
|
var usedIdsQuery = _readingClinicalDataRepository.Where(x => x.ReadingId == inDto.ReadingId && x.Id != inDto.ReadingClinicalDataId).Select(x => x.ClinicalDataTrialSetId);
|
||||||
List<GetTrialClinicalDataSelectOutDto> clinicalList = await _clinicalDataTrialSetRepository.Where(x=>x.TrialId==inDto.TrialId&&x.IsConfirm&&x.ClinicalDataSetName!= "既往局部治疗史")
|
List<GetTrialClinicalDataSelectOutDto> clinicalList = await _clinicalDataTrialSetRepository.Where(x=>x.TrialId==inDto.TrialId&&x.IsConfirm&&x.ClinicalDataSetName!= "既往局部治疗史")
|
||||||
|
.Where(x=> !usedIdsQuery.Contains(x.Id))
|
||||||
.WhereIf(inDto.IsVisit,x=>x.ClinicalDataLevel == ClinicalLevel.Subject||x.ClinicalDataLevel== ClinicalLevel.SubjectVisit)
|
.WhereIf(inDto.IsVisit,x=>x.ClinicalDataLevel == ClinicalLevel.Subject||x.ClinicalDataLevel== ClinicalLevel.SubjectVisit)
|
||||||
.WhereIf(!inDto.IsVisit, x => x.ClinicalDataLevel == ClinicalLevel.Subject || x.ClinicalDataLevel == ClinicalLevel.Read)
|
.WhereIf(!inDto.IsVisit, x => x.ClinicalDataLevel == ClinicalLevel.Subject || x.ClinicalDataLevel == ClinicalLevel.Read)
|
||||||
|
|
||||||
//.WhereIf(inDto.ReadingClinicalDataId==null, x=> _readingClinicalDataPDFRepository.Where(y=>y.ObjectId==inDto.ObjectId&&))
|
|
||||||
|
|
||||||
.Select(x => new GetTrialClinicalDataSelectOutDto()
|
.Select(x => new GetTrialClinicalDataSelectOutDto()
|
||||||
{
|
{
|
||||||
ClinicalDataLevel = x.ClinicalDataLevel,
|
ClinicalDataLevel = x.ClinicalDataLevel,
|
||||||
|
|
|
@ -141,17 +141,17 @@ namespace IRaCIS.Core.Domain.Share.Reading
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum ClinicalUploadType
|
public enum ClinicalUploadType
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// 表格
|
|
||||||
/// </summary>
|
|
||||||
[Display(Name = "表格")]
|
|
||||||
Table = 0,
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// PDF
|
/// PDF
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Display(Name = "PDF")]
|
[Display(Name = "PDF")]
|
||||||
PDF = 1,
|
PDF = 0,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 表格
|
||||||
|
/// </summary>
|
||||||
|
[Display(Name = "表格")]
|
||||||
|
Table = 1,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime CreateTime { get; set; }
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否签名
|
||||||
|
/// </summary>
|
||||||
|
public bool IsSign { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -49,6 +49,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsCRCUpload { get; set; }
|
public bool IsCRCUpload { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否签名
|
||||||
|
/// </summary>
|
||||||
|
public bool IsSign { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue