|
|
|
@ -513,27 +513,17 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
if (input.CompleteFlag != null) |
|
|
|
if (input.CompleteFlags.Any()) |
|
|
|
{ |
|
|
|
entlist = entlist.Where(m => m.patientRegister.CompleteFlag == input.CompleteFlag); |
|
|
|
if (input.CompleteFlag != PatientRegisterCompleteFlag.PreRegistration && input.IsFilterPreRegistration != null && input.IsFilterPreRegistration == 'Y') |
|
|
|
{ |
|
|
|
//直接过滤
|
|
|
|
entlist = entlist.Where(m => m.patientRegister.CompleteFlag != PatientRegisterCompleteFlag.PreRegistration); |
|
|
|
} |
|
|
|
|
|
|
|
entlist = entlist.Where(m => input.CompleteFlags.Contains(m.patientRegister.CompleteFlag)); |
|
|
|
} |
|
|
|
else |
|
|
|
|
|
|
|
if (input.MedicalTypeIds.Any()) |
|
|
|
{ |
|
|
|
if (input.IsFilterPreRegistration != null && input.IsFilterPreRegistration == 'Y') |
|
|
|
{ |
|
|
|
//直接过滤
|
|
|
|
entlist = entlist.Where(m => m.patientRegister.CompleteFlag != PatientRegisterCompleteFlag.PreRegistration); |
|
|
|
} |
|
|
|
entlist = entlist.Where(m => input.MedicalTypeIds.Contains(m.patientRegister.MedicalTypeId)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (input.CustomerOrgId != null) |
|
|
|
{ |
|
|
|
var CustomerOrgIds = await _customerOrgManager.GetCustomerOrgChildrenId(input.CustomerOrgId.Value); |
|
|
|
@ -1400,7 +1390,8 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
ab, |
|
|
|
AsbitemId = ad != null ? ad.AsbitemId : Guid.Empty, |
|
|
|
RegisterCheckCompleteFlag = ac != null ? ac.CompleteFlag : '9', |
|
|
|
RegisterCheckIsAudit = ac != null ? ac.IsAudit : '9' |
|
|
|
RegisterCheckIsAudit = ac != null ? ac.IsAudit : '9', |
|
|
|
CheckDoctorId = ac.CheckDoctorId |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -1499,7 +1490,10 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
sumquery = sumquery.Where(m => m.a.SexId == input.SexId); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (input.CheckDoctorIds.Any()) |
|
|
|
{ |
|
|
|
sumquery = sumquery.Where(m => input.CheckDoctorIds.Contains(m.CheckDoctorId)); |
|
|
|
} |
|
|
|
|
|
|
|
if (input.CompleteFlag != null) |
|
|
|
{ |
|
|
|
@ -1688,7 +1682,8 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
ab, |
|
|
|
AsbitemId = ad != null ? ad.AsbitemId : Guid.Empty, |
|
|
|
RegisterCheckCompleteFlag = ac != null ? ac.CompleteFlag : '9', |
|
|
|
RegisterCheckIsAudit = ac != null ? ac.IsAudit : '9' |
|
|
|
RegisterCheckIsAudit = ac != null ? ac.IsAudit : '9', |
|
|
|
CheckDoctorId = ac.CheckDoctorId |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -1787,7 +1782,10 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
sumquery = sumquery.Where(m => m.a.SexId == input.SexId); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (input.CheckDoctorIds.Any()) |
|
|
|
{ |
|
|
|
sumquery = sumquery.Where(m => input.CheckDoctorIds.Contains(m.CheckDoctorId)); |
|
|
|
} |
|
|
|
|
|
|
|
if (input.CompleteFlag != null |
|
|
|
&& input.CompleteFlag != PatientRegisterCompleteFlag.ItemCheckUnSumCheck) |
|
|
|
|