|
@ -306,6 +306,7 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
//医生发送的消息
|
|
|
contentDoctor.put("text", "请提供您最近一次的血糖检测数值及检测时间");
|
|
|
contentDoctor.put("needupload",false);
|
|
|
contentDoctor.put("type",2);
|
|
|
int total = 0;
|
|
|
String sql = "select sum(category_code) amount deviceType FROM wlyy_patient_device WHERE user="+prescription.getPatient();
|
|
|
List<Map<String,Object>> result = jdbcTemplate.queryForList(sql);
|
|
@ -323,7 +324,8 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
contentPatient.put("title", "【本消息为系统提醒】:");
|
|
|
contentPatient.put("tzMsg", "体征记录:血糖"+imBloodSugarValue);
|
|
|
contentPatient.put("tzTime", "检测时间:"+imBloodSugarDate);
|
|
|
contentPatient.put("tzAlert","温馨提示:本条体征为居民上传的健康体征数据,您可以自动填入本次随访记录");
|
|
|
contentPatient.put("tzAlert","温馨提示:本条体征为居民上传的健康体征数据,您可以");
|
|
|
contentPatient.put("type",2);
|
|
|
|
|
|
//患者发送Im消息
|
|
|
ImUtill.sendTopicIM(prescription.getPatient(), prescription.getPatientName(), prescription.getConsult(), "16", contentPatient.toString(), null);
|
|
@ -334,6 +336,7 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
//医生发送的消息
|
|
|
contentDoctor.put("text", "居民近30天未上传血糖体征数据,已通知居民上传数据,请耐心等待");
|
|
|
contentDoctor.put("needupload",true);
|
|
|
contentDoctor.put("type",2);
|
|
|
}else{
|
|
|
throw new Exception("未找到30天内的血糖记录!");
|
|
|
}
|
|
@ -382,6 +385,7 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
//医生发送的消息
|
|
|
contentDoctor.put("text", "请提供您最近一次的血压检测数值及检测时间");
|
|
|
contentDoctor.put("needUpload",false);
|
|
|
contentDoctor.put("type",1);
|
|
|
|
|
|
int total = 0;
|
|
|
String sql = "select sum(category_code) amount deviceType FROM wlyy_patient_device WHERE user="+prescription.getPatient();
|
|
@ -400,7 +404,8 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
contentPatient.put("title", "【本消息为系统提醒】:");
|
|
|
contentPatient.put("tzMsg", "体征记录:血压"+jsonObject.getString("value1")+"/"+jsonObject.getString("value2")+" mmHg");
|
|
|
contentPatient.put("tzTime", "检测时间:"+jsonObject.getString("date"));
|
|
|
contentPatient.put("tzAlert","温馨提示:本条体征为居民上传的健康体征数据,您可以自动填入本次随访记录");
|
|
|
contentPatient.put("tzAlert","温馨提示:本条体征为居民上传的健康体征数据,您可以");
|
|
|
contentPatient.put("type",1);
|
|
|
|
|
|
//患者发送Im消息
|
|
|
ImUtill.sendTopicIM(prescription.getPatient(), prescription.getPatientName(), prescription.getConsult(), "16", contentPatient.toString(), null);
|
|
@ -411,6 +416,7 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
//医生发送的消息
|
|
|
contentDoctor.put("text", "居民近30天未上传血压体征数据,已通知居民上传数据,请耐心等待");
|
|
|
contentDoctor.put("needupload",true);
|
|
|
contentDoctor.put("type",1);
|
|
|
}else{
|
|
|
throw new Exception("未找到30天内的血压记录!");
|
|
|
}
|