|
@ -768,9 +768,9 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
/**
|
|
|
* 获取没有健康管理师的患者列表
|
|
|
*
|
|
|
* @param doctor 医生code
|
|
|
* @param page 当前页
|
|
|
* @param pageSize 每页显示条数
|
|
|
* @param doctor 医生code
|
|
|
* @param page 当前页
|
|
|
* @param pageSize 每页显示条数
|
|
|
* @param patientName 患者名称
|
|
|
* @param patientAddr 患者居住地址
|
|
|
* @return
|
|
@ -784,11 +784,11 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
@RequestParam(required = false) String patientName,
|
|
|
@RequestParam(required = false) String patientAddr) {
|
|
|
try {
|
|
|
JSONObject returnJo=new JSONObject();
|
|
|
JSONObject returnJo = new JSONObject();
|
|
|
JSONArray array = new JSONArray();
|
|
|
Map<String,Object> returnMap=familyContractService.findNoHealthSignFamilyHealth(doctor, page, pageSize,patientName,patientAddr);
|
|
|
Map<String, Object> returnMap = familyContractService.findNoHealthSignFamilyHealth(doctor, page, pageSize, patientName, patientAddr);
|
|
|
List<Patient> list = (List<Patient>) returnMap.get("returnList");
|
|
|
Integer count= (Integer) returnMap.get("count");
|
|
|
Integer count = (Integer) returnMap.get("count");
|
|
|
if (list != null) {
|
|
|
for (Patient sf : list) {
|
|
|
if (sf == null) {
|
|
@ -799,9 +799,9 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
json.put("code", sf.getCode());//患者code
|
|
|
json.put("name", sf.getName());//患者name
|
|
|
json.put("address", sf.getAddress());//患者地址
|
|
|
if(sf.getLabelInfos()!=null&&sf.getLabelInfos().size()>0){
|
|
|
List<String> lablesStirng=new ArrayList<>();
|
|
|
for(SignPatientLabelInfo signPatientLabelInfo:sf.getLabelInfos()){
|
|
|
if (sf.getLabelInfos() != null && sf.getLabelInfos().size() > 0) {
|
|
|
List<String> lablesStirng = new ArrayList<>();
|
|
|
for (SignPatientLabelInfo signPatientLabelInfo : sf.getLabelInfos()) {
|
|
|
lablesStirng.add(signPatientLabelInfo.getLabelName());
|
|
|
}
|
|
|
json.put("disease", lablesStirng);//疾病
|
|
@ -824,14 +824,15 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
array.put(json);
|
|
|
}
|
|
|
}
|
|
|
returnJo.put("list",array);
|
|
|
returnJo.put("count",count);
|
|
|
returnJo.put("list", array);
|
|
|
returnJo.put("count", count);
|
|
|
return write(200, "签约数据加载成功!", "data", returnJo);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取没有健康管理师的签约数据数目
|
|
|
*
|
|
@ -856,6 +857,7 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 缴费消息提醒
|
|
|
*
|
|
@ -920,22 +922,22 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
* @param doctor
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/doctor_patient_sign_exist",method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
@RequestMapping(value = "/doctor_patient_sign_exist", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String isPatientAndDoctorExistSign(@RequestParam(required = true) String doctor,
|
|
|
@RequestParam(required = true) String patient){
|
|
|
try{
|
|
|
if(StringUtils.isEmpty(doctor)){
|
|
|
return error(-1,"医生不能为空");
|
|
|
@RequestParam(required = true) String patient) {
|
|
|
try {
|
|
|
if (StringUtils.isEmpty(doctor)) {
|
|
|
return error(-1, "医生不能为空");
|
|
|
}
|
|
|
if(StringUtils.isEmpty(patient)){
|
|
|
return error(-1,"居民不能为空");
|
|
|
if (StringUtils.isEmpty(patient)) {
|
|
|
return error(-1, "居民不能为空");
|
|
|
}
|
|
|
JSONObject result = familyContractService.isPatientAndDoctorExistSign(patient,doctor);
|
|
|
return write(200,"查询成功","data",result);
|
|
|
}catch (Exception e){
|
|
|
JSONObject result = familyContractService.isPatientAndDoctorExistSign(patient, doctor);
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1,"查询失败");
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -945,22 +947,43 @@ public class DoctorFamilyContractController extends WeixinBaseController {
|
|
|
* @param doctor
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/doctor_patient_can_sign",method = {RequestMethod.GET,RequestMethod.POST})
|
|
|
@RequestMapping(value = "/doctor_patient_can_sign", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String isPatientAndDoctorCanSign(@RequestParam(required = true) String doctor,
|
|
|
@RequestParam(required = true) String patient){
|
|
|
try{
|
|
|
if(StringUtils.isEmpty(doctor)){
|
|
|
return error(-1,"医生不能为空");
|
|
|
@RequestParam(required = true) String patient) {
|
|
|
try {
|
|
|
if (StringUtils.isEmpty(doctor)) {
|
|
|
return error(-1, "医生不能为空");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(patient)) {
|
|
|
return error(-1, "居民不能为空");
|
|
|
}
|
|
|
JSONObject result = familyContractService.isPatientAndDoctorCanSign(patient, doctor);
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询患者责任医生、团队医生
|
|
|
*
|
|
|
* @param patient 患者
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/patient_doctors", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getPatientDoctor(@RequestParam String patient) {
|
|
|
try {
|
|
|
if(StringUtils.isEmpty(patient)){
|
|
|
return error(-1,"居民不能为空");
|
|
|
}
|
|
|
JSONObject result = familyContractService.isPatientAndDoctorCanSign(patient,doctor);
|
|
|
return write(200,"查询成功","data",result);
|
|
|
}catch (Exception e){
|
|
|
JSONObject result = familyContractService.getPatientDoctors(patient, getUID());
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1,"查询失败");
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
}
|