Uat_Study
parent
db1c6bbe72
commit
d3d79637bf
|
@ -3572,32 +3572,6 @@
|
||||||
<param name="id"></param>
|
<param name="id"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="T:IRaCIS.Application.Services.PreviousPDFService">
|
|
||||||
<summary>
|
|
||||||
临床数据 原表
|
|
||||||
</summary>
|
|
||||||
</member>
|
|
||||||
<member name="M:IRaCIS.Application.Services.PreviousPDFService.AddOrUpdateReadingPreviousPDF(IRaCIS.Core.Application.Contracts.PreviousPDFAddOrEdit)">
|
|
||||||
<summary>
|
|
||||||
新增或者修改
|
|
||||||
</summary>
|
|
||||||
<param name="addOrEditPreviousPDF"></param>
|
|
||||||
<returns></returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:IRaCIS.Application.Services.PreviousPDFService.GetPreviousPDFList(IRaCIS.Core.Application.Service.Reading.Dto.PreviousPDFInDto)">
|
|
||||||
<summary>
|
|
||||||
获取
|
|
||||||
</summary>
|
|
||||||
<param name="query"></param>
|
|
||||||
<returns></returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:IRaCIS.Application.Services.PreviousPDFService.DeletePreviousPDF(System.Guid)">
|
|
||||||
<summary>
|
|
||||||
删除
|
|
||||||
</summary>
|
|
||||||
<param name="previousPDFId"></param>
|
|
||||||
<returns></returns>
|
|
||||||
</member>
|
|
||||||
<member name="T:IRaCIS.Application.Services.ReadingClinicalDataService">
|
<member name="T:IRaCIS.Application.Services.ReadingClinicalDataService">
|
||||||
<summary>
|
<summary>
|
||||||
阅片临床数据配置
|
阅片临床数据配置
|
||||||
|
|
|
@ -1,90 +1,90 @@
|
||||||
using IRaCIS.Application.Interfaces;
|
//using IRaCIS.Application.Interfaces;
|
||||||
using IRaCIS.Core.Infra.EFCore;
|
//using IRaCIS.Core.Infra.EFCore;
|
||||||
using IRaCIS.Core.Domain.Share;
|
//using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Application.Filter;
|
//using IRaCIS.Core.Application.Filter;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
//using Microsoft.AspNetCore.Mvc;
|
||||||
using IRaCIS.Core.Application.Service.WorkLoad.DTO;
|
//using IRaCIS.Core.Application.Service.WorkLoad.DTO;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
//using Microsoft.AspNetCore.Authorization;
|
||||||
using IRaCIS.Core.Application.Auth;
|
//using IRaCIS.Core.Application.Auth;
|
||||||
using IRaCIS.Core.Application.Service.Reading.Dto;
|
//using IRaCIS.Core.Application.Service.Reading.Dto;
|
||||||
using IRaCIS.Core.Domain.Share.Reading;
|
//using IRaCIS.Core.Domain.Share.Reading;
|
||||||
using IRaCIS.Core.Application.Contracts;
|
//using IRaCIS.Core.Application.Contracts;
|
||||||
|
|
||||||
namespace IRaCIS.Application.Services
|
//namespace IRaCIS.Application.Services
|
||||||
{
|
//{
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 临床数据 原表
|
// /// 临床数据 原表
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
[ApiExplorerSettings(GroupName = "Reading")]
|
// [ApiExplorerSettings(GroupName = "Reading")]
|
||||||
public class PreviousPDFService : BaseService
|
// public class PreviousPDFService : BaseService
|
||||||
{
|
// {
|
||||||
|
|
||||||
public IRepository<SubjectVisit> _subjectVisitRepository;
|
// public IRepository<SubjectVisit> _subjectVisitRepository;
|
||||||
private readonly IRepository<PreviousPDF> _previousPDFRepository;
|
// private readonly IRepository<PreviousPDF> _previousPDFRepository;
|
||||||
|
|
||||||
public PreviousPDFService(IRepository<SubjectVisit> subjectVisitRepository,
|
// public PreviousPDFService(IRepository<SubjectVisit> subjectVisitRepository,
|
||||||
IRepository<PreviousPDF> PreviousPDFRepository
|
// IRepository<PreviousPDF> PreviousPDFRepository
|
||||||
)
|
// )
|
||||||
{
|
// {
|
||||||
_subjectVisitRepository = subjectVisitRepository;
|
// _subjectVisitRepository = subjectVisitRepository;
|
||||||
_previousPDFRepository = PreviousPDFRepository;
|
// _previousPDFRepository = PreviousPDFRepository;
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
#region 历史 接口名暂未修改
|
// #region 历史 接口名暂未修改
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 新增或者修改
|
// /// 新增或者修改
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
/// <param name="addOrEditPreviousPDF"></param>
|
// /// <param name="addOrEditPreviousPDF"></param>
|
||||||
/// <returns></returns>
|
// /// <returns></returns>
|
||||||
[HttpPost]
|
// [HttpPost]
|
||||||
public async Task<IResponseOutput> AddOrUpdateReadingPreviousPDF(PreviousPDFAddOrEdit addOrEditPreviousPDF)
|
// public async Task<IResponseOutput> AddOrUpdateReadingPreviousPDF(PreviousPDFAddOrEdit addOrEditPreviousPDF)
|
||||||
{
|
// {
|
||||||
var entity = await _repository.InsertOrUpdateAsync<PreviousPDF, PreviousPDFAddOrEdit>(addOrEditPreviousPDF, true);
|
// var entity = await _repository.InsertOrUpdateAsync<PreviousPDF, PreviousPDFAddOrEdit>(addOrEditPreviousPDF, true);
|
||||||
return ResponseOutput.Ok(entity.Id.ToString());
|
// return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 获取
|
// /// 获取
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
/// <param name="query"></param>
|
// /// <param name="query"></param>
|
||||||
/// <returns></returns>
|
// /// <returns></returns>
|
||||||
[HttpPost]
|
// [HttpPost]
|
||||||
public async Task<dynamic> GetPreviousPDFList(PreviousPDFInDto inDto)
|
// public async Task<dynamic> GetPreviousPDFList(PreviousPDFInDto inDto)
|
||||||
{
|
// {
|
||||||
var list= await _previousPDFRepository.AsQueryable().Where(x => x.TrialId == inDto.TrialId)
|
// var list= await _previousPDFRepository.AsQueryable().Where(x => x.TrialId == inDto.TrialId)
|
||||||
.Where(x => (x.ClinicalLevel == ClinicalLevel.Subject && x.SubjectId == inDto.SubjectId) || x.SubjectVisitId == inDto.VisitOrReadId)
|
// .Where(x => (x.ClinicalLevel == ClinicalLevel.Subject && x.SubjectId == inDto.SubjectId) || x.SubjectVisitId == inDto.VisitOrReadId)
|
||||||
.Select(x=>new {
|
// .Select(x=>new {
|
||||||
x.Path,
|
// x.Path,
|
||||||
x.DataType,
|
// x.DataType,
|
||||||
x.CreateTime,
|
// x.CreateTime,
|
||||||
x.ClinicalLevel,
|
// x.ClinicalLevel,
|
||||||
x.FileName,
|
// x.FileName,
|
||||||
x.UploadType,
|
// x.UploadType,
|
||||||
x.Id,
|
// x.Id,
|
||||||
}).ToListAsync();
|
// }).ToListAsync();
|
||||||
return list;
|
// return list;
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
// #endregion
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 删除
|
// /// 删除
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
/// <param name="previousPDFId"></param>
|
// /// <param name="previousPDFId"></param>
|
||||||
/// <returns></returns>
|
// /// <returns></returns>
|
||||||
[HttpDelete("{previousPDFId:guid}")]
|
// [HttpDelete("{previousPDFId:guid}")]
|
||||||
public async Task<IResponseOutput> DeletePreviousPDF(Guid previousPDFId)
|
// public async Task<IResponseOutput> DeletePreviousPDF(Guid previousPDFId)
|
||||||
{
|
// {
|
||||||
var success = await _previousPDFRepository.DeleteFromQueryAsync(t => t.Id == previousPDFId,true);
|
// var success = await _previousPDFRepository.DeleteFromQueryAsync(t => t.Id == previousPDFId,true);
|
||||||
return ResponseOutput.Result(true);
|
// return ResponseOutput.Result(true);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue