| | |
| | | } |
| | | |
| | | private Boolean inHospitalDate(List<ServiceSLTDInhospResDTO> resultList, String cry) { |
| | | int failCount = 0; |
| | | for (ServiceSLTDInhospResDTO dto : resultList) { |
| | | if (Objects.isNull(dto)) continue; |
| | | PatArchive patArchive = processPatientArchive(dto); |
| | | processPatientInhospInfo(dto, patArchive, cry); |
| | | try { |
| | | PatArchive patArchive = processPatientArchive(dto); |
| | | processPatientInhospInfo(dto, patArchive, cry); |
| | | } catch (Exception e) { |
| | | failCount++; |
| | | log.error("【inHospitalDate】单条记录处理失败,已跳过继续采集。state={}, serialnum={}, patname={}, patno={}, orgid={}, campusId={}", |
| | | cry, dto.getHealthcareRecordNo(), dto.getPatientName(), dto.getMedicalRecordNo(), |
| | | dto.getOrgId(), dto.getCampusId(), e); |
| | | } |
| | | } |
| | | if (failCount > 0) { |
| | | log.warn("【inHospitalDate】本页共{}条,失败{}条已跳过,其余{}条处理完成,state={}", |
| | | resultList.size(), failCount, resultList.size() - failCount, cry); |
| | | } |
| | | return true; |
| | | } |