修改一版
parent
3d78d99f93
commit
440790a01a
|
@ -365,6 +365,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
TaskName = item.ReadingName,
|
TaskName = item.ReadingName,
|
||||||
ArmEnum = Arm.DoubleReadingArm1,//特殊
|
ArmEnum = Arm.DoubleReadingArm1,//特殊
|
||||||
Code = currentMaxCodeInt + 1,
|
Code = currentMaxCodeInt + 1,
|
||||||
|
TaskBlindName = item.ReadingName,
|
||||||
SouceReadModuleId = item.ReadModuleId,
|
SouceReadModuleId = item.ReadModuleId,
|
||||||
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
||||||
ReadingCategory = item.ReadingCategory
|
ReadingCategory = item.ReadingCategory
|
||||||
|
@ -377,6 +378,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
TaskName = item.ReadingName,
|
TaskName = item.ReadingName,
|
||||||
ArmEnum = Arm.DoubleReadingArm2,//特殊
|
ArmEnum = Arm.DoubleReadingArm2,//特殊
|
||||||
Code = currentMaxCodeInt + 2,
|
Code = currentMaxCodeInt + 2,
|
||||||
|
TaskBlindName = item.ReadingName,
|
||||||
SouceReadModuleId = item.ReadModuleId,
|
SouceReadModuleId = item.ReadModuleId,
|
||||||
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 2, nameof(VisitTask)),
|
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 2, nameof(VisitTask)),
|
||||||
ReadingCategory = item.ReadingCategory
|
ReadingCategory = item.ReadingCategory
|
||||||
|
@ -398,6 +400,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
ArmEnum = Arm.SingleReadingArm, //特殊
|
ArmEnum = Arm.SingleReadingArm, //特殊
|
||||||
Code = currentMaxCodeInt + 1,
|
Code = currentMaxCodeInt + 1,
|
||||||
SouceReadModuleId = item.ReadModuleId,
|
SouceReadModuleId = item.ReadModuleId,
|
||||||
|
TaskBlindName = item.ReadingName,
|
||||||
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
||||||
ReadingCategory = item.ReadingCategory
|
ReadingCategory = item.ReadingCategory
|
||||||
});
|
});
|
||||||
|
|
|
@ -131,6 +131,7 @@ namespace IRaCIS.Application.Services
|
||||||
ClinicalDataSetName=x.ClinicalDataSetName,
|
ClinicalDataSetName=x.ClinicalDataSetName,
|
||||||
ClinicalDataLevel=x.ClinicalDataLevel,
|
ClinicalDataLevel=x.ClinicalDataLevel,
|
||||||
ClinicalUploadType=x.ClinicalUploadType,
|
ClinicalUploadType=x.ClinicalUploadType,
|
||||||
|
UploadRole=x.UploadRole,
|
||||||
TrialId= trialId,
|
TrialId= trialId,
|
||||||
|
|
||||||
}).ToList();
|
}).ToList();
|
||||||
|
|
|
@ -32,6 +32,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ClinicalUploadType ClinicalUploadType { get; set; }
|
public ClinicalUploadType ClinicalUploadType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole UploadRole { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否启用
|
/// 是否启用
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -68,6 +73,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ClinicalLevel ClinicalDataLevel { get; set; }
|
public ClinicalLevel ClinicalDataLevel { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole UploadRole { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 上传方式
|
/// 上传方式
|
||||||
|
@ -115,6 +125,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Guid CreateUserId { get; set; }
|
public Guid CreateUserId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole UploadRole { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 项目ID
|
/// 项目ID
|
||||||
|
@ -175,6 +190,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ClinicalUploadType ClinicalUploadType { get; set; }
|
public ClinicalUploadType ClinicalUploadType { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole UploadRole { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -307,6 +307,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsBaseLine { get; set; }
|
public bool IsBaseLine { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole? UploadRole { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GetTrialClinicalDataSelectOutDto
|
public class GetTrialClinicalDataSelectOutDto
|
||||||
|
|
|
@ -142,6 +142,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
{
|
{
|
||||||
public Guid TaskId { get; set; }
|
public Guid TaskId { get; set; }
|
||||||
public string TaskName { get; set; }
|
public string TaskName { get; set; }
|
||||||
|
|
||||||
|
public string TaskBlindName { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GetReadingPastResultListInDto
|
public class GetReadingPastResultListInDto
|
||||||
|
|
|
@ -149,7 +149,8 @@ namespace IRaCIS.Application.Services
|
||||||
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);
|
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)
|
||||||
|
.WhereIf(inDto.UploadRole!=null,x=>x.UploadRole==inDto.UploadRole)
|
||||||
.Where(x=> !usedIdsQuery.Contains(x.Id))
|
.Where(x=> !usedIdsQuery.Contains(x.Id))
|
||||||
.WhereIf(inDto.IsVisit&&inDto.IsBaseLine,x=>x.ClinicalDataLevel == ClinicalLevel.Subject||x.ClinicalDataLevel== ClinicalLevel.SubjectVisit)
|
.WhereIf(inDto.IsVisit&&inDto.IsBaseLine,x=>x.ClinicalDataLevel == ClinicalLevel.Subject||x.ClinicalDataLevel== ClinicalLevel.SubjectVisit)
|
||||||
.WhereIf(inDto.IsVisit&&! inDto.IsBaseLine, x => x.ClinicalDataLevel == ClinicalLevel.SubjectVisit)
|
.WhereIf(inDto.IsVisit&&! inDto.IsBaseLine, x => x.ClinicalDataLevel == ClinicalLevel.SubjectVisit)
|
||||||
|
|
|
@ -270,7 +270,7 @@ namespace IRaCIS.Application.Services
|
||||||
List<GetTrialReadingQuestionOutDto> groupList = qusetionList.Where(x => x.ParentId == null).ToList();
|
List<GetTrialReadingQuestionOutDto> groupList = qusetionList.Where(x => x.ParentId == null).ToList();
|
||||||
groupList.ForEach(x =>
|
groupList.ForEach(x =>
|
||||||
{
|
{
|
||||||
FindChildQuestion(x, qusetionList);
|
this.FindChildQuestion(x, qusetionList);
|
||||||
});
|
});
|
||||||
return (groupList, new
|
return (groupList, new
|
||||||
{
|
{
|
||||||
|
@ -305,7 +305,7 @@ namespace IRaCIS.Application.Services
|
||||||
List<GetTrialReadingQuestionOutDto> groupList = qusetionList.Where(x => x.ParentId == null).ToList();
|
List<GetTrialReadingQuestionOutDto> groupList = qusetionList.Where(x => x.ParentId == null).ToList();
|
||||||
groupList.ForEach(x =>
|
groupList.ForEach(x =>
|
||||||
{
|
{
|
||||||
FindChildQuestion(x, qusetionList);
|
this.FindChildQuestion(x, qusetionList);
|
||||||
});
|
});
|
||||||
|
|
||||||
return groupList;
|
return groupList;
|
||||||
|
@ -388,9 +388,9 @@ namespace IRaCIS.Application.Services
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<List<GetReadingPastResultListOutDto>> GetReadingPastResultList(GetReadingPastResultListInDto inDto)
|
public async Task<List<GetReadingPastResultListOutDto>> GetReadingPastResultList(GetReadingPastResultListInDto inDto)
|
||||||
{
|
{
|
||||||
var readingPastResultListawait =await _visitTaskRepository.Where(x => x.TrialId == inDto.TrialId && x.DoctorUserId == _userInfo.Id)
|
var readingPastResultList =await _visitTaskRepository.Where(x => x.TrialId == inDto.TrialId && x.DoctorUserId == _userInfo.Id)
|
||||||
.ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).ToListAsync();
|
.ProjectTo<GetReadingPastResultListOutDto>(_mapper.ConfigurationProvider).ToListAsync();
|
||||||
return readingPastResultListawait;
|
return readingPastResultList;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -406,7 +406,7 @@ namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
trialReadingQuestion.Childrens.ForEach(x =>
|
trialReadingQuestion.Childrens.ForEach(x =>
|
||||||
{
|
{
|
||||||
FindChildQuestion(x, questionlists);
|
this.FindChildQuestion(x, questionlists);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,22 @@ namespace IRaCIS.Core.Domain.Share
|
||||||
Revocation=2,
|
Revocation=2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public enum UploadRole
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// CRC
|
||||||
|
/// </summary>
|
||||||
|
CRC=0,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PM
|
||||||
|
/// </summary>
|
||||||
|
PM=1,
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 上传方式
|
/// 上传方式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -50,6 +50,12 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsEnable { get; set; }
|
public bool IsEnable { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole UploadRole { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,11 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsConfirm { get; set; }
|
public bool IsConfirm { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 上传角色
|
||||||
|
/// </summary>
|
||||||
|
public UploadRole UploadRole { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace IRaCIS.Core.Domain.Models
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// 临床数据级别
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ClinicalLevel ClinicalDataLevel { get; set; }
|
public ClinicalLevel ClinicalDataLevel { get; set; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue