package com.github.yxyl120.sdk.request; import com.github.yxyl120.sdk.annotation.ApiFieldProperty; import com.github.yxyl120.sdk.domain.DrugInfo; import com.github.yxyl120.sdk.domain.PatientInfo; import com.github.yxyl120.sdk.response.PushOrderResponse; import java.util.Date; import java.util.List; import java.util.Map; import java.util.TreeMap; public class PushOrderRequest implements YxRequest{ /** * 合作方订单id */ @ApiFieldProperty(value = "合作方订单id", required = true) private String orderIdThird; /** * 合作方问诊单号 */ @ApiFieldProperty(value = "合作方问诊单号", required = true) private String diagnosisSnThird; /** * 处方类型 1 图文 | 2 视频 */ @ApiFieldProperty(value = "处方类型 1 图文 | 2 视频", required = true) private Integer type; /** * 付费类型 0 自费 1 公费 2 医保 3 其他 */ @ApiFieldProperty(value = "付费类型 0 自费 1 公费 2 医保 3 其他,默认为:0-自费") private Integer paymentType; /** * 付费金额 */ @ApiFieldProperty("付费金额") private Float paymentAmount; /** * 处方药类型(01西药、02中药) */ @ApiFieldProperty(value = "处方药类型(01西药、02中药)", required = true) private String rpType; /** * 患者详情 */ @ApiFieldProperty(value = "患者详情", required = true,validClass = true) private PatientInfo patientInfo; /** * 药品列表 */ @ApiFieldProperty(value = "药品列表", required = true,validClass = true) private List drugList; /** * 药店ID */ @ApiFieldProperty("药店ID") private String storeId; /** * 药店名称 */ @ApiFieldProperty("药店名称") private String storeName; /** * 诊断 */ @ApiFieldProperty("诊断") private List diagnosis; /** * 凭证图片 URL json格式 ["http://1.jpg", "http://2.jpg"] */ @ApiFieldProperty("凭证图片 URL Array格式 [\"http://1.jpg\", \"http://2.jpg\"]") private List voucherImg; /** * 是否CA签名 0 否 | 1 是 */ @ApiFieldProperty("是否需要CA电子签名pdf文件,此功能需要药店相关的药师先进行电子签章注册并授权") private Integer signPDF; @ApiFieldProperty("药师id使用模式:0-匹配模式,id不存在时将以一线平台药师代替,1-严格模式,id不可用时将提交失败") private int pharmacistModel; @ApiFieldProperty("在一线平台注册的审核药师id") private Integer pharmacistId; @ApiFieldProperty("在一线平台注册的配药药师id") private Integer deploymentPharmacistId; @ApiFieldProperty("在一线平台注册的发药药师id") private Integer dispensingPharmacistId; /** * 创建时间 */ @ApiFieldProperty(value = "合作方订单创建时间", required = true) private Date createTime; @Override public String getApi() { return "/api/open/receiveOrder"; } @Override public Map getQueryParam() { TreeMap treeMap = new TreeMap<>(); treeMap.put("encrypted","AES"); return treeMap; } @Override public Class getResponseClass() { return PushOrderResponse.class; } public String getOrderIdThird() { return orderIdThird; } public void setOrderIdThird(String orderIdThird) { this.orderIdThird = orderIdThird; } public String getDiagnosisSnThird() { return diagnosisSnThird; } public void setDiagnosisSnThird(String diagnosisSnThird) { this.diagnosisSnThird = diagnosisSnThird; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public Integer getPaymentType() { return paymentType; } public void setPaymentType(Integer paymentType) { this.paymentType = paymentType; } public Float getPaymentAmount() { return paymentAmount; } public void setPaymentAmount(Float paymentAmount) { this.paymentAmount = paymentAmount; } public String getRpType() { return rpType; } public void setRpType(String rpType) { this.rpType = rpType; } public PatientInfo getPatientInfo() { return patientInfo; } public void setPatientInfo(PatientInfo patientInfo) { this.patientInfo = patientInfo; } public List getDrugList() { return drugList; } public void setDrugList(List drugList) { this.drugList = drugList; } public String getStoreId() { return storeId; } public void setStoreId(String storeId) { this.storeId = storeId; } public String getStoreName() { return storeName; } public void setStoreName(String storeName) { this.storeName = storeName; } public List getDiagnosis() { return diagnosis; } public void setDiagnosis(List diagnosis) { this.diagnosis = diagnosis; } public List getVoucherImg() { return voucherImg; } public void setVoucherImg(List voucherImg) { this.voucherImg = voucherImg; } public Integer getSignPDF() { return signPDF; } public void setSignPDF(Integer signPDF) { this.signPDF = signPDF; } public Integer getPharmacistModel() { return pharmacistModel; } public void setPharmacistModel(Integer pharmacistModel) { this.pharmacistModel = pharmacistModel; } public Integer getPharmacistId() { return pharmacistId; } public void setPharmacistId(Integer pharmacistId) { this.pharmacistId = pharmacistId; } public Integer getDeploymentPharmacistId() { return deploymentPharmacistId; } public void setDeploymentPharmacistId(Integer deploymentPharmacistId) { this.deploymentPharmacistId = deploymentPharmacistId; } public Integer getDispensingPharmacistId() { return dispensingPharmacistId; } public void setDispensingPharmacistId(Integer dispensingPharmacistId) { this.dispensingPharmacistId = dispensingPharmacistId; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } }