123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 |
- package com.yihu.wlyy.entity.patient;
- import java.io.Serializable;
- import java.util.ArrayList;
- import java.util.Date;
- import java.util.List;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Table;
- import javax.persistence.Transient;
- import com.yihu.wlyy.entity.IdEntity;
- import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
- import org.apache.commons.lang3.builder.ToStringBuilder;
- import com.fasterxml.jackson.annotation.JsonFormat;
- /**
- * 患者信息
- * @author George
- *
- */
- @Entity
- @Table(name = "wlyy_patient")
- public class Patient extends IdEntity implements Serializable {
- /**
- *
- */
- private static final long serialVersionUID = 8358924836164389434L;
- // 业务主键
- private String code;
- // 身份证号
- private String idcard;
- // 登录密码
- private String password;
- private String salt;
- // 姓名
- private String name;
- // 生日
- private Date birthday;
- // 性別,1男,2女
- private Integer sex;
- // 手機號
- private String mobile;
- // (基卫)手機號
- private String mobileRemarks;
- // 聯繫電話
- private String phone;
- // 社保卡號
- private String ssc;
- // 頭像HTTP地址
- private String photo;
- // 省代碼
- private String province;
- // 城市代碼
- private String city;
- // 區縣代碼
- private String town;
- // 街道代码
- private String street;
- // 省名
- private String provinceName;
- // 市名
- private String cityName;
- // 區縣名
- private String townName;
- // 街道名称
- private String streetName;
- // 地址
- private String address;
- // 疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病
- private Integer disease;
- // 病情:0绿标,1黄标,2红标
- private Integer diseaseCondition;
- // 病历记录总数
- private Integer recordAmount;
- // 總積分
- private Integer points;
- // 更新時間
- private Date czrq;
- // 微信编号
- private String openid;
- //微信时间
- private Date openidTime;
- // 用户状态:1正常,0禁用,-1恶意注册,2审核中
- private Integer status;
- private List<SignPatientLabelInfo> labelInfos=new ArrayList<>();//患者的疾病标签list
- public Patient() {
- }
- public Patient(Long id) {
- this.id = id;
- }
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public String getIdcard() {
- return idcard;
- }
- public void setIdcard(String idcard) {
- this.idcard = idcard;
- }
- public String getPassword() {
- return password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getSalt() {
- return salt;
- }
- public void setSalt(String salt) {
- this.salt = salt;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
- public Date getBirthday() {
- return birthday;
- }
- public void setBirthday(Date birthday) {
- this.birthday = birthday;
- }
- public Integer getSex() {
- return sex;
- }
- public void setSex(Integer sex) {
- this.sex = sex;
- }
- public String getMobile() {
- return mobile;
- }
- public void setMobile(String mobile) {
- this.mobile = mobile;
- }
- public String getPhone() {
- return phone;
- }
- public void setPhone(String phone) {
- this.phone = phone;
- }
- public String getSsc() {
- return ssc;
- }
- public void setSsc(String ssc) {
- this.ssc = ssc;
- }
- @Column(name = "photo", insertable = false)
- public String getPhoto() {
- return photo;
- }
- public void setPhoto(String photo) {
- this.photo = photo;
- }
- public String getProvince() {
- return province;
- }
- public void setProvince(String province) {
- this.province = province;
- }
- public String getCity() {
- return city;
- }
- public void setCity(String city) {
- this.city = city;
- }
- public String getTown() {
- return town;
- }
- public void setTown(String town) {
- this.town = town;
- }
- public String getStreet() {
- return street;
- }
- public void setStreet(String street) {
- this.street = street;
- }
- @Column(name = "province_name")
- public String getProvinceName() {
- return provinceName;
- }
- public void setProvinceName(String provinceName) {
- this.provinceName = provinceName;
- }
- @Column(name = "city_name")
- public String getCityName() {
- return cityName;
- }
- public void setCityName(String cityName) {
- this.cityName = cityName;
- }
- @Column(name = "town_name")
- public String getTownName() {
- return townName;
- }
- public void setTownName(String townName) {
- this.townName = townName;
- }
- @Column(name = "street_name")
- public String getStreetName() {
- return streetName;
- }
- public void setStreetName(String streetName) {
- this.streetName = streetName;
- }
- public static long getSerialversionuid() {
- return serialVersionUID;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- public Integer getDisease() {
- return disease;
- }
- public void setDisease(Integer disease) {
- this.disease = disease;
- }
- @Column(name = "disease_condition")
- public Integer getDiseaseCondition() {
- return diseaseCondition;
- }
- public void setDiseaseCondition(Integer diseaseCondition) {
- this.diseaseCondition = diseaseCondition;
- }
- @Column(name = "record_amount")
- public Integer getRecordAmount() {
- return recordAmount;
- }
- public void setRecordAmount(Integer recordAmount) {
- this.recordAmount = recordAmount;
- }
- public Integer getPoints() {
- return points;
- }
- public void setPoints(Integer points) {
- this.points = points;
- }
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
- public Date getCzrq() {
- return czrq;
- }
- public void setCzrq(Date czrq) {
- this.czrq = czrq;
- }
- public String getOpenid() {
- return openid;
- }
- public void setOpenid(String openid) {
- this.openid = openid;
- }
- @Override
- public String toString() {
- return ToStringBuilder.reflectionToString(this);
- }
- public Integer getStatus() {
- return status;
- }
- public void setStatus(Integer status) {
- this.status = status;
- }
- @Transient
- public List<SignPatientLabelInfo> getLabelInfos() {
- return labelInfos;
- }
- public void setLabelInfos(List<SignPatientLabelInfo> labelInfos) {
- this.labelInfos = labelInfos;
- }
- public String getMobileRemarks() {
- return mobileRemarks;
- }
- public void setMobileRemarks(String mobileRemarks) {
- this.mobileRemarks = mobileRemarks;
- }
- public Date getOpenidTime() {
- return openidTime;
- }
- public void setOpenidTime(Date openidTime) {
- this.openidTime = openidTime;
- }
- }
|