Browse Source

LIS申请

bjmzak
DESKTOP-G961P6V\Zhh 2 years ago
parent
commit
0a7097ce4b
  1. 9
      src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs

9
src/Shentun.Peis.Application/PrintReports/PrintReportAppService.cs

@ -40,6 +40,7 @@ namespace Shentun.Peis.PrintReports
private readonly IRepository<Patient, Guid> _patientRepository;
private readonly IRepository<PatientRegister, Guid> _patientRegisterRepository;
private readonly IRepository<RegisterCheckAsbitem, Guid> _registerCheckAsbitemRepository;
private static IRepository<RegisterCheckAsbitem, Guid> _registerCheckAsbitemStaticRepository;
private readonly IRepository<RegisterCheckItem> _registerCheckItemRepository;
private readonly IRepository<RegisterCheckSummary> _registerCheckSummaryRepository;
private readonly IRepository<RegisterCheckPicture, Guid> _registerCheckPictureRepository;
@ -126,6 +127,7 @@ namespace Shentun.Peis.PrintReports
this._chargeReportRepository = chargeReportRepository;
this._sysParmValueManager = sysParmValueManager;
_registerCheckAsbitemRepository = registerCheckAsbitemRepository;
_registerCheckAsbitemStaticRepository = registerCheckAsbitemRepository;
_registerCheckItemRepository = registerCheckItemRepository;
_registerCheckSummaryRepository = registerCheckSummaryRepository;
_registerCheckPictureRepository = registerCheckPictureRepository;
@ -250,7 +252,7 @@ namespace Shentun.Peis.PrintReports
//生成LIS条码
var lisRequests = await _lisRequestManager.SetLisRequestAsync(input.PatientRegisterId);
await _unitOfWorkManager.Current.SaveChangesAsync();
await _unitOfWorkManager.Current.CompleteAsync();
//await _unitOfWorkManager.Current.CompleteAsync();
//检索条码数据
@ -780,10 +782,9 @@ namespace Shentun.Peis.PrintReports
return MedicalReportMedicalReportTypeDtos;
}
private List<PatientRegisterGuideReport_Detail> PatientRegisterGuideAsbitem(Guid PatientRegisterId, Guid medicalCenterId, char SexId)
private static List<PatientRegisterGuideReport_Detail> PatientRegisterGuideAsbitem(Guid PatientRegisterId, Guid medicalCenterId, char SexId)
{
var entlist = _registerCheckAsbitemRepository.GetQueryableAsync().Result
.Include(x => x.Asbitem)
var entlist = _registerCheckAsbitemStaticRepository.GetQueryableAsync().Result
.Include(x => x.Asbitem.ItemType)
.Include(x => x.Asbitem.ItemType.GuidType)
.Where(m => m.PatientRegisterId == PatientRegisterId && m.Asbitem.IsCheck == 'Y')

Loading…
Cancel
Save