| | |
| | | if (CollectionUtils.isNotEmpty(epai)) externalInHospPatientAddrInfo = epai2.get(0); |
| | | if (CollectionUtils.isNotEmpty(epli)) externalInHospPatientLiaisonInfo = epli2.get(0); |
| | | //新增患者基本信息新增或修改 |
| | | addPatArchive(externalInHospPatientInfo, externalInHospPatientAddrInfo, externalInHospPatientLiaisonInfo); |
| | | PatArchive patArchive = addPatArchive(externalInHospPatientInfo, externalInHospPatientAddrInfo, externalInHospPatientLiaisonInfo); |
| | | |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | patMedInhosp.setInhospno(externalInHospPatientInfo.getZhuYuanHao()); |
| | |
| | | patMedInhosp1.setOperatorId(JiuZhenXX.get("CaoZuoRID").toString()); |
| | | patMedInhosp1.setUpdateTime(new Date()); |
| | | patMedInhosp1.setUpdateTime(new Date()); |
| | | |
| | | patMedInhosp1.setTelcode(patArchive.getTelcode()); |
| | | patMedInhosp1.setLeavehospitaldistrictcode(externalInHospPatientInfo.getDangQianBQID()); |
| | | patMedInhosp1.setLeavehospitaldistrictname(externalInHospPatientInfo.getDangQianBQMC()); |
| | | patMedInhosp1.setLeaveldeptname(externalInHospPatientInfo.getDangQianKSMC()); |
| | |
| | | PatArchive patArchive1 = patArchives.get(0); |
| | | String orgid = patArchive1.getOrgid(); |
| | | if (StringUtils.isNotEmpty(orgid)) { |
| | | // orgid = orgid + "," + externalInHospPatientInfo.getZuZhiJGID(); |
| | | // patArchive.setOrgid(orgid); |
| | | patArchive.setId(patArchive1.getId()); |
| | | patArchiveMapper.updatePatArchive(patArchive); |
| | | return patArchive; |