|
@ -73,7 +73,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);
|
|
@ -83,6 +83,25 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getRehabilitationPatientCountNew", method = RequestMethod.GET)
|
|
|
@ApiOperation("康复下转状态数量")
|
|
|
public String getRehabilitationPatientListNew(
|
|
|
@ApiParam(name = "doctorId", value = "医生id", required = false) @RequestParam(value = "doctorId", required = false) String doctorId
|
|
|
) {
|
|
|
try {
|
|
|
if (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
List<Map<String, Object>> list = rehabilitationInfoService.getRehabilitationPatientCountNew(doctorId);
|
|
|
return write(200, "请求成功", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询科室和医生
|
|
|
*/
|
|
@ -112,7 +131,6 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "name", value = "模板名称", required = true) @RequestParam(value = "name", required = true) String name,
|
|
|
@ApiParam(name = "content", value = "模板内容", required = true) @RequestParam(value = "content", required = true) String content
|
|
|
) {
|
|
|
|
|
|
try {
|
|
|
if (StringUtils.isBlank(doctorCode)) {
|
|
|
doctorCode = getUID();
|
|
@ -155,35 +173,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, "操作失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 康复管理
|
|
|
* 获取所有居民的康复计列表
|
|
@ -200,7 +189,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);
|
|
@ -211,6 +200,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 康复管理
|
|
|
* 获取所有居民的康复计列表数量统计
|
|
@ -223,7 +213,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);
|
|
@ -251,6 +241,76 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询康复计划服务项
|
|
|
* 这个服务项还没有-暂时没有
|
|
|
*/
|
|
|
@RequestMapping(value = "getPatientPlanItem", method = RequestMethod.GET)
|
|
|
@ApiOperation("查询居民的康复计划")
|
|
|
public String getPatientPlanItem(
|
|
|
@ApiParam(name = "patientId", value = "居民", required = false) @RequestParam(value = "patientId", required = false) String patientId,
|
|
|
@ApiParam(name = "planId", value = "计划id", required = false) @RequestParam(value = "planId", required = false) String planId,
|
|
|
@ApiParam(name = "startTime", value = "开始时间", required = false) @RequestParam(value = "startTime", required = false) String startTime,
|
|
|
@ApiParam(name = "endTime", value = "结束时间", required = false) @RequestParam(value = "endTime", required = false) String endTime,
|
|
|
@ApiParam(name = "doctorId", value = "医生id", required = false) @RequestParam(value = "doctorId", required = false) String doctorId,
|
|
|
@ApiParam(name = "type", value = "1全部 2奔人 3 他人", required = false) @RequestParam(value = "type", required = false) String type
|
|
|
) {
|
|
|
try {
|
|
|
List<Map<String, Object>> result = rehabilitationInfoService.getPatientPlanItem(patientId, planId, startTime, endTime, doctorId, type);
|
|
|
return write(200, "请求成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// /**
|
|
|
// * 查询病例信息
|
|
|
// */
|
|
|
// @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("康复下转已下转顶头数据")
|
|
|
public String getDeorsumvergenceCount() {
|