CaseFrontsheetMain.java 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. package thyyxxk.webserver.entity.casefrontsheet;
  2. import java.io.Serializable;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.fasterxml.jackson.annotation.JsonFormat;
  6. import lombok.Data;
  7. import org.springframework.format.annotation.DateTimeFormat;
  8. import java.util.ArrayList;
  9. import java.util.Date;
  10. import java.util.List;
  11. import static thyyxxk.webserver.utils.StringUtil.isBlank;
  12. /**
  13. * @author dj
  14. */
  15. @Data
  16. @TableName(value = "t_case_frontsheet_main")
  17. public class CaseFrontsheetMain implements Serializable {
  18. private static final long serialVersionUID = 3870281948419892424L;
  19. /**
  20. * 病案号,和住院号一样
  21. */
  22. private String bah;
  23. /**
  24. * 住院次数
  25. */
  26. private Integer admissTimes;
  27. /**
  28. * 签收状态 0,未签收 1,已签收 2,已打印
  29. */
  30. private Integer fileStatus;
  31. /**
  32. * 迟交标志,0,否 1,是
  33. */
  34. private Integer lateFlag;
  35. /**
  36. * 签收日期
  37. */
  38. private Date signDate;
  39. /**
  40. * 0,未借阅 1,已借阅 2,已归还
  41. */
  42. private Integer lendFlag;
  43. /**
  44. * 借阅时间
  45. */
  46. private Date borrowDate;
  47. /**
  48. * 借阅人id
  49. */
  50. private String borrowId;
  51. /**
  52. * 医疗付费方式
  53. */
  54. private String payMethod;
  55. /**
  56. * 健康卡号
  57. */
  58. private String healthCardNo;
  59. /**
  60. * name
  61. */
  62. private String name;
  63. /**
  64. * sex
  65. */
  66. private String sex;
  67. /**
  68. * 出生日期
  69. */
  70. @DateTimeFormat(pattern = "yyyy-MM-dd")
  71. @JsonFormat(pattern = "yyyy-MM-dd")
  72. private Date birthDate;
  73. /**
  74. * age
  75. */
  76. private Integer age;
  77. /**
  78. * 国籍
  79. */
  80. private String country;
  81. /**
  82. * 出生天数
  83. */
  84. private Integer ageDays;
  85. /**
  86. * 新生儿体重
  87. */
  88. private Integer newBornWeight;
  89. /**
  90. * 新生儿入院体重
  91. */
  92. private Integer newBornAdmissWeight;
  93. /**
  94. * 出生地编码
  95. */
  96. private String birthPlace;
  97. /**
  98. * 出生地名称
  99. */
  100. private String birthPlaceName;
  101. /**
  102. * 籍贯编码
  103. */
  104. private String nativePlace;
  105. /**
  106. * 籍贯名称
  107. */
  108. private String nativePlaceName;
  109. /**
  110. * 民族
  111. */
  112. private String nation;
  113. /**
  114. * 身份证
  115. */
  116. private String socialNo;
  117. /**
  118. * 职业
  119. */
  120. private String occupation;
  121. /**
  122. * 婚姻情况
  123. */
  124. private String marriage;
  125. /**
  126. * 现住址
  127. */
  128. private String livePlace;
  129. /**
  130. * 手机号
  131. */
  132. private String phone;
  133. /**
  134. * 居住他邮编
  135. */
  136. private String addrZipCode;
  137. /**
  138. * 户口地址编码
  139. */
  140. private String hkPlace;
  141. /**
  142. * 户口地址
  143. */
  144. private String hkPlaceName;
  145. /**
  146. * 户口地址邮编
  147. */
  148. private String hkZipCode;
  149. /**
  150. * 工作单位
  151. */
  152. private String unitName;
  153. /**
  154. * 工作单位地址
  155. */
  156. private String unitPlace;
  157. /**
  158. * 工作单位电话
  159. */
  160. private String unitPhone;
  161. /**
  162. * 工作单位邮编
  163. */
  164. private String unitZipCode;
  165. /**
  166. * 联系人姓名
  167. */
  168. private String contactName;
  169. /**
  170. * 联系人关系
  171. */
  172. private String contactRelation;
  173. /**
  174. * 联系人地址
  175. */
  176. private String contactAddrName;
  177. /**
  178. * 联系人电话
  179. */
  180. private String contactPhone;
  181. /**
  182. * 联系人地址编码
  183. */
  184. private String contactAddr;
  185. /**
  186. * 入院方式
  187. */
  188. private String zyAdmissWay;
  189. /**
  190. * 是否有手术
  191. */
  192. private String hasSurgery;
  193. /**
  194. * 入院日期
  195. */
  196. private Date admissDate;
  197. /**
  198. * 入院科室
  199. */
  200. private String admissDept;
  201. private String admissDeptCode;
  202. /**
  203. * 入院病房
  204. */
  205. private String admissWard;
  206. private String admissWardCode;
  207. /**
  208. * 转科科室
  209. */
  210. private String transDept;
  211. private String transDeptCode;
  212. /**
  213. * 出院日期
  214. */
  215. private Date dismissDate;
  216. /**
  217. * 出院科室
  218. */
  219. private String dismissDept;
  220. private String dismissDeptCode;
  221. /**
  222. * 出院病房
  223. */
  224. private String dismissWard;
  225. private String dismissWardCode;
  226. /**
  227. * 住院天数
  228. */
  229. private String admissDays;
  230. /**
  231. * 门诊诊断编码
  232. */
  233. private String clinicDiagCode;
  234. /**
  235. * 门诊诊断名称
  236. */
  237. private String clinicDiagStr;
  238. /**
  239. * 意外伤害名称
  240. */
  241. private String hurtReasonName;
  242. /**
  243. * 意外伤害编码
  244. */
  245. private String hurtReasonCode;
  246. /**
  247. * 病理诊断名称
  248. */
  249. private String pathologicDiagStr;
  250. /**
  251. * 病理诊断编码
  252. */
  253. private String pathologicDiagCode;
  254. /**
  255. * 病历号
  256. */
  257. private String blh;
  258. /**
  259. * 是否有过敏
  260. */
  261. private String allergy;
  262. /**
  263. * 过敏药物
  264. */
  265. private String allergicMedicine;
  266. /**
  267. * 是否进行过尸检
  268. */
  269. private String autopsy;
  270. /**
  271. * 输血前四项(HbsAg)
  272. */
  273. private String hbsAg;
  274. /**
  275. * 输血前四项(HCV-Ab)
  276. */
  277. private String hcvAb;
  278. /**
  279. * 输血前四项(HIV-Ab)
  280. */
  281. private String hivAb;
  282. /**
  283. * 输血前四项(TP-Ab)
  284. */
  285. private String tpAb;
  286. /**
  287. * 血型
  288. */
  289. private String bloodType;
  290. /**
  291. * Rh
  292. */
  293. private String rh;
  294. /**
  295. * 科室主任
  296. */
  297. private String deptLeader;
  298. /**
  299. * 主任(副主任)医师
  300. */
  301. private String leaderDoctor;
  302. /**
  303. * 主治医师
  304. */
  305. private String mainDoctor;
  306. /**
  307. * 住院医师
  308. */
  309. private String admissDoctor;
  310. /**
  311. * 责任护士
  312. */
  313. private String dutyNurse;
  314. /**
  315. * 进修医师
  316. */
  317. private String studyDoctor;
  318. /**
  319. * 实习医师
  320. */
  321. private String internshipDoctor;
  322. /**
  323. * 编码员
  324. */
  325. private String coder;
  326. /**
  327. * 科室主任姓名
  328. */
  329. private String deptLeaderName;
  330. /**
  331. * 主任(副主任)医师姓名
  332. */
  333. private String leaderDoctorName;
  334. /**
  335. * 主治医师姓名
  336. */
  337. private String mainDoctorName;
  338. /**
  339. * 住院医师姓名
  340. */
  341. private String admissDoctorName;
  342. /**
  343. * 责任护士姓名
  344. */
  345. private String dutyNurseName;
  346. /**
  347. * 进修医师姓名
  348. */
  349. private String studyDoctorName;
  350. /**
  351. * 实习医师姓名
  352. */
  353. private String internshipDoctorName;
  354. /**
  355. * 编码员姓名
  356. */
  357. private String coderName;
  358. /**
  359. * 病案质量
  360. */
  361. private String qualityControlLevel;
  362. /**
  363. * 质控医师
  364. */
  365. private String qualityControlDoctor;
  366. /**
  367. * 质控护士
  368. */
  369. private String qualityControlNurse;
  370. /**
  371. * 质控医师姓名
  372. */
  373. private String qualityControlDoctorName;
  374. /**
  375. * 质控护士姓名
  376. */
  377. private String qualityControlNurseName;
  378. /**
  379. * 质控日期
  380. */
  381. @DateTimeFormat(pattern = "yyyy-MM-dd")
  382. @JsonFormat(pattern = "yyyy-MM-dd")
  383. private Date qualityControlDate;
  384. /**
  385. * 离院方式
  386. */
  387. private String zyDismissWay;
  388. /**
  389. * 拟接收医疗机构名称
  390. */
  391. private String dismissDestination;
  392. /**
  393. * 是否有出院31天内再住院计划
  394. */
  395. private String admissAgainInOneMonth;
  396. /**
  397. * 出院31天内再住院目的
  398. */
  399. private String admissAgainPurpose;
  400. /**
  401. * 颅脑损伤患者入院前昏迷时间(天)
  402. */
  403. private String comaDaysBeforeAdmiss;
  404. /**
  405. * 颅脑损伤患者入院前昏迷时间(小时)
  406. */
  407. private String comaHoursBeforeAdmiss;
  408. /**
  409. * 颅脑损伤患者入院前昏迷时间(分钟)
  410. */
  411. private String comaMinutesBeforeAdmiss;
  412. /**
  413. * 颅脑损伤患者入院后昏迷时间(天)
  414. */
  415. private String comaDaysAfterAdmiss;
  416. /**
  417. * 颅脑损伤患者入院后昏迷时间(小时)
  418. */
  419. private String comaHoursAfterAdmiss;
  420. /**
  421. * 颅脑损伤患者入院后昏迷时间(分钟)
  422. */
  423. private String comaMinutesAfterAdmiss;
  424. /**
  425. * 住院总费用
  426. */
  427. private String totalCost;
  428. /**
  429. * 住院自费金额
  430. */
  431. private String selfPay;
  432. /**
  433. * 一般医疗服务费
  434. */
  435. private String generalMedicalServiceFee;
  436. /**
  437. * 一般治疗操作费
  438. */
  439. private String generalTreatmentOperatingFee;
  440. /**
  441. * 护理费
  442. */
  443. private String careFee;
  444. /**
  445. * 其他费
  446. */
  447. private String elseFee;
  448. /**
  449. * 病理诊断费
  450. */
  451. private String pathologicDiagFee;
  452. /**
  453. * 实验室诊断费
  454. */
  455. private String experimentDiagFee;
  456. /**
  457. * 影像学诊断费
  458. */
  459. private String ctDiagFee;
  460. /**
  461. * 临床诊断项目费
  462. */
  463. private String clinicalDiagFee;
  464. /**
  465. * 非手术治疗项目费
  466. */
  467. private String notSurgicalFee;
  468. /**
  469. * 临床物理治疗费
  470. */
  471. private String clinicalPhysicalFee;
  472. /**
  473. * 手术治疗费
  474. */
  475. private String surgicalFee;
  476. /**
  477. * 麻醉费
  478. */
  479. private String anesthetizeFee;
  480. /**
  481. * 手术费
  482. */
  483. private String surgeryFee;
  484. /**
  485. * 康复费
  486. */
  487. private String recoverFee;
  488. /**
  489. * 中医治疗费
  490. */
  491. private String tcmTreatmentFee;
  492. /**
  493. * 西药费
  494. */
  495. private String westMedicineFee;
  496. /**
  497. * 中成药费
  498. */
  499. private String chinesePatentMedicineFee;
  500. /**
  501. * 中草药费
  502. */
  503. private String chineseHerbalMedicineFee;
  504. /**
  505. * 血费
  506. */
  507. private String bloodFee;
  508. /**
  509. * 白蛋白类制品费
  510. */
  511. private String albuminProductsFee;
  512. /**
  513. * 球蛋白类制品费
  514. */
  515. private String globulinProductsFee;
  516. /**
  517. * 凝血因子类制品费
  518. */
  519. private String coagulationFactorProductsFee;
  520. /**
  521. * 细胞因子类制品费
  522. */
  523. private String cytokineProductsFee;
  524. /**
  525. * 检查用一次性医用材料费
  526. */
  527. private String costOfDisposableMedicalMaterialsForExamination;
  528. /**
  529. * 治疗用一次性医用材料费
  530. */
  531. private String costOfDisposableMedicalMaterialsForTreatment;
  532. /**
  533. * 手术用一次性医用材料费
  534. */
  535. private String costOfDisposableMedicalMaterialsForOperation;
  536. /**
  537. * 其他费
  538. */
  539. private String otherFees;
  540. /**
  541. * 门诊与出院
  542. */
  543. private String diagConform1;
  544. /**
  545. * 入院与出院
  546. */
  547. private String diagConform2;
  548. /**
  549. * 术前与术后
  550. */
  551. private String diagConform3;
  552. /**
  553. * 临床与病理
  554. */
  555. private String diagConform4;
  556. /**
  557. * 放射与病理
  558. */
  559. private String diagConform5;
  560. /**
  561. * 抢救次数
  562. */
  563. private String rescueTimes;
  564. /**
  565. * 抢救成功次数
  566. */
  567. private String rescueSuccessTimes;
  568. /**
  569. * 病例分型
  570. */
  571. private String caseClassification;
  572. /**
  573. * 是否实施重症监护
  574. */
  575. private String hasIcu;
  576. /**
  577. * 重症监护时间(天)
  578. */
  579. private String icuDays;
  580. /**
  581. * 重症监护时间(小时)
  582. */
  583. private String icuHours;
  584. /**
  585. * 单病种管理
  586. */
  587. private String monopathyManagement;
  588. /**
  589. * 临床路径管理
  590. */
  591. private String clinicalPathwayManagement;
  592. /**
  593. * DRGs管理
  594. */
  595. private String drgsManagement;
  596. /**
  597. * 抗生素使用
  598. */
  599. private String useAntibiotic;
  600. /**
  601. * 细菌培养标本送检
  602. */
  603. private String bacilliculture;
  604. /**
  605. * 法定传染病
  606. */
  607. private String statutoryEpidemic;
  608. /**
  609. * 肿瘤分期(T)
  610. */
  611. private String tumorLevelT;
  612. /**
  613. * 肿瘤分期(N)
  614. */
  615. private String tumorLevelN;
  616. /**
  617. * 肿瘤分期(M)
  618. */
  619. private String tumorLevelM;
  620. /**
  621. * 肿瘤分期
  622. */
  623. private String tumorLevel;
  624. /**
  625. * 新生儿Apgar评分
  626. */
  627. private String xxeApgar;
  628. /**
  629. * 医疗类别
  630. */
  631. private String medType;
  632. /**
  633. * 是否有婴儿
  634. */
  635. private String hasInfant;
  636. /**
  637. *
  638. */
  639. private String zkWardCode;
  640. /**
  641. * 诊断列表
  642. */
  643. @TableField(exist = false)
  644. private List<CaseFrontsheetDisdiag> disdiagList;
  645. /**
  646. * 手术列表
  647. */
  648. @TableField(exist = false)
  649. private List<CaseFrontsheetSurgery> surgeryList;
  650. /**
  651. * 险种类型
  652. * */
  653. @TableField(exist = false)
  654. private String insutype;
  655. /**
  656. * 医疗类别名称
  657. */
  658. @TableField(exist = false)
  659. private String medTypeName;
  660. public List<CaseFrontsheetDisdiag> getDisdiagList() {
  661. return null == disdiagList ? new ArrayList<>() : disdiagList;
  662. }
  663. public List<CaseFrontsheetSurgery> getSurgeryList() {
  664. return null == surgeryList ? new ArrayList<>() : surgeryList;
  665. }
  666. public String getRescueTimes() {
  667. return isBlank(rescueTimes) ? "0" : rescueTimes;
  668. }
  669. public String getRescueSuccessTimes() {
  670. return isBlank(rescueSuccessTimes) ? "0" : rescueSuccessTimes;
  671. }
  672. public String getComaDaysBeforeAdmiss() {
  673. return isBlank(comaDaysBeforeAdmiss) ? "0" : comaDaysBeforeAdmiss;
  674. }
  675. public String getComaHoursBeforeAdmiss() {
  676. return isBlank(comaHoursBeforeAdmiss) ? "0" : comaHoursBeforeAdmiss;
  677. }
  678. public String getComaMinutesBeforeAdmiss() {
  679. return isBlank(comaMinutesBeforeAdmiss) ? "0" : comaMinutesBeforeAdmiss;
  680. }
  681. public String getComaDaysAfterAdmiss() {
  682. return isBlank(comaDaysAfterAdmiss) ? "0" : comaDaysAfterAdmiss;
  683. }
  684. public String getComaHoursAfterAdmiss() {
  685. return isBlank(comaHoursAfterAdmiss) ? "0" : comaHoursAfterAdmiss;
  686. }
  687. public String getComaMinutesAfterAdmiss() {
  688. return isBlank(comaMinutesAfterAdmiss) ? "0" : comaMinutesAfterAdmiss;
  689. }
  690. public String getTotalCost() {
  691. return isBlank(totalCost) ? "0" : totalCost.trim();
  692. }
  693. public String getSelfPay() {
  694. return isBlank(selfPay) ? "0" : selfPay.trim();
  695. }
  696. public String getDismissDept() {
  697. return isBlank(dismissDept) ? getAdmissDept() : dismissDept.trim();
  698. }
  699. public String getDismissWard() {
  700. return isBlank(dismissWard) ? getAdmissWard() : dismissWard.trim();
  701. }
  702. public String getIcuDays() {
  703. return isBlank(icuDays) ? "0" : icuDays;
  704. }
  705. public String getIcuHours() {
  706. return isBlank(icuHours) ? "0" : icuHours;
  707. }
  708. }