修改一版
parent
c2370c16fc
commit
bfe037a672
|
@ -43,6 +43,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
private readonly IVisitPlanService _visitPlanService;
|
private readonly IVisitPlanService _visitPlanService;
|
||||||
|
|
||||||
private readonly IInspectionService _inspectionService;
|
private readonly IInspectionService _inspectionService;
|
||||||
|
private readonly IReadingMedicalReviewService _readingMedicalReviewService;
|
||||||
private readonly IReadingMedicineQuestionService _readingMedicineQuestionService;
|
private readonly IReadingMedicineQuestionService _readingMedicineQuestionService;
|
||||||
private readonly IRepository<DataInspection> _dataInspectionRepository;
|
private readonly IRepository<DataInspection> _dataInspectionRepository;
|
||||||
private delegate Task<IResponseOutput> executionFun(dynamic data);
|
private delegate Task<IResponseOutput> executionFun(dynamic data);
|
||||||
|
@ -56,6 +57,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
IReadingImageTaskService _iReadingImageTaskService,
|
IReadingImageTaskService _iReadingImageTaskService,
|
||||||
IHttpContextAccessor httpContext,
|
IHttpContextAccessor httpContext,
|
||||||
IInspectionService sinspectionService,
|
IInspectionService sinspectionService,
|
||||||
|
IReadingMedicalReviewService readingMedicalReviewService,
|
||||||
IReadingMedicineQuestionService readingMedicineQuestionService,
|
IReadingMedicineQuestionService readingMedicineQuestionService,
|
||||||
ITrialConfigService _trialConfigService,
|
ITrialConfigService _trialConfigService,
|
||||||
INoneDicomStudyService noneDicomStudyService,
|
INoneDicomStudyService noneDicomStudyService,
|
||||||
|
@ -71,6 +73,7 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
this._mapper = mapper;
|
this._mapper = mapper;
|
||||||
this._userInfo = userInfo;
|
this._userInfo = userInfo;
|
||||||
this._inspectionService = sinspectionService;
|
this._inspectionService = sinspectionService;
|
||||||
|
this._readingMedicalReviewService = readingMedicalReviewService;
|
||||||
this._readingMedicineQuestionService = readingMedicineQuestionService;
|
this._readingMedicineQuestionService = readingMedicineQuestionService;
|
||||||
this._trialDocumentService = trialDocumentService;
|
this._trialDocumentService = trialDocumentService;
|
||||||
this._qCListService = _qCListService;
|
this._qCListService = _qCListService;
|
||||||
|
@ -104,6 +107,21 @@ namespace IRaCIS.Core.API.Controllers
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 医学审核完成
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="opt"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost, Route("Inspection/ReadingMedicalReview/FinishMedicalReview")]
|
||||||
|
[UnitOfWork]
|
||||||
|
public async Task<IResponseOutput> FinishMedicalReview(DataInspectionDto<FinishMedicalReviewInDto> opt)
|
||||||
|
{
|
||||||
|
var singid = await _inspectionService.RecordSing(opt.SignInfo);
|
||||||
|
var result = await _readingMedicalReviewService.FinishMedicalReview(opt.Data);
|
||||||
|
await _inspectionService.CompletedSign(singid, result);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 确认项目医学审核问题
|
/// 确认项目医学审核问题
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -9,6 +9,10 @@ using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Service.Reading.Dto
|
namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
{
|
{
|
||||||
|
public class FinishMedicalReviewInDto
|
||||||
|
{
|
||||||
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
|
}
|
||||||
public class SendMedicalReviewDialogInDto
|
public class SendMedicalReviewDialogInDto
|
||||||
{
|
{
|
||||||
public Guid TaskMedicalReviewId { get; set; }
|
public Guid TaskMedicalReviewId { get; set; }
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Application.Contracts
|
||||||
|
{
|
||||||
|
public interface IReadingMedicalReviewService
|
||||||
|
{
|
||||||
|
Task<IResponseOutput> FinishMedicalReview(FinishMedicalReviewInDto inDto);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -8,6 +8,8 @@ using MassTransit;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
using Panda.DynamicWebApi.Attributes;
|
||||||
|
using IRaCIS.Core.Application.Contracts;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Service
|
namespace IRaCIS.Core.Application.Service
|
||||||
{
|
{
|
||||||
|
@ -15,7 +17,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
/// 阅片医学审核
|
/// 阅片医学审核
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ ApiExplorerSettings(GroupName = "Reading")]
|
[ ApiExplorerSettings(GroupName = "Reading")]
|
||||||
public class ReadingMedicalReviewService : BaseService
|
public class ReadingMedicalReviewService : BaseService, IReadingMedicalReviewService
|
||||||
{
|
{
|
||||||
|
|
||||||
private readonly IRepository<ReadingMedicineTrialQuestion> _readingMedicineTrialQuestionRepository;
|
private readonly IRepository<ReadingMedicineTrialQuestion> _readingMedicineTrialQuestionRepository;
|
||||||
|
@ -297,10 +299,26 @@ namespace IRaCIS.Core.Application.Service
|
||||||
return ResponseOutput.Result(result);
|
return ResponseOutput.Result(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 完成医学审核
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inDto"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[NonDynamicMethod]
|
||||||
|
public async Task<IResponseOutput> FinishMedicalReview(FinishMedicalReviewInDto inDto)
|
||||||
|
{
|
||||||
|
|
||||||
|
await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
|
||||||
|
{
|
||||||
|
IsReviewFinish = true
|
||||||
|
});
|
||||||
|
|
||||||
|
var result = await _taskMedicalReviewRepository.SaveChangesAsync();
|
||||||
|
return ResponseOutput.Result(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//public async Task<IResponseOutput>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue