pharmaobservatory 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +269 -4
  3. data/docs/BrandCompaniesResponse.md +58 -0
  4. data/docs/BrandCompaniesRow.md +50 -0
  5. data/docs/BrandRevenueResponse.md +58 -0
  6. data/docs/BrandRevenueRow.md +60 -0
  7. data/docs/CatalystsResponse.md +58 -0
  8. data/docs/CatalystsRow.md +90 -0
  9. data/docs/CliaCertificatesResponse.md +58 -0
  10. data/docs/CliaCertificatesRow.md +80 -0
  11. data/docs/CompaniesApi.md +1675 -117
  12. data/docs/CompaniesRecordAttributes.md +3 -1
  13. data/docs/CompanyFundingEventsRow.md +2 -0
  14. data/docs/CompanyTrialGeographyResponse.md +58 -0
  15. data/docs/CompanyTrialGeographyRow.md +52 -0
  16. data/docs/CompanyTrialSitesResponse.md +58 -0
  17. data/docs/CompanyTrialSitesRow.md +52 -0
  18. data/docs/ConditionsApi.md +320 -0
  19. data/docs/CroFootprintResponse.md +58 -0
  20. data/docs/CroFootprintRow.md +34 -0
  21. data/docs/CroTrialsResponse.md +58 -0
  22. data/docs/CroTrialsRow.md +46 -0
  23. data/docs/DebarmentsResponse.md +58 -0
  24. data/docs/DebarmentsRow.md +44 -0
  25. data/docs/DrugApprovalsResponse.md +58 -0
  26. data/docs/DrugApprovalsRow.md +28 -0
  27. data/docs/DrugAspCodesResponse.md +58 -0
  28. data/docs/DrugAspCodesRow.md +28 -0
  29. data/docs/DrugBrandsResponse.md +58 -0
  30. data/docs/DrugBrandsRow.md +60 -0
  31. data/docs/DrugCombinationsResponse.md +58 -0
  32. data/docs/DrugCombinationsRow.md +32 -0
  33. data/docs/DrugDeclaredPatentsResponse.md +58 -0
  34. data/docs/DrugDeclaredPatentsRow.md +58 -0
  35. data/docs/DrugLabelSafetyResponse.md +58 -0
  36. data/docs/DrugLabelSafetyRow.md +32 -0
  37. data/docs/DrugMedicareSpendResponse.md +58 -0
  38. data/docs/DrugMedicareSpendRow.md +28 -0
  39. data/docs/DrugPatentCliffRow.md +3 -1
  40. data/docs/DrugPatentMentionsResponse.md +58 -0
  41. data/docs/DrugPatentMentionsRow.md +28 -0
  42. data/docs/DrugPatentOwnersResponse.md +58 -0
  43. data/docs/DrugPatentOwnersRow.md +42 -0
  44. data/docs/DrugPricingResponse.md +58 -0
  45. data/docs/DrugPricingRow.md +32 -0
  46. data/docs/DrugRecallsResponse.md +58 -0
  47. data/docs/DrugRecallsRow.md +34 -0
  48. data/docs/DrugRegulatoryResponse.md +58 -0
  49. data/docs/DrugRegulatoryRow.md +38 -0
  50. data/docs/DrugSitesResponse.md +58 -0
  51. data/docs/DrugSitesRow.md +28 -0
  52. data/docs/DrugTargetsResponse.md +58 -0
  53. data/docs/DrugTargetsRow.md +36 -0
  54. data/docs/DrugTrialConditionsResponse.md +58 -0
  55. data/docs/DrugTrialConditionsRow.md +30 -0
  56. data/docs/DrugTrialsResponse.md +58 -0
  57. data/docs/DrugTrialsRow.md +58 -0
  58. data/docs/DrugVariantsResponse.md +58 -0
  59. data/docs/DrugVariantsRow.md +38 -0
  60. data/docs/DrugsApi.md +2153 -0
  61. data/docs/DrugsRecord.md +38 -0
  62. data/docs/DrugsRecordAttributes.md +20 -0
  63. data/docs/DrugsResponse.md +58 -0
  64. data/docs/DrugsRow.md +82 -0
  65. data/docs/EnforcementEventsResponse.md +58 -0
  66. data/docs/EnforcementEventsRow.md +64 -0
  67. data/docs/GxpFacilitiesResponse.md +58 -0
  68. data/docs/GxpFacilitiesRow.md +152 -0
  69. data/docs/HospitalBedsYearlyResponse.md +58 -0
  70. data/docs/HospitalBedsYearlyRow.md +28 -0
  71. data/docs/HospitalFacilityChangesResponse.md +58 -0
  72. data/docs/HospitalFacilityChangesRow.md +30 -0
  73. data/docs/HospitalsApi.md +393 -0
  74. data/docs/HospitalsRecord.md +38 -0
  75. data/docs/HospitalsResponse.md +58 -0
  76. data/docs/HospitalsRow.md +40 -0
  77. data/docs/ImportRefusalsResponse.md +58 -0
  78. data/docs/ImportRefusalsRow.md +60 -0
  79. data/docs/InspectionFindingsResponse.md +58 -0
  80. data/docs/InspectionFindingsRow.md +48 -0
  81. data/docs/InspectionsResponse.md +58 -0
  82. data/docs/InspectionsRow.md +60 -0
  83. data/docs/InstitutionalQuarterTotalsResponse.md +58 -0
  84. data/docs/InstitutionalQuarterTotalsRow.md +58 -0
  85. data/docs/LegalEntitiesApi.md +1379 -179
  86. data/docs/LegalEntitiesRecordAttributes.md +2 -0
  87. data/docs/OrgRelationshipsRow.md +1 -1
  88. data/docs/OwnershipPercentagesResponse.md +58 -0
  89. data/docs/OwnershipPercentagesRow.md +74 -0
  90. data/docs/PdufaDatesRow.md +1 -1
  91. data/docs/ProgramLicensingCandidatesResponse.md +58 -0
  92. data/docs/ProgramLicensingCandidatesRow.md +58 -0
  93. data/docs/ProgramsResponse.md +58 -0
  94. data/docs/ProgramsRow.md +46 -0
  95. data/docs/RareDiseaseGenesResponse.md +58 -0
  96. data/docs/RareDiseaseGenesRow.md +50 -0
  97. data/docs/RareDiseaseHierarchyResponse.md +58 -0
  98. data/docs/RareDiseaseHierarchyRow.md +40 -0
  99. data/docs/RareDiseaseInvestigatorCoverageResponse.md +58 -0
  100. data/docs/RareDiseaseInvestigatorCoverageRow.md +38 -0
  101. data/docs/RareDiseaseInvestigatorsResponse.md +58 -0
  102. data/docs/RareDiseaseInvestigatorsRow.md +56 -0
  103. data/docs/RareDiseaseMappingsResponse.md +58 -0
  104. data/docs/RareDiseaseMappingsRow.md +44 -0
  105. data/docs/RareDiseaseOrganizationsResponse.md +58 -0
  106. data/docs/RareDiseaseOrganizationsRow.md +60 -0
  107. data/docs/RareDiseasePrevalenceResponse.md +58 -0
  108. data/docs/RareDiseasePrevalenceRow.md +62 -0
  109. data/docs/RareDiseaseRarityEvidenceResponse.md +58 -0
  110. data/docs/RareDiseaseRarityEvidenceRow.md +36 -0
  111. data/docs/RareDiseaseRarityResponse.md +58 -0
  112. data/docs/RareDiseaseRarityRow.md +54 -0
  113. data/docs/RareDiseaseReplacementsResponse.md +58 -0
  114. data/docs/RareDiseaseReplacementsRow.md +40 -0
  115. data/docs/RareDiseaseSiteCoverageResponse.md +58 -0
  116. data/docs/RareDiseaseSiteCoverageRow.md +54 -0
  117. data/docs/RareDiseaseSponsorsResponse.md +58 -0
  118. data/docs/RareDiseaseSponsorsRow.md +82 -0
  119. data/docs/RareDiseaseTrialCoverageResponse.md +58 -0
  120. data/docs/RareDiseaseTrialCoverageRow.md +58 -0
  121. data/docs/RareDiseaseTrialSitesResponse.md +58 -0
  122. data/docs/RareDiseaseTrialSitesRow.md +52 -0
  123. data/docs/RareDiseaseTrialsResponse.md +58 -0
  124. data/docs/RareDiseaseTrialsRow.md +90 -0
  125. data/docs/RareDiseasesApi.md +1353 -0
  126. data/docs/RareDiseasesRecord.md +38 -0
  127. data/docs/RareDiseasesRecordAttributes.md +22 -0
  128. data/docs/RareDiseasesResponse.md +58 -0
  129. data/docs/RareDiseasesRow.md +68 -0
  130. data/docs/RecallsResponse.md +58 -0
  131. data/docs/RecallsRow.md +54 -0
  132. data/docs/RwdCoverageResponse.md +58 -0
  133. data/docs/RwdCoverageRow.md +52 -0
  134. data/docs/RwdRegisterProvenanceResponse.md +58 -0
  135. data/docs/RwdRegisterProvenanceRow.md +74 -0
  136. data/docs/RwdRegistersApi.md +313 -0
  137. data/docs/RwdRegistersRecord.md +38 -0
  138. data/docs/RwdSourceAgeBandsResponse.md +58 -0
  139. data/docs/RwdSourceAgeBandsRow.md +40 -0
  140. data/docs/RwdSourceConditionsResponse.md +58 -0
  141. data/docs/RwdSourceConditionsRow.md +68 -0
  142. data/docs/RwdSourceEtlMappingsResponse.md +58 -0
  143. data/docs/RwdSourceEtlMappingsRow.md +44 -0
  144. data/docs/RwdSourceLinkagesResponse.md +58 -0
  145. data/docs/RwdSourceLinkagesRow.md +64 -0
  146. data/docs/RwdSourceTypesResponse.md +58 -0
  147. data/docs/RwdSourceTypesRow.md +34 -0
  148. data/docs/RwdSourceVocabulariesResponse.md +58 -0
  149. data/docs/RwdSourceVocabulariesRow.md +42 -0
  150. data/docs/RwdSourcesApi.md +713 -0
  151. data/docs/RwdSourcesRecord.md +38 -0
  152. data/docs/RwdSourcesResponse.md +58 -0
  153. data/docs/RwdSourcesRow.md +280 -0
  154. data/docs/RwdStudiesApi.md +473 -0
  155. data/docs/RwdStudiesRecord.md +38 -0
  156. data/docs/RwdStudiesResponse.md +58 -0
  157. data/docs/RwdStudiesRow.md +180 -0
  158. data/docs/RwdStudyConditionsResponse.md +58 -0
  159. data/docs/RwdStudyConditionsRow.md +54 -0
  160. data/docs/RwdStudyDataSourcesResponse.md +58 -0
  161. data/docs/RwdStudyDataSourcesRow.md +54 -0
  162. data/docs/RwdStudyDrugsResponse.md +58 -0
  163. data/docs/RwdStudyDrugsRow.md +50 -0
  164. data/docs/RwdStudyMilestonesResponse.md +58 -0
  165. data/docs/RwdStudyMilestonesRow.md +54 -0
  166. data/docs/RwdWithheldFieldsResponse.md +58 -0
  167. data/docs/RwdWithheldFieldsRow.md +36 -0
  168. data/docs/SecPdufaDatesResponse.md +58 -0
  169. data/docs/SecPdufaDatesRow.md +64 -0
  170. data/docs/TrialChangesRow.md +5 -1
  171. data/docs/TrialsApi.md +80 -0
  172. data/docs/TrialsRow.md +9 -1
  173. data/docs/UnmatchedProductRevenueResponse.md +58 -0
  174. data/docs/UnmatchedProductRevenueRow.md +80 -0
  175. data/docs/UntitledLettersResponse.md +58 -0
  176. data/docs/UntitledLettersRow.md +44 -0
  177. data/docs/WarningLettersResponse.md +58 -0
  178. data/docs/WarningLettersRow.md +50 -0
  179. data/lib/pharmaobservatory/api/companies_api.rb +1936 -207
  180. data/lib/pharmaobservatory/api/conditions_api.rb +336 -0
  181. data/lib/pharmaobservatory/api/drugs_api.rb +2261 -0
  182. data/lib/pharmaobservatory/api/hospitals_api.rb +413 -0
  183. data/lib/pharmaobservatory/api/legal_entities_api.rb +1442 -182
  184. data/lib/pharmaobservatory/api/rare_diseases_api.rb +1421 -0
  185. data/lib/pharmaobservatory/api/rwd_registers_api.rb +329 -0
  186. data/lib/pharmaobservatory/api/rwd_sources_api.rb +749 -0
  187. data/lib/pharmaobservatory/api/rwd_studies_api.rb +497 -0
  188. data/lib/pharmaobservatory/api/trials_api.rb +84 -0
  189. data/lib/pharmaobservatory/models/brand_companies_response.rb +478 -0
  190. data/lib/pharmaobservatory/models/brand_companies_row.rb +401 -0
  191. data/lib/pharmaobservatory/models/brand_revenue_response.rb +478 -0
  192. data/lib/pharmaobservatory/models/brand_revenue_row.rb +454 -0
  193. data/lib/pharmaobservatory/models/catalysts_response.rb +478 -0
  194. data/lib/pharmaobservatory/models/catalysts_row.rb +623 -0
  195. data/lib/pharmaobservatory/models/clia_certificates_response.rb +478 -0
  196. data/lib/pharmaobservatory/models/clia_certificates_row.rb +568 -0
  197. data/lib/pharmaobservatory/models/companies_record_attributes.rb +13 -4
  198. data/lib/pharmaobservatory/models/company_funding_events_row.rb +12 -1
  199. data/lib/pharmaobservatory/models/company_trial_geography_response.rb +478 -0
  200. data/lib/pharmaobservatory/models/company_trial_geography_row.rb +410 -0
  201. data/lib/pharmaobservatory/models/company_trial_sites_response.rb +478 -0
  202. data/lib/pharmaobservatory/models/company_trial_sites_row.rb +410 -0
  203. data/lib/pharmaobservatory/models/cro_footprint_response.rb +478 -0
  204. data/lib/pharmaobservatory/models/cro_footprint_row.rb +311 -0
  205. data/lib/pharmaobservatory/models/cro_trials_response.rb +478 -0
  206. data/lib/pharmaobservatory/models/cro_trials_row.rb +381 -0
  207. data/lib/pharmaobservatory/models/debarments_response.rb +478 -0
  208. data/lib/pharmaobservatory/models/debarments_row.rb +366 -0
  209. data/lib/pharmaobservatory/models/drug_approvals_response.rb +478 -0
  210. data/lib/pharmaobservatory/models/drug_approvals_row.rb +278 -0
  211. data/lib/pharmaobservatory/models/drug_asp_codes_response.rb +478 -0
  212. data/lib/pharmaobservatory/models/drug_asp_codes_row.rb +278 -0
  213. data/lib/pharmaobservatory/models/drug_brands_response.rb +478 -0
  214. data/lib/pharmaobservatory/models/drug_brands_row.rb +454 -0
  215. data/lib/pharmaobservatory/models/drug_combinations_response.rb +478 -0
  216. data/lib/pharmaobservatory/models/drug_combinations_row.rb +300 -0
  217. data/lib/pharmaobservatory/models/drug_declared_patents_response.rb +478 -0
  218. data/lib/pharmaobservatory/models/drug_declared_patents_row.rb +447 -0
  219. data/lib/pharmaobservatory/models/drug_label_safety_response.rb +478 -0
  220. data/lib/pharmaobservatory/models/drug_label_safety_row.rb +300 -0
  221. data/lib/pharmaobservatory/models/drug_medicare_spend_response.rb +478 -0
  222. data/lib/pharmaobservatory/models/drug_medicare_spend_row.rb +280 -0
  223. data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +13 -2
  224. data/lib/pharmaobservatory/models/drug_patent_mentions_response.rb +478 -0
  225. data/lib/pharmaobservatory/models/drug_patent_mentions_row.rb +278 -0
  226. data/lib/pharmaobservatory/models/drug_patent_owners_response.rb +478 -0
  227. data/lib/pharmaobservatory/models/drug_patent_owners_row.rb +357 -0
  228. data/lib/pharmaobservatory/models/drug_pricing_response.rb +478 -0
  229. data/lib/pharmaobservatory/models/drug_pricing_row.rb +300 -0
  230. data/lib/pharmaobservatory/models/drug_recalls_response.rb +478 -0
  231. data/lib/pharmaobservatory/models/drug_recalls_row.rb +311 -0
  232. data/lib/pharmaobservatory/models/drug_regulatory_response.rb +478 -0
  233. data/lib/pharmaobservatory/models/drug_regulatory_row.rb +333 -0
  234. data/lib/pharmaobservatory/models/drug_sites_response.rb +478 -0
  235. data/lib/pharmaobservatory/models/drug_sites_row.rb +278 -0
  236. data/lib/pharmaobservatory/models/drug_targets_response.rb +478 -0
  237. data/lib/pharmaobservatory/models/drug_targets_row.rb +324 -0
  238. data/lib/pharmaobservatory/models/drug_trial_conditions_response.rb +478 -0
  239. data/lib/pharmaobservatory/models/drug_trial_conditions_row.rb +289 -0
  240. data/lib/pharmaobservatory/models/drug_trials_response.rb +478 -0
  241. data/lib/pharmaobservatory/models/drug_trials_row.rb +445 -0
  242. data/lib/pharmaobservatory/models/drug_variants_response.rb +478 -0
  243. data/lib/pharmaobservatory/models/drug_variants_row.rb +333 -0
  244. data/lib/pharmaobservatory/models/drugs_record.rb +385 -0
  245. data/lib/pharmaobservatory/models/drugs_record_attributes.rb +229 -0
  246. data/lib/pharmaobservatory/models/drugs_response.rb +478 -0
  247. data/lib/pharmaobservatory/models/drugs_row.rb +581 -0
  248. data/lib/pharmaobservatory/models/enforcement_events_response.rb +478 -0
  249. data/lib/pharmaobservatory/models/enforcement_events_row.rb +476 -0
  250. data/lib/pharmaobservatory/models/gxp_facilities_response.rb +478 -0
  251. data/lib/pharmaobservatory/models/gxp_facilities_row.rb +968 -0
  252. data/lib/pharmaobservatory/models/hospital_beds_yearly_response.rb +478 -0
  253. data/lib/pharmaobservatory/models/hospital_beds_yearly_row.rb +278 -0
  254. data/lib/pharmaobservatory/models/hospital_facility_changes_response.rb +478 -0
  255. data/lib/pharmaobservatory/models/hospital_facility_changes_row.rb +289 -0
  256. data/lib/pharmaobservatory/models/hospitals_record.rb +385 -0
  257. data/lib/pharmaobservatory/models/hospitals_response.rb +478 -0
  258. data/lib/pharmaobservatory/models/hospitals_row.rb +344 -0
  259. data/lib/pharmaobservatory/models/import_refusals_response.rb +478 -0
  260. data/lib/pharmaobservatory/models/import_refusals_row.rb +454 -0
  261. data/lib/pharmaobservatory/models/inspection_findings_response.rb +478 -0
  262. data/lib/pharmaobservatory/models/inspection_findings_row.rb +388 -0
  263. data/lib/pharmaobservatory/models/inspections_response.rb +478 -0
  264. data/lib/pharmaobservatory/models/inspections_row.rb +454 -0
  265. data/lib/pharmaobservatory/models/institutional_quarter_totals_response.rb +478 -0
  266. data/lib/pharmaobservatory/models/institutional_quarter_totals_row.rb +443 -0
  267. data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +10 -1
  268. data/lib/pharmaobservatory/models/org_relationships_row.rb +1 -1
  269. data/lib/pharmaobservatory/models/ownership_percentages_response.rb +478 -0
  270. data/lib/pharmaobservatory/models/ownership_percentages_row.rb +531 -0
  271. data/lib/pharmaobservatory/models/pdufa_dates_row.rb +1 -1
  272. data/lib/pharmaobservatory/models/program_licensing_candidates_response.rb +478 -0
  273. data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +445 -0
  274. data/lib/pharmaobservatory/models/programs_response.rb +478 -0
  275. data/lib/pharmaobservatory/models/programs_row.rb +377 -0
  276. data/lib/pharmaobservatory/models/rare_disease_genes_response.rb +478 -0
  277. data/lib/pharmaobservatory/models/rare_disease_genes_row.rb +399 -0
  278. data/lib/pharmaobservatory/models/rare_disease_hierarchy_response.rb +478 -0
  279. data/lib/pharmaobservatory/models/rare_disease_hierarchy_row.rb +344 -0
  280. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_response.rb +478 -0
  281. data/lib/pharmaobservatory/models/rare_disease_investigator_coverage_row.rb +333 -0
  282. data/lib/pharmaobservatory/models/rare_disease_investigators_response.rb +478 -0
  283. data/lib/pharmaobservatory/models/rare_disease_investigators_row.rb +436 -0
  284. data/lib/pharmaobservatory/models/rare_disease_mappings_response.rb +478 -0
  285. data/lib/pharmaobservatory/models/rare_disease_mappings_row.rb +366 -0
  286. data/lib/pharmaobservatory/models/rare_disease_organizations_response.rb +478 -0
  287. data/lib/pharmaobservatory/models/rare_disease_organizations_row.rb +454 -0
  288. data/lib/pharmaobservatory/models/rare_disease_prevalence_response.rb +478 -0
  289. data/lib/pharmaobservatory/models/rare_disease_prevalence_row.rb +465 -0
  290. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_response.rb +478 -0
  291. data/lib/pharmaobservatory/models/rare_disease_rarity_evidence_row.rb +322 -0
  292. data/lib/pharmaobservatory/models/rare_disease_rarity_response.rb +478 -0
  293. data/lib/pharmaobservatory/models/rare_disease_rarity_row.rb +421 -0
  294. data/lib/pharmaobservatory/models/rare_disease_replacements_response.rb +478 -0
  295. data/lib/pharmaobservatory/models/rare_disease_replacements_row.rb +344 -0
  296. data/lib/pharmaobservatory/models/rare_disease_site_coverage_response.rb +478 -0
  297. data/lib/pharmaobservatory/models/rare_disease_site_coverage_row.rb +421 -0
  298. data/lib/pharmaobservatory/models/rare_disease_sponsors_response.rb +478 -0
  299. data/lib/pharmaobservatory/models/rare_disease_sponsors_row.rb +575 -0
  300. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_response.rb +478 -0
  301. data/lib/pharmaobservatory/models/rare_disease_trial_coverage_row.rb +449 -0
  302. data/lib/pharmaobservatory/models/rare_disease_trial_sites_response.rb +478 -0
  303. data/lib/pharmaobservatory/models/rare_disease_trial_sites_row.rb +412 -0
  304. data/lib/pharmaobservatory/models/rare_disease_trials_response.rb +478 -0
  305. data/lib/pharmaobservatory/models/rare_disease_trials_row.rb +623 -0
  306. data/lib/pharmaobservatory/models/rare_diseases_record.rb +385 -0
  307. data/lib/pharmaobservatory/models/rare_diseases_record_attributes.rb +238 -0
  308. data/lib/pharmaobservatory/models/rare_diseases_response.rb +478 -0
  309. data/lib/pharmaobservatory/models/rare_diseases_row.rb +500 -0
  310. data/lib/pharmaobservatory/models/recalls_response.rb +478 -0
  311. data/lib/pharmaobservatory/models/recalls_row.rb +421 -0
  312. data/lib/pharmaobservatory/models/rwd_coverage_response.rb +478 -0
  313. data/lib/pharmaobservatory/models/rwd_coverage_row.rb +410 -0
  314. data/lib/pharmaobservatory/models/rwd_register_provenance_response.rb +478 -0
  315. data/lib/pharmaobservatory/models/rwd_register_provenance_row.rb +531 -0
  316. data/lib/pharmaobservatory/models/rwd_registers_record.rb +385 -0
  317. data/lib/pharmaobservatory/models/rwd_source_age_bands_response.rb +478 -0
  318. data/lib/pharmaobservatory/models/rwd_source_age_bands_row.rb +344 -0
  319. data/lib/pharmaobservatory/models/rwd_source_conditions_response.rb +478 -0
  320. data/lib/pharmaobservatory/models/rwd_source_conditions_row.rb +502 -0
  321. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_response.rb +478 -0
  322. data/lib/pharmaobservatory/models/rwd_source_etl_mappings_row.rb +366 -0
  323. data/lib/pharmaobservatory/models/rwd_source_linkages_response.rb +478 -0
  324. data/lib/pharmaobservatory/models/rwd_source_linkages_row.rb +476 -0
  325. data/lib/pharmaobservatory/models/rwd_source_types_response.rb +478 -0
  326. data/lib/pharmaobservatory/models/rwd_source_types_row.rb +311 -0
  327. data/lib/pharmaobservatory/models/rwd_source_vocabularies_response.rb +478 -0
  328. data/lib/pharmaobservatory/models/rwd_source_vocabularies_row.rb +355 -0
  329. data/lib/pharmaobservatory/models/rwd_sources_record.rb +385 -0
  330. data/lib/pharmaobservatory/models/rwd_sources_response.rb +478 -0
  331. data/lib/pharmaobservatory/models/rwd_sources_row.rb +1674 -0
  332. data/lib/pharmaobservatory/models/rwd_studies_record.rb +385 -0
  333. data/lib/pharmaobservatory/models/rwd_studies_response.rb +478 -0
  334. data/lib/pharmaobservatory/models/rwd_studies_row.rb +1138 -0
  335. data/lib/pharmaobservatory/models/rwd_study_conditions_response.rb +478 -0
  336. data/lib/pharmaobservatory/models/rwd_study_conditions_row.rb +421 -0
  337. data/lib/pharmaobservatory/models/rwd_study_data_sources_response.rb +478 -0
  338. data/lib/pharmaobservatory/models/rwd_study_data_sources_row.rb +423 -0
  339. data/lib/pharmaobservatory/models/rwd_study_drugs_response.rb +478 -0
  340. data/lib/pharmaobservatory/models/rwd_study_drugs_row.rb +401 -0
  341. data/lib/pharmaobservatory/models/rwd_study_milestones_response.rb +478 -0
  342. data/lib/pharmaobservatory/models/rwd_study_milestones_row.rb +421 -0
  343. data/lib/pharmaobservatory/models/rwd_withheld_fields_response.rb +478 -0
  344. data/lib/pharmaobservatory/models/rwd_withheld_fields_row.rb +322 -0
  345. data/lib/pharmaobservatory/models/sec_pdufa_dates_response.rb +478 -0
  346. data/lib/pharmaobservatory/models/sec_pdufa_dates_row.rb +476 -0
  347. data/lib/pharmaobservatory/models/trial_changes_row.rb +24 -2
  348. data/lib/pharmaobservatory/models/trials_row.rb +47 -3
  349. data/lib/pharmaobservatory/models/unmatched_product_revenue_response.rb +478 -0
  350. data/lib/pharmaobservatory/models/unmatched_product_revenue_row.rb +564 -0
  351. data/lib/pharmaobservatory/models/untitled_letters_response.rb +478 -0
  352. data/lib/pharmaobservatory/models/untitled_letters_row.rb +366 -0
  353. data/lib/pharmaobservatory/models/warning_letters_response.rb +478 -0
  354. data/lib/pharmaobservatory/models/warning_letters_row.rb +399 -0
  355. data/lib/pharmaobservatory/version.rb +1 -1
  356. data/lib/pharmaobservatory.rb +164 -0
  357. metadata +330 -2
@@ -0,0 +1,2261 @@
1
+ =begin
2
+ #Pharma Observatory Public REST API
3
+
4
+ #Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PharmaObservatory
16
+ class DrugsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Brand companies
23
+ # @param id [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
26
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
27
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
28
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
29
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
30
+ # @return [BrandCompaniesResponse]
31
+ def drugs_brand_companies(id, opts = {})
32
+ data, _status_code, _headers = drugs_brand_companies_with_http_info(id, opts)
33
+ data
34
+ end
35
+
36
+ # Brand companies
37
+ # @param id [String]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
40
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
41
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
42
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
43
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
44
+ # @return [Array<(BrandCompaniesResponse, Integer, Hash)>] BrandCompaniesResponse data, response status code and response headers
45
+ def drugs_brand_companies_with_http_info(id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_brand_companies ...'
48
+ end
49
+ # verify the required parameter 'id' is set
50
+ if @api_client.config.client_side_validation && id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_brand_companies"
52
+ end
53
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
54
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_brand_companies, must be smaller than or equal to 500.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_brand_companies, must be greater than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/api/v1/drugs/{id}/brand_companies'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
67
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
68
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
69
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
70
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
71
+
72
+ # header parameters
73
+ header_params = opts[:header_params] || {}
74
+ # HTTP header 'Accept' (if needed)
75
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
76
+
77
+ # form parameters
78
+ form_params = opts[:form_params] || {}
79
+
80
+ # http body (model)
81
+ post_body = opts[:debug_body]
82
+
83
+ # return_type
84
+ return_type = opts[:debug_return_type] || 'BrandCompaniesResponse'
85
+
86
+ # auth_names
87
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
88
+
89
+ new_options = opts.merge(
90
+ :operation => :"DrugsApi.drugs_brand_companies",
91
+ :header_params => header_params,
92
+ :query_params => query_params,
93
+ :form_params => form_params,
94
+ :body => post_body,
95
+ :auth_names => auth_names,
96
+ :return_type => return_type
97
+ )
98
+
99
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_brand_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
+ end
103
+ return data, status_code, headers
104
+ end
105
+
106
+ # Brand revenue
107
+ # @param id [String]
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
110
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
111
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
112
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
113
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
114
+ # @return [BrandRevenueResponse]
115
+ def drugs_brand_revenue(id, opts = {})
116
+ data, _status_code, _headers = drugs_brand_revenue_with_http_info(id, opts)
117
+ data
118
+ end
119
+
120
+ # Brand revenue
121
+ # @param id [String]
122
+ # @param [Hash] opts the optional parameters
123
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
124
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
125
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
126
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
127
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
128
+ # @return [Array<(BrandRevenueResponse, Integer, Hash)>] BrandRevenueResponse data, response status code and response headers
129
+ def drugs_brand_revenue_with_http_info(id, opts = {})
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_brand_revenue ...'
132
+ end
133
+ # verify the required parameter 'id' is set
134
+ if @api_client.config.client_side_validation && id.nil?
135
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_brand_revenue"
136
+ end
137
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
138
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_brand_revenue, must be smaller than or equal to 500.'
139
+ end
140
+
141
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
142
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_brand_revenue, must be greater than or equal to 1.'
143
+ end
144
+
145
+ # resource path
146
+ local_var_path = '/api/v1/drugs/{id}/brand_revenue'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
147
+
148
+ # query parameters
149
+ query_params = opts[:query_params] || {}
150
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
151
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
152
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
153
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
154
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
155
+
156
+ # header parameters
157
+ header_params = opts[:header_params] || {}
158
+ # HTTP header 'Accept' (if needed)
159
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
160
+
161
+ # form parameters
162
+ form_params = opts[:form_params] || {}
163
+
164
+ # http body (model)
165
+ post_body = opts[:debug_body]
166
+
167
+ # return_type
168
+ return_type = opts[:debug_return_type] || 'BrandRevenueResponse'
169
+
170
+ # auth_names
171
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
172
+
173
+ new_options = opts.merge(
174
+ :operation => :"DrugsApi.drugs_brand_revenue",
175
+ :header_params => header_params,
176
+ :query_params => query_params,
177
+ :form_params => form_params,
178
+ :body => post_body,
179
+ :auth_names => auth_names,
180
+ :return_type => return_type
181
+ )
182
+
183
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_brand_revenue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ end
187
+ return data, status_code, headers
188
+ end
189
+
190
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
191
+ # @param id [String]
192
+ # @param [Hash] opts the optional parameters
193
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
194
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
195
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
196
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
197
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
198
+ # @return [CatalystsResponse]
199
+ def drugs_catalysts(id, opts = {})
200
+ data, _status_code, _headers = drugs_catalysts_with_http_info(id, opts)
201
+ data
202
+ end
203
+
204
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
205
+ # @param id [String]
206
+ # @param [Hash] opts the optional parameters
207
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
208
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
209
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
210
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
211
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
212
+ # @return [Array<(CatalystsResponse, Integer, Hash)>] CatalystsResponse data, response status code and response headers
213
+ def drugs_catalysts_with_http_info(id, opts = {})
214
+ if @api_client.config.debugging
215
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_catalysts ...'
216
+ end
217
+ # verify the required parameter 'id' is set
218
+ if @api_client.config.client_side_validation && id.nil?
219
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_catalysts"
220
+ end
221
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
222
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_catalysts, must be smaller than or equal to 500.'
223
+ end
224
+
225
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
226
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_catalysts, must be greater than or equal to 1.'
227
+ end
228
+
229
+ # resource path
230
+ local_var_path = '/api/v1/drugs/{id}/catalysts'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
231
+
232
+ # query parameters
233
+ query_params = opts[:query_params] || {}
234
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
235
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
236
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
237
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
238
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
239
+
240
+ # header parameters
241
+ header_params = opts[:header_params] || {}
242
+ # HTTP header 'Accept' (if needed)
243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
244
+
245
+ # form parameters
246
+ form_params = opts[:form_params] || {}
247
+
248
+ # http body (model)
249
+ post_body = opts[:debug_body]
250
+
251
+ # return_type
252
+ return_type = opts[:debug_return_type] || 'CatalystsResponse'
253
+
254
+ # auth_names
255
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
256
+
257
+ new_options = opts.merge(
258
+ :operation => :"DrugsApi.drugs_catalysts",
259
+ :header_params => header_params,
260
+ :query_params => query_params,
261
+ :form_params => form_params,
262
+ :body => post_body,
263
+ :auth_names => auth_names,
264
+ :return_type => return_type
265
+ )
266
+
267
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
268
+ if @api_client.config.debugging
269
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_catalysts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
+ end
271
+ return data, status_code, headers
272
+ end
273
+
274
+ # Drug approvals
275
+ # @param id [String]
276
+ # @param [Hash] opts the optional parameters
277
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
278
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
279
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
280
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
281
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
282
+ # @return [DrugApprovalsResponse]
283
+ def drugs_drug_approvals(id, opts = {})
284
+ data, _status_code, _headers = drugs_drug_approvals_with_http_info(id, opts)
285
+ data
286
+ end
287
+
288
+ # Drug approvals
289
+ # @param id [String]
290
+ # @param [Hash] opts the optional parameters
291
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
292
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
293
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
294
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
295
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
296
+ # @return [Array<(DrugApprovalsResponse, Integer, Hash)>] DrugApprovalsResponse data, response status code and response headers
297
+ def drugs_drug_approvals_with_http_info(id, opts = {})
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_approvals ...'
300
+ end
301
+ # verify the required parameter 'id' is set
302
+ if @api_client.config.client_side_validation && id.nil?
303
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_approvals"
304
+ end
305
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
306
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_approvals, must be smaller than or equal to 500.'
307
+ end
308
+
309
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
310
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_approvals, must be greater than or equal to 1.'
311
+ end
312
+
313
+ # resource path
314
+ local_var_path = '/api/v1/drugs/{id}/drug_approvals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
315
+
316
+ # query parameters
317
+ query_params = opts[:query_params] || {}
318
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
319
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
320
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
321
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
322
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
323
+
324
+ # header parameters
325
+ header_params = opts[:header_params] || {}
326
+ # HTTP header 'Accept' (if needed)
327
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
328
+
329
+ # form parameters
330
+ form_params = opts[:form_params] || {}
331
+
332
+ # http body (model)
333
+ post_body = opts[:debug_body]
334
+
335
+ # return_type
336
+ return_type = opts[:debug_return_type] || 'DrugApprovalsResponse'
337
+
338
+ # auth_names
339
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
340
+
341
+ new_options = opts.merge(
342
+ :operation => :"DrugsApi.drugs_drug_approvals",
343
+ :header_params => header_params,
344
+ :query_params => query_params,
345
+ :form_params => form_params,
346
+ :body => post_body,
347
+ :auth_names => auth_names,
348
+ :return_type => return_type
349
+ )
350
+
351
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
352
+ if @api_client.config.debugging
353
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_approvals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
+ end
355
+ return data, status_code, headers
356
+ end
357
+
358
+ # Drug ASP payment limits
359
+ # @param id [String]
360
+ # @param [Hash] opts the optional parameters
361
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
362
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
363
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
364
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
365
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
366
+ # @return [DrugAspCodesResponse]
367
+ def drugs_drug_asp_codes(id, opts = {})
368
+ data, _status_code, _headers = drugs_drug_asp_codes_with_http_info(id, opts)
369
+ data
370
+ end
371
+
372
+ # Drug ASP payment limits
373
+ # @param id [String]
374
+ # @param [Hash] opts the optional parameters
375
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
376
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
377
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
378
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
379
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
380
+ # @return [Array<(DrugAspCodesResponse, Integer, Hash)>] DrugAspCodesResponse data, response status code and response headers
381
+ def drugs_drug_asp_codes_with_http_info(id, opts = {})
382
+ if @api_client.config.debugging
383
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_asp_codes ...'
384
+ end
385
+ # verify the required parameter 'id' is set
386
+ if @api_client.config.client_side_validation && id.nil?
387
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_asp_codes"
388
+ end
389
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
390
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_asp_codes, must be smaller than or equal to 500.'
391
+ end
392
+
393
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
394
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_asp_codes, must be greater than or equal to 1.'
395
+ end
396
+
397
+ # resource path
398
+ local_var_path = '/api/v1/drugs/{id}/drug_asp_codes'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
399
+
400
+ # query parameters
401
+ query_params = opts[:query_params] || {}
402
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
403
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
404
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
405
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
406
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
407
+
408
+ # header parameters
409
+ header_params = opts[:header_params] || {}
410
+ # HTTP header 'Accept' (if needed)
411
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
412
+
413
+ # form parameters
414
+ form_params = opts[:form_params] || {}
415
+
416
+ # http body (model)
417
+ post_body = opts[:debug_body]
418
+
419
+ # return_type
420
+ return_type = opts[:debug_return_type] || 'DrugAspCodesResponse'
421
+
422
+ # auth_names
423
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
424
+
425
+ new_options = opts.merge(
426
+ :operation => :"DrugsApi.drugs_drug_asp_codes",
427
+ :header_params => header_params,
428
+ :query_params => query_params,
429
+ :form_params => form_params,
430
+ :body => post_body,
431
+ :auth_names => auth_names,
432
+ :return_type => return_type
433
+ )
434
+
435
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
436
+ if @api_client.config.debugging
437
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_asp_codes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
438
+ end
439
+ return data, status_code, headers
440
+ end
441
+
442
+ # Drug brands
443
+ # @param id [String]
444
+ # @param [Hash] opts the optional parameters
445
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
446
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
447
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
448
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
449
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
450
+ # @return [DrugBrandsResponse]
451
+ def drugs_drug_brands(id, opts = {})
452
+ data, _status_code, _headers = drugs_drug_brands_with_http_info(id, opts)
453
+ data
454
+ end
455
+
456
+ # Drug brands
457
+ # @param id [String]
458
+ # @param [Hash] opts the optional parameters
459
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
460
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
461
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
462
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
463
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
464
+ # @return [Array<(DrugBrandsResponse, Integer, Hash)>] DrugBrandsResponse data, response status code and response headers
465
+ def drugs_drug_brands_with_http_info(id, opts = {})
466
+ if @api_client.config.debugging
467
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_brands ...'
468
+ end
469
+ # verify the required parameter 'id' is set
470
+ if @api_client.config.client_side_validation && id.nil?
471
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_brands"
472
+ end
473
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
474
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_brands, must be smaller than or equal to 500.'
475
+ end
476
+
477
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
478
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_brands, must be greater than or equal to 1.'
479
+ end
480
+
481
+ # resource path
482
+ local_var_path = '/api/v1/drugs/{id}/drug_brands'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
483
+
484
+ # query parameters
485
+ query_params = opts[:query_params] || {}
486
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
487
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
488
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
489
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
490
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
491
+
492
+ # header parameters
493
+ header_params = opts[:header_params] || {}
494
+ # HTTP header 'Accept' (if needed)
495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
496
+
497
+ # form parameters
498
+ form_params = opts[:form_params] || {}
499
+
500
+ # http body (model)
501
+ post_body = opts[:debug_body]
502
+
503
+ # return_type
504
+ return_type = opts[:debug_return_type] || 'DrugBrandsResponse'
505
+
506
+ # auth_names
507
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
508
+
509
+ new_options = opts.merge(
510
+ :operation => :"DrugsApi.drugs_drug_brands",
511
+ :header_params => header_params,
512
+ :query_params => query_params,
513
+ :form_params => form_params,
514
+ :body => post_body,
515
+ :auth_names => auth_names,
516
+ :return_type => return_type
517
+ )
518
+
519
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
520
+ if @api_client.config.debugging
521
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_brands\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
522
+ end
523
+ return data, status_code, headers
524
+ end
525
+
526
+ # Drug combinations
527
+ # @param id [String]
528
+ # @param [Hash] opts the optional parameters
529
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
530
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
531
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
532
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
533
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
534
+ # @return [DrugCombinationsResponse]
535
+ def drugs_drug_combinations(id, opts = {})
536
+ data, _status_code, _headers = drugs_drug_combinations_with_http_info(id, opts)
537
+ data
538
+ end
539
+
540
+ # Drug combinations
541
+ # @param id [String]
542
+ # @param [Hash] opts the optional parameters
543
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
544
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
545
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
546
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
547
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
548
+ # @return [Array<(DrugCombinationsResponse, Integer, Hash)>] DrugCombinationsResponse data, response status code and response headers
549
+ def drugs_drug_combinations_with_http_info(id, opts = {})
550
+ if @api_client.config.debugging
551
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_combinations ...'
552
+ end
553
+ # verify the required parameter 'id' is set
554
+ if @api_client.config.client_side_validation && id.nil?
555
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_combinations"
556
+ end
557
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
558
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_combinations, must be smaller than or equal to 500.'
559
+ end
560
+
561
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
562
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_combinations, must be greater than or equal to 1.'
563
+ end
564
+
565
+ # resource path
566
+ local_var_path = '/api/v1/drugs/{id}/drug_combinations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
567
+
568
+ # query parameters
569
+ query_params = opts[:query_params] || {}
570
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
571
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
572
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
573
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
574
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
575
+
576
+ # header parameters
577
+ header_params = opts[:header_params] || {}
578
+ # HTTP header 'Accept' (if needed)
579
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
580
+
581
+ # form parameters
582
+ form_params = opts[:form_params] || {}
583
+
584
+ # http body (model)
585
+ post_body = opts[:debug_body]
586
+
587
+ # return_type
588
+ return_type = opts[:debug_return_type] || 'DrugCombinationsResponse'
589
+
590
+ # auth_names
591
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
592
+
593
+ new_options = opts.merge(
594
+ :operation => :"DrugsApi.drugs_drug_combinations",
595
+ :header_params => header_params,
596
+ :query_params => query_params,
597
+ :form_params => form_params,
598
+ :body => post_body,
599
+ :auth_names => auth_names,
600
+ :return_type => return_type
601
+ )
602
+
603
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
604
+ if @api_client.config.debugging
605
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_combinations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
606
+ end
607
+ return data, status_code, headers
608
+ end
609
+
610
+ # Drug declared patents
611
+ # @param id [String]
612
+ # @param [Hash] opts the optional parameters
613
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
614
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
615
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
616
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
617
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
618
+ # @return [DrugDeclaredPatentsResponse]
619
+ def drugs_drug_declared_patents(id, opts = {})
620
+ data, _status_code, _headers = drugs_drug_declared_patents_with_http_info(id, opts)
621
+ data
622
+ end
623
+
624
+ # Drug declared patents
625
+ # @param id [String]
626
+ # @param [Hash] opts the optional parameters
627
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
628
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
629
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
630
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
631
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
632
+ # @return [Array<(DrugDeclaredPatentsResponse, Integer, Hash)>] DrugDeclaredPatentsResponse data, response status code and response headers
633
+ def drugs_drug_declared_patents_with_http_info(id, opts = {})
634
+ if @api_client.config.debugging
635
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_declared_patents ...'
636
+ end
637
+ # verify the required parameter 'id' is set
638
+ if @api_client.config.client_side_validation && id.nil?
639
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_declared_patents"
640
+ end
641
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
642
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_declared_patents, must be smaller than or equal to 500.'
643
+ end
644
+
645
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
646
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_declared_patents, must be greater than or equal to 1.'
647
+ end
648
+
649
+ # resource path
650
+ local_var_path = '/api/v1/drugs/{id}/drug_declared_patents'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
651
+
652
+ # query parameters
653
+ query_params = opts[:query_params] || {}
654
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
655
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
656
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
657
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
658
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
659
+
660
+ # header parameters
661
+ header_params = opts[:header_params] || {}
662
+ # HTTP header 'Accept' (if needed)
663
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
664
+
665
+ # form parameters
666
+ form_params = opts[:form_params] || {}
667
+
668
+ # http body (model)
669
+ post_body = opts[:debug_body]
670
+
671
+ # return_type
672
+ return_type = opts[:debug_return_type] || 'DrugDeclaredPatentsResponse'
673
+
674
+ # auth_names
675
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
676
+
677
+ new_options = opts.merge(
678
+ :operation => :"DrugsApi.drugs_drug_declared_patents",
679
+ :header_params => header_params,
680
+ :query_params => query_params,
681
+ :form_params => form_params,
682
+ :body => post_body,
683
+ :auth_names => auth_names,
684
+ :return_type => return_type
685
+ )
686
+
687
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
688
+ if @api_client.config.debugging
689
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_declared_patents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
690
+ end
691
+ return data, status_code, headers
692
+ end
693
+
694
+ # Drug label safety
695
+ # @param id [String]
696
+ # @param [Hash] opts the optional parameters
697
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
698
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
699
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
700
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
701
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
702
+ # @return [DrugLabelSafetyResponse]
703
+ def drugs_drug_label_safety(id, opts = {})
704
+ data, _status_code, _headers = drugs_drug_label_safety_with_http_info(id, opts)
705
+ data
706
+ end
707
+
708
+ # Drug label safety
709
+ # @param id [String]
710
+ # @param [Hash] opts the optional parameters
711
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
712
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
713
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
714
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
715
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
716
+ # @return [Array<(DrugLabelSafetyResponse, Integer, Hash)>] DrugLabelSafetyResponse data, response status code and response headers
717
+ def drugs_drug_label_safety_with_http_info(id, opts = {})
718
+ if @api_client.config.debugging
719
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_label_safety ...'
720
+ end
721
+ # verify the required parameter 'id' is set
722
+ if @api_client.config.client_side_validation && id.nil?
723
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_label_safety"
724
+ end
725
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
726
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_label_safety, must be smaller than or equal to 500.'
727
+ end
728
+
729
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
730
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_label_safety, must be greater than or equal to 1.'
731
+ end
732
+
733
+ # resource path
734
+ local_var_path = '/api/v1/drugs/{id}/drug_label_safety'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
735
+
736
+ # query parameters
737
+ query_params = opts[:query_params] || {}
738
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
739
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
740
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
741
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
742
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
743
+
744
+ # header parameters
745
+ header_params = opts[:header_params] || {}
746
+ # HTTP header 'Accept' (if needed)
747
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
748
+
749
+ # form parameters
750
+ form_params = opts[:form_params] || {}
751
+
752
+ # http body (model)
753
+ post_body = opts[:debug_body]
754
+
755
+ # return_type
756
+ return_type = opts[:debug_return_type] || 'DrugLabelSafetyResponse'
757
+
758
+ # auth_names
759
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
760
+
761
+ new_options = opts.merge(
762
+ :operation => :"DrugsApi.drugs_drug_label_safety",
763
+ :header_params => header_params,
764
+ :query_params => query_params,
765
+ :form_params => form_params,
766
+ :body => post_body,
767
+ :auth_names => auth_names,
768
+ :return_type => return_type
769
+ )
770
+
771
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
772
+ if @api_client.config.debugging
773
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_label_safety\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
774
+ end
775
+ return data, status_code, headers
776
+ end
777
+
778
+ # Drug Medicare spend
779
+ # @param id [String]
780
+ # @param [Hash] opts the optional parameters
781
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
782
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
783
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
784
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
785
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
786
+ # @return [DrugMedicareSpendResponse]
787
+ def drugs_drug_medicare_spend(id, opts = {})
788
+ data, _status_code, _headers = drugs_drug_medicare_spend_with_http_info(id, opts)
789
+ data
790
+ end
791
+
792
+ # Drug Medicare spend
793
+ # @param id [String]
794
+ # @param [Hash] opts the optional parameters
795
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
796
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
797
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
798
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
799
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
800
+ # @return [Array<(DrugMedicareSpendResponse, Integer, Hash)>] DrugMedicareSpendResponse data, response status code and response headers
801
+ def drugs_drug_medicare_spend_with_http_info(id, opts = {})
802
+ if @api_client.config.debugging
803
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_medicare_spend ...'
804
+ end
805
+ # verify the required parameter 'id' is set
806
+ if @api_client.config.client_side_validation && id.nil?
807
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_medicare_spend"
808
+ end
809
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
810
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_medicare_spend, must be smaller than or equal to 500.'
811
+ end
812
+
813
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
814
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_medicare_spend, must be greater than or equal to 1.'
815
+ end
816
+
817
+ # resource path
818
+ local_var_path = '/api/v1/drugs/{id}/drug_medicare_spend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
819
+
820
+ # query parameters
821
+ query_params = opts[:query_params] || {}
822
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
823
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
824
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
825
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
826
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
827
+
828
+ # header parameters
829
+ header_params = opts[:header_params] || {}
830
+ # HTTP header 'Accept' (if needed)
831
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
832
+
833
+ # form parameters
834
+ form_params = opts[:form_params] || {}
835
+
836
+ # http body (model)
837
+ post_body = opts[:debug_body]
838
+
839
+ # return_type
840
+ return_type = opts[:debug_return_type] || 'DrugMedicareSpendResponse'
841
+
842
+ # auth_names
843
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
844
+
845
+ new_options = opts.merge(
846
+ :operation => :"DrugsApi.drugs_drug_medicare_spend",
847
+ :header_params => header_params,
848
+ :query_params => query_params,
849
+ :form_params => form_params,
850
+ :body => post_body,
851
+ :auth_names => auth_names,
852
+ :return_type => return_type
853
+ )
854
+
855
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
856
+ if @api_client.config.debugging
857
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_medicare_spend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
858
+ end
859
+ return data, status_code, headers
860
+ end
861
+
862
+ # Patent-cliff exposure
863
+ # @param id [String]
864
+ # @param [Hash] opts the optional parameters
865
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
866
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
867
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
868
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
869
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
870
+ # @return [DrugPatentCliffResponse]
871
+ def drugs_drug_patent_cliff(id, opts = {})
872
+ data, _status_code, _headers = drugs_drug_patent_cliff_with_http_info(id, opts)
873
+ data
874
+ end
875
+
876
+ # Patent-cliff exposure
877
+ # @param id [String]
878
+ # @param [Hash] opts the optional parameters
879
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
880
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
881
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
882
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
883
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
884
+ # @return [Array<(DrugPatentCliffResponse, Integer, Hash)>] DrugPatentCliffResponse data, response status code and response headers
885
+ def drugs_drug_patent_cliff_with_http_info(id, opts = {})
886
+ if @api_client.config.debugging
887
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_patent_cliff ...'
888
+ end
889
+ # verify the required parameter 'id' is set
890
+ if @api_client.config.client_side_validation && id.nil?
891
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_patent_cliff"
892
+ end
893
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
894
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_patent_cliff, must be smaller than or equal to 500.'
895
+ end
896
+
897
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
898
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_patent_cliff, must be greater than or equal to 1.'
899
+ end
900
+
901
+ # resource path
902
+ local_var_path = '/api/v1/drugs/{id}/drug_patent_cliff'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
903
+
904
+ # query parameters
905
+ query_params = opts[:query_params] || {}
906
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
907
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
908
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
909
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
910
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
911
+
912
+ # header parameters
913
+ header_params = opts[:header_params] || {}
914
+ # HTTP header 'Accept' (if needed)
915
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
916
+
917
+ # form parameters
918
+ form_params = opts[:form_params] || {}
919
+
920
+ # http body (model)
921
+ post_body = opts[:debug_body]
922
+
923
+ # return_type
924
+ return_type = opts[:debug_return_type] || 'DrugPatentCliffResponse'
925
+
926
+ # auth_names
927
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
928
+
929
+ new_options = opts.merge(
930
+ :operation => :"DrugsApi.drugs_drug_patent_cliff",
931
+ :header_params => header_params,
932
+ :query_params => query_params,
933
+ :form_params => form_params,
934
+ :body => post_body,
935
+ :auth_names => auth_names,
936
+ :return_type => return_type
937
+ )
938
+
939
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_patent_cliff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+
946
+ # Drug patent mentions
947
+ # @param id [String]
948
+ # @param [Hash] opts the optional parameters
949
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
950
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
951
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
952
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
953
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
954
+ # @return [DrugPatentMentionsResponse]
955
+ def drugs_drug_patent_mentions(id, opts = {})
956
+ data, _status_code, _headers = drugs_drug_patent_mentions_with_http_info(id, opts)
957
+ data
958
+ end
959
+
960
+ # Drug patent mentions
961
+ # @param id [String]
962
+ # @param [Hash] opts the optional parameters
963
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
964
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
965
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
966
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
967
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
968
+ # @return [Array<(DrugPatentMentionsResponse, Integer, Hash)>] DrugPatentMentionsResponse data, response status code and response headers
969
+ def drugs_drug_patent_mentions_with_http_info(id, opts = {})
970
+ if @api_client.config.debugging
971
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_patent_mentions ...'
972
+ end
973
+ # verify the required parameter 'id' is set
974
+ if @api_client.config.client_side_validation && id.nil?
975
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_patent_mentions"
976
+ end
977
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
978
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_patent_mentions, must be smaller than or equal to 500.'
979
+ end
980
+
981
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
982
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_patent_mentions, must be greater than or equal to 1.'
983
+ end
984
+
985
+ # resource path
986
+ local_var_path = '/api/v1/drugs/{id}/drug_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
987
+
988
+ # query parameters
989
+ query_params = opts[:query_params] || {}
990
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
991
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
992
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
993
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
994
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
995
+
996
+ # header parameters
997
+ header_params = opts[:header_params] || {}
998
+ # HTTP header 'Accept' (if needed)
999
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1000
+
1001
+ # form parameters
1002
+ form_params = opts[:form_params] || {}
1003
+
1004
+ # http body (model)
1005
+ post_body = opts[:debug_body]
1006
+
1007
+ # return_type
1008
+ return_type = opts[:debug_return_type] || 'DrugPatentMentionsResponse'
1009
+
1010
+ # auth_names
1011
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1012
+
1013
+ new_options = opts.merge(
1014
+ :operation => :"DrugsApi.drugs_drug_patent_mentions",
1015
+ :header_params => header_params,
1016
+ :query_params => query_params,
1017
+ :form_params => form_params,
1018
+ :body => post_body,
1019
+ :auth_names => auth_names,
1020
+ :return_type => return_type
1021
+ )
1022
+
1023
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1024
+ if @api_client.config.debugging
1025
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1026
+ end
1027
+ return data, status_code, headers
1028
+ end
1029
+
1030
+ # Drug patent owners
1031
+ # @param id [String]
1032
+ # @param [Hash] opts the optional parameters
1033
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1034
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1035
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1036
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1037
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1038
+ # @return [DrugPatentOwnersResponse]
1039
+ def drugs_drug_patent_owners(id, opts = {})
1040
+ data, _status_code, _headers = drugs_drug_patent_owners_with_http_info(id, opts)
1041
+ data
1042
+ end
1043
+
1044
+ # Drug patent owners
1045
+ # @param id [String]
1046
+ # @param [Hash] opts the optional parameters
1047
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1048
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1049
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1050
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1051
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1052
+ # @return [Array<(DrugPatentOwnersResponse, Integer, Hash)>] DrugPatentOwnersResponse data, response status code and response headers
1053
+ def drugs_drug_patent_owners_with_http_info(id, opts = {})
1054
+ if @api_client.config.debugging
1055
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_patent_owners ...'
1056
+ end
1057
+ # verify the required parameter 'id' is set
1058
+ if @api_client.config.client_side_validation && id.nil?
1059
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_patent_owners"
1060
+ end
1061
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1062
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_patent_owners, must be smaller than or equal to 500.'
1063
+ end
1064
+
1065
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1066
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_patent_owners, must be greater than or equal to 1.'
1067
+ end
1068
+
1069
+ # resource path
1070
+ local_var_path = '/api/v1/drugs/{id}/drug_patent_owners'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1071
+
1072
+ # query parameters
1073
+ query_params = opts[:query_params] || {}
1074
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1075
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1076
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1077
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1078
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1079
+
1080
+ # header parameters
1081
+ header_params = opts[:header_params] || {}
1082
+ # HTTP header 'Accept' (if needed)
1083
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1084
+
1085
+ # form parameters
1086
+ form_params = opts[:form_params] || {}
1087
+
1088
+ # http body (model)
1089
+ post_body = opts[:debug_body]
1090
+
1091
+ # return_type
1092
+ return_type = opts[:debug_return_type] || 'DrugPatentOwnersResponse'
1093
+
1094
+ # auth_names
1095
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1096
+
1097
+ new_options = opts.merge(
1098
+ :operation => :"DrugsApi.drugs_drug_patent_owners",
1099
+ :header_params => header_params,
1100
+ :query_params => query_params,
1101
+ :form_params => form_params,
1102
+ :body => post_body,
1103
+ :auth_names => auth_names,
1104
+ :return_type => return_type
1105
+ )
1106
+
1107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1108
+ if @api_client.config.debugging
1109
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_patent_owners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1110
+ end
1111
+ return data, status_code, headers
1112
+ end
1113
+
1114
+ # Drug pricing (NADAC)
1115
+ # @param id [String]
1116
+ # @param [Hash] opts the optional parameters
1117
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1118
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1119
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1120
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1121
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1122
+ # @return [DrugPricingResponse]
1123
+ def drugs_drug_pricing(id, opts = {})
1124
+ data, _status_code, _headers = drugs_drug_pricing_with_http_info(id, opts)
1125
+ data
1126
+ end
1127
+
1128
+ # Drug pricing (NADAC)
1129
+ # @param id [String]
1130
+ # @param [Hash] opts the optional parameters
1131
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1132
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1133
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1134
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1135
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1136
+ # @return [Array<(DrugPricingResponse, Integer, Hash)>] DrugPricingResponse data, response status code and response headers
1137
+ def drugs_drug_pricing_with_http_info(id, opts = {})
1138
+ if @api_client.config.debugging
1139
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_pricing ...'
1140
+ end
1141
+ # verify the required parameter 'id' is set
1142
+ if @api_client.config.client_side_validation && id.nil?
1143
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_pricing"
1144
+ end
1145
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1146
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_pricing, must be smaller than or equal to 500.'
1147
+ end
1148
+
1149
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1150
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_pricing, must be greater than or equal to 1.'
1151
+ end
1152
+
1153
+ # resource path
1154
+ local_var_path = '/api/v1/drugs/{id}/drug_pricing'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1155
+
1156
+ # query parameters
1157
+ query_params = opts[:query_params] || {}
1158
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1159
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1160
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1161
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1162
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1163
+
1164
+ # header parameters
1165
+ header_params = opts[:header_params] || {}
1166
+ # HTTP header 'Accept' (if needed)
1167
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1168
+
1169
+ # form parameters
1170
+ form_params = opts[:form_params] || {}
1171
+
1172
+ # http body (model)
1173
+ post_body = opts[:debug_body]
1174
+
1175
+ # return_type
1176
+ return_type = opts[:debug_return_type] || 'DrugPricingResponse'
1177
+
1178
+ # auth_names
1179
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1180
+
1181
+ new_options = opts.merge(
1182
+ :operation => :"DrugsApi.drugs_drug_pricing",
1183
+ :header_params => header_params,
1184
+ :query_params => query_params,
1185
+ :form_params => form_params,
1186
+ :body => post_body,
1187
+ :auth_names => auth_names,
1188
+ :return_type => return_type
1189
+ )
1190
+
1191
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1192
+ if @api_client.config.debugging
1193
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1194
+ end
1195
+ return data, status_code, headers
1196
+ end
1197
+
1198
+ # Drug recalls
1199
+ # @param id [String]
1200
+ # @param [Hash] opts the optional parameters
1201
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1202
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1203
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1204
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1205
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1206
+ # @return [DrugRecallsResponse]
1207
+ def drugs_drug_recalls(id, opts = {})
1208
+ data, _status_code, _headers = drugs_drug_recalls_with_http_info(id, opts)
1209
+ data
1210
+ end
1211
+
1212
+ # Drug recalls
1213
+ # @param id [String]
1214
+ # @param [Hash] opts the optional parameters
1215
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1216
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1217
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1218
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1219
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1220
+ # @return [Array<(DrugRecallsResponse, Integer, Hash)>] DrugRecallsResponse data, response status code and response headers
1221
+ def drugs_drug_recalls_with_http_info(id, opts = {})
1222
+ if @api_client.config.debugging
1223
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_recalls ...'
1224
+ end
1225
+ # verify the required parameter 'id' is set
1226
+ if @api_client.config.client_side_validation && id.nil?
1227
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_recalls"
1228
+ end
1229
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1230
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_recalls, must be smaller than or equal to 500.'
1231
+ end
1232
+
1233
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1234
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_recalls, must be greater than or equal to 1.'
1235
+ end
1236
+
1237
+ # resource path
1238
+ local_var_path = '/api/v1/drugs/{id}/drug_recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1239
+
1240
+ # query parameters
1241
+ query_params = opts[:query_params] || {}
1242
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1243
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1244
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1245
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1246
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1247
+
1248
+ # header parameters
1249
+ header_params = opts[:header_params] || {}
1250
+ # HTTP header 'Accept' (if needed)
1251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1252
+
1253
+ # form parameters
1254
+ form_params = opts[:form_params] || {}
1255
+
1256
+ # http body (model)
1257
+ post_body = opts[:debug_body]
1258
+
1259
+ # return_type
1260
+ return_type = opts[:debug_return_type] || 'DrugRecallsResponse'
1261
+
1262
+ # auth_names
1263
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1264
+
1265
+ new_options = opts.merge(
1266
+ :operation => :"DrugsApi.drugs_drug_recalls",
1267
+ :header_params => header_params,
1268
+ :query_params => query_params,
1269
+ :form_params => form_params,
1270
+ :body => post_body,
1271
+ :auth_names => auth_names,
1272
+ :return_type => return_type
1273
+ )
1274
+
1275
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1276
+ if @api_client.config.debugging
1277
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1278
+ end
1279
+ return data, status_code, headers
1280
+ end
1281
+
1282
+ # Drug regulatory status
1283
+ # @param id [String]
1284
+ # @param [Hash] opts the optional parameters
1285
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1286
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1287
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1288
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1289
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1290
+ # @return [DrugRegulatoryResponse]
1291
+ def drugs_drug_regulatory(id, opts = {})
1292
+ data, _status_code, _headers = drugs_drug_regulatory_with_http_info(id, opts)
1293
+ data
1294
+ end
1295
+
1296
+ # Drug regulatory status
1297
+ # @param id [String]
1298
+ # @param [Hash] opts the optional parameters
1299
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1300
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1301
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1302
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1303
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1304
+ # @return [Array<(DrugRegulatoryResponse, Integer, Hash)>] DrugRegulatoryResponse data, response status code and response headers
1305
+ def drugs_drug_regulatory_with_http_info(id, opts = {})
1306
+ if @api_client.config.debugging
1307
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_regulatory ...'
1308
+ end
1309
+ # verify the required parameter 'id' is set
1310
+ if @api_client.config.client_side_validation && id.nil?
1311
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_regulatory"
1312
+ end
1313
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1314
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_regulatory, must be smaller than or equal to 500.'
1315
+ end
1316
+
1317
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1318
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_regulatory, must be greater than or equal to 1.'
1319
+ end
1320
+
1321
+ # resource path
1322
+ local_var_path = '/api/v1/drugs/{id}/drug_regulatory'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1323
+
1324
+ # query parameters
1325
+ query_params = opts[:query_params] || {}
1326
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1327
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1328
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1329
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1330
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1331
+
1332
+ # header parameters
1333
+ header_params = opts[:header_params] || {}
1334
+ # HTTP header 'Accept' (if needed)
1335
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1336
+
1337
+ # form parameters
1338
+ form_params = opts[:form_params] || {}
1339
+
1340
+ # http body (model)
1341
+ post_body = opts[:debug_body]
1342
+
1343
+ # return_type
1344
+ return_type = opts[:debug_return_type] || 'DrugRegulatoryResponse'
1345
+
1346
+ # auth_names
1347
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1348
+
1349
+ new_options = opts.merge(
1350
+ :operation => :"DrugsApi.drugs_drug_regulatory",
1351
+ :header_params => header_params,
1352
+ :query_params => query_params,
1353
+ :form_params => form_params,
1354
+ :body => post_body,
1355
+ :auth_names => auth_names,
1356
+ :return_type => return_type
1357
+ )
1358
+
1359
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1360
+ if @api_client.config.debugging
1361
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_regulatory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1362
+ end
1363
+ return data, status_code, headers
1364
+ end
1365
+
1366
+ # Drug sites
1367
+ # @param id [String]
1368
+ # @param [Hash] opts the optional parameters
1369
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1370
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1371
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1372
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1373
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1374
+ # @return [DrugSitesResponse]
1375
+ def drugs_drug_sites(id, opts = {})
1376
+ data, _status_code, _headers = drugs_drug_sites_with_http_info(id, opts)
1377
+ data
1378
+ end
1379
+
1380
+ # Drug sites
1381
+ # @param id [String]
1382
+ # @param [Hash] opts the optional parameters
1383
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1384
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1385
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1386
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1387
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1388
+ # @return [Array<(DrugSitesResponse, Integer, Hash)>] DrugSitesResponse data, response status code and response headers
1389
+ def drugs_drug_sites_with_http_info(id, opts = {})
1390
+ if @api_client.config.debugging
1391
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_sites ...'
1392
+ end
1393
+ # verify the required parameter 'id' is set
1394
+ if @api_client.config.client_side_validation && id.nil?
1395
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_sites"
1396
+ end
1397
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1398
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_sites, must be smaller than or equal to 500.'
1399
+ end
1400
+
1401
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1402
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_sites, must be greater than or equal to 1.'
1403
+ end
1404
+
1405
+ # resource path
1406
+ local_var_path = '/api/v1/drugs/{id}/drug_sites'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1407
+
1408
+ # query parameters
1409
+ query_params = opts[:query_params] || {}
1410
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1411
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1412
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1413
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1414
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1415
+
1416
+ # header parameters
1417
+ header_params = opts[:header_params] || {}
1418
+ # HTTP header 'Accept' (if needed)
1419
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1420
+
1421
+ # form parameters
1422
+ form_params = opts[:form_params] || {}
1423
+
1424
+ # http body (model)
1425
+ post_body = opts[:debug_body]
1426
+
1427
+ # return_type
1428
+ return_type = opts[:debug_return_type] || 'DrugSitesResponse'
1429
+
1430
+ # auth_names
1431
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1432
+
1433
+ new_options = opts.merge(
1434
+ :operation => :"DrugsApi.drugs_drug_sites",
1435
+ :header_params => header_params,
1436
+ :query_params => query_params,
1437
+ :form_params => form_params,
1438
+ :body => post_body,
1439
+ :auth_names => auth_names,
1440
+ :return_type => return_type
1441
+ )
1442
+
1443
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1444
+ if @api_client.config.debugging
1445
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1446
+ end
1447
+ return data, status_code, headers
1448
+ end
1449
+
1450
+ # Drug targets
1451
+ # @param id [String]
1452
+ # @param [Hash] opts the optional parameters
1453
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1454
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1455
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1456
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1457
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1458
+ # @return [DrugTargetsResponse]
1459
+ def drugs_drug_targets(id, opts = {})
1460
+ data, _status_code, _headers = drugs_drug_targets_with_http_info(id, opts)
1461
+ data
1462
+ end
1463
+
1464
+ # Drug targets
1465
+ # @param id [String]
1466
+ # @param [Hash] opts the optional parameters
1467
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1468
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1469
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1470
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1471
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1472
+ # @return [Array<(DrugTargetsResponse, Integer, Hash)>] DrugTargetsResponse data, response status code and response headers
1473
+ def drugs_drug_targets_with_http_info(id, opts = {})
1474
+ if @api_client.config.debugging
1475
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_targets ...'
1476
+ end
1477
+ # verify the required parameter 'id' is set
1478
+ if @api_client.config.client_side_validation && id.nil?
1479
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_targets"
1480
+ end
1481
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1482
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_targets, must be smaller than or equal to 500.'
1483
+ end
1484
+
1485
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1486
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_targets, must be greater than or equal to 1.'
1487
+ end
1488
+
1489
+ # resource path
1490
+ local_var_path = '/api/v1/drugs/{id}/drug_targets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1491
+
1492
+ # query parameters
1493
+ query_params = opts[:query_params] || {}
1494
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1495
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1496
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1497
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1498
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1499
+
1500
+ # header parameters
1501
+ header_params = opts[:header_params] || {}
1502
+ # HTTP header 'Accept' (if needed)
1503
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1504
+
1505
+ # form parameters
1506
+ form_params = opts[:form_params] || {}
1507
+
1508
+ # http body (model)
1509
+ post_body = opts[:debug_body]
1510
+
1511
+ # return_type
1512
+ return_type = opts[:debug_return_type] || 'DrugTargetsResponse'
1513
+
1514
+ # auth_names
1515
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1516
+
1517
+ new_options = opts.merge(
1518
+ :operation => :"DrugsApi.drugs_drug_targets",
1519
+ :header_params => header_params,
1520
+ :query_params => query_params,
1521
+ :form_params => form_params,
1522
+ :body => post_body,
1523
+ :auth_names => auth_names,
1524
+ :return_type => return_type
1525
+ )
1526
+
1527
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1528
+ if @api_client.config.debugging
1529
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1530
+ end
1531
+ return data, status_code, headers
1532
+ end
1533
+
1534
+ # Drug trial conditions
1535
+ # @param id [String]
1536
+ # @param [Hash] opts the optional parameters
1537
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1538
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1539
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1540
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1541
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1542
+ # @return [DrugTrialConditionsResponse]
1543
+ def drugs_drug_trial_conditions(id, opts = {})
1544
+ data, _status_code, _headers = drugs_drug_trial_conditions_with_http_info(id, opts)
1545
+ data
1546
+ end
1547
+
1548
+ # Drug trial conditions
1549
+ # @param id [String]
1550
+ # @param [Hash] opts the optional parameters
1551
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1552
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1553
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1554
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1555
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1556
+ # @return [Array<(DrugTrialConditionsResponse, Integer, Hash)>] DrugTrialConditionsResponse data, response status code and response headers
1557
+ def drugs_drug_trial_conditions_with_http_info(id, opts = {})
1558
+ if @api_client.config.debugging
1559
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_trial_conditions ...'
1560
+ end
1561
+ # verify the required parameter 'id' is set
1562
+ if @api_client.config.client_side_validation && id.nil?
1563
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_trial_conditions"
1564
+ end
1565
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1566
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_trial_conditions, must be smaller than or equal to 500.'
1567
+ end
1568
+
1569
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1570
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_trial_conditions, must be greater than or equal to 1.'
1571
+ end
1572
+
1573
+ # resource path
1574
+ local_var_path = '/api/v1/drugs/{id}/drug_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1575
+
1576
+ # query parameters
1577
+ query_params = opts[:query_params] || {}
1578
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1579
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1580
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1581
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1582
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1583
+
1584
+ # header parameters
1585
+ header_params = opts[:header_params] || {}
1586
+ # HTTP header 'Accept' (if needed)
1587
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1588
+
1589
+ # form parameters
1590
+ form_params = opts[:form_params] || {}
1591
+
1592
+ # http body (model)
1593
+ post_body = opts[:debug_body]
1594
+
1595
+ # return_type
1596
+ return_type = opts[:debug_return_type] || 'DrugTrialConditionsResponse'
1597
+
1598
+ # auth_names
1599
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1600
+
1601
+ new_options = opts.merge(
1602
+ :operation => :"DrugsApi.drugs_drug_trial_conditions",
1603
+ :header_params => header_params,
1604
+ :query_params => query_params,
1605
+ :form_params => form_params,
1606
+ :body => post_body,
1607
+ :auth_names => auth_names,
1608
+ :return_type => return_type
1609
+ )
1610
+
1611
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1612
+ if @api_client.config.debugging
1613
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1614
+ end
1615
+ return data, status_code, headers
1616
+ end
1617
+
1618
+ # Drug trials
1619
+ # @param id [String]
1620
+ # @param [Hash] opts the optional parameters
1621
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1622
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1623
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1624
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1625
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1626
+ # @return [DrugTrialsResponse]
1627
+ def drugs_drug_trials(id, opts = {})
1628
+ data, _status_code, _headers = drugs_drug_trials_with_http_info(id, opts)
1629
+ data
1630
+ end
1631
+
1632
+ # Drug trials
1633
+ # @param id [String]
1634
+ # @param [Hash] opts the optional parameters
1635
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1636
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1637
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1638
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1639
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1640
+ # @return [Array<(DrugTrialsResponse, Integer, Hash)>] DrugTrialsResponse data, response status code and response headers
1641
+ def drugs_drug_trials_with_http_info(id, opts = {})
1642
+ if @api_client.config.debugging
1643
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_trials ...'
1644
+ end
1645
+ # verify the required parameter 'id' is set
1646
+ if @api_client.config.client_side_validation && id.nil?
1647
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_trials"
1648
+ end
1649
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1650
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_trials, must be smaller than or equal to 500.'
1651
+ end
1652
+
1653
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1654
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_trials, must be greater than or equal to 1.'
1655
+ end
1656
+
1657
+ # resource path
1658
+ local_var_path = '/api/v1/drugs/{id}/drug_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1659
+
1660
+ # query parameters
1661
+ query_params = opts[:query_params] || {}
1662
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1663
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1664
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1665
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1666
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1667
+
1668
+ # header parameters
1669
+ header_params = opts[:header_params] || {}
1670
+ # HTTP header 'Accept' (if needed)
1671
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1672
+
1673
+ # form parameters
1674
+ form_params = opts[:form_params] || {}
1675
+
1676
+ # http body (model)
1677
+ post_body = opts[:debug_body]
1678
+
1679
+ # return_type
1680
+ return_type = opts[:debug_return_type] || 'DrugTrialsResponse'
1681
+
1682
+ # auth_names
1683
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1684
+
1685
+ new_options = opts.merge(
1686
+ :operation => :"DrugsApi.drugs_drug_trials",
1687
+ :header_params => header_params,
1688
+ :query_params => query_params,
1689
+ :form_params => form_params,
1690
+ :body => post_body,
1691
+ :auth_names => auth_names,
1692
+ :return_type => return_type
1693
+ )
1694
+
1695
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1696
+ if @api_client.config.debugging
1697
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1698
+ end
1699
+ return data, status_code, headers
1700
+ end
1701
+
1702
+ # Drug variants
1703
+ # @param id [String]
1704
+ # @param [Hash] opts the optional parameters
1705
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1706
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1707
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1708
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1709
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1710
+ # @return [DrugVariantsResponse]
1711
+ def drugs_drug_variants(id, opts = {})
1712
+ data, _status_code, _headers = drugs_drug_variants_with_http_info(id, opts)
1713
+ data
1714
+ end
1715
+
1716
+ # Drug variants
1717
+ # @param id [String]
1718
+ # @param [Hash] opts the optional parameters
1719
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1720
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1721
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1722
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1723
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1724
+ # @return [Array<(DrugVariantsResponse, Integer, Hash)>] DrugVariantsResponse data, response status code and response headers
1725
+ def drugs_drug_variants_with_http_info(id, opts = {})
1726
+ if @api_client.config.debugging
1727
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_drug_variants ...'
1728
+ end
1729
+ # verify the required parameter 'id' is set
1730
+ if @api_client.config.client_side_validation && id.nil?
1731
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_drug_variants"
1732
+ end
1733
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1734
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_variants, must be smaller than or equal to 500.'
1735
+ end
1736
+
1737
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1738
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_drug_variants, must be greater than or equal to 1.'
1739
+ end
1740
+
1741
+ # resource path
1742
+ local_var_path = '/api/v1/drugs/{id}/drug_variants'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1743
+
1744
+ # query parameters
1745
+ query_params = opts[:query_params] || {}
1746
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1747
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1748
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1749
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1750
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1751
+
1752
+ # header parameters
1753
+ header_params = opts[:header_params] || {}
1754
+ # HTTP header 'Accept' (if needed)
1755
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1756
+
1757
+ # form parameters
1758
+ form_params = opts[:form_params] || {}
1759
+
1760
+ # http body (model)
1761
+ post_body = opts[:debug_body]
1762
+
1763
+ # return_type
1764
+ return_type = opts[:debug_return_type] || 'DrugVariantsResponse'
1765
+
1766
+ # auth_names
1767
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1768
+
1769
+ new_options = opts.merge(
1770
+ :operation => :"DrugsApi.drugs_drug_variants",
1771
+ :header_params => header_params,
1772
+ :query_params => query_params,
1773
+ :form_params => form_params,
1774
+ :body => post_body,
1775
+ :auth_names => auth_names,
1776
+ :return_type => return_type
1777
+ )
1778
+
1779
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1780
+ if @api_client.config.debugging
1781
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_drug_variants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1782
+ end
1783
+ return data, status_code, headers
1784
+ end
1785
+
1786
+ # One drug
1787
+ # @param id [String]
1788
+ # @param [Hash] opts the optional parameters
1789
+ # @return [DrugsRecord]
1790
+ def drugs_get(id, opts = {})
1791
+ data, _status_code, _headers = drugs_get_with_http_info(id, opts)
1792
+ data
1793
+ end
1794
+
1795
+ # One drug
1796
+ # @param id [String]
1797
+ # @param [Hash] opts the optional parameters
1798
+ # @return [Array<(DrugsRecord, Integer, Hash)>] DrugsRecord data, response status code and response headers
1799
+ def drugs_get_with_http_info(id, opts = {})
1800
+ if @api_client.config.debugging
1801
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_get ...'
1802
+ end
1803
+ # verify the required parameter 'id' is set
1804
+ if @api_client.config.client_side_validation && id.nil?
1805
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_get"
1806
+ end
1807
+ # resource path
1808
+ local_var_path = '/api/v1/drugs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1809
+
1810
+ # query parameters
1811
+ query_params = opts[:query_params] || {}
1812
+
1813
+ # header parameters
1814
+ header_params = opts[:header_params] || {}
1815
+ # HTTP header 'Accept' (if needed)
1816
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1817
+
1818
+ # form parameters
1819
+ form_params = opts[:form_params] || {}
1820
+
1821
+ # http body (model)
1822
+ post_body = opts[:debug_body]
1823
+
1824
+ # return_type
1825
+ return_type = opts[:debug_return_type] || 'DrugsRecord'
1826
+
1827
+ # auth_names
1828
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1829
+
1830
+ new_options = opts.merge(
1831
+ :operation => :"DrugsApi.drugs_get",
1832
+ :header_params => header_params,
1833
+ :query_params => query_params,
1834
+ :form_params => form_params,
1835
+ :body => post_body,
1836
+ :auth_names => auth_names,
1837
+ :return_type => return_type
1838
+ )
1839
+
1840
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1841
+ if @api_client.config.debugging
1842
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1843
+ end
1844
+ return data, status_code, headers
1845
+ end
1846
+
1847
+ # List drugs
1848
+ # @param [Hash] opts the optional parameters
1849
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1850
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1851
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1852
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1853
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1854
+ # @return [DrugsResponse]
1855
+ def drugs_list(opts = {})
1856
+ data, _status_code, _headers = drugs_list_with_http_info(opts)
1857
+ data
1858
+ end
1859
+
1860
+ # List drugs
1861
+ # @param [Hash] opts the optional parameters
1862
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1863
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1864
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1865
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1866
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1867
+ # @return [Array<(DrugsResponse, Integer, Hash)>] DrugsResponse data, response status code and response headers
1868
+ def drugs_list_with_http_info(opts = {})
1869
+ if @api_client.config.debugging
1870
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_list ...'
1871
+ end
1872
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1873
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_list, must be smaller than or equal to 500.'
1874
+ end
1875
+
1876
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1877
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_list, must be greater than or equal to 1.'
1878
+ end
1879
+
1880
+ # resource path
1881
+ local_var_path = '/api/v1/drugs'
1882
+
1883
+ # query parameters
1884
+ query_params = opts[:query_params] || {}
1885
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1886
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1887
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1888
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1889
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1890
+
1891
+ # header parameters
1892
+ header_params = opts[:header_params] || {}
1893
+ # HTTP header 'Accept' (if needed)
1894
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1895
+
1896
+ # form parameters
1897
+ form_params = opts[:form_params] || {}
1898
+
1899
+ # http body (model)
1900
+ post_body = opts[:debug_body]
1901
+
1902
+ # return_type
1903
+ return_type = opts[:debug_return_type] || 'DrugsResponse'
1904
+
1905
+ # auth_names
1906
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1907
+
1908
+ new_options = opts.merge(
1909
+ :operation => :"DrugsApi.drugs_list",
1910
+ :header_params => header_params,
1911
+ :query_params => query_params,
1912
+ :form_params => form_params,
1913
+ :body => post_body,
1914
+ :auth_names => auth_names,
1915
+ :return_type => return_type
1916
+ )
1917
+
1918
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1919
+ if @api_client.config.debugging
1920
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1921
+ end
1922
+ return data, status_code, headers
1923
+ end
1924
+
1925
+ # FDA decision dates (PDUFA) and catalysts
1926
+ # @param id [String]
1927
+ # @param [Hash] opts the optional parameters
1928
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1929
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1930
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1931
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1932
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1933
+ # @return [PdufaDatesResponse]
1934
+ def drugs_pdufa_dates(id, opts = {})
1935
+ data, _status_code, _headers = drugs_pdufa_dates_with_http_info(id, opts)
1936
+ data
1937
+ end
1938
+
1939
+ # FDA decision dates (PDUFA) and catalysts
1940
+ # @param id [String]
1941
+ # @param [Hash] opts the optional parameters
1942
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1943
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1944
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1945
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1946
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1947
+ # @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
1948
+ def drugs_pdufa_dates_with_http_info(id, opts = {})
1949
+ if @api_client.config.debugging
1950
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_pdufa_dates ...'
1951
+ end
1952
+ # verify the required parameter 'id' is set
1953
+ if @api_client.config.client_side_validation && id.nil?
1954
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_pdufa_dates"
1955
+ end
1956
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1957
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_pdufa_dates, must be smaller than or equal to 500.'
1958
+ end
1959
+
1960
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1961
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_pdufa_dates, must be greater than or equal to 1.'
1962
+ end
1963
+
1964
+ # resource path
1965
+ local_var_path = '/api/v1/drugs/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1966
+
1967
+ # query parameters
1968
+ query_params = opts[:query_params] || {}
1969
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1970
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1971
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1972
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1973
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1974
+
1975
+ # header parameters
1976
+ header_params = opts[:header_params] || {}
1977
+ # HTTP header 'Accept' (if needed)
1978
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1979
+
1980
+ # form parameters
1981
+ form_params = opts[:form_params] || {}
1982
+
1983
+ # http body (model)
1984
+ post_body = opts[:debug_body]
1985
+
1986
+ # return_type
1987
+ return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
1988
+
1989
+ # auth_names
1990
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1991
+
1992
+ new_options = opts.merge(
1993
+ :operation => :"DrugsApi.drugs_pdufa_dates",
1994
+ :header_params => header_params,
1995
+ :query_params => query_params,
1996
+ :form_params => form_params,
1997
+ :body => post_body,
1998
+ :auth_names => auth_names,
1999
+ :return_type => return_type
2000
+ )
2001
+
2002
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2003
+ if @api_client.config.debugging
2004
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2005
+ end
2006
+ return data, status_code, headers
2007
+ end
2008
+
2009
+ # Programs
2010
+ # @param id [String]
2011
+ # @param [Hash] opts the optional parameters
2012
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2013
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2014
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2015
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2016
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2017
+ # @return [ProgramsResponse]
2018
+ def drugs_programs(id, opts = {})
2019
+ data, _status_code, _headers = drugs_programs_with_http_info(id, opts)
2020
+ data
2021
+ end
2022
+
2023
+ # Programs
2024
+ # @param id [String]
2025
+ # @param [Hash] opts the optional parameters
2026
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2027
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2028
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2029
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2030
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2031
+ # @return [Array<(ProgramsResponse, Integer, Hash)>] ProgramsResponse data, response status code and response headers
2032
+ def drugs_programs_with_http_info(id, opts = {})
2033
+ if @api_client.config.debugging
2034
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_programs ...'
2035
+ end
2036
+ # verify the required parameter 'id' is set
2037
+ if @api_client.config.client_side_validation && id.nil?
2038
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_programs"
2039
+ end
2040
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2041
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_programs, must be smaller than or equal to 500.'
2042
+ end
2043
+
2044
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2045
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_programs, must be greater than or equal to 1.'
2046
+ end
2047
+
2048
+ # resource path
2049
+ local_var_path = '/api/v1/drugs/{id}/programs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2050
+
2051
+ # query parameters
2052
+ query_params = opts[:query_params] || {}
2053
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2054
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2055
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2056
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2057
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2058
+
2059
+ # header parameters
2060
+ header_params = opts[:header_params] || {}
2061
+ # HTTP header 'Accept' (if needed)
2062
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2063
+
2064
+ # form parameters
2065
+ form_params = opts[:form_params] || {}
2066
+
2067
+ # http body (model)
2068
+ post_body = opts[:debug_body]
2069
+
2070
+ # return_type
2071
+ return_type = opts[:debug_return_type] || 'ProgramsResponse'
2072
+
2073
+ # auth_names
2074
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2075
+
2076
+ new_options = opts.merge(
2077
+ :operation => :"DrugsApi.drugs_programs",
2078
+ :header_params => header_params,
2079
+ :query_params => query_params,
2080
+ :form_params => form_params,
2081
+ :body => post_body,
2082
+ :auth_names => auth_names,
2083
+ :return_type => return_type
2084
+ )
2085
+
2086
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2087
+ if @api_client.config.debugging
2088
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_programs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2089
+ end
2090
+ return data, status_code, headers
2091
+ end
2092
+
2093
+ # FDA dates disclosed in SEC filings
2094
+ # @param id [String]
2095
+ # @param [Hash] opts the optional parameters
2096
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2097
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2098
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2099
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2100
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2101
+ # @return [SecPdufaDatesResponse]
2102
+ def drugs_sec_pdufa_dates(id, opts = {})
2103
+ data, _status_code, _headers = drugs_sec_pdufa_dates_with_http_info(id, opts)
2104
+ data
2105
+ end
2106
+
2107
+ # FDA dates disclosed in SEC filings
2108
+ # @param id [String]
2109
+ # @param [Hash] opts the optional parameters
2110
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2111
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2112
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2113
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2114
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2115
+ # @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
2116
+ def drugs_sec_pdufa_dates_with_http_info(id, opts = {})
2117
+ if @api_client.config.debugging
2118
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_sec_pdufa_dates ...'
2119
+ end
2120
+ # verify the required parameter 'id' is set
2121
+ if @api_client.config.client_side_validation && id.nil?
2122
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_sec_pdufa_dates"
2123
+ end
2124
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2125
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_sec_pdufa_dates, must be smaller than or equal to 500.'
2126
+ end
2127
+
2128
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2129
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_sec_pdufa_dates, must be greater than or equal to 1.'
2130
+ end
2131
+
2132
+ # resource path
2133
+ local_var_path = '/api/v1/drugs/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2134
+
2135
+ # query parameters
2136
+ query_params = opts[:query_params] || {}
2137
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2138
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2139
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2140
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2141
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2142
+
2143
+ # header parameters
2144
+ header_params = opts[:header_params] || {}
2145
+ # HTTP header 'Accept' (if needed)
2146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2147
+
2148
+ # form parameters
2149
+ form_params = opts[:form_params] || {}
2150
+
2151
+ # http body (model)
2152
+ post_body = opts[:debug_body]
2153
+
2154
+ # return_type
2155
+ return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
2156
+
2157
+ # auth_names
2158
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2159
+
2160
+ new_options = opts.merge(
2161
+ :operation => :"DrugsApi.drugs_sec_pdufa_dates",
2162
+ :header_params => header_params,
2163
+ :query_params => query_params,
2164
+ :form_params => form_params,
2165
+ :body => post_body,
2166
+ :auth_names => auth_names,
2167
+ :return_type => return_type
2168
+ )
2169
+
2170
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2171
+ if @api_client.config.debugging
2172
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2173
+ end
2174
+ return data, status_code, headers
2175
+ end
2176
+
2177
+ # Trial drugs
2178
+ # @param id [String]
2179
+ # @param [Hash] opts the optional parameters
2180
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2181
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2182
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2183
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2184
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2185
+ # @return [TrialDrugsResponse]
2186
+ def drugs_trial_drugs(id, opts = {})
2187
+ data, _status_code, _headers = drugs_trial_drugs_with_http_info(id, opts)
2188
+ data
2189
+ end
2190
+
2191
+ # Trial drugs
2192
+ # @param id [String]
2193
+ # @param [Hash] opts the optional parameters
2194
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2195
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
2196
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
2197
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
2198
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2199
+ # @return [Array<(TrialDrugsResponse, Integer, Hash)>] TrialDrugsResponse data, response status code and response headers
2200
+ def drugs_trial_drugs_with_http_info(id, opts = {})
2201
+ if @api_client.config.debugging
2202
+ @api_client.config.logger.debug 'Calling API: DrugsApi.drugs_trial_drugs ...'
2203
+ end
2204
+ # verify the required parameter 'id' is set
2205
+ if @api_client.config.client_side_validation && id.nil?
2206
+ fail ArgumentError, "Missing the required parameter 'id' when calling DrugsApi.drugs_trial_drugs"
2207
+ end
2208
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
2209
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_trial_drugs, must be smaller than or equal to 500.'
2210
+ end
2211
+
2212
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
2213
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DrugsApi.drugs_trial_drugs, must be greater than or equal to 1.'
2214
+ end
2215
+
2216
+ # resource path
2217
+ local_var_path = '/api/v1/drugs/{id}/trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2218
+
2219
+ # query parameters
2220
+ query_params = opts[:query_params] || {}
2221
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2222
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2223
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
2224
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
2225
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
2226
+
2227
+ # header parameters
2228
+ header_params = opts[:header_params] || {}
2229
+ # HTTP header 'Accept' (if needed)
2230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2231
+
2232
+ # form parameters
2233
+ form_params = opts[:form_params] || {}
2234
+
2235
+ # http body (model)
2236
+ post_body = opts[:debug_body]
2237
+
2238
+ # return_type
2239
+ return_type = opts[:debug_return_type] || 'TrialDrugsResponse'
2240
+
2241
+ # auth_names
2242
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
2243
+
2244
+ new_options = opts.merge(
2245
+ :operation => :"DrugsApi.drugs_trial_drugs",
2246
+ :header_params => header_params,
2247
+ :query_params => query_params,
2248
+ :form_params => form_params,
2249
+ :body => post_body,
2250
+ :auth_names => auth_names,
2251
+ :return_type => return_type
2252
+ )
2253
+
2254
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2255
+ if @api_client.config.debugging
2256
+ @api_client.config.logger.debug "API called: DrugsApi#drugs_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2257
+ end
2258
+ return data, status_code, headers
2259
+ end
2260
+ end
2261
+ end