添加接口 修改原有逻辑
This commit is contained in:
@@ -32,7 +32,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||
private readonly IRepository<SubjectVisit> _subjectVisitRepository;
|
||||
private readonly IRepository<Trial> _trialRepository;
|
||||
private readonly IServiceProvider serviceProvider;
|
||||
private readonly IInspectionService _sinspectionService;
|
||||
private readonly IInspectionService _inspectionService;
|
||||
private object _locker = new object();
|
||||
|
||||
public QCOperationService(DicomFileStoreHelper dicomFileStoreHelper, IRepository<SubjectVisit> subjectVisitRepository,
|
||||
@@ -46,7 +46,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||
_subjectVisitRepository = subjectVisitRepository;
|
||||
this._trialRepository = trialRepository;
|
||||
this.serviceProvider = serviceProvider;
|
||||
this._sinspectionService = sinspectionService;
|
||||
this._inspectionService = sinspectionService;
|
||||
}
|
||||
|
||||
#region QC质疑 以及回复 关闭
|
||||
@@ -1072,7 +1072,7 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||
SubmitState = "待提交",
|
||||
})
|
||||
});
|
||||
await _sinspectionService.AddListInspectionRecordAsync(datas);
|
||||
await _inspectionService.AddListInspectionRecordAsync(datas);
|
||||
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);
|
||||
|
||||
|
||||
@@ -1794,15 +1794,38 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||
{
|
||||
IsEnrollmentConfirm = command.IsEnrollmentConfirm.Value,
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
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 进展 默认加急
|
||||
|
||||
Reference in New Issue
Block a user