zhoutg 4 年之前
父节点
当前提交
5b6e886fdf

+ 2 - 1
src/main/java/com/diagbot/facade/BillFacade.java

@@ -1,6 +1,7 @@
 package com.diagbot.facade;
 
 import com.diagbot.dto.BillDTO;
+import com.diagbot.vo.IndicationPushVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -22,7 +23,7 @@ public class BillFacade {
      * @param
      * @return
      */
-    public BillDTO billFac() {
+    public BillDTO billFac(IndicationPushVO indicationPushVO) {
         // 模型处理数据 TODO
 
         // 标准词转换 TODO

+ 18 - 0
src/main/java/com/diagbot/vo/IndicationPushVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:病情提示入参
+ * @Author:zhaops
+ * @time: 2020/7/29 15:35
+ */
+@Getter
+@Setter
+public class IndicationPushVO extends SearchData{
+    /**
+     * 规则类型(1:危急值提醒,2:开单合理项,3:管理评估,4:不良反应,5:药物推荐,6:异常值)
+     */
+    private String ruleType = "";
+}

+ 18 - 0
src/main/java/com/diagbot/vo/PushVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:基础推理入参
+ * @Author:zhaops
+ * @time: 2020/7/29 15:34
+ */
+@Getter
+@Setter
+public class PushVO extends SearchData {
+    /**
+     * 推理类型(1:症状,4:查体结果,41:查体模板,42:查体指标,5:化验,6:辅检,7:诊断
+     */
+    private String featureType = "";
+}

+ 152 - 0
src/main/java/com/diagbot/vo/SearchData.java

@@ -0,0 +1,152 @@
+package com.diagbot.vo;
+
+import com.diagbot.biz.push.entity.Item;
+import com.diagbot.biz.push.entity.Lis;
+import com.diagbot.biz.push.entity.Pacs;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/7/29 15:31
+ */
+@Getter
+@Setter
+public class SearchData {
+    /**
+     * 医院ID
+     */
+    private Long hospitalId;
+    /**
+     * 大数据返回内容截取长度
+     */
+    private Integer length = 10;
+    /**
+     * 年龄
+     */
+    private Integer age;
+    /**
+     * 性别(1:男,2:女,3:通用)
+     */
+    private Integer sex;
+    /**
+     * 婚姻
+     */
+    private String marriage = "";
+    /**
+     * 主诉
+     */
+    private String chief = "";
+    /**
+     * 现病史
+     */
+    private String symptom = "";
+    /**
+     * 查体
+     */
+    private String vital = "";
+    /**
+     * 既往史
+     */
+    private String pasts = "";
+    /**
+     * 传染病史
+     */
+    private String infectious = "";
+    /**
+     * 手术外伤史
+     */
+    private String operation = "";
+    /**
+     * 过敏史
+     */
+    private String allergy = "";
+    /**
+     * 接种史
+     */
+    private String vaccination = "";
+    /**
+     * 个人史
+     */
+    private String personal = "";
+    /**
+     * 婚育史
+     */
+    private String marital = "";
+    /**
+     * 家族史
+     */
+    private String family = "";
+    /**
+     * 月经史
+     */
+    private String menstrual = "";
+    /**
+     * 其他史
+     */
+    private String other = "";
+    /**
+     * 化验文本数据
+     */
+    private String lisString = "";
+    /**
+     * 辅检文本数据
+     */
+    private String pacsString = "";
+    /**
+     * 诊断文本数据
+     */
+    private String diagString = "";
+    /**
+     * 药品文本数据
+     */
+    private String drugString = "";
+    /**
+     * 化验项目和结果
+     */
+    private List<Lis> lis = new ArrayList<>();
+    /**
+     * 辅检项目和结果
+     */
+    private List<Pacs> pacs = new ArrayList<>();
+    /**
+     * 诊断
+     */
+    private List<Item> diag = new ArrayList<>();
+    /**
+     * 药品
+     */
+    private List<Item> drug = new ArrayList<>();
+    /**
+     * 当前化验开单项
+     */
+    private List<Lis> lisOrder = new ArrayList<>();
+    /**
+     * 当前辅检开单项
+     */
+    private List<Pacs> pacsOrder = new ArrayList<>();
+    /**
+     * 当前诊断开单项
+     */
+    private List<Item> diagOrder = new ArrayList<>();
+    /**
+     * 当前药品开单项
+     */
+    private List<Item> drugOrder = new ArrayList<>();
+    /**
+     * 当前手术开单项
+     */
+    private List<Item> operationOrder = new ArrayList<>();
+    /**
+     * 其他开单项
+     */
+    private List<Item> otherOrder = new ArrayList<>();
+    /**
+     * 选中诊断
+     */
+    private Item diseaseName;
+}

+ 4 - 2
src/main/java/com/diagbot/web/CoreController.java

@@ -3,10 +3,12 @@ package com.diagbot.web;
 import com.diagbot.dto.BillDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.facade.BillFacade;
+import com.diagbot.vo.IndicationPushVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 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;
 
@@ -26,8 +28,8 @@ public class CoreController {
 
     @ApiOperation(value = "开单合理性API[zhoutg]", notes = "")
     @PostMapping("/bill")
-    public RespDTO<BillDTO> bill() {
-        return RespDTO.onSuc(billFacade.billFac());
+    public RespDTO<BillDTO> bill(@RequestBody IndicationPushVO indicationPushVO) {
+        return RespDTO.onSuc(billFacade.billFac(indicationPushVO));
     }
 }