浏览代码

电子病历评级推理

Zhaops 6 年之前
父节点
当前提交
73fd3bf3b5

+ 4 - 0
icss-service/src/main/java/com/diagbot/facade/PushFacade.java

@@ -467,4 +467,8 @@ public class PushFacade {
         }*/
         return vitalDTO;
     }
+
+    public void pushEMR(){
+
+    }
 }

+ 11 - 1
tran-service/src/main/java/com/diagbot/client/ICSSServiceClient.java

@@ -4,6 +4,7 @@ import com.diagbot.client.hystrix.ICSSServiceHystrix;
 import com.diagbot.dto.EMRIntroduceDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.vo.EMRIntroduceVO;
+import com.diagbot.vo.PushVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -25,4 +26,13 @@ public interface ICSSServiceClient {
      */
     @PostMapping("/introduceInfo/getIntroduceByEMR")
     RespDTO<List<EMRIntroduceDTO>> getIntroduceByEMR(@RequestBody EMRIntroduceVO emrIntroduceVO);
-}
+
+    /**
+     * 检验检查推理
+     *
+     * @param pushVO
+     * @return
+     */
+    @PostMapping("/push/pushEMR")
+    RespDTO<List<String>> pushEMR(@RequestBody PushVO pushVO);
+}

+ 6 - 0
tran-service/src/main/java/com/diagbot/client/hystrix/ICSSServiceHystrix.java

@@ -4,6 +4,7 @@ import com.diagbot.client.ICSSServiceClient;
 import com.diagbot.dto.EMRIntroduceDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.vo.EMRIntroduceVO;
+import com.diagbot.vo.PushVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -23,4 +24,9 @@ public class ICSSServiceHystrix implements ICSSServiceClient {
         log.error("【hystrix】调用{}异常", "getIntroduceByEMR");
         return null;
     }
+
+    public RespDTO<List<String>> pushEMR(@RequestBody PushVO pushVO) {
+        log.error("【hystrix】调用{}异常", "getIntroduceByEMR");
+        return null;
+    }
 }

+ 22 - 0
tran-service/src/main/java/com/diagbot/vo/LisResult.java

@@ -0,0 +1,22 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:化验信息
+ * @Author:zhaops
+ * @time: 2018/12/19 14:03
+ */
+@Getter
+@Setter
+public class LisResult {
+    private String name;//套餐名称
+    private String detailName;//化验项名称
+    private String uniqueName;//公表名称
+    private Double value;//值
+    private Double maxValue;//最大值
+    private Double minValue;//最小值
+    private String units;//单位
+    private String otherValue;//其他结果,包括阴性阳性,文字描述等
+}

+ 31 - 0
tran-service/src/main/java/com/diagbot/vo/PushVO.java

@@ -0,0 +1,31 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
+import java.util.List;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2019/3/11 15:35
+ */
+@Getter
+@Setter
+public class PushVO {
+    @NotNull(message = "请输入年龄")
+    private Integer age;
+    @NotNull(message = "请输入性别")
+    private Integer sex;
+    @NotBlank(message = "请输入推送类型")
+    private String featureType;//5-检验,6-检查
+    private String symptom;
+    private String diag;
+    private String vital;
+    private List<LisResult> lis;
+    private String pacs;
+    private String past;
+    private String other;
+}