| | |
| | | @Autowired |
| | | private PatMedOperationItemMapper patMedOperationItemMapper; |
| | | @Autowired |
| | | private Icd10AssociationMapper icd10AssociationMapper; |
| | | private Icd10Mapper icd10Mapper; |
| | | |
| | | @Value("${defaultPwd}") |
| | | private String defaultPwd; |
| | |
| | | |
| | | @Override |
| | | public Boolean addFinshJZInfo(Map dataMap) { |
| | | //这个先等等 |
| | | log.error("ServiceExternalServiceImpl---addFinshJZInfo的新增的值为:{}", dataMap); |
| | | // Map yeWuXX = (Map) dataMap.get("YeWuXX"); |
| | | // Map<String, Object> BingRenXX = (Map<String, Object>) yeWuXX.get("BingRenXX"); |
| | | // Map<String, Object> JiuZhenXX = (Map<String, Object>) yeWuXX.get("JiuZhenXX"); |
| | | // ExternalInHospPatientInfo externalInHospPatientInfo = BeanUtil.mapToBean(BingRenXX, ExternalInHospPatientInfo.class, true); |
| | | // PatMedOuthosp patMedOuthosp = new PatMedOuthosp(); |
| | | // patMedOuthosp.setOuthospno(externalInHospPatientInfo.getBingAnHao()); |
| | | // patMedOuthosp.setSerialnum(externalInHospPatientInfo.getBingAnHao()); |
| | | // patMedOuthosp.setPatid(Long.valueOf(externalInHospPatientInfo.getBingRenID())); |
| | | // patMedOuthosp.setPatname(externalInHospPatientInfo.getXingMing()); |
| | | // patMedOuthosp.setHospitalname(externalInHospPatientInfo.getZuZhiJGMC()); |
| | | // patMedOuthosp.setHospitalcode(externalInHospPatientInfo.getZuZhiJGID()); |
| | | // patMedOuthosp.setIcd10code(); |
| | | |
| | | |
| | | return null; |
| | | } |
| | |
| | | Map yeWuXX = (Map) dataMap.get("YeWuXX"); |
| | | Map<String, Object> JiBing = (Map<String, Object>) yeWuXX.get("JiBing"); |
| | | ExternalDiseaseInfo externalDiseaseInfo = BeanUtil.mapToBean(JiBing, ExternalDiseaseInfo.class, true); |
| | | Icd10Association icd10Association = new Icd10Association(); |
| | | icd10Association.setIcd10code(externalDiseaseInfo.getJiBingID()); |
| | | icd10Association.setIcd10name(externalDiseaseInfo.getJiBingMC()); |
| | | icd10Association.setGuid(externalDiseaseInfo.getZuZhiJGID()); |
| | | icd10Association.setOrgid(externalDiseaseInfo.getZuZhiJGID()); |
| | | icd10Association.setPid(externalDiseaseInfo.getFUJIBID()); |
| | | icd10Association.setIcd10AssortCode(externalDiseaseInfo.getJiBingFLDM()); |
| | | icd10Association.setIcd10AssortName(externalDiseaseInfo.getJiBingFLMC()); |
| | | icd10Association.setChineseMedicineDiagnoseSign(externalDiseaseInfo.getZhongYiZDBZ()); |
| | | icd10Association.setChineseMedicineDiagnoseAssortCode(externalDiseaseInfo.getZhongYiZDFLDM()); |
| | | icd10Association.setChineseMedicineDiagnoseAssortName(externalDiseaseInfo.getZhongYiZDFLMC()); |
| | | icd10Association.setOutpatientUseAssort(externalDiseaseInfo.getMenZhenSYBZ()); |
| | | icd10Association.setInpatientUseAssort(externalDiseaseInfo.getZhuYuanSYBZ()); |
| | | icd10AssociationMapper.insertIcd10Association(icd10Association); |
| | | Icd10 icd10 = new Icd10(); |
| | | icd10.setIcdcode(externalDiseaseInfo.getJiBingID()); |
| | | icd10.setIcdname(externalDiseaseInfo.getJiBingMC()); |
| | | icd10.setGuid(externalDiseaseInfo.getZuZhiJGID()); |
| | | icd10.setOrgid(externalDiseaseInfo.getZuZhiJGID()); |
| | | icd10.setLastflag(externalDiseaseInfo.getMOJIBZ()); |
| | | icd10.setChimedflag("" + externalDiseaseInfo.getZhongYiZDBZ()); |
| | | // icd10Association.setIcd10AssortName(externalDiseaseInfo.getJiBingFLMC()); |
| | | // icd10Association.setChineseMedicineDiagnoseSign(externalDiseaseInfo.getZhongYiZDBZ()); |
| | | // icd10Association.setChineseMedicineDiagnoseAssortCode(externalDiseaseInfo.getZhongYiZDFLDM()); |
| | | // icd10Association.setChineseMedicineDiagnoseAssortName(externalDiseaseInfo.getZhongYiZDFLMC()); |
| | | // icd10Association.setOutpatientUseAssort(externalDiseaseInfo.getMenZhenSYBZ()); |
| | | // icd10Association.setInpatientUseAssort(externalDiseaseInfo.getZhuYuanSYBZ()); |
| | | icd10Mapper.insertIcd10(icd10); |
| | | return true; |
| | | } |
| | | |
| | |
| | | patArchive.setNation(externalInHospPatientInfo.getMinZuMC()); |
| | | patArchive.setNativePlace(externalInHospPatientInfo.getGuoJiMC()); |
| | | if (ObjectUtils.isNotEmpty(externalInHospPatientAddrInfo)) { |
| | | patArchive.setPlaceOfResidence(externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX()); |
| | | patArchive.setBirthplace(externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX()); |
| | | String por = externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX(); |
| | | patArchive.setPlaceOfResidence(por.replace(null, "")); |
| | | String bp = externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX(); |
| | | patArchive.setBirthplace(bp.replace(null, "")); |
| | | } |
| | | patArchive.setBirthdate(externalInHospPatientInfo.getChuShengRQ()); |
| | | patArchive.setAge(externalInHospPatientInfo.getNianLing()); |
| | | patArchive.setAgeUnit(externalInHospPatientInfo.getNianLingDW()); |
| | | patArchive.setTelcode(externalInHospPatientInfo.getLianXiDH()); |
| | | if (StringUtils.isEmpty(externalInHospPatientInfo.getLianXiDH())) |
| | | patArchive.setTelcode(externalInHospPatientInfo.getLianXiRDH()); |
| | | patArchive.setRelativetelcode(externalInHospPatientInfo.getLianXiRDH()); |
| | | patArchive.setGuid(externalInHospPatientInfo.getZuZhiJGID()); |
| | | patArchive.setOrgid(externalInHospPatientInfo.getZuZhiJGID()); |
| | | if (ObjectUtils.isNotEmpty(externalInHospPatientLiaisonInfo)) |
| | |
| | | patMedInhosp.setLeavehospitaldistrictcode(externalInHospPatientInfo.getDangQianBQID()); |
| | | patMedInhosp.setHospitaldistrictname(externalInHospPatientInfo.getDangQianBQMC()); |
| | | patMedInhosp.setLeavehospitaldistrictname(externalInHospPatientInfo.getDangQianBQMC()); |
| | | patMedInhosp.setTelcode(patArchive.getTelcode()); |
| | | patMedInhosp.setDrname(""); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(externalInHospPatientDiagnoseInfo)) { |
| | | patMedInhosp.setIcd10code(StringUtils.isNotEmpty(patMedInhosp.getIcd10code()) ? patMedInhosp.getIcd10code() + "," + externalInHospPatientDiagnoseInfo.getZhenDuanID() : externalInHospPatientDiagnoseInfo.getZhenDuanID()); |
| | |
| | | patMedInhosp.setPatid(patArchive.getId()); |
| | | patMedInhosp.setPatno(patArchive.getPatientno()); |
| | | patMedInhosp.setPatname(patArchive.getName()); |
| | | patMedInhosp.setDrname(""); |
| | | |
| | | patMedInhosp.setSchemestatus(1L); |
| | | patMedInhosp.setCreateTime(new Date()); |
| | | } |