添加 TNMValue
continuous-integration/drone/push Build is running Details

Test_HIR_Net8
he 2025-08-28 16:14:09 +08:00
parent fd04315f17
commit d0352590ed
8 changed files with 19165 additions and 2 deletions

View File

@ -139,7 +139,7 @@ namespace IRaCIS.Core.SCP.Service
findPatient.PatientName = dataset.GetSingleValueOrDefault(DicomTag.PatientName, string.Empty);
findPatient.PatientSex = dataset.GetSingleValueOrDefault(DicomTag.PatientSex, string.Empty);
findPatient.PatientAge = dataset.GetSingleValueOrDefault(DicomTag.PatientAge, string.Empty);
findPatient.PatientBirthDate = dataset.GetSingleValueOrDefault(DicomTag.PatientBirthDate, string.Empty),
findPatient.PatientBirthDate = dataset.GetSingleValueOrDefault(DicomTag.PatientBirthDate, string.Empty);
if (findPatient.PatientBirthDate.Length == 8)
{

View File

@ -8793,6 +8793,11 @@
是否是裁判问题
</summary>
</member>
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetNextTaskInDto.EvaluateProgressEnum">
<summary>
评估进度
</summary>
</member>
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.GetReadingTaskDto.DigitPlaces">
<summary>
修约小数点
@ -12648,6 +12653,20 @@
IR影像阅片
</summary>
</member>
<member name="M:IRaCIS.Core.Application.Service.ReadingImageTaskService.GetTNMValue(IRaCIS.Core.Application.Service.Reading.Dto.TNMValueDto)">
<summary>
获取TNMValue
</summary>
<param name="inDto"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.ReadingImageTaskService.SetTNMValue(IRaCIS.Core.Application.Service.Reading.Dto.TNMValueDto)">
<summary>
设置tTNMValue
</summary>
<param name="inDto"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.Service.ReadingImageTaskService.DownLoadReadReport(IRaCIS.Core.Application.Service.Reading.Dto.DownLoadReadReportInDto)">
<summary>
下载阅片报告

View File

@ -301,7 +301,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
}
public class TNMValueDto
{
public string TNMValue { get; set; } =string.Empty;
public Guid VisitTaskId { get; set; }
}
public class DownLoadReadReportInDto
{

View File

@ -64,8 +64,38 @@ namespace IRaCIS.Core.Application.Service
IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer, IFusionCache _fusionCache) : BaseService, IReadingImageTaskService
{
/// <summary>
/// 获取TNMValue
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<TNMValueDto> GetTNMValue(TNMValueDto inDto)
{
var result= await _visitTaskRepository.Where(x=>x.Id==inDto.VisitTaskId).Select(x => new TNMValueDto()
{
VisitTaskId=inDto.VisitTaskId,
TNMValue = x.TNMValue
}).FirstOrDefaultAsync();
return result;
}
/// <summary>
/// 设置tTNMValue
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<TNMValueDto> SetTNMValue(TNMValueDto inDto)
{
await _visitTaskRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.VisitTaskId, x => new VisitTask()
{
TNMValue = inDto.TNMValue
},true);
return inDto;
}
/// <summary>
/// 下载阅片报告
/// </summary>

View File

@ -309,6 +309,11 @@ public class VisitTask : BaseFullAuditEntity
/// </summary>
public EvaluateProgress EvaluateProgressEnum { get; set; } = EvaluateProgress.Default;
/// <summary>
/// TNM的值
/// </summary>
public string TNMValue { get; set; } = string.Empty;
[NotMapped]
public List<string> PIAuditImagePathList

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class TNMValue : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "TNMValue",
table: "VisitTask",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "TNMValue",
table: "VisitTask");
}
}
}

View File

@ -14241,6 +14241,11 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<DateTime?>("SuggesteFinishedTime")
.HasColumnType("datetime2");
b.Property<string>("TNMValue")
.IsRequired()
.HasMaxLength(400)
.HasColumnType("nvarchar(400)");
b.Property<int>("TaskAllocationState")
.HasColumnType("int")
.HasComment("分配状态");