| | |
| | | patMedOuthosp.setFuflag("1"); |
| | | } |
| | | } |
| | | Integer visitTimeNum = null; |
| | | String visitTimeUnit = "天"; |
| | | for (ExternalWZInfo externalWZInfo : ExternalWZInfoList) { |
| | | if (externalWZInfo.getWenZhenLXMC().equals("现病史")) { |
| | | patMedOuthosp.setHpi(externalWZInfo.getNeiRong()); |
| | | } |
| | | if (externalWZInfo.getWenZhenLXMC().equals("主诉")) { |
| | | patMedOuthosp.setMainsuit(externalWZInfo.getNeiRong()); |
| | | } |
| | | if (externalWZInfo.getWenZhenLXMC().equals("随访天数")) { |
| | | String visitTimeNumStr = externalWZInfo.getNeiRong(); |
| | | if(StringUtils.isNotEmpty(visitTimeNumStr) && visitTimeNumStr.matches("^-?\\d+$")){ |
| | | visitTimeNum = Integer.parseInt(visitTimeNumStr); |
| | | } |
| | | } |
| | | if (externalWZInfo.getWenZhenLXMC().equals("随访天数单位")) { |
| | | visitTimeUnit = externalWZInfo.getNeiRong(); |
| | | } |
| | | } |
| | | int i = 0; |
| | |
| | | i = patMedOuthospService.insertPatMedOuthosp(patMedOuthosp); |
| | | |
| | | } |
| | | Date adminDate = externalJZInfo.getJiuZhenRQ(); |
| | | //完成接诊 已经完成任务再次随访 |
| | | if(ObjectUtils.isNotEmpty(visitTimeNum) && ObjectUtils.isNotEmpty(adminDate)){ |
| | | patMedOuthospService.followUpAgainByPatMedOuthosp(patMedOuthosp, adminDate, visitTimeNum); |
| | | } |
| | | |
| | | if (i > 0) { |
| | | return true; |