ResultRule.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. package com.diagbot.entity;
  2. import java.math.BigDecimal;
  3. import cn.afterturn.easypoi.excel.annotation.Excel;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.baomidou.mybatisplus.annotation.IdType;
  6. import com.baomidou.mybatisplus.annotation.TableId;
  7. import java.util.Date;
  8. import java.io.Serializable;
  9. /**
  10. * <p>
  11. *
  12. * </p>
  13. *
  14. * @author zhaops
  15. * @since 2021-03-11
  16. */
  17. @TableName("test_result_rule")
  18. public class ResultRule implements Serializable {
  19. private static final long serialVersionUID = 1L;
  20. /**
  21. * 主键
  22. */
  23. @TableId(value = "id", type = IdType.INPUT)
  24. private Long id;
  25. /**
  26. * 是否删除,N:未删除,Y:删除
  27. */
  28. private String isDeleted;
  29. /**
  30. * 记录创建时间
  31. */
  32. private Date gmtCreate;
  33. /**
  34. * 记录修改时间,如果时间是1970年则表示纪录未修改
  35. */
  36. private Date gmtModified;
  37. /**
  38. * 创建人,0表示无创建人值
  39. */
  40. private String creator;
  41. /**
  42. * 修改人,如果为0则表示纪录未修改
  43. */
  44. private String modifier;
  45. /**
  46. * 测试结果id
  47. */
  48. private Long resultId;
  49. /**
  50. * 规则序号
  51. */
  52. private Long ruleOrderNo;
  53. /**
  54. * 规则类型(1:开单-通用,2:开单-输血,3:危急值-检验,4:危急值-检查,5:高危药品,6:高危手术,7:其他值提醒-检验,8-其他值提醒-检查,9-其他值提醒-输血,10:正常项目重复开立)
  55. */
  56. private Integer ruleType;
  57. /**
  58. * 规则id
  59. */
  60. private Long ruleId;
  61. /**
  62. * 开单项类型(编码)
  63. */
  64. private Integer ruleLibType;
  65. /**
  66. * 开单项类型(名称)
  67. */
  68. private String ruleLibTypeName;
  69. /**
  70. * 开单项名称
  71. */
  72. private String ruleLibName;
  73. /**
  74. * 开单项名称(医院端)
  75. */
  76. private String ruleHisName;
  77. /**
  78. * 开单项名称-细项(医院端)
  79. */
  80. private String ruleHisDetailName;
  81. /**
  82. * 是否有子条件(0:无,1:有)
  83. */
  84. private Integer hasSubCond;
  85. /**
  86. * 基础规则id
  87. */
  88. private Long ruleBaseId;
  89. /**
  90. * 规则组别
  91. */
  92. private Integer groupType;
  93. /**
  94. * 基础规则类型(1:开单外等于术语本身;2:开单外存在比较;3:开单外不等于术语本身;4:过敏原;5:开单项;6:检查结果正则表达式)
  95. */
  96. @Excel(name = "基础规则类型", width = 40, orderNum = "1",replace = {"开单外等于术语本身_1","开单外存在比较_2","开单外不等于术语本身_3","过敏原_4","开单项_5","检查结果正则表达式_6"})
  97. private Integer ruleBaseType;
  98. /**
  99. * 禁忌项类型(编码)
  100. */
  101. private Integer ruleBaseLibType;
  102. /**
  103. * 禁忌项类型(名称)
  104. */
  105. @Excel(name = "基础规则术语类型", width = 40, orderNum = "2")
  106. private String ruleBaseLibTypeName;
  107. /**
  108. * 禁忌项名称
  109. */
  110. @Excel(name = "基础规则医学标准术语", width = 40, orderNum = "3")
  111. private String ruleBaseLibName;
  112. /**
  113. * 禁忌项名称(医院端)
  114. */
  115. @Excel(name = "基础规则医院术语", width = 40, orderNum = "4")
  116. private String ruleBaseHisName;
  117. /**
  118. * 禁忌项名称-细项(医院端)
  119. */
  120. @Excel(name = "基础规则医院术语细则", width = 40, orderNum = "5")
  121. private String ruleBaseHisDetailName;
  122. /**
  123. * 禁忌项参考值(最大值)
  124. */
  125. private BigDecimal ruleBaseMaxValue;
  126. /**
  127. * 禁忌项参考值(最小值)
  128. */
  129. private BigDecimal ruleBaseMinValue;
  130. /**
  131. * 禁忌项单位
  132. */
  133. private String ruleBaseUnit;
  134. /**
  135. * 禁忌项输入值(文本/数值)
  136. */
  137. @Excel(name = "基础规则输入值", width = 40, orderNum = "6")
  138. private String ruleBaseInputValue;
  139. /**
  140. * 参考值(参考范围拼接/药品分类保存)
  141. */
  142. @Excel(name = "基础规则参考值", width = 40, orderNum = "7")
  143. private String referenceValue;
  144. /**
  145. * 实际输出结果(提醒文本)
  146. */
  147. private String output;
  148. /**
  149. * 期望输出结果(提醒文本)
  150. */
  151. private String expectedOutput;
  152. /**
  153. * 成功标志(1:成功,0:失败)
  154. */
  155. private Integer success;
  156. /**
  157. * 提示信息(异常提醒)
  158. */
  159. private String message;
  160. /**
  161. * 模拟入参
  162. */
  163. private String inputParams;
  164. /**
  165. * 模拟出参
  166. */
  167. private String outputParams;
  168. /**
  169. * 附加信息
  170. */
  171. private String ruleMsg;
  172. public Long getId() {
  173. return id;
  174. }
  175. public void setId(Long id) {
  176. this.id = id;
  177. }
  178. public String getIsDeleted() {
  179. return isDeleted;
  180. }
  181. public void setIsDeleted(String isDeleted) {
  182. this.isDeleted = isDeleted;
  183. }
  184. public Date getGmtCreate() {
  185. return gmtCreate;
  186. }
  187. public void setGmtCreate(Date gmtCreate) {
  188. this.gmtCreate = gmtCreate;
  189. }
  190. public Date getGmtModified() {
  191. return gmtModified;
  192. }
  193. public void setGmtModified(Date gmtModified) {
  194. this.gmtModified = gmtModified;
  195. }
  196. public String getCreator() {
  197. return creator;
  198. }
  199. public void setCreator(String creator) {
  200. this.creator = creator;
  201. }
  202. public String getModifier() {
  203. return modifier;
  204. }
  205. public void setModifier(String modifier) {
  206. this.modifier = modifier;
  207. }
  208. public Long getResultId() {
  209. return resultId;
  210. }
  211. public void setResultId(Long resultId) {
  212. this.resultId = resultId;
  213. }
  214. public Long getRuleOrderNo() {
  215. return ruleOrderNo;
  216. }
  217. public void setRuleOrderNo(Long ruleOrderNo) {
  218. this.ruleOrderNo = ruleOrderNo;
  219. }
  220. public Integer getRuleType() {
  221. return ruleType;
  222. }
  223. public void setRuleType(Integer ruleType) {
  224. this.ruleType = ruleType;
  225. }
  226. public Long getRuleId() {
  227. return ruleId;
  228. }
  229. public void setRuleId(Long ruleId) {
  230. this.ruleId = ruleId;
  231. }
  232. public Integer getRuleLibType() {
  233. return ruleLibType;
  234. }
  235. public void setRuleLibType(Integer ruleLibType) {
  236. this.ruleLibType = ruleLibType;
  237. }
  238. public String getRuleLibTypeName() {
  239. return ruleLibTypeName;
  240. }
  241. public void setRuleLibTypeName(String ruleLibTypeName) {
  242. this.ruleLibTypeName = ruleLibTypeName;
  243. }
  244. public String getRuleLibName() {
  245. return ruleLibName;
  246. }
  247. public void setRuleLibName(String ruleLibName) {
  248. this.ruleLibName = ruleLibName;
  249. }
  250. public String getRuleHisName() {
  251. return ruleHisName;
  252. }
  253. public void setRuleHisName(String ruleHisName) {
  254. this.ruleHisName = ruleHisName;
  255. }
  256. public String getRuleHisDetailName() {
  257. return ruleHisDetailName;
  258. }
  259. public void setRuleHisDetailName(String ruleHisDetailName) {
  260. this.ruleHisDetailName = ruleHisDetailName;
  261. }
  262. public Integer getHasSubCond() {
  263. return hasSubCond;
  264. }
  265. public void setHasSubCond(Integer hasSubCond) {
  266. this.hasSubCond = hasSubCond;
  267. }
  268. public Long getRuleBaseId() {
  269. return ruleBaseId;
  270. }
  271. public void setRuleBaseId(Long ruleBaseId) {
  272. this.ruleBaseId = ruleBaseId;
  273. }
  274. public Integer getGroupType() {
  275. return groupType;
  276. }
  277. public void setGroupType(Integer groupType) {
  278. this.groupType = groupType;
  279. }
  280. public Integer getRuleBaseType() {
  281. return ruleBaseType;
  282. }
  283. public void setRuleBaseType(Integer ruleBaseType) {
  284. this.ruleBaseType = ruleBaseType;
  285. }
  286. public Integer getRuleBaseLibType() {
  287. return ruleBaseLibType;
  288. }
  289. public void setRuleBaseLibType(Integer ruleBaseLibType) {
  290. this.ruleBaseLibType = ruleBaseLibType;
  291. }
  292. public String getRuleBaseLibTypeName() {
  293. return ruleBaseLibTypeName;
  294. }
  295. public void setRuleBaseLibTypeName(String ruleBaseLibTypeName) {
  296. this.ruleBaseLibTypeName = ruleBaseLibTypeName;
  297. }
  298. public String getRuleBaseLibName() {
  299. return ruleBaseLibName;
  300. }
  301. public void setRuleBaseLibName(String ruleBaseLibName) {
  302. this.ruleBaseLibName = ruleBaseLibName;
  303. }
  304. public String getRuleBaseHisName() {
  305. return ruleBaseHisName;
  306. }
  307. public void setRuleBaseHisName(String ruleBaseHisName) {
  308. this.ruleBaseHisName = ruleBaseHisName;
  309. }
  310. public String getRuleBaseHisDetailName() {
  311. return ruleBaseHisDetailName;
  312. }
  313. public void setRuleBaseHisDetailName(String ruleBaseHisDetailName) {
  314. this.ruleBaseHisDetailName = ruleBaseHisDetailName;
  315. }
  316. public BigDecimal getRuleBaseMaxValue() {
  317. return ruleBaseMaxValue;
  318. }
  319. public void setRuleBaseMaxValue(BigDecimal ruleBaseMaxValue) {
  320. this.ruleBaseMaxValue = ruleBaseMaxValue;
  321. }
  322. public BigDecimal getRuleBaseMinValue() {
  323. return ruleBaseMinValue;
  324. }
  325. public void setRuleBaseMinValue(BigDecimal ruleBaseMinValue) {
  326. this.ruleBaseMinValue = ruleBaseMinValue;
  327. }
  328. public String getRuleBaseUnit() {
  329. return ruleBaseUnit;
  330. }
  331. public void setRuleBaseUnit(String ruleBaseUnit) {
  332. this.ruleBaseUnit = ruleBaseUnit;
  333. }
  334. public String getRuleBaseInputValue() {
  335. return ruleBaseInputValue;
  336. }
  337. public void setRuleBaseInputValue(String ruleBaseInputValue) {
  338. this.ruleBaseInputValue = ruleBaseInputValue;
  339. }
  340. public String getReferenceValue() {
  341. return referenceValue;
  342. }
  343. public void setReferenceValue(String referenceValue) {
  344. this.referenceValue = referenceValue;
  345. }
  346. public String getOutput() {
  347. return output;
  348. }
  349. public void setOutput(String output) {
  350. this.output = output;
  351. }
  352. public String getExpectedOutput() {
  353. return expectedOutput;
  354. }
  355. public void setExpectedOutput(String expectedOutput) {
  356. this.expectedOutput = expectedOutput;
  357. }
  358. public Integer getSuccess() {
  359. return success;
  360. }
  361. public void setSuccess(Integer success) {
  362. this.success = success;
  363. }
  364. public String getMessage() {
  365. return message;
  366. }
  367. public void setMessage(String message) {
  368. this.message = message;
  369. }
  370. public String getInputParams() {
  371. return inputParams;
  372. }
  373. public void setInputParams(String inputParams) {
  374. this.inputParams = inputParams;
  375. }
  376. public String getOutputParams() {
  377. return outputParams;
  378. }
  379. public void setOutputParams(String outputParams) {
  380. this.outputParams = outputParams;
  381. }
  382. public String getRuleMsg() {
  383. return ruleMsg;
  384. }
  385. public void setRuleMsg(String ruleMsg) {
  386. this.ruleMsg = ruleMsg;
  387. }
  388. @Override
  389. public String toString() {
  390. return "ResultRule{" +
  391. "id=" + id +
  392. ", isDeleted=" + isDeleted +
  393. ", gmtCreate=" + gmtCreate +
  394. ", gmtModified=" + gmtModified +
  395. ", creator=" + creator +
  396. ", modifier=" + modifier +
  397. ", resultId=" + resultId +
  398. ", ruleOrderNo=" + ruleOrderNo +
  399. ", ruleType=" + ruleType +
  400. ", ruleId=" + ruleId +
  401. ", ruleLibType=" + ruleLibType +
  402. ", ruleLibTypeName=" + ruleLibTypeName +
  403. ", ruleLibName=" + ruleLibName +
  404. ", ruleHisName=" + ruleHisName +
  405. ", ruleHisDetailName=" + ruleHisDetailName +
  406. ", hasSubCond=" + hasSubCond +
  407. ", ruleBaseId=" + ruleBaseId +
  408. ", groupType=" + groupType +
  409. ", ruleBaseType=" + ruleBaseType +
  410. ", ruleBaseLibType=" + ruleBaseLibType +
  411. ", ruleBaseLibTypeName=" + ruleBaseLibTypeName +
  412. ", ruleBaseLibName=" + ruleBaseLibName +
  413. ", ruleBaseHisName=" + ruleBaseHisName +
  414. ", ruleBaseHisDetailName=" + ruleBaseHisDetailName +
  415. ", ruleBaseMaxValue=" + ruleBaseMaxValue +
  416. ", ruleBaseMinValue=" + ruleBaseMinValue +
  417. ", ruleBaseUnit=" + ruleBaseUnit +
  418. ", ruleBaseInputValue=" + ruleBaseInputValue +
  419. ", referenceValue=" + referenceValue +
  420. ", output=" + output +
  421. ", expectedOutput=" + expectedOutput +
  422. ", success=" + success +
  423. ", message=" + message +
  424. ", inputParams=" + inputParams +
  425. ", outputParams=" + outputParams +
  426. ", ruleMsg=" + ruleMsg +
  427. "}";
  428. }
  429. }