|
@ -72,7 +72,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
System.out.println("医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
JSONObject result = rehabilitationInfoService.getRehabilitationPatientListNew(idcard, doctorId, status, page, pagesize);
|
|
|
return write(200, "请求成功", "data", result);
|
|
@ -91,7 +91,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
System.out.println("医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
List<Map<String, Object>> list = rehabilitationInfoService.getRehabilitationPatientCountNew(doctorId);
|
|
|
return write(200, "请求成功", "data", list);
|
|
@ -172,35 +172,6 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getRehabilitationPatientList", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取康复下转居民列表")
|
|
|
public String getRehabilitationPatientList(
|
|
|
@ApiParam(name = "doctorId", value = "医生id", required = false) @RequestParam(value = "doctorId", required = false) String doctorId,
|
|
|
@ApiParam(name = "idcard", value = "身份证", required = false) @RequestParam(value = "idcard", required = false) String idcard,
|
|
|
@ApiParam(name = "isTurnDown", value = "是否已下转 -2:未下转未家签,-1未下转 0未下转全部,;1已下转(未接收);2已下转(已接收);3已下转全部;03已下转全部+未下转全部", defaultValue = "0", required = false) @RequestParam(value = "isTurnDown", required = false, defaultValue = "3") String isTurnDown,
|
|
|
@ApiParam(name = "page", value = "起始页", required = false) @RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
|
|
|
@ApiParam(name = "pagesize", value = "每页显示数据条数", required = false) @RequestParam(value = "pagesize", required = false, defaultValue = "10") Integer pagesize
|
|
|
) {
|
|
|
try {
|
|
|
if (page == null) {
|
|
|
page = 1;
|
|
|
}
|
|
|
if (pagesize == null) {
|
|
|
pagesize = 10;
|
|
|
}
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
JSONObject result = rehabilitationInfoService.getRehabilitationPatientList(idcard, doctorId, isTurnDown, page, pagesize);
|
|
|
return write(200, "请求成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "操作失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 康复管理
|
|
|
* 获取所有居民的康复计列表
|
|
@ -217,7 +188,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
System.out.println("医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
List<Map<String, Object>> result = rehabilitationInfoService.getRehabilitationPatientPlan(idcard, doctorId, finishStatus, page, pagesize);
|
|
|
return write(200, "请求成功", "data", result);
|
|
@ -228,6 +199,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 康复管理
|
|
|
* 获取所有居民的康复计列表数量统计
|
|
@ -240,7 +212,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
System.out.println("医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
HashMap<String, Object> result = rehabilitationInfoService.getRehabilitationPatientPlanCount(doctorId);
|
|
|
return write(200, "请求成功", "data", result);
|
|
@ -267,6 +239,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询康复计划服务项
|
|
|
* 这个服务项还没有-暂时没有
|
|
@ -289,6 +262,53 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// /**
|
|
|
// * 查询病例信息
|
|
|
// */
|
|
|
// @RequestMapping(value = "getPatientMedicalRecords", method = RequestMethod.GET)
|
|
|
// @ApiOperation("查询居民的康复计划")
|
|
|
// public String getPatientMedicalRecords(
|
|
|
// @ApiParam(name = "patientId", value = "居民", required = false) @RequestParam(value = "patientId", required = false) String patientId
|
|
|
// ) {
|
|
|
// try {
|
|
|
// List<Map<String, Object>> result = rehabilitationInfoService.getPatientRehabilitationByPatientId(patientId);
|
|
|
// return write(200, "请求成功", "data", result);
|
|
|
// } catch (Exception e) {
|
|
|
// e.printStackTrace();
|
|
|
// return error(-1, "操作失败");
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
|
|
|
//=================================================没有用到的======================================================================
|
|
|
@RequestMapping(value = "getRehabilitationPatientList", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取康复管理居民列表")
|
|
|
public String getRehabilitationPatientList(
|
|
|
@ApiParam(name = "doctorId", value = "医生id", required = false) @RequestParam(value = "doctorId", required = false) String doctorId,
|
|
|
@ApiParam(name = "idcard", value = "身份证", required = false) @RequestParam(value = "idcard", required = false) String idcard,
|
|
|
@ApiParam(name = "isTurnDown", value = "是否已下转 -2:未下转未家签,-1未下转 0未下转全部,;1已下转(未接收);2已下转(已接收);3已下转全部;03已下转全部+未下转全部", defaultValue = "0", required = false) @RequestParam(value = "isTurnDown", required = false, defaultValue = "3") String isTurnDown,
|
|
|
@ApiParam(name = "page", value = "起始页", required = false) @RequestParam(value = "page", required = false, defaultValue = "1") Integer page,
|
|
|
@ApiParam(name = "pagesize", value = "每页显示数据条数", required = false) @RequestParam(value = "pagesize", required = false, defaultValue = "10") Integer pagesize
|
|
|
) {
|
|
|
try {
|
|
|
if (page == null) {
|
|
|
page = 1;
|
|
|
}
|
|
|
if (pagesize == null) {
|
|
|
pagesize = 10;
|
|
|
}
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
JSONObject result = rehabilitationInfoService.getRehabilitationPatientList(idcard, doctorId, isTurnDown, page, pagesize);
|
|
|
return write(200, "请求成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "操作失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getDeorsumvergenceCount", method = RequestMethod.GET)
|
|
|
@ApiOperation("康复下转已下转顶头数据")
|