|
|
|
@ -684,7 +684,7 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
if (!string.IsNullOrEmpty(input.Phone)) |
|
|
|
entlist = entlist.Where(m => m.patient.MobileTelephone == input.Phone || m.patient.Telephone == input.Phone); |
|
|
|
|
|
|
|
if (input.SexId != null && input.SexId != ForSexFlag.All) |
|
|
|
if (input.SexId != null) |
|
|
|
entlist = entlist.Where(m => m.patientRegister.SexId == input.SexId); |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(input.StartDate) && !string.IsNullOrEmpty(input.EndDate)) |
|
|
|
@ -826,7 +826,10 @@ namespace Shentun.Peis.PatientRegisters |
|
|
|
CustomerOrgParentId = _cacheService.GetTopCustomerOrgAsync(s.patientRegister.CustomerOrgId).GetAwaiter().GetResult().Id, |
|
|
|
CustomerOrgParentName = _cacheService.GetTopCustomerOrgNameAsync(s.patientRegister.CustomerOrgId).GetAwaiter().GetResult(), |
|
|
|
MedicalPackageName = s.patientRegister.MedicalPackageId == null ? "" : _cacheService.GetMedicalPackageAsync(s.patientRegister.MedicalPackageId.Value).GetAwaiter().GetResult().DisplayName, |
|
|
|
CustomerOrgGroupName = s.patientRegister.CustomerOrgGroupId == null ? "" : _cacheService.GetCustomerOrgGroupAsync(s.patientRegister.CustomerOrgGroupId.Value).GetAwaiter().GetResult().DisplayName |
|
|
|
CustomerOrgGroupName = s.patientRegister.CustomerOrgGroupId == null ? "" : _cacheService.GetCustomerOrgGroupAsync(s.patientRegister.CustomerOrgGroupId.Value).GetAwaiter().GetResult().DisplayName, |
|
|
|
NationName = _cacheService.GetNationNameAsync(s.patient.NationId).GetAwaiter().GetResult(), |
|
|
|
PersonnelTypeName = _cacheService.GetPersonnelTypeNameAsync(s.patientRegister.PersonnelTypeId).GetAwaiter().GetResult(), |
|
|
|
MaritalStatusName = _cacheService.GetMaritalStatusNameAsync(s.patientRegister.MaritalStatusId).GetAwaiter().GetResult() |
|
|
|
}).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|