|
@ -13,19 +13,16 @@ import com.yihu.jw.restmodel.iot.device.IotPatientDeviceVO;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
|
import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
|
|
|
import com.yihu.jw.rm.iot.IotRequestMapping;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import iot.device.LocationDataVO;
|
|
|
import jxl.demo.Write;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.Writer;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@ -620,6 +617,49 @@ public class MonitorPlatformController extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 根据患者标志获取健康指标
|
|
|
* @param idcard 患者指标
|
|
|
* @param type 健康指标类型(1血糖,2血压,3体重,4腰围)
|
|
|
* @return 操作结果
|
|
|
*/
|
|
|
@RequestMapping(value = "health_index/listByIdcard",method = RequestMethod.POST)
|
|
|
@ApiOperation("根据患者标志获取健康指标")
|
|
|
public String getHealthIndexByIdcard(@ApiParam(name="idcard",value="居民身份证",defaultValue = "P20160901001")
|
|
|
@RequestParam(value="idcard",required = true) String idcard,
|
|
|
@ApiParam(name="type",value="指标类型",defaultValue = "1")
|
|
|
@RequestParam(value="type",required = true) int type,
|
|
|
@ApiParam(name="begin",value="开始时间",defaultValue = "2016-07-23 00:00:00")
|
|
|
@RequestParam(value="begin",required = true) String begin,
|
|
|
@ApiParam(name="end",value="开始时间",defaultValue = "2016-08-23 00:00:00")
|
|
|
@RequestParam(value="end",required = true) String end,
|
|
|
@ApiParam(name="page",value="第几页",defaultValue = "1")
|
|
|
@RequestParam(value="page",required = true) int page,
|
|
|
@ApiParam(name="pagesize",value="每页几行",defaultValue = "10")
|
|
|
@RequestParam(value="pagesize",required = true) int pagesize,HttpServletRequest request) {
|
|
|
try {
|
|
|
return monitorPlatformService.getHealthIndexByIdcard(idcard, type, begin, end, page, pagesize,request);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return error(-1,"查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取居民信息
|
|
|
*/
|
|
|
@RequestMapping(value = "patientInfo",method = RequestMethod.GET)
|
|
|
@ApiOperation("获取居民信息")
|
|
|
public String patientInfo(@ApiParam(name="idcard",value="居民身份证",defaultValue = "P20160901001")
|
|
|
@RequestParam(value="idcard",required = true) String idcard) {
|
|
|
try {
|
|
|
return monitorPlatformService.patientInfo(idcard);
|
|
|
} catch (Exception ex) {
|
|
|
ex.printStackTrace();
|
|
|
return error(-1,"查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 返回接口处理结果
|
|
|
*
|