修改一版
parent
813eaff653
commit
93b06597fa
|
@ -33,7 +33,8 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
public bool IsVisit { get; set; }
|
public bool IsVisit { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GetTrialClinicalData
|
public class GetTrialClinicalDataSelectIndto
|
||||||
{
|
{
|
||||||
|
public int MyProperty { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ using MassTransit;
|
||||||
namespace IRaCIS.Application.Services
|
namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 临床数据配置
|
/// 阅片临床数据配置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiExplorerSettings(GroupName = "Reading")]
|
[ApiExplorerSettings(GroupName = "Reading")]
|
||||||
public class ClinicalDataSetService : BaseService
|
public class ClinicalDataSetService : BaseService
|
||||||
|
@ -40,6 +40,23 @@ namespace IRaCIS.Application.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="id"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpDelete("{id:guid}")]
|
||||||
|
public async Task<IResponseOutput> ReadingClinicalData(Guid id)
|
||||||
|
{
|
||||||
|
await _readingClinicalDataRepository.DeleteFromQueryAsync(x => x.Id == id, true);
|
||||||
|
return ResponseOutput.Result(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//public async Task<> GetTrialClinicalDataSelect()
|
||||||
|
|
||||||
//public async Task<List<>> GetTrialClinicalData()
|
//public async Task<List<>> GetTrialClinicalData()
|
||||||
|
|
||||||
///// <summary>
|
///// <summary>
|
||||||
|
|
|
@ -16,6 +16,10 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string SubjectCodeRule { get; set; } = string.Empty;
|
public string SubjectCodeRule { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public List<Guid> ClinicalDataTrialSetIds { get; set; } = new List<Guid>();
|
||||||
|
|
||||||
public bool IsSubjectSecondCodeView { get; set; }
|
public bool IsSubjectSecondCodeView { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -76,7 +80,6 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
|
|
||||||
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
public List<Guid> CriterionIds { get; set; } = new List<Guid>();
|
||||||
|
|
||||||
public List<Guid> ClinicalDataTrialSetIds { get; set; } = new List<Guid>();
|
|
||||||
|
|
||||||
public Guid TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
|
|
|
@ -161,6 +161,24 @@ namespace IRaCIS.Core.Application
|
||||||
_mapper.Map(trialConfig, trialInfo);
|
_mapper.Map(trialConfig, trialInfo);
|
||||||
trialInfo.UpdateTime = DateTime.Now;
|
trialInfo.UpdateTime = DateTime.Now;
|
||||||
|
|
||||||
|
|
||||||
|
var noconfirmids = await _clinicalDataTrialSetRepository.Where(x => x.TrialId == trialConfig.TrialId && !trialConfig.ClinicalDataTrialSetIds.Contains(x.Id)).Select(x => x.Id).ToListAsync();
|
||||||
|
foreach (var item in trialConfig.ClinicalDataTrialSetIds)
|
||||||
|
{
|
||||||
|
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
||||||
|
{
|
||||||
|
IsConfirm = true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in noconfirmids)
|
||||||
|
{
|
||||||
|
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
||||||
|
{
|
||||||
|
IsConfirm = false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return ResponseOutput.Ok(await _repository.SaveChangesAsync());
|
return ResponseOutput.Ok(await _repository.SaveChangesAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -314,22 +332,7 @@ namespace IRaCIS.Core.Application
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var noconfirmids = await _clinicalDataTrialSetRepository.Where(x => x.TrialId == trialConfig.TrialId && !trialConfig.ClinicalDataTrialSetIds.Contains(x.Id)).Select(x => x.Id).ToListAsync();
|
|
||||||
foreach (var item in trialConfig.ClinicalDataTrialSetIds)
|
|
||||||
{
|
|
||||||
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
|
||||||
{
|
|
||||||
IsConfirm = true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (var item in noconfirmids)
|
|
||||||
{
|
|
||||||
await _clinicalDataTrialSetRepository.UpdatePartialFromQueryAsync(item, x => new ClinicalDataTrialSet()
|
|
||||||
{
|
|
||||||
IsConfirm = false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue