| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- 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<PushOrderResponse>{
- /**
- * 合作方订单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<DrugInfo> drugList;
- /**
- * 药店ID
- */
- @ApiFieldProperty("药店ID")
- private String storeId;
- /**
- * 药店名称
- */
- @ApiFieldProperty("药店名称")
- private String storeName;
- /**
- * 诊断
- */
- @ApiFieldProperty("诊断")
- private List<String> diagnosis;
- /**
- * 凭证图片 URL json格式 ["http://1.jpg", "http://2.jpg"]
- */
- @ApiFieldProperty("凭证图片 URL Array格式 [\"http://1.jpg\", \"http://2.jpg\"]")
- private List<String> 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<String, Object> getQueryParam() {
- TreeMap<String, Object> treeMap = new TreeMap<>();
- treeMap.put("encrypted","AES");
- return treeMap;
- }
- @Override
- public Class<PushOrderResponse> 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<DrugInfo> getDrugList() {
- return drugList;
- }
- public void setDrugList(List<DrugInfo> 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<String> getDiagnosis() {
- return diagnosis;
- }
- public void setDiagnosis(List<String> diagnosis) {
- this.diagnosis = diagnosis;
- }
- public List<String> getVoucherImg() {
- return voucherImg;
- }
- public void setVoucherImg(List<String> 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;
- }
- }
|