|
@@ -1,7 +1,8 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
-
|
|
|
import javax.validation.Valid;
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -13,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.facade.PrintRecordFacade;
|
|
|
+import com.diagbot.vo.ContentsVO;
|
|
|
import com.diagbot.vo.PrintRecordsVO;
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -29,20 +31,21 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@Api(value = "打印记录API[by:wangfeng]", tags = { "打印记录API" })
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public class PrintRecordController {
|
|
|
-
|
|
|
+
|
|
|
@Autowired
|
|
|
PrintRecordFacade printRecordFacade;
|
|
|
-
|
|
|
- @ApiOperation(value = "保存打印记录",notes = "保存打印记录")
|
|
|
- @PostMapping("/savePrintRecords")
|
|
|
+
|
|
|
+ @ApiOperation(value = "保存打印记录", notes = "疾病名称 :name</br>医生id:doctorId</br>医院编码 : hospitalId</br>"
|
|
|
+ + "患者id:patientId</br>"
|
|
|
+ + "医院部门id:hospitalDeptId</br> 问诊号:inquiryCode</br>文本内容 :content </br>{chief;//主诉present;//现病史other;//其他史vital;//查体lis;//化验pacs;//辅检diag;//诊断advice;//医嘱}</br>dataJson:内容JSON字符串(打印页面展示)")
|
|
|
+ @PostMapping("/savePrintRecords")
|
|
|
@SysLogger("savePrintRecords")
|
|
|
@Transactional
|
|
|
- public RespDTO<Boolean> savePrintRecords(@Valid @RequestBody PrintRecordsVO printRecordsVO) {
|
|
|
+ public RespDTO<Boolean> savePrintRecords(@Valid @RequestBody PrintRecordsVO printRecordsVO) {
|
|
|
+
|
|
|
+ boolean res = printRecordFacade.savePrintRecord(printRecordsVO);
|
|
|
|
|
|
- boolean res = printRecordFacade.savePrintRecord(printRecordsVO);
|
|
|
-
|
|
|
- return RespDTO.onSuc(res);
|
|
|
- }
|
|
|
-
|
|
|
+ return RespDTO.onSuc(res);
|
|
|
+ }
|
|
|
|
|
|
}
|