S-39
parent
52e7166177
commit
a4819c4016
|
@ -730,7 +730,7 @@ namespace IRaCIS.Application.Services
|
||||||
ClinicalFormId = x.ClinicalFormId
|
ClinicalFormId = x.ClinicalFormId
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
x.IsSign = readModule.IsPMConfirm ? true : false;
|
||||||
x.ReadingClinicalDataState = readModule.IsPMConfirm ? ReadingClinicalDataStatus.HaveSigned : ReadingClinicalDataStatus.HaveChecked;
|
x.ReadingClinicalDataState = readModule.IsPMConfirm ? ReadingClinicalDataStatus.HaveSigned : ReadingClinicalDataStatus.HaveChecked;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -749,20 +749,37 @@ namespace IRaCIS.Application.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
result = result.Where(x => !(x.ClinicalUploadType == ClinicalUploadType.PDF && x.FileList.Count() == 0)).ToList();
|
if (inDto.GetClinicalType != null)
|
||||||
// 需要排除表格为空的数据
|
|
||||||
|
|
||||||
|
|
||||||
var readingIds = result.Select(x => x.ReadingId).ToList();
|
|
||||||
|
|
||||||
var tablecount = (await _previousHistoryRepository.Where(x => readingIds.Contains(x.SubjectVisitId)).CountAsync()) +
|
|
||||||
(await _previousOtherRepository.Where(x => readingIds.Contains(x.SubjectVisitId)).CountAsync()) +
|
|
||||||
(await _previousSurgeryRepository.Where(x => readingIds.Contains(x.SubjectVisitId)).CountAsync());
|
|
||||||
|
|
||||||
if (tablecount == 0)
|
|
||||||
{
|
{
|
||||||
result = result.Where(x => x.ClinicalUploadType != ClinicalUploadType.Table).ToList();
|
switch (inDto.GetClinicalType)
|
||||||
|
{
|
||||||
|
case GetClinicalType.PMUpload:
|
||||||
|
result = result.Where(x => x.UploadRole == UploadRole.PM).ToList();
|
||||||
|
break;
|
||||||
|
case GetClinicalType.CRCConfirm:
|
||||||
|
result = result.Where(x => x.UploadRole == UploadRole.CRC).ToList();
|
||||||
|
break;
|
||||||
|
case GetClinicalType.HasSign:
|
||||||
|
result = result.Where(x => x.IsSign).ToList();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//result = result.Where(x => !(x.ClinicalUploadType == ClinicalUploadType.PDF && x.FileList.Count() == 0)).ToList();
|
||||||
|
//// 需要排除表格为空的数据
|
||||||
|
|
||||||
|
|
||||||
|
//var readingIds = result.Select(x => x.ReadingId).ToList();
|
||||||
|
|
||||||
|
//var tablecount = (await _previousHistoryRepository.Where(x => readingIds.Contains(x.SubjectVisitId)).CountAsync()) +
|
||||||
|
// (await _previousOtherRepository.Where(x => readingIds.Contains(x.SubjectVisitId)).CountAsync()) +
|
||||||
|
// (await _previousSurgeryRepository.Where(x => readingIds.Contains(x.SubjectVisitId)).CountAsync());
|
||||||
|
|
||||||
|
//if (tablecount == 0)
|
||||||
|
//{
|
||||||
|
// result = result.Where(x => x.ClinicalUploadType != ClinicalUploadType.Table).ToList();
|
||||||
|
//}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -878,13 +895,13 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
switch (inDto.GetClinicalType)
|
switch (inDto.GetClinicalType)
|
||||||
{
|
{
|
||||||
case 1:
|
case GetClinicalType.PMUpload:
|
||||||
result = result.Where(x => x.UploadRole == UploadRole.PM).ToList();
|
result = result.Where(x => x.UploadRole == UploadRole.PM).ToList();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case GetClinicalType.CRCConfirm:
|
||||||
result = result.Where(x => x.UploadRole == UploadRole.CRC).ToList();
|
result = result.Where(x => x.UploadRole == UploadRole.CRC).ToList();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case GetClinicalType.HasSign:
|
||||||
result = result.Where(x => x.IsSign).ToList();
|
result = result.Where(x => x.IsSign).ToList();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,6 +186,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public Guid? VisitTaskId { get; set; }
|
public Guid? VisitTaskId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 1 PM上传的所有的 2CRC上传的所有已确认的 3 所有已经签名的
|
||||||
|
/// </summary>
|
||||||
|
public GetClinicalType? GetClinicalType { get; set; }
|
||||||
|
|
||||||
public Guid? ReadingClinicalDataId { get; set; }
|
public Guid? ReadingClinicalDataId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -212,7 +217,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 1 PM上传的所有的 2CRC上传的所有已确认的 3 所有已经签名的
|
/// 1 PM上传的所有的 2CRC上传的所有已确认的 3 所有已经签名的
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? GetClinicalType { get; set; }
|
public GetClinicalType? GetClinicalType { get; set; }
|
||||||
|
|
||||||
[NotDefault]
|
[NotDefault]
|
||||||
public Guid TrialReadingCriterionId { get; set; }
|
public Guid TrialReadingCriterionId { get; set; }
|
||||||
|
|
|
@ -2211,6 +2211,7 @@ namespace IRaCIS.Application.Services
|
||||||
SubjectId = taskInfo.SubjectId,
|
SubjectId = taskInfo.SubjectId,
|
||||||
TrialId = taskInfo.TrialId,
|
TrialId = taskInfo.TrialId,
|
||||||
VisitTaskId = taskInfo.Id,
|
VisitTaskId = taskInfo.Id,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var isBaseLine = false;
|
var isBaseLine = false;
|
||||||
|
|
|
@ -16,6 +16,28 @@ namespace IRaCIS.Core.Domain.Share
|
||||||
public static readonly string Group = "group";
|
public static readonly string Group = "group";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// GetClinicalType
|
||||||
|
/// </summary>
|
||||||
|
public enum GetClinicalType
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PM上传
|
||||||
|
/// </summary>
|
||||||
|
PMUpload = 1,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// CRC 上传 过确认
|
||||||
|
/// </summary>
|
||||||
|
CRCConfirm = 2,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 已审核
|
||||||
|
/// </summary>
|
||||||
|
HasSign = 3
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 临床表格问题标识
|
/// 临床表格问题标识
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue