Browse Source

pacs看图增加检查医生

master
wxd 7 months ago
parent
commit
51ded6fcc3
  1. 15
      src/Shentun.Pacs.Application.Contracts/PacsBusiness/GetPatientRegisterPacsCheckDto.cs
  2. 5
      src/Shentun.Pacs.Application.Contracts/PacsBusiness/GetPatientRegisterPacsCheckInputDto.cs
  3. 15
      src/Shentun.Pacs.Application/PacsBusiness/PacsBusinessAppService.cs
  4. 16
      src/Shentun.Pacs.Domain/CacheService.cs

15
src/Shentun.Pacs.Application.Contracts/PacsBusiness/GetPatientRegisterPacsCheckDto.cs

@ -45,5 +45,20 @@ namespace Shentun.Pacs.PacsBusiness
/// 项目描述
/// </summary>
public string PacsDesc { get; set; }
/// <summary>
/// 检查医生id
/// </summary>
public string CheckDoctorId { get; set; }
/// <summary>
/// 检查医生名字
/// </summary>
public string CheckDoctorName { get; set; }
/// <summary>
/// 体检类型名称
/// </summary>
public string MedicalTypeName { get; set; }
}
}

5
src/Shentun.Pacs.Application.Contracts/PacsBusiness/GetPatientRegisterPacsCheckInputDto.cs

@ -54,5 +54,10 @@ namespace Shentun.Pacs.PacsBusiness
public int SkipCount { get; set; } = 0;
/// <summary>
/// 检查医生
/// </summary>
public string CheckDoctorId { get; set; }
}
}

15
src/Shentun.Pacs.Application/PacsBusiness/PacsBusinessAppService.cs

@ -466,7 +466,8 @@ namespace Shentun.Pacs.PacsBusiness
deviceId = patientRegister.DeviceId,
medicalTypeId = patientRegister.MedicalTypeId,
encodingFlag = deviceHaveEmpty == null ? '0' : deviceHaveEmpty.EncodingFlag,
isFilmRelease = asbitem.IsFilmRelease
isFilmRelease = asbitem.IsFilmRelease,
checkDoctorId = registerCheck.CheckDoctorId
};
if (!string.IsNullOrWhiteSpace(input.PatientName))
@ -536,6 +537,11 @@ namespace Shentun.Pacs.PacsBusiness
query = query.Where(m => m.medicalTypeId == input.MedicalTypeId);
}
if (!string.IsNullOrWhiteSpace(input.CheckDoctorId))
{
query = query.Where(m => m.checkDoctorId == input.CheckDoctorId);
}
//#region 增加项目类别权限
//string AdminId = _configuration.GetValue<string>("AdminId");
@ -596,7 +602,10 @@ namespace Shentun.Pacs.PacsBusiness
PacsUploadDate = DataHelper.ConversionDateToString(fisrtItem.pacsUploadDate),
RegisterCheckId = item.Key,
CompleteFlag = fisrtItem.registerCheckCompleteFlag,
PacsDesc = pacsDesc
PacsDesc = pacsDesc,
MedicalTypeName = _cacheService.GetMedicalTypeNameAsync(fisrtItem.medicalTypeId).GetAwaiter().GetResult(),
CheckDoctorId = fisrtItem.checkDoctorId,
CheckDoctorName = _cacheService.GetSurnameAsync(fisrtItem.checkDoctorId).GetAwaiter().GetResult()
});
}
@ -1889,7 +1898,7 @@ namespace Shentun.Pacs.PacsBusiness
}
#endregion
/// <summary>
/// 转换老系统性别

16
src/Shentun.Pacs.Domain/CacheService.cs

@ -1,6 +1,7 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.Caching.Memory;
using NPOI.HPSF;
using NPOI.SS.Formula.Functions;
using Shentun.Pacs.Enums;
using Shentun.Pacs.Models;
@ -191,6 +192,21 @@ namespace Shentun.Pacs
return "";
}
public async Task<string> GetSurnameAsync(string id)
{
Guid newId;
if (string.IsNullOrWhiteSpace(id) || !Guid.TryParse(id, out newId))
{
return "";
}
var entity = await GetUserAsync(newId);
if (entity != null)
return entity.Surname;
else
return "";
}
public async Task<string> GetUserSignAsync(Guid? id)
{
if (id == null || id == default(Guid) || !id.HasValue)

Loading…
Cancel
Save