添加接口 修改原有逻辑
parent
b992cab7ae
commit
87ee9bbbe4
|
@ -153,7 +153,6 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
[HttpPost, Route("Inspection/QCOperation/AddQCChallengeReply")]
|
[HttpPost, Route("Inspection/QCOperation/AddQCChallengeReply")]
|
||||||
[UnitOfWork]
|
[UnitOfWork]
|
||||||
public async Task<IResponseOutput> AddQCChallengeReply(DataInspectionDto<QADialogCommand> opt)
|
public async Task<IResponseOutput> AddQCChallengeReply(DataInspectionDto<QADialogCommand> opt)
|
||||||
|
|
||||||
{
|
{
|
||||||
var fun = _qCOperationService.AddQCChallengeReply;
|
var fun = _qCOperationService.AddQCChallengeReply;
|
||||||
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||||
|
@ -252,6 +251,19 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
var fun = _qCOperationService.CheckBack;
|
var fun = _qCOperationService.CheckBack;
|
||||||
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
return await _inspectionService.Enforcement(opt.OptCommand.Id, opt.AuditInfo, opt.SignInfo, fun);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// QC修改检查部位和 拍片类型
|
||||||
|
/// </summary>
|
||||||
|
[HttpPost, Route("Inspection/QCOperation/UpdateModality")]
|
||||||
|
[UnitOfWork]
|
||||||
|
public async Task<IResponseOutput> UpdateModality(DataInspectionDto<UpdateModalityDto> opt)
|
||||||
|
{
|
||||||
|
var fun = _qCOperationService.UpdateModality;
|
||||||
|
return await _inspectionService.Enforcement(opt.OptCommand, opt.AuditInfo, opt.SignInfo, fun);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
#region 影像上传
|
#region 影像上传
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,11 @@
|
||||||
一致性核查 回退 对话记录不清除 只允许PM回退
|
一致性核查 回退 对话记录不清除 只允许PM回退
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.UpdateModality(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Service.Inspection.DTO.UpdateModalityDto})">
|
||||||
|
<summary>
|
||||||
|
QC修改检查部位和 拍片类型
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.UpdateSubjectAndSVInfo(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.UploadSubjectAndVisitCommand})">
|
<member name="M:IRaCIS.Core.API.Controllers.InspectionController.UpdateSubjectAndSVInfo(IRaCIS.Core.Application.Service.Inspection.DTO.DataInspectionDto{IRaCIS.Core.Application.Contracts.UploadSubjectAndVisitCommand})">
|
||||||
<summary>
|
<summary>
|
||||||
疾病进展确认评估
|
疾病进展确认评估
|
||||||
|
|
|
@ -14,7 +14,7 @@ using System.Threading.Tasks;
|
||||||
namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class DataInspectionAddDTO
|
public class DataInspectionAddDTO
|
||||||
|
@ -81,7 +81,7 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ResearchProgramNo { get; set; } = string.Empty;
|
public string ResearchProgramNo { get; set; } = string.Empty;
|
||||||
|
|
||||||
public List<EnumList> EnumList { get; set; }=new List<EnumList> { };
|
public List<EnumList> EnumList { get; set; } = new List<EnumList> { };
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -169,6 +169,14 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
public string closeReason { get; set; }
|
public string closeReason { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class UpdateModalityDto
|
||||||
|
{
|
||||||
|
public Guid id { get; set; }
|
||||||
|
public int type { get; set; }
|
||||||
|
public string modality { get; set; }
|
||||||
|
public string bodyPart { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class CloseQCChallengeDto
|
public class CloseQCChallengeDto
|
||||||
{
|
{
|
||||||
public Guid qcChallengeId { get; set; }
|
public Guid qcChallengeId { get; set; }
|
||||||
|
@ -275,12 +283,14 @@ namespace IRaCIS.Core.Application.Service.Inspection.DTO
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户 签名某个文档 Dto
|
/// 用户 签名某个文档 Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class TrialDocumentConfirmDTO : InspectionBase, IInspectionDTO, ISignDTO
|
public class TrialDocumentConfirmDTO : InspectionBase, IInspectionDTO, ISignDTO
|
||||||
{
|
{
|
||||||
|
|
||||||
public UserConfirmCommand OptCommand { get; set; }
|
public UserConfirmCommand OptCommand { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
private readonly IRepository<SubjectVisit> _subjectVisitRepository;
|
private readonly IRepository<SubjectVisit> _subjectVisitRepository;
|
||||||
private readonly IRepository<Trial> _trialRepository;
|
private readonly IRepository<Trial> _trialRepository;
|
||||||
private readonly IServiceProvider serviceProvider;
|
private readonly IServiceProvider serviceProvider;
|
||||||
private readonly IInspectionService _sinspectionService;
|
private readonly IInspectionService _inspectionService;
|
||||||
private object _locker = new object();
|
private object _locker = new object();
|
||||||
|
|
||||||
public QCOperationService(DicomFileStoreHelper dicomFileStoreHelper, IRepository<SubjectVisit> subjectVisitRepository,
|
public QCOperationService(DicomFileStoreHelper dicomFileStoreHelper, IRepository<SubjectVisit> subjectVisitRepository,
|
||||||
|
@ -46,7 +46,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
_subjectVisitRepository = subjectVisitRepository;
|
_subjectVisitRepository = subjectVisitRepository;
|
||||||
this._trialRepository = trialRepository;
|
this._trialRepository = trialRepository;
|
||||||
this.serviceProvider = serviceProvider;
|
this.serviceProvider = serviceProvider;
|
||||||
this._sinspectionService = sinspectionService;
|
this._inspectionService = sinspectionService;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region QC质疑 以及回复 关闭
|
#region QC质疑 以及回复 关闭
|
||||||
|
@ -1072,7 +1072,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
SubmitState = "待提交",
|
SubmitState = "待提交",
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
await _sinspectionService.AddListInspectionRecordAsync(datas);
|
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||||
return ResponseOutput.Ok();
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1356,7 +1356,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
await _sinspectionService.AddListInspectionRecordAsync(datas);
|
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||||
return ResponseOutput.Result(success);
|
return ResponseOutput.Result(success);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1794,15 +1794,38 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
{
|
{
|
||||||
IsEnrollmentConfirm = command.IsEnrollmentConfirm.Value,
|
IsEnrollmentConfirm = command.IsEnrollmentConfirm.Value,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.SubjectFirstGiveMedicineTime != null)
|
if (command.SubjectFirstGiveMedicineTime != null)
|
||||||
{
|
{
|
||||||
|
List<DataInspection> datas = new List<DataInspection>();
|
||||||
|
var data = await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == command.SubjectVisitId);
|
||||||
await _repository.UpdateFromQueryAsync<Subject>(t => t.Id == command.SubjectId, u => new Subject()
|
await _repository.UpdateFromQueryAsync<Subject>(t => t.Id == command.SubjectId, u => new Subject()
|
||||||
{
|
{
|
||||||
FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime,
|
FirstGiveMedicineTime = command.SubjectFirstGiveMedicineTime,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
datas.Add(new DataInspection()
|
||||||
|
{
|
||||||
|
|
||||||
|
SubjectId = command.SubjectId,
|
||||||
|
SiteId = data.SiteId,
|
||||||
|
TrialId = data.TrialId,
|
||||||
|
IsSign = false,
|
||||||
|
CreateTime=DateTime.Now.AddSeconds(1),
|
||||||
|
JsonDetail = JsonConvert.SerializeObject(new
|
||||||
|
{
|
||||||
|
FirstGiveMedicineTime= command.SubjectFirstGiveMedicineTime.Value.ToString("yyyy-MM-dd")
|
||||||
|
|
||||||
|
})
|
||||||
|
}) ;
|
||||||
|
|
||||||
|
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||||
}
|
}
|
||||||
|
|
||||||
////受试者基线 入组确认 或者访视PD 进展 默认加急
|
////受试者基线 入组确认 或者访视PD 进展 默认加急
|
||||||
|
|
|
@ -44,13 +44,13 @@ namespace IRaCIS.Application.Contracts
|
||||||
|
|
||||||
public class SubjectStatusChangeCommand
|
public class SubjectStatusChangeCommand
|
||||||
{
|
{
|
||||||
|
[NotDefault]
|
||||||
public Guid SubjectId { get; set; }
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
|
[NotDefault]
|
||||||
public Guid? TrialId { get; set; }
|
public Guid TrialId { get; set; }
|
||||||
|
[NotDefault]
|
||||||
public Guid? SiteId { get; set; }
|
public Guid SiteId { get; set; }
|
||||||
|
|
||||||
public SubjectStatus Status { get; set; }
|
public SubjectStatus Status { get; set; }
|
||||||
public DateTime? OutEnrollmentTime { get; set; }
|
public DateTime? OutEnrollmentTime { get; set; }
|
||||||
|
|
|
@ -118,9 +118,26 @@ namespace IRaCIS.Core.Application.Services
|
||||||
//更新受试者 首次给药日期 是否入组确认
|
//更新受试者 首次给药日期 是否入组确认
|
||||||
if (svCommand.SubjectFirstGiveMedicineTime != null)
|
if (svCommand.SubjectFirstGiveMedicineTime != null)
|
||||||
{
|
{
|
||||||
|
List<DataInspection> datas = new List<DataInspection>();
|
||||||
|
|
||||||
|
// 更新受试者
|
||||||
|
|
||||||
subject.FirstGiveMedicineTime = svCommand.SubjectFirstGiveMedicineTime;
|
subject.FirstGiveMedicineTime = svCommand.SubjectFirstGiveMedicineTime;
|
||||||
|
datas.Add(new DataInspection()
|
||||||
|
{
|
||||||
|
|
||||||
|
SubjectId = subject.Id,
|
||||||
|
SiteId = subject.SiteId,
|
||||||
|
TrialId = subject.TrialId,
|
||||||
|
IsSign = false,
|
||||||
|
CreateTime = DateTime.Now.AddSeconds(1),
|
||||||
|
JsonDetail = JsonConvert.SerializeObject(new
|
||||||
|
{
|
||||||
|
FirstGiveMedicineTime = subject.FirstGiveMedicineTime.Value.ToString("yyyy-MM-dd")
|
||||||
|
|
||||||
|
})
|
||||||
|
});
|
||||||
|
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (svCommand.IsEnrollmentConfirm != null)
|
if (svCommand.IsEnrollmentConfirm != null)
|
||||||
|
|
Loading…
Reference in New Issue