YzActOrder.java 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. package thyyxxk.webserver.entity.datamodify;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.fasterxml.jackson.annotation.JsonInclude;
  4. import io.swagger.annotations.ApiModel;
  5. import lombok.AllArgsConstructor;
  6. import lombok.NoArgsConstructor;
  7. import lombok.Builder;
  8. import lombok.Data;
  9. import lombok.EqualsAndHashCode;
  10. import lombok.experimental.Accessors;
  11. import org.springframework.format.annotation.DateTimeFormat;
  12. import java.io.Serializable;
  13. import java.math.BigDecimal;
  14. import java.util.Date;
  15. import java.util.List;
  16. /**
  17. * <p>
  18. *
  19. * </p>
  20. *
  21. * @author 肖蟾
  22. * @since 2021-03-08
  23. */
  24. @Data
  25. @Builder
  26. @AllArgsConstructor
  27. @NoArgsConstructor
  28. @EqualsAndHashCode(callSuper = false)
  29. @ApiModel(value = "YzActOrder对象")
  30. @JsonInclude(JsonInclude.Include.NON_NULL)
  31. public class YzActOrder implements Serializable {
  32. private static final long serialVersionUID = 1L;
  33. /**
  34. * 一组医嘱的标识
  35. */
  36. private String orderGroup;
  37. private BigDecimal actOrderNo;
  38. private BigDecimal actOrderNoTf;
  39. private String inpatientNo;
  40. /**
  41. * 病人的姓名
  42. */
  43. private String patientName;
  44. private Integer admissTimes;
  45. private String orderCode;
  46. private String bedNoName;
  47. private Date orderTime;
  48. private String frequCode;
  49. private String frequCodeName;
  50. private Date enterTime;
  51. private String enterOper;
  52. private String enterOperName;
  53. private Date startTime;
  54. private Date endTime;
  55. private String startTimeString;
  56. private String endTimeString;
  57. /**
  58. * 停止人
  59. */
  60. private String modifier;
  61. private String modifierName;
  62. private String infantFlag;
  63. private String drugFlag;
  64. private String supplyCode;
  65. private String supplyCodeName;
  66. private Date performanceTime;
  67. /**
  68. * 医生
  69. */
  70. private String physician;
  71. private String physicianName;
  72. private Date confirmTime;
  73. /**
  74. * 确认人
  75. */
  76. private String signer;
  77. private String signerName;
  78. private String statusFlag;
  79. private Date statusTime;
  80. private BigDecimal drugQuan;
  81. private String drugQuanName;
  82. private String instruction;
  83. private String drugSpecification;
  84. private String miniUnit;
  85. private String miniUnitName;
  86. private Float drugWeight;
  87. private String drugWeightUnit;
  88. private String printOrderChange;
  89. private BigDecimal parentNo;
  90. private String parentNoName;
  91. private String selfBuy;
  92. private String eatCardFlag;
  93. private BigDecimal drugVolume;
  94. private String drugVolUnit;
  95. private BigDecimal dose;
  96. private String doseUnit;
  97. private String doseUnitName;
  98. private BigDecimal drugOcc;
  99. private String printOrder;
  100. private String printOrderOnce;
  101. private String printOrderAnew;
  102. private String printInfusion;
  103. private Date excluBackTime;
  104. private Float excluActOrderNo;
  105. private String orderName;
  106. private String discription;
  107. private String delFlag;
  108. private String paySelf;
  109. private String serial;
  110. private String serialName;
  111. private String groupNo;
  112. private String groupNoName;
  113. private String wardCode;
  114. private String ybSelfFlag;
  115. private String doctorFlag;
  116. private String deptCode;
  117. private String execUnit;
  118. private String execUnitName;
  119. private String clCode;
  120. private String zySerialNo;
  121. private String executer1;
  122. private String executer2;
  123. private String regFlag;
  124. private String msgFlag;
  125. @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  126. private Date execTime;
  127. private String execId;
  128. private String psStatus;
  129. private String psOper;
  130. private Date psTime;
  131. private String execId2;
  132. private BigDecimal actOrderNo2;
  133. private float newActOrderNo;
  134. private Integer printPage;
  135. private Integer printPageOnce;
  136. private String printOrderChangeEnd;
  137. private String emergencyFlag;
  138. private String reqReceiveFlag;
  139. private String inspectStuff;
  140. private String chargeStatus;
  141. private Date psResultTime;
  142. private String opIdCode;
  143. private Date chargeDate;
  144. private String kfFlag;
  145. private String modifierOper;
  146. private String passFlag;
  147. private String passId;
  148. private String passDate;
  149. private String passComment;
  150. private String referPhysician;
  151. private String consultPhysician;
  152. private List<YzActOrder> tuiFeiList;
  153. private Integer tfFlag;
  154. private long currentPage;
  155. private long pageSize;
  156. private String queryStartTime;
  157. private String queryEndTime;
  158. // 下面是医嘱确费 需要使用到的
  159. private Integer ledgerSn;
  160. private String name;
  161. private String bedNo;
  162. private String docotrName;
  163. private Integer comfirmFlag;
  164. private String wardName;
  165. private String chargeCode;
  166. @JsonFormat(shape = JsonFormat.Shape.STRING)
  167. private BigDecimal chargeFee;
  168. @JsonFormat(shape = JsonFormat.Shape.STRING)
  169. private BigDecimal orderCount;
  170. private Integer sex;
  171. private Date admissDate;
  172. private BigDecimal totalCharge;
  173. private String responceType;
  174. private String responceTypeName;
  175. private Date occTime;
  176. private String occTimeString;
  177. private String chargeName;
  178. private String billItemCode;
  179. private List<YzActOrder> list;
  180. private List<YzActOrder> children;
  181. private long total;
  182. private String opIdName;
  183. private Date opDate;
  184. private Integer fenLei;
  185. private Integer shiFouYouChuYuanYiZhu;
  186. private Integer liShi;
  187. private Integer yiQueRen;
  188. private Integer quXiao;
  189. private Integer weiQueRen;
  190. private Integer yiChanShenFeiYong;
  191. private Boolean isChildren = false;
  192. private String zkWardCode;
  193. private String zkDeptCode;
  194. /**
  195. * 用药方式
  196. * 0-无
  197. * 1-手术预防用药 2-非手术预防用药 3-治疗用药-标本已送检 4-治疗用药-标本未已送检
  198. * 5-皮试用药
  199. */
  200. private Integer yyfs;
  201. /**
  202. * 手术切口
  203. * 0-无
  204. * 1-Ⅰ类切口 2-Ⅱ类切口 3-Ⅲ类切口
  205. * 4-微创 5-介入 6-其他
  206. */
  207. private Integer ssqk;
  208. /**
  209. * 术前用药时间
  210. * 0-无
  211. * 1-0.5至1小时
  212. * 2-2小时
  213. * 3-其他
  214. */
  215. private Integer yysj;
  216. /**
  217. * 抗菌药物 专用 需要在 yz_act_record_kss 中插入
  218. */
  219. private String kjywFlag;
  220. /**
  221. * 取模板时候的 id
  222. */
  223. private String id;
  224. public String getActOrderNoStr() {
  225. if (actOrderNo != null) {
  226. return actOrderNo.stripTrailingZeros().toPlainString();
  227. }
  228. return null;
  229. }
  230. /* 费用标志 自备标志 1 自备 2 嘱托 3 基数药 */
  231. public String getSelfBuyName() {
  232. if (selfBuy == null) {
  233. return "";
  234. }
  235. switch (selfBuy) {
  236. case "1":
  237. return "自备";
  238. case "2":
  239. return "嘱托";
  240. case "3":
  241. return "基数药";
  242. case "4":
  243. return "出院带药";
  244. case "5":
  245. return "GCP自费";
  246. default:
  247. return "";
  248. }
  249. }
  250. public String getDrugFlagName() {
  251. if (drugFlag == null) {
  252. return "";
  253. }
  254. switch (drugFlag) {
  255. case "d":
  256. return "西药";
  257. case "i":
  258. return "大输液";
  259. case "z":
  260. return "中成药";
  261. case "o":
  262. return "医嘱";
  263. case "p":
  264. return "手术";
  265. case "h":
  266. return "护理";
  267. default:
  268. return drugFlag + " 未知";
  269. }
  270. }
  271. }