|
@ -23,6 +23,7 @@ import com.yihu.jw.entity.base.area.BaseDrugStoreDO;
|
|
|
import com.yihu.jw.entity.base.dict.BaseJobCategoryDO;
|
|
|
import com.yihu.jw.entity.base.dict.DictDeptDescDO;
|
|
|
import com.yihu.jw.entity.base.dict.DictHospitalDeptDO;
|
|
|
import com.yihu.jw.entity.base.dict.DictIcd10DO;
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorDO;
|
|
|
import com.yihu.jw.entity.base.doctor.BaseDoctorHospitalDO;
|
|
|
import com.yihu.jw.entity.base.im.ConsultTeamDo;
|
|
@ -94,6 +95,7 @@ import com.yihu.jw.restmodel.web.*;
|
|
|
import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
|
|
|
import com.yihu.jw.rm.iot.IotRequestMapping;
|
|
|
import com.yihu.jw.sms.dao.BaseSmsTemplateDao;
|
|
|
import com.yihu.jw.sms.service.ZhongShanSMSService;
|
|
|
import com.yihu.jw.util.common.IdCardUtil;
|
|
|
import com.yihu.jw.util.common.LatitudeUtils;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
@ -336,6 +338,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
private HcyyEntranceService hcyyEntranceService;
|
|
|
@Autowired
|
|
|
private BasePatientMedicareCardDao patientMedicareCardDao;
|
|
|
@Autowired
|
|
|
private ZhongShanSMSService zhongShanSMSService;
|
|
|
@Autowired
|
|
|
private BaseDictIcd10Dao dictIcd10Dao;
|
|
|
|
|
|
public static String entranceUrl = "http://172.16.100.240:10023/xzzx/";
|
|
|
|
|
@ -2526,8 +2532,38 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public JSONArray getICD10(String pyKey) throws Exception {
|
|
|
return entranceService.MS25001(pyKey, demoFlag);
|
|
|
public List<Map<String,Object>> getICD10(String pyKey) throws Exception {
|
|
|
String sql = "select code,name,py_code,d_code from dict_icd10 where 1=1 ";
|
|
|
if (StringUtils.isNoneBlank(pyKey)){
|
|
|
sql += " and (py_code like '%"+pyKey+"%' or name like '%"+pyKey+"%') ";
|
|
|
}
|
|
|
List<Map<String,Object>> mapList = jdbcTemplate.queryForList(sql);
|
|
|
return mapList;
|
|
|
/* return entranceService.MS25001(pyKey,demoFlag);*/
|
|
|
}
|
|
|
|
|
|
|
|
|
public String synIcd10() throws Exception {
|
|
|
JSONArray array = entranceService.MS25001(null,demoFlag);
|
|
|
int j = 0;
|
|
|
dictIcd10Dao.deleteAll();
|
|
|
for (int i=0;i<array.size();i++){
|
|
|
JSONObject object = array.getJSONObject(i);
|
|
|
String code = object.getString("code");
|
|
|
String name = object.getString("name");
|
|
|
String py_code =object.getString("py_code");
|
|
|
String d_code = object.getString("d_code");
|
|
|
DictIcd10DO icd10DO = new DictIcd10DO();
|
|
|
icd10DO.setCode(code);
|
|
|
icd10DO.setName(name);
|
|
|
icd10DO.setPy_code(py_code);
|
|
|
icd10DO.setD_code(d_code);
|
|
|
icd10DO.setIs_del("1");
|
|
|
icd10DO.setStatus("1");
|
|
|
dictIcd10Dao.save(icd10DO);
|
|
|
j++;
|
|
|
}
|
|
|
return j+"";
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -8253,7 +8289,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
sfJsonObject.put("d_provinceName", sfexpress_obj.getProvinceName());
|
|
|
sfJsonObject.put("d_cityName", sfexpress_obj.getCityName());
|
|
|
sfJsonObject.put("d_townName", sfexpress_obj.getTownName());
|
|
|
sfJsonObject.put("d_address", sfexpress_obj.getAddress());
|
|
|
sfJsonObject.put("d_address",sfexpress_obj.getStreetName()+sfexpress_obj.getAddress());
|
|
|
sfJsonObject.put("d_phone", sfexpress_obj.getMobile());
|
|
|
sfJsonObject.put("express_type", 11);
|
|
|
sfJsonObject.put("pay_method", 2);
|
|
@ -8644,6 +8680,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
msg="图文咨询";
|
|
|
|
|
|
} else if("3".equals(outpatient.getType())){
|
|
|
systemMessageDO.setTitle("家医咨询");
|
|
|
systemMessageDO.setType("15");
|
|
@ -8690,6 +8727,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
saveInquirySystemMessage(outpatient,null);
|
|
|
}
|
|
|
msg="图文复诊";
|
|
|
if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(outpatient.getDoctor());
|
|
|
if (doctorDO!=null){
|
|
|
if (StringUtils.isNoneBlank(doctorDO.getMobile())){
|
|
|
String content = doctorDO.getName()+"医生,患者"+outpatient.getPatientName()+"向您发起了图文问诊,请您及时打开企业微信,进入在线诊疗查看!";
|
|
|
int i= zhongShanSMSService.ZhongShangSendSMS(doctorDO.getMobile(),content);
|
|
|
WlyyHttpLogDO wlyyHttpLogDO = new WlyyHttpLogDO();
|
|
|
wlyyHttpLogDO.setDoctor(outpatient.getDoctor());
|
|
|
wlyyHttpLogDO.setRequest("");
|
|
|
wlyyHttpLogDO.setName(content);
|
|
|
wlyyHttpLogDO.setCode(outpatient.getId());
|
|
|
wlyyHttpLogDO.setCreateTime(new Date());
|
|
|
wlyyHttpLogDO.setResponse(i+"");
|
|
|
wlyyHttpLogDao.save(wlyyHttpLogDO);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
systemMessageDO.setTitle("视频复诊预约成功");
|
|
|
systemMessageDO.setType("2");
|