|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
import com.yihu.jw.care.endpoint.BaseController;
|
|
import com.yihu.jw.care.endpoint.BaseController;
|
|
import com.yihu.jw.care.service.assistance.EmergencyAssistanceService;
|
|
import com.yihu.jw.care.service.assistance.EmergencyAssistanceService;
|
|
|
|
import com.yihu.jw.care.service.common.DictService;
|
|
import com.yihu.jw.care.service.doorCoach.DoctorDoorCoachOrderService;
|
|
import com.yihu.jw.care.service.doorCoach.DoctorDoorCoachOrderService;
|
|
import com.yihu.jw.care.service.doorCoach.PatientDoorCoachOrderService;
|
|
import com.yihu.jw.care.service.doorCoach.PatientDoorCoachOrderService;
|
|
import com.yihu.jw.care.service.lifeCare.LifeCareOrderService;
|
|
import com.yihu.jw.care.service.lifeCare.LifeCareOrderService;
|
|
@ -14,6 +15,7 @@ import com.yihu.jw.entity.care.doorCoach.BaseDoorCoachOrderDO;
|
|
import com.yihu.jw.entity.care.lifeCare.LifeCareOrderDO;
|
|
import com.yihu.jw.entity.care.lifeCare.LifeCareOrderDO;
|
|
import com.yihu.jw.restmodel.ResponseContant;
|
|
import com.yihu.jw.restmodel.ResponseContant;
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
@ -54,11 +56,13 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
private EmergencyAssistanceService assistanceService;
|
|
private EmergencyAssistanceService assistanceService;
|
|
@Autowired
|
|
@Autowired
|
|
private BaseServiceNewsService baseServiceNewsService;
|
|
private BaseServiceNewsService baseServiceNewsService;
|
|
|
|
@Autowired
|
|
|
|
private DictService dictService;
|
|
|
|
|
|
private BaseController baseController = new BaseController();
|
|
private BaseController baseController = new BaseController();
|
|
|
|
|
|
@GetMapping(value = "findOrgLocations")
|
|
@GetMapping(value = "findOrgLocations")
|
|
@ApiParam("查找机构坐标")
|
|
|
|
|
|
@ApiOperation("查找机构坐标")
|
|
public ListEnvelop findOrgLocations(){
|
|
public ListEnvelop findOrgLocations(){
|
|
try {
|
|
try {
|
|
return ListEnvelop.getSuccess("查询成功",baseServiceNewsService.findOrgLocations());
|
|
return ListEnvelop.getSuccess("查询成功",baseServiceNewsService.findOrgLocations());
|
|
@ -68,7 +72,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "findPatinetLocations")
|
|
@GetMapping(value = "findPatinetLocations")
|
|
@ApiParam("查找所有居民坐标")
|
|
|
|
|
|
@ApiOperation("查找所有居民坐标")
|
|
public ListEnvelop findPatinetLocations(){
|
|
public ListEnvelop findPatinetLocations(){
|
|
try {
|
|
try {
|
|
return ListEnvelop.getSuccess("查询成功",baseServiceNewsService.findPatinetLocations());
|
|
return ListEnvelop.getSuccess("查询成功",baseServiceNewsService.findPatinetLocations());
|
|
@ -78,7 +82,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "findPatinetByName")
|
|
@GetMapping(value = "findPatinetByName")
|
|
@ApiParam("获取居民详情页")
|
|
|
|
|
|
@ApiOperation("获取居民详情页")
|
|
public ListEnvelop findPatinetByName(@ApiParam(name="name",value = "居民姓名",required = true)
|
|
public ListEnvelop findPatinetByName(@ApiParam(name="name",value = "居民姓名",required = true)
|
|
@RequestParam(value = "name")String name){
|
|
@RequestParam(value = "name")String name){
|
|
try {
|
|
try {
|
|
@ -89,7 +93,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "findNews")
|
|
@GetMapping(value = "findNews")
|
|
@ApiParam("获取居民详情页")
|
|
|
|
|
|
@ApiOperation("获取居民详情页")
|
|
public ListEnvelop findNews(@ApiParam(name="size",value = "页面大小",required = true)
|
|
public ListEnvelop findNews(@ApiParam(name="size",value = "页面大小",required = true)
|
|
@RequestParam(value = "size")Integer size){
|
|
@RequestParam(value = "size")Integer size){
|
|
try {
|
|
try {
|
|
@ -100,7 +104,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getPatientInfo")
|
|
@GetMapping(value = "getPatientInfo")
|
|
@ApiParam("获取居民详情页")
|
|
|
|
|
|
@ApiOperation("获取居民详情页")
|
|
public ObjEnvelop getPatientInfo(@ApiParam(name="patient",value = "居民id",required = true)
|
|
public ObjEnvelop getPatientInfo(@ApiParam(name="patient",value = "居民id",required = true)
|
|
@RequestParam(value = "patient")String patient,
|
|
@RequestParam(value = "patient")String patient,
|
|
@ApiParam(name="patientType",value="患者类型 1老人 2 新生儿")
|
|
@ApiParam(name="patientType",value="患者类型 1老人 2 新生儿")
|
|
@ -113,7 +117,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getPatientEvent")
|
|
@GetMapping(value = "getPatientEvent")
|
|
@ApiParam("获取就诊事件")
|
|
|
|
|
|
@ApiOperation("获取就诊事件")
|
|
public ObjEnvelop getPatientEvent(@ApiParam(name="patient",value = "居民id",required = true)
|
|
public ObjEnvelop getPatientEvent(@ApiParam(name="patient",value = "居民id",required = true)
|
|
@RequestParam(value = "patient")String patient,
|
|
@RequestParam(value = "patient")String patient,
|
|
@ApiParam(name="patientType",value="患者类型 1老人 2 新生儿")
|
|
@ApiParam(name="patientType",value="患者类型 1老人 2 新生儿")
|
|
@ -130,7 +134,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getServiceOrder")
|
|
@GetMapping(value = "getServiceOrder")
|
|
@ApiParam("获取服务工单列表")
|
|
|
|
|
|
@ApiOperation("获取服务工单列表")
|
|
public ObjEnvelop getServiceOrder(@ApiParam(name="patient",value = "居民id",required = true)
|
|
public ObjEnvelop getServiceOrder(@ApiParam(name="patient",value = "居民id",required = true)
|
|
@RequestParam(value = "patient")String patient,
|
|
@RequestParam(value = "patient")String patient,
|
|
@ApiParam(name="patientType",value="患者类型 1老人 2 新生儿")
|
|
@ApiParam(name="patientType",value="患者类型 1老人 2 新生儿")
|
|
@ -147,7 +151,7 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = "getHealthIndexInfo")
|
|
@GetMapping(value = "getHealthIndexInfo")
|
|
@ApiParam("获取居民体征信息")
|
|
|
|
|
|
@ApiOperation("获取居民体征信息")
|
|
public String getHealthIndexInfo(@ApiParam(name="patient",value="患者代码",defaultValue = "eb0b478fbe9245428ecf63cd7517206f")
|
|
public String getHealthIndexInfo(@ApiParam(name="patient",value="患者代码",defaultValue = "eb0b478fbe9245428ecf63cd7517206f")
|
|
@RequestParam(value="patient",required = true) String patient,
|
|
@RequestParam(value="patient",required = true) String patient,
|
|
@ApiParam(name="type",value="指标类型",defaultValue = "1")
|
|
@ApiParam(name="type",value="指标类型",defaultValue = "1")
|
|
@ -165,6 +169,17 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = "getPatientMonitoringInfo")
|
|
|
|
@ApiOperation("获取居民安监护信息")
|
|
|
|
public String getHealthIndexInfo(@ApiParam(name="patient",value="患者代码",defaultValue = "808080eb7917a3be017918a979380055")
|
|
|
|
@RequestParam(value="patient",required = true) String patient){
|
|
|
|
try {
|
|
|
|
return baseController.write (200,"查询成功","data",patientInfoPlatFormService.getPatientMonitoringInfo(patient));
|
|
|
|
}catch (Exception e){
|
|
|
|
return baseController.errorResult(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
@GetMapping("getDoorCoachByOrderId")
|
|
@GetMapping("getDoorCoachByOrderId")
|
|
@ApiOperation(value = "根据工单id获取相应的工单,如果为空,则获取该患者当前最新一条的工单")
|
|
@ApiOperation(value = "根据工单id获取相应的工单,如果为空,则获取该患者当前最新一条的工单")
|
|
public ObjEnvelop getByOrderId(
|
|
public ObjEnvelop getByOrderId(
|
|
@ -253,5 +268,22 @@ public class PatientInfoPlatFormEndpoint extends EnvelopRestEndpoint {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("查询字典")
|
|
|
|
@GetMapping(value= "findDict")
|
|
|
|
public MixEnvelop findDict(@ApiParam(name = "name", value = "name", required = false)
|
|
|
|
@RequestParam(value = "name", required = false)String name,
|
|
|
|
@ApiParam(name = "modelName", value = "modelName", required = false)
|
|
|
|
@RequestParam(value = "modelName", required = false)String modelName,
|
|
|
|
@ApiParam(name = "code", value = "code", required = false)
|
|
|
|
@RequestParam(value = "code", required = false)String code,
|
|
|
|
@ApiParam(name = "value", value = "value", required = false)
|
|
|
|
@RequestParam(value = "value", required = false)String value,
|
|
|
|
@ApiParam(name = "page", value = "page", required = false)
|
|
|
|
@RequestParam(value = "page", required = false) Integer page,
|
|
|
|
@ApiParam(name = "pageSize", value = "pageSize", required = false)
|
|
|
|
@RequestParam(value = "pageSize", required = false)Integer pageSize){
|
|
|
|
|
|
|
|
return dictService.findDictsByNameCode(modelName,name,code,value,page,pageSize);
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|