AlibabaAlihealthSynergyYzwDrugreportByfileSaveRequest.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.synergy.yzw.drugreport.byfile.save request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.03.17
  7. */
  8. class AlibabaAlihealthSynergyYzwDrugreportByfileSaveRequest
  9. {
  10. /**
  11. * 空表示给自己上传报告,报告属于调用企业。填授权企业refEntId,表示调用企业替授权企业上传报告,报告属于授权企业。
  12. **/
  13. private $assRefEntId;
  14. /**
  15. * 授权单位的章信息
  16. **/
  17. private $assSealInfo;
  18. /**
  19. * 批次号
  20. **/
  21. private $batchNo;
  22. /**
  23. * 药品ID
  24. **/
  25. private $drugEntBaseInfoId;
  26. /**
  27. * 文件类型支持:pdf,jpg,jpeg, png
  28. **/
  29. private $fileType;
  30. /**
  31. * 生产日期
  32. **/
  33. private $produceDate;
  34. /**
  35. * 调用企业的refEntId
  36. **/
  37. private $refEntId;
  38. /**
  39. * 报告文件二进制字节数组
  40. **/
  41. private $reportData;
  42. /**
  43. * 报告日期
  44. **/
  45. private $reportDate;
  46. /**
  47. * 报告编号
  48. **/
  49. private $reportNo;
  50. /**
  51. * 代理操作企业(调用企业)的章信息
  52. **/
  53. private $selfSealInfo;
  54. /**
  55. * 三方用户标识
  56. **/
  57. private $userId;
  58. private $apiParas = array();
  59. public function setAssRefEntId($assRefEntId)
  60. {
  61. $this->assRefEntId = $assRefEntId;
  62. $this->apiParas["ass_ref_ent_id"] = $assRefEntId;
  63. }
  64. public function getAssRefEntId()
  65. {
  66. return $this->assRefEntId;
  67. }
  68. public function setAssSealInfo($assSealInfo)
  69. {
  70. $this->assSealInfo = $assSealInfo;
  71. $this->apiParas["ass_seal_info"] = $assSealInfo;
  72. }
  73. public function getAssSealInfo()
  74. {
  75. return $this->assSealInfo;
  76. }
  77. public function setBatchNo($batchNo)
  78. {
  79. $this->batchNo = $batchNo;
  80. $this->apiParas["batch_no"] = $batchNo;
  81. }
  82. public function getBatchNo()
  83. {
  84. return $this->batchNo;
  85. }
  86. public function setDrugEntBaseInfoId($drugEntBaseInfoId)
  87. {
  88. $this->drugEntBaseInfoId = $drugEntBaseInfoId;
  89. $this->apiParas["drug_ent_base_info_id"] = $drugEntBaseInfoId;
  90. }
  91. public function getDrugEntBaseInfoId()
  92. {
  93. return $this->drugEntBaseInfoId;
  94. }
  95. public function setFileType($fileType)
  96. {
  97. $this->fileType = $fileType;
  98. $this->apiParas["file_type"] = $fileType;
  99. }
  100. public function getFileType()
  101. {
  102. return $this->fileType;
  103. }
  104. public function setProduceDate($produceDate)
  105. {
  106. $this->produceDate = $produceDate;
  107. $this->apiParas["produce_date"] = $produceDate;
  108. }
  109. public function getProduceDate()
  110. {
  111. return $this->produceDate;
  112. }
  113. public function setRefEntId($refEntId)
  114. {
  115. $this->refEntId = $refEntId;
  116. $this->apiParas["ref_ent_id"] = $refEntId;
  117. }
  118. public function getRefEntId()
  119. {
  120. return $this->refEntId;
  121. }
  122. public function setReportData($reportData)
  123. {
  124. $this->reportData = $reportData;
  125. $this->apiParas["report_data"] = $reportData;
  126. }
  127. public function getReportData()
  128. {
  129. return $this->reportData;
  130. }
  131. public function setReportDate($reportDate)
  132. {
  133. $this->reportDate = $reportDate;
  134. $this->apiParas["report_date"] = $reportDate;
  135. }
  136. public function getReportDate()
  137. {
  138. return $this->reportDate;
  139. }
  140. public function setReportNo($reportNo)
  141. {
  142. $this->reportNo = $reportNo;
  143. $this->apiParas["report_no"] = $reportNo;
  144. }
  145. public function getReportNo()
  146. {
  147. return $this->reportNo;
  148. }
  149. public function setSelfSealInfo($selfSealInfo)
  150. {
  151. $this->selfSealInfo = $selfSealInfo;
  152. $this->apiParas["self_seal_info"] = $selfSealInfo;
  153. }
  154. public function getSelfSealInfo()
  155. {
  156. return $this->selfSealInfo;
  157. }
  158. public function setUserId($userId)
  159. {
  160. $this->userId = $userId;
  161. $this->apiParas["user_id"] = $userId;
  162. }
  163. public function getUserId()
  164. {
  165. return $this->userId;
  166. }
  167. public function getApiMethodName()
  168. {
  169. return "alibaba.alihealth.synergy.yzw.drugreport.byfile.save";
  170. }
  171. public function getApiParas()
  172. {
  173. return $this->apiParas;
  174. }
  175. public function check()
  176. {
  177. RequestCheckUtil::checkNotNull($this->batchNo,"batchNo");
  178. RequestCheckUtil::checkNotNull($this->drugEntBaseInfoId,"drugEntBaseInfoId");
  179. RequestCheckUtil::checkNotNull($this->fileType,"fileType");
  180. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  181. RequestCheckUtil::checkNotNull($this->reportData,"reportData");
  182. RequestCheckUtil::checkNotNull($this->userId,"userId");
  183. }
  184. public function putOtherTextParam($key, $value) {
  185. $this->apiParas[$key] = $value;
  186. $this->$key = $value;
  187. }
  188. }