|
|
@ -64,6 +64,9 @@ namespace Shentun.WebPeis.Persons |
|
|
private readonly IHttpContextAccessor _httpContextAccessor; |
|
|
private readonly IHttpContextAccessor _httpContextAccessor; |
|
|
private readonly IRepository<CustomerOrg> _customerOrgRepository; |
|
|
private readonly IRepository<CustomerOrg> _customerOrgRepository; |
|
|
private readonly SysParmValueManager _sysParmValueManager; |
|
|
private readonly SysParmValueManager _sysParmValueManager; |
|
|
|
|
|
private readonly IRepository<RegisterCheck> _registerCheckRepository; |
|
|
|
|
|
private readonly IRepository<RegisterCheckAsbitem> _registerCheckAsbitemRepository; |
|
|
|
|
|
private readonly IRepository<Asbitem> _asbitemRepository; |
|
|
public PersonAppService(IRepository<Person> repository, |
|
|
public PersonAppService(IRepository<Person> repository, |
|
|
IConfiguration configuration, |
|
|
IConfiguration configuration, |
|
|
IRepository<Volo.Abp.Identity.IdentityUser, Guid> identityUserRepository, |
|
|
IRepository<Volo.Abp.Identity.IdentityUser, Guid> identityUserRepository, |
|
|
@ -78,7 +81,10 @@ namespace Shentun.WebPeis.Persons |
|
|
IHttpContextAccessor httpContextAccessor, |
|
|
IHttpContextAccessor httpContextAccessor, |
|
|
IRepository<CustomerOrg> customerOrgRepository, |
|
|
IRepository<CustomerOrg> customerOrgRepository, |
|
|
IRepository<QuestionRegister> questionRegisterRepository, |
|
|
IRepository<QuestionRegister> questionRegisterRepository, |
|
|
SysParmValueManager sysParmValueManager) |
|
|
|
|
|
|
|
|
SysParmValueManager sysParmValueManager, |
|
|
|
|
|
IRepository<RegisterCheck> registerCheckRepository, |
|
|
|
|
|
IRepository<RegisterCheckAsbitem> registerCheckAsbitemRepository, |
|
|
|
|
|
IRepository<Asbitem> asbitemRepository) |
|
|
{ |
|
|
{ |
|
|
_repository = repository; |
|
|
_repository = repository; |
|
|
_configuration = configuration; |
|
|
_configuration = configuration; |
|
|
@ -95,6 +101,9 @@ namespace Shentun.WebPeis.Persons |
|
|
_customerOrgRepository = customerOrgRepository; |
|
|
_customerOrgRepository = customerOrgRepository; |
|
|
_questionRegisterRepository = questionRegisterRepository; |
|
|
_questionRegisterRepository = questionRegisterRepository; |
|
|
_sysParmValueManager = sysParmValueManager; |
|
|
_sysParmValueManager = sysParmValueManager; |
|
|
|
|
|
_registerCheckRepository = registerCheckRepository; |
|
|
|
|
|
_registerCheckAsbitemRepository = registerCheckAsbitemRepository; |
|
|
|
|
|
_asbitemRepository = asbitemRepository; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public async Task<PersonDto> GetByIdAsync(PersonIdInputDto input) |
|
|
public async Task<PersonDto> GetByIdAsync(PersonIdInputDto input) |
|
|
@ -431,7 +440,7 @@ namespace Shentun.WebPeis.Persons |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 获取体检次数列表
|
|
|
|
|
|
|
|
|
/// 获取体检次数列表 显示报告的列表
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="input"></param>
|
|
|
/// <param name="input"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
@ -460,6 +469,43 @@ namespace Shentun.WebPeis.Persons |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获取pacs文件检查的项目列表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost("api/app/Person/GetIsPacsCheckList")] |
|
|
|
|
|
public async Task<List<GetIsPacsCheckListDto>> GetIsPacsCheckListAsync(PatientRegisterIdInputDto input) |
|
|
|
|
|
{ |
|
|
|
|
|
var query = (from patientRegister in await _patientRegisterRepository.GetQueryableAsync() |
|
|
|
|
|
join registerCheck in await _registerCheckRepository.GetQueryableAsync() on patientRegister.PatientRegisterId equals registerCheck.PatientRegisterId |
|
|
|
|
|
join registerCheckAsbitem in await _registerCheckAsbitemRepository.GetQueryableAsync() on registerCheck.RegisterCheckId equals registerCheckAsbitem.RegisterCheckId |
|
|
|
|
|
join asbitem in await _asbitemRepository.GetQueryableAsync() on registerCheckAsbitem.AsbitemId equals asbitem.AsbitemId |
|
|
|
|
|
where patientRegister.PatientRegisterId == input.PatientRegisterId |
|
|
|
|
|
select new |
|
|
|
|
|
{ |
|
|
|
|
|
registerCheck.CheckRequestNo, |
|
|
|
|
|
asbitem.AsbitemName, |
|
|
|
|
|
registerCheck.PacsCheckDate |
|
|
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var entListDto = new List<GetIsPacsCheckListDto>(); |
|
|
|
|
|
|
|
|
|
|
|
if (query.Count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
entListDto = query.GroupBy(g => g.CheckRequestNo).Select(s => new GetIsPacsCheckListDto |
|
|
|
|
|
{ |
|
|
|
|
|
CheckRequestNo = s.Key, |
|
|
|
|
|
AsbitemName = string.Join(",", s.Select(ss => ss.AsbitemName).Distinct().ToList()), |
|
|
|
|
|
PacsCheckDate = DataHelper.ConversionDateToString(s.FirstOrDefault().PacsCheckDate) |
|
|
|
|
|
}).ToList(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return entListDto; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 获取本人和亲属列表
|
|
|
/// 获取本人和亲属列表
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
|