Procházet zdrojové kódy

病历保存修改

rgb před 6 roky
rodič
revize
488e7aeed2

+ 28 - 0
icss-service/src/main/java/com/diagbot/dto/InquiryDetailDTO.java

@@ -0,0 +1,28 @@
+/**
+ * 
+ */
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description
+ * @author rgb
+ * @time 2018年11月23日下午2:29:43
+ */
+@Getter
+@Setter
+public class InquiryDetailDTO {
+	
+	/**
+     * 类型(1:主诉,2现病史,3其他史,4查体,5化验,6辅检,7诊断,8医嘱)
+     */
+    private Integer type;
+
+    /**
+     * 内容字符串
+     */
+    private String content;
+
+}

+ 10 - 0
icss-service/src/main/java/com/diagbot/dto/SaveInquiryDTO.java

@@ -0,0 +1,10 @@
+package com.diagbot.dto;
+
+/**
+ * @Description:
+ * @author: rengb
+ * @time: 2018/11/19 18:56
+ */
+public class SaveInquiryDTO{
+		
+}

+ 9 - 9
icss-service/src/main/java/com/diagbot/entity/InquiryInfo.java

@@ -78,12 +78,12 @@ public class InquiryInfo implements Serializable {
     /**
      * 就诊状态(0待接诊,1接诊中,2完成接诊)
      */
-    private String regVisitedState;
+    private Integer regVisitedState;
 
     /**
      * 分类(1:门诊,2:住院)
      */
-    private String type;
+    private Integer type;
 
     /**
      * 诊断
@@ -93,7 +93,7 @@ public class InquiryInfo implements Serializable {
     /**
      * 类型:1:结构化 2:文本模式
      */
-    private String sign;
+    private Integer sign;
 
     /**
      * 内容JSON字符串
@@ -182,18 +182,18 @@ public class InquiryInfo implements Serializable {
     public void setInquiryCode(String inquiryCode) {
         this.inquiryCode = inquiryCode;
     }
-    public String getRegVisitedState() {
+    public Integer getRegVisitedState() {
         return regVisitedState;
     }
 
-    public void setRegVisitedState(String regVisitedState) {
+    public void setRegVisitedState(Integer regVisitedState) {
         this.regVisitedState = regVisitedState;
     }
-    public String getType() {
+    public Integer getType() {
         return type;
     }
 
-    public void setType(String type) {
+    public void setType(Integer type) {
         this.type = type;
     }
     public String getDiagnose() {
@@ -203,11 +203,11 @@ public class InquiryInfo implements Serializable {
     public void setDiagnose(String diagnose) {
         this.diagnose = diagnose;
     }
-    public String getSign() {
+    public Integer getSign() {
         return sign;
     }
 
-    public void setSign(String sign) {
+    public void setSign(Integer sign) {
         this.sign = sign;
     }
     public String getDataJson() {

+ 22 - 0
icss-service/src/main/java/com/diagbot/facade/InquiryInfoFacade.java

@@ -0,0 +1,22 @@
+/**
+ * 
+ */
+package com.diagbot.facade;
+
+import com.diagbot.dto.SaveInquiryDTO;
+import com.diagbot.service.impl.InquiryInfoServiceImpl;
+import com.diagbot.vo.SaveInquiryVO;
+
+/**
+ * @Description
+ * @author rengb
+ * @time 2018年11月23日下午2:08:08
+ */
+public class InquiryInfoFacade extends InquiryInfoServiceImpl {
+	
+	public SaveInquiryDTO saveInquiry(SaveInquiryVO saveInquiryVO){
+		
+		return null;
+	}
+
+}

+ 84 - 0
icss-service/src/main/java/com/diagbot/vo/SaveInquiryVO.java

@@ -0,0 +1,84 @@
+package com.diagbot.vo;
+
+import java.util.List;
+
+import javax.validation.Valid;
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotEmpty;
+
+import com.diagbot.dto.InquiryDetailDTO;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:
+ * @author: rengb
+ * @time: 2018/11/19 18:58
+ */
+@Getter
+@Setter
+public class SaveInquiryVO {
+	
+	/**
+     * 医院id
+     */
+	@NotBlank(message="医院id必传")
+    private Long hospitalId;
+
+    /**
+     * 科室id
+     */
+	@NotBlank(message="科室id必传")
+    private Long hospitalDeptId;
+
+    /**
+     * 医生id
+     */
+	@NotBlank(message="医生id必传")
+    private Long doctorId;
+
+    /**
+     * 患者id
+     */
+	@NotBlank(message="患者id必传")
+    private Long patientId;
+
+    /**
+     * 就诊序列号
+     */
+	@NotBlank(message="就诊序列号必传")
+    private String inquiryCode;
+
+    /**
+     * 就诊状态(0待接诊,1接诊中,2完成接诊)
+     */
+    private Integer regVisitedState=1;
+
+    /**
+     * 分类(1:门诊,2:住院)
+     */
+    private Integer type=1;
+
+    /**
+     * 诊断
+     */
+    @NotBlank(message="诊断必传")
+    private String diagnose;
+
+    /**
+     * 类型:1:结构化 2:文本模式
+     */
+    private Integer sign=1;
+
+    /**
+     * 内容JSON字符串
+     */
+    @NotBlank(message="内容JSON字符串必传")
+    private String dataJson;
+    
+    @Valid
+    @NotEmpty
+    private List<InquiryDetailDTO> detailList;
+   
+}

+ 43 - 0
icss-service/src/main/java/com/diagbot/web/InquiryInfoController.java

@@ -0,0 +1,43 @@
+package com.diagbot.web;
+
+
+import javax.validation.Valid;
+
+import org.springframework.beans.factory.annotation.Autowired;
+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.RespDTO;
+import com.diagbot.dto.SaveInquiryDTO;
+import com.diagbot.facade.InquiryInfoFacade;
+import com.diagbot.vo.SaveInquiryVO;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+/**
+ * @author rengb
+ * @since 2018-11-23
+ */
+@RestController
+@RequestMapping("/inquiryInfo")
+@Api(value = "问诊记录API", tags = { "问诊记录API" })
+@SuppressWarnings("unchecked")
+public class InquiryInfoController {
+	
+	@Autowired
+    private InquiryInfoFacade inquiryInfoFacade;
+	
+	 @ApiOperation(value = "问诊记录保存[by:rengb]")
+	 @PostMapping("/getTopPatientInfo")
+	 @SysLogger("getTopPatientInfo")
+	 public RespDTO<SaveInquiryDTO> saveInquiry(@Valid @RequestBody SaveInquiryVO saveInquiryVO) {
+		 return RespDTO.onSuc(inquiryInfoFacade.saveInquiry(saveInquiryVO));
+	 }
+	
+	
+
+}