|
@ -2,6 +2,7 @@ package com.yihu.jw.entity.base.patient;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import com.yihu.jw.entity.UuidIdentityEntityWithOperator;
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
import javax.persistence.Table;
|
|
@ -9,70 +10,65 @@ import java.util.Date;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 居民信息(居民就是患者)实体
|
|
|
*
|
|
|
* @author Administrator on 2018年09月05日
|
|
|
*
|
|
|
*/
|
|
|
* 居民信息(居民就是患者)实体
|
|
|
*
|
|
|
* @author Administrator on 2018年09月05日
|
|
|
*
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name = "base_patient")
|
|
|
public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
|
|
|
/**
|
|
|
* saas配置id
|
|
|
*/
|
|
|
private String saasId;
|
|
|
|
|
|
/**
|
|
|
* 身份证号
|
|
|
*/
|
|
|
private String idcard;
|
|
|
* saas配置id
|
|
|
*/
|
|
|
// @NotNull(message = "saasid不可为空")
|
|
|
private String saasId;
|
|
|
|
|
|
/**
|
|
|
* 登录密码
|
|
|
*/
|
|
|
private String password;
|
|
|
* 身份证号
|
|
|
*/
|
|
|
// @NotNull(message = "身份证号不可为空")
|
|
|
private String idcard;
|
|
|
|
|
|
/**
|
|
|
*
|
|
|
*/
|
|
|
private String salt;
|
|
|
* 登录密码
|
|
|
*/
|
|
|
private String password;
|
|
|
|
|
|
/**
|
|
|
* 姓名
|
|
|
*/
|
|
|
private String name;
|
|
|
*
|
|
|
*/
|
|
|
private String salt;
|
|
|
|
|
|
/**
|
|
|
* 生日
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
|
|
private Date birthday;
|
|
|
* 姓名
|
|
|
*/
|
|
|
private String name;
|
|
|
|
|
|
/**
|
|
|
* 性别,1男,2女
|
|
|
*/
|
|
|
private Integer sex;
|
|
|
* 生日
|
|
|
*/
|
|
|
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
|
|
private Date birthday;
|
|
|
|
|
|
/**
|
|
|
* 手机号
|
|
|
*/
|
|
|
private String mobile;
|
|
|
* 性别,1男,2女
|
|
|
*/
|
|
|
// @Range(min = 1, max = 2, message = "1-男,2-女")
|
|
|
private Integer sex;
|
|
|
|
|
|
/**
|
|
|
* 联系电话
|
|
|
*/
|
|
|
private String phone;
|
|
|
* 手机号
|
|
|
*/
|
|
|
// @Length(min = 11,max = 11,message = "手机号长度为11位")
|
|
|
private String mobile;
|
|
|
|
|
|
/**
|
|
|
* 社保卡号
|
|
|
*/
|
|
|
private String ssc;
|
|
|
|
|
|
/**
|
|
|
* 头像http地址
|
|
|
*/
|
|
|
private String photo;
|
|
|
* 头像http地址
|
|
|
*/
|
|
|
private String photo;
|
|
|
|
|
|
/**
|
|
|
* 省代码
|
|
@ -114,6 +110,11 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
*/
|
|
|
private String streetName;
|
|
|
|
|
|
/**
|
|
|
* 地址
|
|
|
*/
|
|
|
private String address;
|
|
|
|
|
|
/**
|
|
|
* 居住省代码
|
|
|
*/
|
|
@ -165,101 +166,89 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
*/
|
|
|
private String committeeName;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 疾病类型,0健康,1高血压,2糖尿病,3高血压+糖尿病
|
|
|
*/
|
|
|
private String disease;
|
|
|
|
|
|
/**
|
|
|
* 病情:0绿标,1黄标,2红标,3重点关注,
|
|
|
*/
|
|
|
private String diseaseCondition;
|
|
|
* 总积分
|
|
|
*/
|
|
|
private String points;
|
|
|
|
|
|
/**
|
|
|
* 总积分
|
|
|
*/
|
|
|
private String points;
|
|
|
* 病历总数
|
|
|
*/
|
|
|
private String recordAmount;
|
|
|
|
|
|
/**
|
|
|
* 病历总数
|
|
|
*/
|
|
|
private String recordAmount;
|
|
|
* 微信编号
|
|
|
*/
|
|
|
private String openid;
|
|
|
|
|
|
/**
|
|
|
* 微信编号
|
|
|
*/
|
|
|
private String openid;
|
|
|
* 用户状态:1正常,0禁用,-1恶意注册,2审核中
|
|
|
*/
|
|
|
private String patientStatus;
|
|
|
|
|
|
/**
|
|
|
* 用户状态:1正常,0禁用,-1恶意注册,2审核中
|
|
|
*/
|
|
|
private String patientStatus;
|
|
|
* 联系方式备注【基卫】
|
|
|
*/
|
|
|
private String mobileRemarks;
|
|
|
|
|
|
/**
|
|
|
* 联系方式备注【基卫】
|
|
|
*/
|
|
|
private String mobileRemarks;
|
|
|
* 第一次添加open的时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
|
|
private Date openidTime;
|
|
|
|
|
|
/**
|
|
|
* 第一次添加open的时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
|
|
private Date openidTime;
|
|
|
* 绑定电子社保卡主体(共济为操作人code,医社保关联patient_medicare_card)
|
|
|
*/
|
|
|
private String principalCode;
|
|
|
|
|
|
/**
|
|
|
* 绑定电子社保卡主体(共济为操作人code)
|
|
|
*/
|
|
|
private String principalCode;
|
|
|
* 居民预警状态:0为标准,1为预警状态
|
|
|
*/
|
|
|
private Integer standardStatus;
|
|
|
|
|
|
/**
|
|
|
* 是否绑定电子社保卡 (0否 1是)
|
|
|
*/
|
|
|
private String sicardStatus;
|
|
|
* unionId 开发平台唯一标识
|
|
|
*/
|
|
|
private String unionid;
|
|
|
|
|
|
/**
|
|
|
* 电子社保卡绑定时间
|
|
|
*/
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
|
|
|
private Date sicardTime;
|
|
|
* 作废标识,1正常,0作废
|
|
|
*/
|
|
|
private String del;
|
|
|
|
|
|
/**
|
|
|
* 是否分配过微信标签
|
|
|
*/
|
|
|
private Integer isWxtag;
|
|
|
* 备注
|
|
|
*/
|
|
|
private String remark;
|
|
|
|
|
|
/**
|
|
|
* 微信tagId
|
|
|
*/
|
|
|
private String wxtagid;
|
|
|
* 账号是否被锁定
|
|
|
*/
|
|
|
private Integer locked;
|
|
|
|
|
|
/**
|
|
|
* 居民预警状态:0为标准,1为预警状态
|
|
|
*/
|
|
|
private Integer standardStatus;
|
|
|
* 是否可以登录
|
|
|
*/
|
|
|
private Integer enabled;
|
|
|
|
|
|
/**
|
|
|
* 医疗保险号
|
|
|
*/
|
|
|
private String medicareNumber;
|
|
|
* 登录失败次数
|
|
|
*/
|
|
|
private Integer loginFailureCount;
|
|
|
|
|
|
/**
|
|
|
* unionId 开发平台唯一标识
|
|
|
*/
|
|
|
private String unionid;
|
|
|
* 锁定日期
|
|
|
*/
|
|
|
private Date lockedDate;
|
|
|
|
|
|
/**
|
|
|
* 作废标识,1正常,0作废
|
|
|
*/
|
|
|
private String del;
|
|
|
|
|
|
/**
|
|
|
* 备注
|
|
|
*/
|
|
|
private String remark;
|
|
|
* 登录日期
|
|
|
*/
|
|
|
private Date loginDate;
|
|
|
|
|
|
|
|
|
@Column(name = "saas_id")
|
|
|
@Column(name = "saas_id")
|
|
|
public String getSaasId() {
|
|
|
return saasId;
|
|
|
}
|
|
@ -267,7 +256,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.saasId = saasId;
|
|
|
}
|
|
|
|
|
|
@Column(name = "idcard")
|
|
|
@Column(name = "idcard")
|
|
|
public String getIdcard() {
|
|
|
return idcard;
|
|
|
}
|
|
@ -275,7 +264,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.idcard = idcard;
|
|
|
}
|
|
|
|
|
|
@Column(name = "password")
|
|
|
@Column(name = "password")
|
|
|
public String getPassword() {
|
|
|
return password;
|
|
|
}
|
|
@ -283,7 +272,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.password = password;
|
|
|
}
|
|
|
|
|
|
@Column(name = "salt")
|
|
|
@Column(name = "salt")
|
|
|
public String getSalt() {
|
|
|
return salt;
|
|
|
}
|
|
@ -291,7 +280,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.salt = salt;
|
|
|
}
|
|
|
|
|
|
@Column(name = "name")
|
|
|
@Column(name = "name")
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|
|
@ -299,7 +288,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.name = name;
|
|
|
}
|
|
|
|
|
|
@Column(name = "birthday")
|
|
|
@Column(name = "birthday")
|
|
|
public Date getBirthday() {
|
|
|
return birthday;
|
|
|
}
|
|
@ -307,7 +296,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.birthday = birthday;
|
|
|
}
|
|
|
|
|
|
@Column(name = "sex")
|
|
|
@Column(name = "sex")
|
|
|
public Integer getSex() {
|
|
|
return sex;
|
|
|
}
|
|
@ -315,7 +304,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.sex = sex;
|
|
|
}
|
|
|
|
|
|
@Column(name = "mobile")
|
|
|
@Column(name = "mobile")
|
|
|
public String getMobile() {
|
|
|
return mobile;
|
|
|
}
|
|
@ -323,23 +312,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.mobile = mobile;
|
|
|
}
|
|
|
|
|
|
@Column(name = "phone")
|
|
|
public String getPhone() {
|
|
|
return phone;
|
|
|
}
|
|
|
public void setPhone(String phone) {
|
|
|
this.phone = phone;
|
|
|
}
|
|
|
|
|
|
@Column(name = "ssc")
|
|
|
public String getSsc() {
|
|
|
return ssc;
|
|
|
}
|
|
|
public void setSsc(String ssc) {
|
|
|
this.ssc = ssc;
|
|
|
}
|
|
|
|
|
|
@Column(name = "photo")
|
|
|
@Column(name = "photo")
|
|
|
public String getPhoto() {
|
|
|
return photo;
|
|
|
}
|
|
@ -411,6 +384,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.streetName = streetName;
|
|
|
}
|
|
|
|
|
|
@Column(name = "committee_code")
|
|
|
public String getCommitteeCode() {
|
|
|
return committeeCode;
|
|
|
}
|
|
@ -419,6 +393,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.committeeCode = committeeCode;
|
|
|
}
|
|
|
|
|
|
@Column(name = "committee_name")
|
|
|
public String getCommitteeName() {
|
|
|
return committeeName;
|
|
|
}
|
|
@ -427,23 +402,16 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.committeeName = committeeName;
|
|
|
}
|
|
|
|
|
|
@Column(name = "disease")
|
|
|
public String getDisease() {
|
|
|
return disease;
|
|
|
}
|
|
|
public void setDisease(String disease) {
|
|
|
this.disease = disease;
|
|
|
@Column(name = "address")
|
|
|
public String getAddress() {
|
|
|
return address;
|
|
|
}
|
|
|
|
|
|
@Column(name = "disease_condition")
|
|
|
public String getDiseaseCondition() {
|
|
|
return diseaseCondition;
|
|
|
}
|
|
|
public void setDiseaseCondition(String diseaseCondition) {
|
|
|
this.diseaseCondition = diseaseCondition;
|
|
|
public void setAddress(String address) {
|
|
|
this.address = address;
|
|
|
}
|
|
|
|
|
|
@Column(name = "points")
|
|
|
@Column(name = "points")
|
|
|
public String getPoints() {
|
|
|
return points;
|
|
|
}
|
|
@ -451,7 +419,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.points = points;
|
|
|
}
|
|
|
|
|
|
@Column(name = "record_amount")
|
|
|
@Column(name = "record_amount")
|
|
|
public String getRecordAmount() {
|
|
|
return recordAmount;
|
|
|
}
|
|
@ -459,7 +427,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.recordAmount = recordAmount;
|
|
|
}
|
|
|
|
|
|
@Column(name = "openid")
|
|
|
@Column(name = "openid")
|
|
|
public String getOpenid() {
|
|
|
return openid;
|
|
|
}
|
|
@ -467,7 +435,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.openid = openid;
|
|
|
}
|
|
|
|
|
|
@Column(name = "patient_status")
|
|
|
@Column(name = "patient_status")
|
|
|
public String getPatientStatus() {
|
|
|
return patientStatus;
|
|
|
}
|
|
@ -475,7 +443,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.patientStatus = patientStatus;
|
|
|
}
|
|
|
|
|
|
@Column(name = "mobile_remarks")
|
|
|
@Column(name = "mobile_remarks")
|
|
|
public String getMobileRemarks() {
|
|
|
return mobileRemarks;
|
|
|
}
|
|
@ -483,7 +451,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.mobileRemarks = mobileRemarks;
|
|
|
}
|
|
|
|
|
|
@Column(name = "openid_time")
|
|
|
@Column(name = "openid_time")
|
|
|
public Date getOpenidTime() {
|
|
|
return openidTime;
|
|
|
}
|
|
@ -491,7 +459,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.openidTime = openidTime;
|
|
|
}
|
|
|
|
|
|
@Column(name = "principal_code")
|
|
|
@Column(name = "principal_code")
|
|
|
public String getPrincipalCode() {
|
|
|
return principalCode;
|
|
|
}
|
|
@ -499,39 +467,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.principalCode = principalCode;
|
|
|
}
|
|
|
|
|
|
@Column(name = "sicard_status")
|
|
|
public String getSicardStatus() {
|
|
|
return sicardStatus;
|
|
|
}
|
|
|
public void setSicardStatus(String sicardStatus) {
|
|
|
this.sicardStatus = sicardStatus;
|
|
|
}
|
|
|
|
|
|
@Column(name = "sicard_time")
|
|
|
public Date getSicardTime() {
|
|
|
return sicardTime;
|
|
|
}
|
|
|
public void setSicardTime(Date sicardTime) {
|
|
|
this.sicardTime = sicardTime;
|
|
|
}
|
|
|
|
|
|
@Column(name = "is_wxtag")
|
|
|
public Integer getIsWxtag() {
|
|
|
return isWxtag;
|
|
|
}
|
|
|
public void setIsWxtag(Integer isWxtag) {
|
|
|
this.isWxtag = isWxtag;
|
|
|
}
|
|
|
|
|
|
@Column(name = "wxtagid")
|
|
|
public String getWxtagid() {
|
|
|
return wxtagid;
|
|
|
}
|
|
|
public void setWxtagid(String wxtagid) {
|
|
|
this.wxtagid = wxtagid;
|
|
|
}
|
|
|
|
|
|
@Column(name = "standard_status")
|
|
|
@Column(name = "standard_status")
|
|
|
public Integer getStandardStatus() {
|
|
|
return standardStatus;
|
|
|
}
|
|
@ -539,15 +475,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.standardStatus = standardStatus;
|
|
|
}
|
|
|
|
|
|
@Column(name = "medicare_number")
|
|
|
public String getMedicareNumber() {
|
|
|
return medicareNumber;
|
|
|
}
|
|
|
public void setMedicareNumber(String medicareNumber) {
|
|
|
this.medicareNumber = medicareNumber;
|
|
|
}
|
|
|
|
|
|
@Column(name = "unionid")
|
|
|
@Column(name = "unionid")
|
|
|
public String getUnionid() {
|
|
|
return unionid;
|
|
|
}
|
|
@ -555,7 +483,7 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
this.unionid = unionid;
|
|
|
}
|
|
|
|
|
|
@Column(name = "del")
|
|
|
@Column(name = "del")
|
|
|
public String getDel() {
|
|
|
return del;
|
|
|
}
|
|
@ -635,4 +563,44 @@ public class BasePatientDO extends UuidIdentityEntityWithOperator {
|
|
|
public void setLiveStreetName(String liveStreetName) {
|
|
|
this.liveStreetName = liveStreetName;
|
|
|
}
|
|
|
|
|
|
public Integer getLocked() {
|
|
|
return locked;
|
|
|
}
|
|
|
|
|
|
public void setLocked(Integer locked) {
|
|
|
this.locked = locked;
|
|
|
}
|
|
|
|
|
|
public Integer getEnabled() {
|
|
|
return enabled;
|
|
|
}
|
|
|
|
|
|
public void setEnabled(Integer enabled) {
|
|
|
this.enabled = enabled;
|
|
|
}
|
|
|
|
|
|
public Integer getLoginFailureCount() {
|
|
|
return loginFailureCount;
|
|
|
}
|
|
|
|
|
|
public void setLoginFailureCount(Integer loginFailureCount) {
|
|
|
this.loginFailureCount = loginFailureCount;
|
|
|
}
|
|
|
|
|
|
public Date getLockedDate() {
|
|
|
return lockedDate;
|
|
|
}
|
|
|
|
|
|
public void setLockedDate(Date lockedDate) {
|
|
|
this.lockedDate = lockedDate;
|
|
|
}
|
|
|
|
|
|
public Date getLoginDate() {
|
|
|
return loginDate;
|
|
|
}
|
|
|
|
|
|
public void setLoginDate(Date loginDate) {
|
|
|
this.loginDate = loginDate;
|
|
|
}
|
|
|
}
|