|
@ -115,10 +115,10 @@ public class PatientPreDiagnosisInfoService extends BaseJpaService<PatientPreDia
|
|
|
String address = infoDO.getProvinceName()+infoDO.getCityName()+infoDO.getTownName()+infoDO.getStreetName()+infoDO.getAddress();
|
|
|
JSONObject object = dsyyPrescriptionService.queryCardListToHospital("",infoDO.getIdcard());
|
|
|
if (object!=null){
|
|
|
if (object.getString("retCode").equalsIgnoreCase("00")){
|
|
|
if (!object.getString("retCode").equalsIgnoreCase("00")){
|
|
|
com.alibaba.fastjson.JSONArray array = object.getJSONArray("cardlist");
|
|
|
if (array==null||array.size()==0){
|
|
|
JSONObject jsonObject = dsyyPrescriptionService.buildAccountAllToHospital(infoDO.getName(),infoDO.getName(),infoDO.getIdcard(),infoDO.getSex(),infoDO.getMobile(),infoDO.getCardNo(),infoDO.getChargeType(),address,infoDO.getAge());
|
|
|
JSONObject jsonObject = dsyyPrescriptionService.buildAccountAllToHospital(infoDO.getName(),infoDO.getName(),infoDO.getIdcard(),infoDO.getSex(),infoDO.getMobile(),infoDO.getCardNo(),infoDO.getChargeType(),address,infoDO.getAge(),infoDO.getPsnNo());
|
|
|
if("00".equals(jsonObject.getString("retCode"))){
|
|
|
System.out.println("注册成功"+infoDO.getName());
|
|
|
}
|
|
@ -147,6 +147,7 @@ public class PatientPreDiagnosisInfoService extends BaseJpaService<PatientPreDia
|
|
|
}
|
|
|
patient.setMobile(mobile);
|
|
|
patient.setDel("1");
|
|
|
patient.setSex(Integer.parseInt(infoDO.getSex()));
|
|
|
patient.setEnabled(1);
|
|
|
patient.setLocked(0);
|
|
|
patient.setSsc(infoDO.getCardNo());
|
|
@ -156,15 +157,18 @@ public class PatientPreDiagnosisInfoService extends BaseJpaService<PatientPreDia
|
|
|
if (StringUtils.isNoneBlank(idcard)) {
|
|
|
patient.setIdcard(idcard);
|
|
|
}
|
|
|
patient.setProvinceCode(infoDO.getProvince());
|
|
|
patient.setProvinceName(infoDO.getProvinceName());
|
|
|
patient.setCityCode(infoDO.getCity());
|
|
|
patient.setCityName(infoDO.getCityName());
|
|
|
patient.setTownCode(infoDO.getTown());
|
|
|
patient.setTownName(infoDO.getTownName());
|
|
|
patient.setStreetCode(infoDO.getStreet());
|
|
|
patient.setStreetName(infoDO.getStreetName());
|
|
|
patient.setAddress(infoDO.getAddress());
|
|
|
if (StringUtils.isNoneBlank(address)){
|
|
|
patient.setProvinceCode(infoDO.getProvince());
|
|
|
patient.setProvinceName(infoDO.getProvinceName());
|
|
|
patient.setCityCode(infoDO.getCity());
|
|
|
patient.setCityName(infoDO.getCityName());
|
|
|
patient.setTownCode(infoDO.getTown());
|
|
|
patient.setTownName(infoDO.getTownName());
|
|
|
patient.setStreetCode(infoDO.getStreet());
|
|
|
patient.setStreetName(infoDO.getStreetName());
|
|
|
patient.setAddress(infoDO.getAddress());
|
|
|
}
|
|
|
|
|
|
BasePatientDO temp = patientDao.save(patient);
|
|
|
|
|
|
PatientMedicareCardDO medicareCardDO = new PatientMedicareCardDO();
|
|
@ -184,15 +188,19 @@ public class PatientPreDiagnosisInfoService extends BaseJpaService<PatientPreDia
|
|
|
}
|
|
|
familyMemberDao.save(wlyyPatientFamilyMemberDO);
|
|
|
}else {
|
|
|
patient.setProvinceCode(infoDO.getProvince());
|
|
|
patient.setProvinceName(infoDO.getProvinceName());
|
|
|
patient.setCityCode(infoDO.getCity());
|
|
|
patient.setCityName(infoDO.getCityName());
|
|
|
patient.setTownCode(infoDO.getTown());
|
|
|
patient.setTownName(infoDO.getTownName());
|
|
|
patient.setStreetCode(infoDO.getStreet());
|
|
|
patient.setStreetName(infoDO.getStreetName());
|
|
|
patient.setAddress(infoDO.getAddress());
|
|
|
patient.setSex(Integer.parseInt(infoDO.getSex()));
|
|
|
if (StringUtils.isNoneBlank(address)){
|
|
|
patient.setProvinceCode(infoDO.getProvince());
|
|
|
patient.setProvinceName(infoDO.getProvinceName());
|
|
|
patient.setCityCode(infoDO.getCity());
|
|
|
patient.setCityName(infoDO.getCityName());
|
|
|
patient.setTownCode(infoDO.getTown());
|
|
|
patient.setTownName(infoDO.getTownName());
|
|
|
patient.setStreetCode(infoDO.getStreet());
|
|
|
patient.setStreetName(infoDO.getStreetName());
|
|
|
patient.setAddress(infoDO.getAddress());
|
|
|
patientDao.save(patient);
|
|
|
}
|
|
|
}
|
|
|
infoDO.setPatient(patient.getId());
|
|
|
infoDO.setCreateTime(new Date());
|