|
@ -6,6 +6,7 @@ import com.yihu.wlyy.entity.IdEntity;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Table;
|
|
|
|
import javax.persistence.Transient;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -28,7 +29,7 @@ public class Prescription extends IdEntity {
|
|
private String patient; //关联 wlyy_patient code
|
|
private String patient; //关联 wlyy_patient code
|
|
private String patientName; //患者名称
|
|
private String patientName; //患者名称
|
|
private Integer type; //1 处方 2 续方
|
|
private Integer type; //1 处方 2 续方
|
|
private Integer status; //状态 (-1 审核不通过 , 0 审核中, 10 审核通过/待支付 ,21支付失败 20 配药中/支付成功, 21 等待领药 ,30 配送中 ,100配送成功/已完成)
|
|
|
|
|
|
private Integer status; //状态 (-1 审核不通过 , 0 待审核, 2调整中 10 审核通过/开方中 , 20开方完成/待支付, 21 支付失败 , 30 支付成功/待配药 , 40配药成功/待配送 41配送失败 42配送中 43配送到服务站 100配送到患者手中/已完成)
|
|
private String doctor; //开处方的医生code 关联 wlyy_doctor
|
|
private String doctor; //开处方的医生code 关联 wlyy_doctor
|
|
private String doctorName; //医生名称
|
|
private String doctorName; //医生名称
|
|
private Long adminTeamId; //患者签约的行政团队
|
|
private Long adminTeamId; //患者签约的行政团队
|
|
@ -49,7 +50,7 @@ public class Prescription extends IdEntity {
|
|
private String remark; //处方备注
|
|
private String remark; //处方备注
|
|
private String reason; //续方原因
|
|
private String reason; //续方原因
|
|
private String reviewedReason; //审核不通过的原因
|
|
private String reviewedReason; //审核不通过的原因
|
|
// private Double ybCost; //医保费用
|
|
|
|
|
|
// private Double ybCost; //医保费用
|
|
// private Double myCost; //自己付费
|
|
// private Double myCost; //自己付费
|
|
private Integer prescriptionType; //处方类型:1、门诊处方,2、住院处方
|
|
private Integer prescriptionType; //处方类型:1、门诊处方,2、住院处方
|
|
|
|
|
|
@ -325,4 +326,48 @@ public class Prescription extends IdEntity {
|
|
public void setPrescriptionType(Integer prescriptionType) {
|
|
public void setPrescriptionType(Integer prescriptionType) {
|
|
this.prescriptionType = prescriptionType;
|
|
this.prescriptionType = prescriptionType;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Transient
|
|
|
|
public String getTypeName() {
|
|
|
|
switch (type) {
|
|
|
|
case 1: {
|
|
|
|
return "自取";
|
|
|
|
}
|
|
|
|
case 2: {
|
|
|
|
return "快递配送";
|
|
|
|
}
|
|
|
|
case 3: {
|
|
|
|
return "健管师配送";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
@Transient
|
|
|
|
public String getStatusName() {
|
|
|
|
//-1 审核不通过 , 0 审核中, 10 审核通过/待支付 ,21支付失败 20 配药中/支付成功, 21 等待领药 ,30 配送中 ,100配送成功/已完成
|
|
|
|
switch (status) {
|
|
|
|
case -1: {
|
|
|
|
return "审核不通过";
|
|
|
|
}
|
|
|
|
case 0: {
|
|
|
|
return "审核中";
|
|
|
|
}
|
|
|
|
case 10: {
|
|
|
|
return "待支付";
|
|
|
|
}
|
|
|
|
case 20: {
|
|
|
|
return "订单已支付";
|
|
|
|
}
|
|
|
|
case 21: {
|
|
|
|
return "配药完成";
|
|
|
|
}
|
|
|
|
case 30: {
|
|
|
|
return "配送中";
|
|
|
|
}
|
|
|
|
case 100: {
|
|
|
|
return "续方完成";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
}
|
|
}
|