|
@@ -1,23 +1,21 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
-import javax.validation.Valid;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.IndexConfigAndDataDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.IndexDataFacade;
|
|
|
import com.diagbot.vo.IndexDataFindVO;
|
|
|
import com.diagbot.vo.IndexDataSaveVO;
|
|
|
-
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -33,27 +31,23 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public class IndexDataController {
|
|
|
|
|
|
- @Autowired
|
|
|
- IndexDataFacade indexDataFacade;
|
|
|
-
|
|
|
- @ApiOperation(value = "知识库标准化-根据疾病获取指标数据[by:wangfeng]", notes = "diseaseName:疾病名 必填<br> patientId:患者id ,必填<br> startTime:开始时间 ,必填<br> endTime:结束时间 ,必填<br> ")
|
|
|
- @PostMapping("/getIndexDatas")
|
|
|
- @SysLogger("getIndexDatas")
|
|
|
- public RespDTO<IndexConfigAndDataDTO> getIndexDatas(@Valid @RequestBody IndexDataFindVO indexDataFindVO) {
|
|
|
-
|
|
|
- IndexConfigAndDataDTO data = indexDataFacade.getIndexDataAll(indexDataFindVO);
|
|
|
-
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
-
|
|
|
- @ApiOperation(value = "知识库标准化-保存指标数据[by:wangfeng]", notes = "patientId : 患者id 必填<br> inquiryCode :就诊号 必填<br> IndexData:{指标公表名 :indexUnique;指标值indexValue;指标单位 indexUnit;是否异常 isAbnormal;化验时间creatTime;}")
|
|
|
- @PostMapping("/saveIndexDatas")
|
|
|
- @SysLogger("saveIndexDatas")
|
|
|
- @Transactional
|
|
|
- public RespDTO<Boolean> saveIndexDatas(@Valid @RequestBody IndexDataSaveVO indexDataSaveVO) {
|
|
|
-
|
|
|
- boolean res = indexDataFacade.saveIndexDatas(indexDataSaveVO);
|
|
|
-
|
|
|
- return RespDTO.onSuc(res);
|
|
|
- }
|
|
|
+ @Autowired
|
|
|
+ IndexDataFacade indexDataFacade;
|
|
|
+
|
|
|
+ @ApiOperation(value = "知识库标准化-根据疾病获取指标数据[by:wangfeng]", notes = "diseaseName:疾病名 必填<br> patientId:患者id ,必填<br> startTime:开始时间 ,必填<br> endTime:结束时间 ,必填<br> ")
|
|
|
+ @PostMapping("/getIndexDatas")
|
|
|
+ @SysLogger("getIndexDatas")
|
|
|
+ public RespDTO<IndexConfigAndDataDTO> getIndexDatas(@Valid @RequestBody IndexDataFindVO indexDataFindVO) {
|
|
|
+ IndexConfigAndDataDTO data = indexDataFacade.getIndexDataAll(indexDataFindVO);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "知识库标准化-保存指标数据[by:wangfeng]", notes = "patientId : 患者id 必填<br> inquiryCode :就诊号 必填<br> IndexData:{指标公表名 :indexUnique;指标值indexValue;指标单位 indexUnit;是否异常 isAbnormal;化验时间creatTime;}")
|
|
|
+ @PostMapping("/saveIndexDatas")
|
|
|
+ @SysLogger("saveIndexDatas")
|
|
|
+ @Transactional
|
|
|
+ public RespDTO<Boolean> saveIndexDatas(@Valid @RequestBody IndexDataSaveVO indexDataSaveVO) {
|
|
|
+ boolean res = indexDataFacade.saveIndexDatas(indexDataSaveVO);
|
|
|
+ return RespDTO.onSuc(res);
|
|
|
+ }
|
|
|
}
|