|
@ -48,6 +48,7 @@ public class PrescriptionLog extends IdEntity {
|
|
this.value = value;
|
|
this.value = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
//状态枚举
|
|
//状态枚举
|
|
public enum PrescriptionLogStatus {
|
|
public enum PrescriptionLogStatus {
|
|
|
|
|
|
@ -55,7 +56,7 @@ public class PrescriptionLog extends IdEntity {
|
|
patient_canel("患者自己取消", -2),
|
|
patient_canel("患者自己取消", -2),
|
|
no_reviewed("审核不通过", -1),
|
|
no_reviewed("审核不通过", -1),
|
|
revieweding("待审核", 0),
|
|
revieweding("待审核", 0),
|
|
changeing("调整中",2),
|
|
|
|
|
|
changeing("调整中", 2),
|
|
reviewed_success("审核通过/开方中", 10),
|
|
reviewed_success("审核通过/开方中", 10),
|
|
wait_pay("开方完成/待支付", 20),
|
|
wait_pay("开方完成/待支付", 20),
|
|
|
|
|
|
@ -100,6 +101,7 @@ public class PrescriptionLog extends IdEntity {
|
|
private String prescriptionCode; //处方code 关联表wlyy_prescription code
|
|
private String prescriptionCode; //处方code 关联表wlyy_prescription code
|
|
private Date createTime; //处方创建时间
|
|
private Date createTime; //处方创建时间
|
|
private Integer status; //状态 (-3 支付过期 -2 患者自己取消 -1 审核不通过 , 0 待审核, 2调整中 10 审核通过/开方中 , 20开方完成/待支付, 21 支付失败 , 30 支付成功/待配药 , 40配药成功/待配送 41配送失败 42分配健管师 45配送中 49配送到服务站 100配送到患者手中/已完成)
|
|
private Integer status; //状态 (-3 支付过期 -2 患者自己取消 -1 审核不通过 , 0 待审核, 2调整中 10 审核通过/开方中 , 20开方完成/待支付, 21 支付失败 , 30 支付成功/待配药 , 40配药成功/待配送 41配送失败 42分配健管师 45配送中 49配送到服务站 100配送到患者手中/已完成)
|
|
|
|
|
|
private Integer type; //类型: 1智业对接 2易联众对接 3创建处方 4 审核 5付款 6 配送 7完成
|
|
private Integer type; //类型: 1智业对接 2易联众对接 3创建处方 4 审核 5付款 6 配送 7完成
|
|
private String userCode; //医生或者患者code
|
|
private String userCode; //医生或者患者code
|
|
private String userName; //医生或者患者name
|
|
private String userName; //医生或者患者name
|
|
@ -109,6 +111,8 @@ public class PrescriptionLog extends IdEntity {
|
|
private String hospital;//医院code
|
|
private String hospital;//医院code
|
|
private String hospitalName;//医院名称
|
|
private String hospitalName;//医院名称
|
|
|
|
|
|
|
|
private String statusName; //状态名称
|
|
|
|
|
|
@Column(name = "code")
|
|
@Column(name = "code")
|
|
public String getCode() {
|
|
public String getCode() {
|
|
return code;
|
|
return code;
|
|
@ -214,4 +218,13 @@ public class PrescriptionLog extends IdEntity {
|
|
public void setHospitalName(String hospitalName) {
|
|
public void setHospitalName(String hospitalName) {
|
|
this.hospitalName = hospitalName;
|
|
this.hospitalName = hospitalName;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Transient
|
|
|
|
public String getStatusName() {
|
|
|
|
return statusName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStatusName(String statusName) {
|
|
|
|
this.statusName = Prescription.getStatusName(this.status,hospitalName);
|
|
|
|
}
|
|
}
|
|
}
|