This commit is contained in:
he
2022-06-10 17:02:48 +08:00
parent beb83f1cf1
commit 187b819dba
6 changed files with 65 additions and 3 deletions
@@ -5,6 +5,7 @@
//--------------------------------------------------------------------
using IRaCIS.Core.Application.Service.Inspection.DTO;
using IRaCIS.Core.Application.Service.Reading.Dto;
using IRaCIS.Core.Domain.Share.Reading;
@@ -13,5 +14,7 @@ namespace IRaCIS.Core.Application.Contracts
public interface IReadingClinicalDataService
{
Task<IResponseOutput> AddOrUpdateReadingClinicalData(AddOrUpdateReadingClinicalDataDto indto);
Task<IResponseOutput> ReadClinicalDataSign(ReadingClinicalDataSignIndto inDto);
}
}
@@ -13,6 +13,8 @@ using System.ComponentModel.DataAnnotations;
using System.Reflection;
using IRaCIS.Core.Infra.EFCore.Common;
using IRaCIS.Core.Application.Contracts;
using IRaCIS.Core.Application.Service.Inspection.DTO;
using Panda.DynamicWebApi.Attributes;
namespace IRaCIS.Application.Services
{
@@ -150,7 +152,24 @@ namespace IRaCIS.Application.Services
return clinicalList;
}
/// <summary>
/// 影像阅片临床数据签名
/// </summary>
// [HttpPost]
[NonDynamicMethod]
public async Task<IResponseOutput> ReadClinicalDataSign(ReadingClinicalDataSignIndto inDto)
{
await _readingClinicalDataRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.ReadingClinicalDataId, x => new ReadingClinicalData()
{
IsSign = true
});
var result =await _readingClinicalDataRepository.SaveChangesAsync();
return ResponseOutput.Result(result);
}
/// <summary>
/// 获取阅片临床数据列表