HealthEduArticlePatient.java 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. package com.yihu.es.entity;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.yihu.wlyy.entity.patient.Patient;
  4. import io.searchbox.annotations.JestId;
  5. import org.springframework.data.annotation.CreatedDate;
  6. import org.springframework.data.annotation.Transient;
  7. import java.util.Date;
  8. import java.util.List;
  9. /**
  10. * 推送记录表
  11. * Created by chenweida on 2017/9/7.
  12. */
  13. public class HealthEduArticlePatient {
  14. @JestId
  15. private String id;
  16. @Transient
  17. private String patient; // 患者标识
  18. @Transient
  19. private String patientName; // 患者标识
  20. private String doctorCode; //推送的医生code(包括医生本人、卫计委)
  21. private String doctorName; //推送的医生名称(包括医生本人、卫计委)
  22. private String sendCode; // 发送人code
  23. private String sendName; // 发送人名称
  24. private String sendPic; // 发送人头像
  25. private String sendSex; // 发送人性别
  26. private String sendLevel; // 发送人级别 1专科医生,2全科医生,3健康管理师 4 管理员
  27. private Integer sendType;//发送类型 1医生发送 2卫纪委发送
  28. private Long adminTeamCode;// 行政团队
  29. private String adminTeamName;// 行政团队
  30. private String hospital; // 所属机构
  31. private String hospitalName; // 所属机构
  32. private String town; // 所属区划
  33. private String townName; // 所属区划
  34. @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyyMMdd'T'HHmmss.SSS'Z'")
  35. @CreatedDate
  36. private Date createTime; // 创建时间
  37. private String batchNo;//批次号记录发送所属批次
  38. private String articleId; //文章id
  39. private String attachedTitle; //文章标题
  40. private String attachedPic;//文章封面
  41. private String attachedContent; //文章内容
  42. private String attachedMessage; //文章附加文件
  43. private String articleType;//文章类别
  44. private String level1Type;//1级类别
  45. private String level2Type;//2级类别
  46. private String level;//等级
  47. private Integer allCount;//所有的推送数目
  48. private String type;//推送类型 1:文章 2:健康课程
  49. private String articleUrl;//集美宣教,文章的url
  50. private List<Patient> patients;//被推送文章的患者
  51. public String getId() {
  52. return id;
  53. }
  54. public void setId(String id) {
  55. this.id = id;
  56. }
  57. public String getSendCode() {
  58. return sendCode;
  59. }
  60. public void setSendCode(String sendCode) {
  61. this.sendCode = sendCode;
  62. }
  63. public String getSendName() {
  64. return sendName;
  65. }
  66. public void setSendName(String sendName) {
  67. this.sendName = sendName;
  68. }
  69. public Integer getSendType() {
  70. return sendType;
  71. }
  72. public void setSendType(Integer sendType) {
  73. this.sendType = sendType;
  74. }
  75. public Long getAdminTeamCode() {
  76. return adminTeamCode;
  77. }
  78. public void setAdminTeamCode(Long adminTeamCode) {
  79. this.adminTeamCode = adminTeamCode;
  80. }
  81. public String getHospital() {
  82. return hospital;
  83. }
  84. public void setHospital(String hospital) {
  85. this.hospital = hospital;
  86. }
  87. public String getTown() {
  88. return town;
  89. }
  90. public void setTown(String town) {
  91. this.town = town;
  92. }
  93. public Date getCreateTime() {
  94. return createTime;
  95. }
  96. public void setCreateTime(Date createTime) {
  97. this.createTime = createTime;
  98. }
  99. public String getBatchNo() {
  100. return batchNo;
  101. }
  102. public void setBatchNo(String batchNo) {
  103. this.batchNo = batchNo;
  104. }
  105. public String getArticleId() {
  106. return articleId;
  107. }
  108. public void setArticleId(String articleId) {
  109. this.articleId = articleId;
  110. }
  111. public String getAttachedTitle() {
  112. return attachedTitle;
  113. }
  114. public void setAttachedTitle(String attachedTitle) {
  115. this.attachedTitle = attachedTitle;
  116. }
  117. public String getAttachedPic() {
  118. return attachedPic;
  119. }
  120. public void setAttachedPic(String attachedPic) {
  121. this.attachedPic = attachedPic;
  122. }
  123. public String getAttachedContent() {
  124. return attachedContent;
  125. }
  126. public void setAttachedContent(String attachedContent) {
  127. this.attachedContent = attachedContent;
  128. }
  129. public String getAttachedMessage() {
  130. return attachedMessage;
  131. }
  132. public void setAttachedMessage(String attachedMessage) {
  133. this.attachedMessage = attachedMessage;
  134. }
  135. public String getAdminTeamName() {
  136. return adminTeamName;
  137. }
  138. public void setAdminTeamName(String adminTeamName) {
  139. this.adminTeamName = adminTeamName;
  140. }
  141. public String getHospitalName() {
  142. return hospitalName;
  143. }
  144. public void setHospitalName(String hospitalName) {
  145. this.hospitalName = hospitalName;
  146. }
  147. public String getTownName() {
  148. return townName;
  149. }
  150. public void setTownName(String townName) {
  151. this.townName = townName;
  152. }
  153. public String getArticleType() {
  154. return articleType;
  155. }
  156. public void setArticleType(String articleType) {
  157. this.articleType = articleType;
  158. }
  159. public String getLevel1Type() {
  160. return level1Type;
  161. }
  162. public void setLevel1Type(String level1Type) {
  163. this.level1Type = level1Type;
  164. }
  165. public String getLevel2Type() {
  166. return level2Type;
  167. }
  168. public void setLevel2Type(String level2Type) {
  169. this.level2Type = level2Type;
  170. }
  171. public String getLevel() {
  172. return level;
  173. }
  174. public void setLevel(String level) {
  175. this.level = level;
  176. }
  177. public Integer getAllCount() {
  178. return allCount;
  179. }
  180. public void setAllCount(Integer allCount) {
  181. this.allCount = allCount;
  182. }
  183. public String getSendPic() {
  184. return sendPic;
  185. }
  186. public void setSendPic(String sendPic) {
  187. this.sendPic = sendPic;
  188. }
  189. public String getSendSex() {
  190. return sendSex;
  191. }
  192. public void setSendSex(String sendSex) {
  193. this.sendSex = sendSex;
  194. }
  195. public String getSendLevel() {
  196. return sendLevel;
  197. }
  198. public void setSendLevel(String sendLevel) {
  199. this.sendLevel = sendLevel;
  200. }
  201. public String getType() {
  202. return type;
  203. }
  204. public void setType(String type) {
  205. this.type = type;
  206. }
  207. public String getArticleUrl() {
  208. return articleUrl;
  209. }
  210. public void setArticleUrl(String articleUrl) {
  211. this.articleUrl = articleUrl;
  212. }
  213. public String getPatient() {
  214. return patient;
  215. }
  216. public void setPatient(String patient) {
  217. this.patient = patient;
  218. }
  219. public String getPatientName() {
  220. return patientName;
  221. }
  222. public void setPatientName(String patientName) {
  223. this.patientName = patientName;
  224. }
  225. public List<Patient> getPatients() {
  226. return patients;
  227. }
  228. public void setPatients(List<Patient> patients) {
  229. this.patients = patients;
  230. }
  231. public String getDoctorCode() {
  232. return doctorCode;
  233. }
  234. public void setDoctorCode(String doctorCode) {
  235. this.doctorCode = doctorCode;
  236. }
  237. public String getDoctorName() {
  238. return doctorName;
  239. }
  240. public void setDoctorName(String doctorName) {
  241. this.doctorName = doctorName;
  242. }
  243. }