|
@ -17,6 +17,7 @@ import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@ -40,7 +41,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "idcard", value = "身份证") @RequestParam(value = "idcard", required = false) String idcard
|
|
|
) {
|
|
|
try {
|
|
|
List<Map<String, Object>> list = rehabilitationInfoService.getPatientInfo(patientId,idcard);
|
|
|
List<Map<String, Object>> list = rehabilitationInfoService.getPatientInfo(patientId, idcard);
|
|
|
return MixEnvelop.getSuccess(SpecialistMapping.api_success, list);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
@ -92,7 +93,7 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
@ApiParam(name = "deptCode", value = "科室code", required = false) @RequestParam(value = "deptCode", required = false) String deptCode,
|
|
|
@ApiParam(name = "deptName", value = "科室", required = false) @RequestParam(value = "deptName", required = false) String deptName) {
|
|
|
try {
|
|
|
List<Map<String, Object>> list = rehabilitationInfoService.getDetpAndDoctor(doctorName, deptCode, deptName, type,disease);
|
|
|
List<Map<String, Object>> list = rehabilitationInfoService.getDetpAndDoctor(doctorName, deptCode, deptName, type, disease);
|
|
|
return write(200, "请求成功", "data", list);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, e.getMessage());
|
|
@ -148,7 +149,6 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getRehabilitationPatientList", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取康复下转居民列表")
|
|
|
public String getRehabilitationPatientList(
|
|
@ -177,6 +177,70 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 康复管理
|
|
|
* 获取所有居民的康复计列表
|
|
|
*/
|
|
|
@RequestMapping(value = "getRehabilitationPatientPlan", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取所有居民的康复计列表")
|
|
|
public String getRehabilitationPatientPlan(
|
|
|
@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 = "finishStatus", value = "空全部 1未完成 2已完成", required = false) @RequestParam(value = "finishStatus", required = false) String finishStatus,
|
|
|
@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 (StringUtils.isBlank(doctorId)) {
|
|
|
doctorId = getUID();
|
|
|
System.out.println("获取康复下转居民列表--医生id==>getUID()==>" + getUID());
|
|
|
}
|
|
|
List<Map<String, Object>> result = rehabilitationInfoService.getRehabilitationPatientPlan(idcard, doctorId, finishStatus, page, pagesize);
|
|
|
return write(200, "请求成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 康复管理
|
|
|
* 获取所有居民的康复计列表数量统计
|
|
|
*/
|
|
|
@RequestMapping(value = "getRehabilitationPatientPlanCount", method = RequestMethod.GET)
|
|
|
@ApiOperation("获取所有居民的康复计列表")
|
|
|
public String getRehabilitationPatientPlanCount(
|
|
|
@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());
|
|
|
}
|
|
|
HashMap<String, Object> result = rehabilitationInfoService.getRehabilitationPatientPlanCount(doctorId);
|
|
|
return write(200, "请求成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询居民的康复计划
|
|
|
*/
|
|
|
@RequestMapping(value = "getPatientRehabilitationByPatientId", method = RequestMethod.GET)
|
|
|
@ApiOperation("查询居民的康复计划")
|
|
|
public String getPatientRehabilitationByPatientId(
|
|
|
@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) {
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "getDeorsumvergenceCount", method = RequestMethod.GET)
|
|
|
@ApiOperation("康复下转已下转顶头数据")
|
|
|
public String getDeorsumvergenceCount() {
|
|
@ -189,8 +253,6 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "createMedicalRecords", method = RequestMethod.POST)
|
|
|
@ApiOperation("添加编辑住院病历")
|
|
|
public String createMedicalRecords(
|