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
data/docs/DrugsApi.md ADDED
@@ -0,0 +1,2153 @@
1
+ # PharmaObservatory::DrugsApi
2
+
3
+ All URIs are relative to *https://pharmaobservatory.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**drugs_brand_companies**](DrugsApi.md#drugs_brand_companies) | **GET** /api/v1/drugs/{id}/brand_companies | Brand companies |
8
+ | [**drugs_brand_revenue**](DrugsApi.md#drugs_brand_revenue) | **GET** /api/v1/drugs/{id}/brand_revenue | Brand revenue |
9
+ | [**drugs_catalysts**](DrugsApi.md#drugs_catalysts) | **GET** /api/v1/drugs/{id}/catalysts | Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events |
10
+ | [**drugs_drug_approvals**](DrugsApi.md#drugs_drug_approvals) | **GET** /api/v1/drugs/{id}/drug_approvals | Drug approvals |
11
+ | [**drugs_drug_asp_codes**](DrugsApi.md#drugs_drug_asp_codes) | **GET** /api/v1/drugs/{id}/drug_asp_codes | Drug ASP payment limits |
12
+ | [**drugs_drug_brands**](DrugsApi.md#drugs_drug_brands) | **GET** /api/v1/drugs/{id}/drug_brands | Drug brands |
13
+ | [**drugs_drug_combinations**](DrugsApi.md#drugs_drug_combinations) | **GET** /api/v1/drugs/{id}/drug_combinations | Drug combinations |
14
+ | [**drugs_drug_declared_patents**](DrugsApi.md#drugs_drug_declared_patents) | **GET** /api/v1/drugs/{id}/drug_declared_patents | Drug declared patents |
15
+ | [**drugs_drug_label_safety**](DrugsApi.md#drugs_drug_label_safety) | **GET** /api/v1/drugs/{id}/drug_label_safety | Drug label safety |
16
+ | [**drugs_drug_medicare_spend**](DrugsApi.md#drugs_drug_medicare_spend) | **GET** /api/v1/drugs/{id}/drug_medicare_spend | Drug Medicare spend |
17
+ | [**drugs_drug_patent_cliff**](DrugsApi.md#drugs_drug_patent_cliff) | **GET** /api/v1/drugs/{id}/drug_patent_cliff | Patent-cliff exposure |
18
+ | [**drugs_drug_patent_mentions**](DrugsApi.md#drugs_drug_patent_mentions) | **GET** /api/v1/drugs/{id}/drug_patent_mentions | Drug patent mentions |
19
+ | [**drugs_drug_patent_owners**](DrugsApi.md#drugs_drug_patent_owners) | **GET** /api/v1/drugs/{id}/drug_patent_owners | Drug patent owners |
20
+ | [**drugs_drug_pricing**](DrugsApi.md#drugs_drug_pricing) | **GET** /api/v1/drugs/{id}/drug_pricing | Drug pricing (NADAC) |
21
+ | [**drugs_drug_recalls**](DrugsApi.md#drugs_drug_recalls) | **GET** /api/v1/drugs/{id}/drug_recalls | Drug recalls |
22
+ | [**drugs_drug_regulatory**](DrugsApi.md#drugs_drug_regulatory) | **GET** /api/v1/drugs/{id}/drug_regulatory | Drug regulatory status |
23
+ | [**drugs_drug_sites**](DrugsApi.md#drugs_drug_sites) | **GET** /api/v1/drugs/{id}/drug_sites | Drug sites |
24
+ | [**drugs_drug_targets**](DrugsApi.md#drugs_drug_targets) | **GET** /api/v1/drugs/{id}/drug_targets | Drug targets |
25
+ | [**drugs_drug_trial_conditions**](DrugsApi.md#drugs_drug_trial_conditions) | **GET** /api/v1/drugs/{id}/drug_trial_conditions | Drug trial conditions |
26
+ | [**drugs_drug_trials**](DrugsApi.md#drugs_drug_trials) | **GET** /api/v1/drugs/{id}/drug_trials | Drug trials |
27
+ | [**drugs_drug_variants**](DrugsApi.md#drugs_drug_variants) | **GET** /api/v1/drugs/{id}/drug_variants | Drug variants |
28
+ | [**drugs_get**](DrugsApi.md#drugs_get) | **GET** /api/v1/drugs/{id} | One drug |
29
+ | [**drugs_list**](DrugsApi.md#drugs_list) | **GET** /api/v1/drugs | List drugs |
30
+ | [**drugs_pdufa_dates**](DrugsApi.md#drugs_pdufa_dates) | **GET** /api/v1/drugs/{id}/pdufa_dates | FDA decision dates (PDUFA) and catalysts |
31
+ | [**drugs_programs**](DrugsApi.md#drugs_programs) | **GET** /api/v1/drugs/{id}/programs | Programs |
32
+ | [**drugs_sec_pdufa_dates**](DrugsApi.md#drugs_sec_pdufa_dates) | **GET** /api/v1/drugs/{id}/sec_pdufa_dates | FDA dates disclosed in SEC filings |
33
+ | [**drugs_trial_drugs**](DrugsApi.md#drugs_trial_drugs) | **GET** /api/v1/drugs/{id}/trial_drugs | Trial drugs |
34
+
35
+
36
+ ## drugs_brand_companies
37
+
38
+ > <BrandCompaniesResponse> drugs_brand_companies(id, opts)
39
+
40
+ Brand companies
41
+
42
+ ### Examples
43
+
44
+ ```ruby
45
+ require 'time'
46
+ require 'pharmaobservatory'
47
+ # setup authorization
48
+ PharmaObservatory.configure do |config|
49
+ # Configure Bearer authorization (JWT): ApiBearerJwt
50
+ config.access_token = 'YOUR_BEARER_TOKEN'
51
+ end
52
+
53
+ api_instance = PharmaObservatory::DrugsApi.new
54
+ id = 'unii:53AXN4NNHX' # String |
55
+ opts = {
56
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
57
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
58
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
59
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
60
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
61
+ }
62
+
63
+ begin
64
+ # Brand companies
65
+ result = api_instance.drugs_brand_companies(id, opts)
66
+ p result
67
+ rescue PharmaObservatory::ApiError => e
68
+ puts "Error when calling DrugsApi->drugs_brand_companies: #{e}"
69
+ end
70
+ ```
71
+
72
+ #### Using the drugs_brand_companies_with_http_info variant
73
+
74
+ This returns an Array which contains the response data, status code and headers.
75
+
76
+ > <Array(<BrandCompaniesResponse>, Integer, Hash)> drugs_brand_companies_with_http_info(id, opts)
77
+
78
+ ```ruby
79
+ begin
80
+ # Brand companies
81
+ data, status_code, headers = api_instance.drugs_brand_companies_with_http_info(id, opts)
82
+ p status_code # => 2xx
83
+ p headers # => { ... }
84
+ p data # => <BrandCompaniesResponse>
85
+ rescue PharmaObservatory::ApiError => e
86
+ puts "Error when calling DrugsApi->drugs_brand_companies_with_http_info: #{e}"
87
+ end
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ | Name | Type | Description | Notes |
93
+ | ---- | ---- | ----------- | ----- |
94
+ | **id** | **String** | | |
95
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
96
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
97
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
98
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
99
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
100
+
101
+ ### Return type
102
+
103
+ [**BrandCompaniesResponse**](BrandCompaniesResponse.md)
104
+
105
+ ### Authorization
106
+
107
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ## drugs_brand_revenue
116
+
117
+ > <BrandRevenueResponse> drugs_brand_revenue(id, opts)
118
+
119
+ Brand revenue
120
+
121
+ ### Examples
122
+
123
+ ```ruby
124
+ require 'time'
125
+ require 'pharmaobservatory'
126
+ # setup authorization
127
+ PharmaObservatory.configure do |config|
128
+ # Configure Bearer authorization (JWT): ApiBearerJwt
129
+ config.access_token = 'YOUR_BEARER_TOKEN'
130
+ end
131
+
132
+ api_instance = PharmaObservatory::DrugsApi.new
133
+ id = 'unii:53AXN4NNHX' # String |
134
+ opts = {
135
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
136
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
137
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
138
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
139
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
140
+ }
141
+
142
+ begin
143
+ # Brand revenue
144
+ result = api_instance.drugs_brand_revenue(id, opts)
145
+ p result
146
+ rescue PharmaObservatory::ApiError => e
147
+ puts "Error when calling DrugsApi->drugs_brand_revenue: #{e}"
148
+ end
149
+ ```
150
+
151
+ #### Using the drugs_brand_revenue_with_http_info variant
152
+
153
+ This returns an Array which contains the response data, status code and headers.
154
+
155
+ > <Array(<BrandRevenueResponse>, Integer, Hash)> drugs_brand_revenue_with_http_info(id, opts)
156
+
157
+ ```ruby
158
+ begin
159
+ # Brand revenue
160
+ data, status_code, headers = api_instance.drugs_brand_revenue_with_http_info(id, opts)
161
+ p status_code # => 2xx
162
+ p headers # => { ... }
163
+ p data # => <BrandRevenueResponse>
164
+ rescue PharmaObservatory::ApiError => e
165
+ puts "Error when calling DrugsApi->drugs_brand_revenue_with_http_info: #{e}"
166
+ end
167
+ ```
168
+
169
+ ### Parameters
170
+
171
+ | Name | Type | Description | Notes |
172
+ | ---- | ---- | ----------- | ----- |
173
+ | **id** | **String** | | |
174
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
175
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
176
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
177
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
178
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
179
+
180
+ ### Return type
181
+
182
+ [**BrandRevenueResponse**](BrandRevenueResponse.md)
183
+
184
+ ### Authorization
185
+
186
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
187
+
188
+ ### HTTP request headers
189
+
190
+ - **Content-Type**: Not defined
191
+ - **Accept**: application/json
192
+
193
+
194
+ ## drugs_catalysts
195
+
196
+ > <CatalystsResponse> drugs_catalysts(id, opts)
197
+
198
+ Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
199
+
200
+ ### Examples
201
+
202
+ ```ruby
203
+ require 'time'
204
+ require 'pharmaobservatory'
205
+ # setup authorization
206
+ PharmaObservatory.configure do |config|
207
+ # Configure Bearer authorization (JWT): ApiBearerJwt
208
+ config.access_token = 'YOUR_BEARER_TOKEN'
209
+ end
210
+
211
+ api_instance = PharmaObservatory::DrugsApi.new
212
+ id = 'unii:53AXN4NNHX' # String |
213
+ opts = {
214
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
215
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
216
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
217
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
218
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
219
+ }
220
+
221
+ begin
222
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
223
+ result = api_instance.drugs_catalysts(id, opts)
224
+ p result
225
+ rescue PharmaObservatory::ApiError => e
226
+ puts "Error when calling DrugsApi->drugs_catalysts: #{e}"
227
+ end
228
+ ```
229
+
230
+ #### Using the drugs_catalysts_with_http_info variant
231
+
232
+ This returns an Array which contains the response data, status code and headers.
233
+
234
+ > <Array(<CatalystsResponse>, Integer, Hash)> drugs_catalysts_with_http_info(id, opts)
235
+
236
+ ```ruby
237
+ begin
238
+ # Catalysts: trial readouts, patent cliffs, FDA decision dates and press-release events
239
+ data, status_code, headers = api_instance.drugs_catalysts_with_http_info(id, opts)
240
+ p status_code # => 2xx
241
+ p headers # => { ... }
242
+ p data # => <CatalystsResponse>
243
+ rescue PharmaObservatory::ApiError => e
244
+ puts "Error when calling DrugsApi->drugs_catalysts_with_http_info: #{e}"
245
+ end
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ | Name | Type | Description | Notes |
251
+ | ---- | ---- | ----------- | ----- |
252
+ | **id** | **String** | | |
253
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
254
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
255
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
256
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
257
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
258
+
259
+ ### Return type
260
+
261
+ [**CatalystsResponse**](CatalystsResponse.md)
262
+
263
+ ### Authorization
264
+
265
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
266
+
267
+ ### HTTP request headers
268
+
269
+ - **Content-Type**: Not defined
270
+ - **Accept**: application/json
271
+
272
+
273
+ ## drugs_drug_approvals
274
+
275
+ > <DrugApprovalsResponse> drugs_drug_approvals(id, opts)
276
+
277
+ Drug approvals
278
+
279
+ ### Examples
280
+
281
+ ```ruby
282
+ require 'time'
283
+ require 'pharmaobservatory'
284
+ # setup authorization
285
+ PharmaObservatory.configure do |config|
286
+ # Configure Bearer authorization (JWT): ApiBearerJwt
287
+ config.access_token = 'YOUR_BEARER_TOKEN'
288
+ end
289
+
290
+ api_instance = PharmaObservatory::DrugsApi.new
291
+ id = 'unii:53AXN4NNHX' # String |
292
+ opts = {
293
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
294
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
295
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
296
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
297
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
298
+ }
299
+
300
+ begin
301
+ # Drug approvals
302
+ result = api_instance.drugs_drug_approvals(id, opts)
303
+ p result
304
+ rescue PharmaObservatory::ApiError => e
305
+ puts "Error when calling DrugsApi->drugs_drug_approvals: #{e}"
306
+ end
307
+ ```
308
+
309
+ #### Using the drugs_drug_approvals_with_http_info variant
310
+
311
+ This returns an Array which contains the response data, status code and headers.
312
+
313
+ > <Array(<DrugApprovalsResponse>, Integer, Hash)> drugs_drug_approvals_with_http_info(id, opts)
314
+
315
+ ```ruby
316
+ begin
317
+ # Drug approvals
318
+ data, status_code, headers = api_instance.drugs_drug_approvals_with_http_info(id, opts)
319
+ p status_code # => 2xx
320
+ p headers # => { ... }
321
+ p data # => <DrugApprovalsResponse>
322
+ rescue PharmaObservatory::ApiError => e
323
+ puts "Error when calling DrugsApi->drugs_drug_approvals_with_http_info: #{e}"
324
+ end
325
+ ```
326
+
327
+ ### Parameters
328
+
329
+ | Name | Type | Description | Notes |
330
+ | ---- | ---- | ----------- | ----- |
331
+ | **id** | **String** | | |
332
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
333
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
334
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
335
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
336
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
337
+
338
+ ### Return type
339
+
340
+ [**DrugApprovalsResponse**](DrugApprovalsResponse.md)
341
+
342
+ ### Authorization
343
+
344
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: application/json
350
+
351
+
352
+ ## drugs_drug_asp_codes
353
+
354
+ > <DrugAspCodesResponse> drugs_drug_asp_codes(id, opts)
355
+
356
+ Drug ASP payment limits
357
+
358
+ ### Examples
359
+
360
+ ```ruby
361
+ require 'time'
362
+ require 'pharmaobservatory'
363
+ # setup authorization
364
+ PharmaObservatory.configure do |config|
365
+ # Configure Bearer authorization (JWT): ApiBearerJwt
366
+ config.access_token = 'YOUR_BEARER_TOKEN'
367
+ end
368
+
369
+ api_instance = PharmaObservatory::DrugsApi.new
370
+ id = 'unii:53AXN4NNHX' # String |
371
+ opts = {
372
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
373
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
374
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
375
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
376
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
377
+ }
378
+
379
+ begin
380
+ # Drug ASP payment limits
381
+ result = api_instance.drugs_drug_asp_codes(id, opts)
382
+ p result
383
+ rescue PharmaObservatory::ApiError => e
384
+ puts "Error when calling DrugsApi->drugs_drug_asp_codes: #{e}"
385
+ end
386
+ ```
387
+
388
+ #### Using the drugs_drug_asp_codes_with_http_info variant
389
+
390
+ This returns an Array which contains the response data, status code and headers.
391
+
392
+ > <Array(<DrugAspCodesResponse>, Integer, Hash)> drugs_drug_asp_codes_with_http_info(id, opts)
393
+
394
+ ```ruby
395
+ begin
396
+ # Drug ASP payment limits
397
+ data, status_code, headers = api_instance.drugs_drug_asp_codes_with_http_info(id, opts)
398
+ p status_code # => 2xx
399
+ p headers # => { ... }
400
+ p data # => <DrugAspCodesResponse>
401
+ rescue PharmaObservatory::ApiError => e
402
+ puts "Error when calling DrugsApi->drugs_drug_asp_codes_with_http_info: #{e}"
403
+ end
404
+ ```
405
+
406
+ ### Parameters
407
+
408
+ | Name | Type | Description | Notes |
409
+ | ---- | ---- | ----------- | ----- |
410
+ | **id** | **String** | | |
411
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
412
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
413
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
414
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
415
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
416
+
417
+ ### Return type
418
+
419
+ [**DrugAspCodesResponse**](DrugAspCodesResponse.md)
420
+
421
+ ### Authorization
422
+
423
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
424
+
425
+ ### HTTP request headers
426
+
427
+ - **Content-Type**: Not defined
428
+ - **Accept**: application/json
429
+
430
+
431
+ ## drugs_drug_brands
432
+
433
+ > <DrugBrandsResponse> drugs_drug_brands(id, opts)
434
+
435
+ Drug brands
436
+
437
+ ### Examples
438
+
439
+ ```ruby
440
+ require 'time'
441
+ require 'pharmaobservatory'
442
+ # setup authorization
443
+ PharmaObservatory.configure do |config|
444
+ # Configure Bearer authorization (JWT): ApiBearerJwt
445
+ config.access_token = 'YOUR_BEARER_TOKEN'
446
+ end
447
+
448
+ api_instance = PharmaObservatory::DrugsApi.new
449
+ id = 'unii:53AXN4NNHX' # String |
450
+ opts = {
451
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
452
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
453
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
454
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
455
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
456
+ }
457
+
458
+ begin
459
+ # Drug brands
460
+ result = api_instance.drugs_drug_brands(id, opts)
461
+ p result
462
+ rescue PharmaObservatory::ApiError => e
463
+ puts "Error when calling DrugsApi->drugs_drug_brands: #{e}"
464
+ end
465
+ ```
466
+
467
+ #### Using the drugs_drug_brands_with_http_info variant
468
+
469
+ This returns an Array which contains the response data, status code and headers.
470
+
471
+ > <Array(<DrugBrandsResponse>, Integer, Hash)> drugs_drug_brands_with_http_info(id, opts)
472
+
473
+ ```ruby
474
+ begin
475
+ # Drug brands
476
+ data, status_code, headers = api_instance.drugs_drug_brands_with_http_info(id, opts)
477
+ p status_code # => 2xx
478
+ p headers # => { ... }
479
+ p data # => <DrugBrandsResponse>
480
+ rescue PharmaObservatory::ApiError => e
481
+ puts "Error when calling DrugsApi->drugs_drug_brands_with_http_info: #{e}"
482
+ end
483
+ ```
484
+
485
+ ### Parameters
486
+
487
+ | Name | Type | Description | Notes |
488
+ | ---- | ---- | ----------- | ----- |
489
+ | **id** | **String** | | |
490
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
491
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
492
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
493
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
494
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
495
+
496
+ ### Return type
497
+
498
+ [**DrugBrandsResponse**](DrugBrandsResponse.md)
499
+
500
+ ### Authorization
501
+
502
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
503
+
504
+ ### HTTP request headers
505
+
506
+ - **Content-Type**: Not defined
507
+ - **Accept**: application/json
508
+
509
+
510
+ ## drugs_drug_combinations
511
+
512
+ > <DrugCombinationsResponse> drugs_drug_combinations(id, opts)
513
+
514
+ Drug combinations
515
+
516
+ ### Examples
517
+
518
+ ```ruby
519
+ require 'time'
520
+ require 'pharmaobservatory'
521
+ # setup authorization
522
+ PharmaObservatory.configure do |config|
523
+ # Configure Bearer authorization (JWT): ApiBearerJwt
524
+ config.access_token = 'YOUR_BEARER_TOKEN'
525
+ end
526
+
527
+ api_instance = PharmaObservatory::DrugsApi.new
528
+ id = 'unii:53AXN4NNHX' # String |
529
+ opts = {
530
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
531
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
532
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
533
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
534
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
535
+ }
536
+
537
+ begin
538
+ # Drug combinations
539
+ result = api_instance.drugs_drug_combinations(id, opts)
540
+ p result
541
+ rescue PharmaObservatory::ApiError => e
542
+ puts "Error when calling DrugsApi->drugs_drug_combinations: #{e}"
543
+ end
544
+ ```
545
+
546
+ #### Using the drugs_drug_combinations_with_http_info variant
547
+
548
+ This returns an Array which contains the response data, status code and headers.
549
+
550
+ > <Array(<DrugCombinationsResponse>, Integer, Hash)> drugs_drug_combinations_with_http_info(id, opts)
551
+
552
+ ```ruby
553
+ begin
554
+ # Drug combinations
555
+ data, status_code, headers = api_instance.drugs_drug_combinations_with_http_info(id, opts)
556
+ p status_code # => 2xx
557
+ p headers # => { ... }
558
+ p data # => <DrugCombinationsResponse>
559
+ rescue PharmaObservatory::ApiError => e
560
+ puts "Error when calling DrugsApi->drugs_drug_combinations_with_http_info: #{e}"
561
+ end
562
+ ```
563
+
564
+ ### Parameters
565
+
566
+ | Name | Type | Description | Notes |
567
+ | ---- | ---- | ----------- | ----- |
568
+ | **id** | **String** | | |
569
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
570
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
571
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
572
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
573
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
574
+
575
+ ### Return type
576
+
577
+ [**DrugCombinationsResponse**](DrugCombinationsResponse.md)
578
+
579
+ ### Authorization
580
+
581
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
582
+
583
+ ### HTTP request headers
584
+
585
+ - **Content-Type**: Not defined
586
+ - **Accept**: application/json
587
+
588
+
589
+ ## drugs_drug_declared_patents
590
+
591
+ > <DrugDeclaredPatentsResponse> drugs_drug_declared_patents(id, opts)
592
+
593
+ Drug declared patents
594
+
595
+ ### Examples
596
+
597
+ ```ruby
598
+ require 'time'
599
+ require 'pharmaobservatory'
600
+ # setup authorization
601
+ PharmaObservatory.configure do |config|
602
+ # Configure Bearer authorization (JWT): ApiBearerJwt
603
+ config.access_token = 'YOUR_BEARER_TOKEN'
604
+ end
605
+
606
+ api_instance = PharmaObservatory::DrugsApi.new
607
+ id = 'unii:53AXN4NNHX' # String |
608
+ opts = {
609
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
610
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
611
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
612
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
613
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
614
+ }
615
+
616
+ begin
617
+ # Drug declared patents
618
+ result = api_instance.drugs_drug_declared_patents(id, opts)
619
+ p result
620
+ rescue PharmaObservatory::ApiError => e
621
+ puts "Error when calling DrugsApi->drugs_drug_declared_patents: #{e}"
622
+ end
623
+ ```
624
+
625
+ #### Using the drugs_drug_declared_patents_with_http_info variant
626
+
627
+ This returns an Array which contains the response data, status code and headers.
628
+
629
+ > <Array(<DrugDeclaredPatentsResponse>, Integer, Hash)> drugs_drug_declared_patents_with_http_info(id, opts)
630
+
631
+ ```ruby
632
+ begin
633
+ # Drug declared patents
634
+ data, status_code, headers = api_instance.drugs_drug_declared_patents_with_http_info(id, opts)
635
+ p status_code # => 2xx
636
+ p headers # => { ... }
637
+ p data # => <DrugDeclaredPatentsResponse>
638
+ rescue PharmaObservatory::ApiError => e
639
+ puts "Error when calling DrugsApi->drugs_drug_declared_patents_with_http_info: #{e}"
640
+ end
641
+ ```
642
+
643
+ ### Parameters
644
+
645
+ | Name | Type | Description | Notes |
646
+ | ---- | ---- | ----------- | ----- |
647
+ | **id** | **String** | | |
648
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
649
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
650
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
651
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
652
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
653
+
654
+ ### Return type
655
+
656
+ [**DrugDeclaredPatentsResponse**](DrugDeclaredPatentsResponse.md)
657
+
658
+ ### Authorization
659
+
660
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
661
+
662
+ ### HTTP request headers
663
+
664
+ - **Content-Type**: Not defined
665
+ - **Accept**: application/json
666
+
667
+
668
+ ## drugs_drug_label_safety
669
+
670
+ > <DrugLabelSafetyResponse> drugs_drug_label_safety(id, opts)
671
+
672
+ Drug label safety
673
+
674
+ ### Examples
675
+
676
+ ```ruby
677
+ require 'time'
678
+ require 'pharmaobservatory'
679
+ # setup authorization
680
+ PharmaObservatory.configure do |config|
681
+ # Configure Bearer authorization (JWT): ApiBearerJwt
682
+ config.access_token = 'YOUR_BEARER_TOKEN'
683
+ end
684
+
685
+ api_instance = PharmaObservatory::DrugsApi.new
686
+ id = 'unii:53AXN4NNHX' # String |
687
+ opts = {
688
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
689
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
690
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
691
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
692
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
693
+ }
694
+
695
+ begin
696
+ # Drug label safety
697
+ result = api_instance.drugs_drug_label_safety(id, opts)
698
+ p result
699
+ rescue PharmaObservatory::ApiError => e
700
+ puts "Error when calling DrugsApi->drugs_drug_label_safety: #{e}"
701
+ end
702
+ ```
703
+
704
+ #### Using the drugs_drug_label_safety_with_http_info variant
705
+
706
+ This returns an Array which contains the response data, status code and headers.
707
+
708
+ > <Array(<DrugLabelSafetyResponse>, Integer, Hash)> drugs_drug_label_safety_with_http_info(id, opts)
709
+
710
+ ```ruby
711
+ begin
712
+ # Drug label safety
713
+ data, status_code, headers = api_instance.drugs_drug_label_safety_with_http_info(id, opts)
714
+ p status_code # => 2xx
715
+ p headers # => { ... }
716
+ p data # => <DrugLabelSafetyResponse>
717
+ rescue PharmaObservatory::ApiError => e
718
+ puts "Error when calling DrugsApi->drugs_drug_label_safety_with_http_info: #{e}"
719
+ end
720
+ ```
721
+
722
+ ### Parameters
723
+
724
+ | Name | Type | Description | Notes |
725
+ | ---- | ---- | ----------- | ----- |
726
+ | **id** | **String** | | |
727
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
728
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
729
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
730
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
731
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
732
+
733
+ ### Return type
734
+
735
+ [**DrugLabelSafetyResponse**](DrugLabelSafetyResponse.md)
736
+
737
+ ### Authorization
738
+
739
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
740
+
741
+ ### HTTP request headers
742
+
743
+ - **Content-Type**: Not defined
744
+ - **Accept**: application/json
745
+
746
+
747
+ ## drugs_drug_medicare_spend
748
+
749
+ > <DrugMedicareSpendResponse> drugs_drug_medicare_spend(id, opts)
750
+
751
+ Drug Medicare spend
752
+
753
+ ### Examples
754
+
755
+ ```ruby
756
+ require 'time'
757
+ require 'pharmaobservatory'
758
+ # setup authorization
759
+ PharmaObservatory.configure do |config|
760
+ # Configure Bearer authorization (JWT): ApiBearerJwt
761
+ config.access_token = 'YOUR_BEARER_TOKEN'
762
+ end
763
+
764
+ api_instance = PharmaObservatory::DrugsApi.new
765
+ id = 'unii:53AXN4NNHX' # String |
766
+ opts = {
767
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
768
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
769
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
770
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
771
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
772
+ }
773
+
774
+ begin
775
+ # Drug Medicare spend
776
+ result = api_instance.drugs_drug_medicare_spend(id, opts)
777
+ p result
778
+ rescue PharmaObservatory::ApiError => e
779
+ puts "Error when calling DrugsApi->drugs_drug_medicare_spend: #{e}"
780
+ end
781
+ ```
782
+
783
+ #### Using the drugs_drug_medicare_spend_with_http_info variant
784
+
785
+ This returns an Array which contains the response data, status code and headers.
786
+
787
+ > <Array(<DrugMedicareSpendResponse>, Integer, Hash)> drugs_drug_medicare_spend_with_http_info(id, opts)
788
+
789
+ ```ruby
790
+ begin
791
+ # Drug Medicare spend
792
+ data, status_code, headers = api_instance.drugs_drug_medicare_spend_with_http_info(id, opts)
793
+ p status_code # => 2xx
794
+ p headers # => { ... }
795
+ p data # => <DrugMedicareSpendResponse>
796
+ rescue PharmaObservatory::ApiError => e
797
+ puts "Error when calling DrugsApi->drugs_drug_medicare_spend_with_http_info: #{e}"
798
+ end
799
+ ```
800
+
801
+ ### Parameters
802
+
803
+ | Name | Type | Description | Notes |
804
+ | ---- | ---- | ----------- | ----- |
805
+ | **id** | **String** | | |
806
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
807
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
808
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
809
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
810
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
811
+
812
+ ### Return type
813
+
814
+ [**DrugMedicareSpendResponse**](DrugMedicareSpendResponse.md)
815
+
816
+ ### Authorization
817
+
818
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
819
+
820
+ ### HTTP request headers
821
+
822
+ - **Content-Type**: Not defined
823
+ - **Accept**: application/json
824
+
825
+
826
+ ## drugs_drug_patent_cliff
827
+
828
+ > <DrugPatentCliffResponse> drugs_drug_patent_cliff(id, opts)
829
+
830
+ Patent-cliff exposure
831
+
832
+ ### Examples
833
+
834
+ ```ruby
835
+ require 'time'
836
+ require 'pharmaobservatory'
837
+ # setup authorization
838
+ PharmaObservatory.configure do |config|
839
+ # Configure Bearer authorization (JWT): ApiBearerJwt
840
+ config.access_token = 'YOUR_BEARER_TOKEN'
841
+ end
842
+
843
+ api_instance = PharmaObservatory::DrugsApi.new
844
+ id = 'unii:53AXN4NNHX' # String |
845
+ opts = {
846
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
847
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
848
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
849
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
850
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
851
+ }
852
+
853
+ begin
854
+ # Patent-cliff exposure
855
+ result = api_instance.drugs_drug_patent_cliff(id, opts)
856
+ p result
857
+ rescue PharmaObservatory::ApiError => e
858
+ puts "Error when calling DrugsApi->drugs_drug_patent_cliff: #{e}"
859
+ end
860
+ ```
861
+
862
+ #### Using the drugs_drug_patent_cliff_with_http_info variant
863
+
864
+ This returns an Array which contains the response data, status code and headers.
865
+
866
+ > <Array(<DrugPatentCliffResponse>, Integer, Hash)> drugs_drug_patent_cliff_with_http_info(id, opts)
867
+
868
+ ```ruby
869
+ begin
870
+ # Patent-cliff exposure
871
+ data, status_code, headers = api_instance.drugs_drug_patent_cliff_with_http_info(id, opts)
872
+ p status_code # => 2xx
873
+ p headers # => { ... }
874
+ p data # => <DrugPatentCliffResponse>
875
+ rescue PharmaObservatory::ApiError => e
876
+ puts "Error when calling DrugsApi->drugs_drug_patent_cliff_with_http_info: #{e}"
877
+ end
878
+ ```
879
+
880
+ ### Parameters
881
+
882
+ | Name | Type | Description | Notes |
883
+ | ---- | ---- | ----------- | ----- |
884
+ | **id** | **String** | | |
885
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
886
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
887
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
888
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
889
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
890
+
891
+ ### Return type
892
+
893
+ [**DrugPatentCliffResponse**](DrugPatentCliffResponse.md)
894
+
895
+ ### Authorization
896
+
897
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
898
+
899
+ ### HTTP request headers
900
+
901
+ - **Content-Type**: Not defined
902
+ - **Accept**: application/json
903
+
904
+
905
+ ## drugs_drug_patent_mentions
906
+
907
+ > <DrugPatentMentionsResponse> drugs_drug_patent_mentions(id, opts)
908
+
909
+ Drug patent mentions
910
+
911
+ ### Examples
912
+
913
+ ```ruby
914
+ require 'time'
915
+ require 'pharmaobservatory'
916
+ # setup authorization
917
+ PharmaObservatory.configure do |config|
918
+ # Configure Bearer authorization (JWT): ApiBearerJwt
919
+ config.access_token = 'YOUR_BEARER_TOKEN'
920
+ end
921
+
922
+ api_instance = PharmaObservatory::DrugsApi.new
923
+ id = 'unii:53AXN4NNHX' # String |
924
+ opts = {
925
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
926
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
927
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
928
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
929
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
930
+ }
931
+
932
+ begin
933
+ # Drug patent mentions
934
+ result = api_instance.drugs_drug_patent_mentions(id, opts)
935
+ p result
936
+ rescue PharmaObservatory::ApiError => e
937
+ puts "Error when calling DrugsApi->drugs_drug_patent_mentions: #{e}"
938
+ end
939
+ ```
940
+
941
+ #### Using the drugs_drug_patent_mentions_with_http_info variant
942
+
943
+ This returns an Array which contains the response data, status code and headers.
944
+
945
+ > <Array(<DrugPatentMentionsResponse>, Integer, Hash)> drugs_drug_patent_mentions_with_http_info(id, opts)
946
+
947
+ ```ruby
948
+ begin
949
+ # Drug patent mentions
950
+ data, status_code, headers = api_instance.drugs_drug_patent_mentions_with_http_info(id, opts)
951
+ p status_code # => 2xx
952
+ p headers # => { ... }
953
+ p data # => <DrugPatentMentionsResponse>
954
+ rescue PharmaObservatory::ApiError => e
955
+ puts "Error when calling DrugsApi->drugs_drug_patent_mentions_with_http_info: #{e}"
956
+ end
957
+ ```
958
+
959
+ ### Parameters
960
+
961
+ | Name | Type | Description | Notes |
962
+ | ---- | ---- | ----------- | ----- |
963
+ | **id** | **String** | | |
964
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
965
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
966
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
967
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
968
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
969
+
970
+ ### Return type
971
+
972
+ [**DrugPatentMentionsResponse**](DrugPatentMentionsResponse.md)
973
+
974
+ ### Authorization
975
+
976
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
977
+
978
+ ### HTTP request headers
979
+
980
+ - **Content-Type**: Not defined
981
+ - **Accept**: application/json
982
+
983
+
984
+ ## drugs_drug_patent_owners
985
+
986
+ > <DrugPatentOwnersResponse> drugs_drug_patent_owners(id, opts)
987
+
988
+ Drug patent owners
989
+
990
+ ### Examples
991
+
992
+ ```ruby
993
+ require 'time'
994
+ require 'pharmaobservatory'
995
+ # setup authorization
996
+ PharmaObservatory.configure do |config|
997
+ # Configure Bearer authorization (JWT): ApiBearerJwt
998
+ config.access_token = 'YOUR_BEARER_TOKEN'
999
+ end
1000
+
1001
+ api_instance = PharmaObservatory::DrugsApi.new
1002
+ id = 'unii:53AXN4NNHX' # String |
1003
+ opts = {
1004
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1005
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1006
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1007
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1008
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1009
+ }
1010
+
1011
+ begin
1012
+ # Drug patent owners
1013
+ result = api_instance.drugs_drug_patent_owners(id, opts)
1014
+ p result
1015
+ rescue PharmaObservatory::ApiError => e
1016
+ puts "Error when calling DrugsApi->drugs_drug_patent_owners: #{e}"
1017
+ end
1018
+ ```
1019
+
1020
+ #### Using the drugs_drug_patent_owners_with_http_info variant
1021
+
1022
+ This returns an Array which contains the response data, status code and headers.
1023
+
1024
+ > <Array(<DrugPatentOwnersResponse>, Integer, Hash)> drugs_drug_patent_owners_with_http_info(id, opts)
1025
+
1026
+ ```ruby
1027
+ begin
1028
+ # Drug patent owners
1029
+ data, status_code, headers = api_instance.drugs_drug_patent_owners_with_http_info(id, opts)
1030
+ p status_code # => 2xx
1031
+ p headers # => { ... }
1032
+ p data # => <DrugPatentOwnersResponse>
1033
+ rescue PharmaObservatory::ApiError => e
1034
+ puts "Error when calling DrugsApi->drugs_drug_patent_owners_with_http_info: #{e}"
1035
+ end
1036
+ ```
1037
+
1038
+ ### Parameters
1039
+
1040
+ | Name | Type | Description | Notes |
1041
+ | ---- | ---- | ----------- | ----- |
1042
+ | **id** | **String** | | |
1043
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1044
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1045
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1046
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1047
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1048
+
1049
+ ### Return type
1050
+
1051
+ [**DrugPatentOwnersResponse**](DrugPatentOwnersResponse.md)
1052
+
1053
+ ### Authorization
1054
+
1055
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1056
+
1057
+ ### HTTP request headers
1058
+
1059
+ - **Content-Type**: Not defined
1060
+ - **Accept**: application/json
1061
+
1062
+
1063
+ ## drugs_drug_pricing
1064
+
1065
+ > <DrugPricingResponse> drugs_drug_pricing(id, opts)
1066
+
1067
+ Drug pricing (NADAC)
1068
+
1069
+ ### Examples
1070
+
1071
+ ```ruby
1072
+ require 'time'
1073
+ require 'pharmaobservatory'
1074
+ # setup authorization
1075
+ PharmaObservatory.configure do |config|
1076
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1077
+ config.access_token = 'YOUR_BEARER_TOKEN'
1078
+ end
1079
+
1080
+ api_instance = PharmaObservatory::DrugsApi.new
1081
+ id = 'unii:53AXN4NNHX' # String |
1082
+ opts = {
1083
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1084
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1085
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1086
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1087
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1088
+ }
1089
+
1090
+ begin
1091
+ # Drug pricing (NADAC)
1092
+ result = api_instance.drugs_drug_pricing(id, opts)
1093
+ p result
1094
+ rescue PharmaObservatory::ApiError => e
1095
+ puts "Error when calling DrugsApi->drugs_drug_pricing: #{e}"
1096
+ end
1097
+ ```
1098
+
1099
+ #### Using the drugs_drug_pricing_with_http_info variant
1100
+
1101
+ This returns an Array which contains the response data, status code and headers.
1102
+
1103
+ > <Array(<DrugPricingResponse>, Integer, Hash)> drugs_drug_pricing_with_http_info(id, opts)
1104
+
1105
+ ```ruby
1106
+ begin
1107
+ # Drug pricing (NADAC)
1108
+ data, status_code, headers = api_instance.drugs_drug_pricing_with_http_info(id, opts)
1109
+ p status_code # => 2xx
1110
+ p headers # => { ... }
1111
+ p data # => <DrugPricingResponse>
1112
+ rescue PharmaObservatory::ApiError => e
1113
+ puts "Error when calling DrugsApi->drugs_drug_pricing_with_http_info: #{e}"
1114
+ end
1115
+ ```
1116
+
1117
+ ### Parameters
1118
+
1119
+ | Name | Type | Description | Notes |
1120
+ | ---- | ---- | ----------- | ----- |
1121
+ | **id** | **String** | | |
1122
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1123
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1124
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1125
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1126
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1127
+
1128
+ ### Return type
1129
+
1130
+ [**DrugPricingResponse**](DrugPricingResponse.md)
1131
+
1132
+ ### Authorization
1133
+
1134
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1135
+
1136
+ ### HTTP request headers
1137
+
1138
+ - **Content-Type**: Not defined
1139
+ - **Accept**: application/json
1140
+
1141
+
1142
+ ## drugs_drug_recalls
1143
+
1144
+ > <DrugRecallsResponse> drugs_drug_recalls(id, opts)
1145
+
1146
+ Drug recalls
1147
+
1148
+ ### Examples
1149
+
1150
+ ```ruby
1151
+ require 'time'
1152
+ require 'pharmaobservatory'
1153
+ # setup authorization
1154
+ PharmaObservatory.configure do |config|
1155
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1156
+ config.access_token = 'YOUR_BEARER_TOKEN'
1157
+ end
1158
+
1159
+ api_instance = PharmaObservatory::DrugsApi.new
1160
+ id = 'unii:53AXN4NNHX' # String |
1161
+ opts = {
1162
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1163
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1164
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1165
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1166
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1167
+ }
1168
+
1169
+ begin
1170
+ # Drug recalls
1171
+ result = api_instance.drugs_drug_recalls(id, opts)
1172
+ p result
1173
+ rescue PharmaObservatory::ApiError => e
1174
+ puts "Error when calling DrugsApi->drugs_drug_recalls: #{e}"
1175
+ end
1176
+ ```
1177
+
1178
+ #### Using the drugs_drug_recalls_with_http_info variant
1179
+
1180
+ This returns an Array which contains the response data, status code and headers.
1181
+
1182
+ > <Array(<DrugRecallsResponse>, Integer, Hash)> drugs_drug_recalls_with_http_info(id, opts)
1183
+
1184
+ ```ruby
1185
+ begin
1186
+ # Drug recalls
1187
+ data, status_code, headers = api_instance.drugs_drug_recalls_with_http_info(id, opts)
1188
+ p status_code # => 2xx
1189
+ p headers # => { ... }
1190
+ p data # => <DrugRecallsResponse>
1191
+ rescue PharmaObservatory::ApiError => e
1192
+ puts "Error when calling DrugsApi->drugs_drug_recalls_with_http_info: #{e}"
1193
+ end
1194
+ ```
1195
+
1196
+ ### Parameters
1197
+
1198
+ | Name | Type | Description | Notes |
1199
+ | ---- | ---- | ----------- | ----- |
1200
+ | **id** | **String** | | |
1201
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1202
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1203
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1204
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1205
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1206
+
1207
+ ### Return type
1208
+
1209
+ [**DrugRecallsResponse**](DrugRecallsResponse.md)
1210
+
1211
+ ### Authorization
1212
+
1213
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1214
+
1215
+ ### HTTP request headers
1216
+
1217
+ - **Content-Type**: Not defined
1218
+ - **Accept**: application/json
1219
+
1220
+
1221
+ ## drugs_drug_regulatory
1222
+
1223
+ > <DrugRegulatoryResponse> drugs_drug_regulatory(id, opts)
1224
+
1225
+ Drug regulatory status
1226
+
1227
+ ### Examples
1228
+
1229
+ ```ruby
1230
+ require 'time'
1231
+ require 'pharmaobservatory'
1232
+ # setup authorization
1233
+ PharmaObservatory.configure do |config|
1234
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1235
+ config.access_token = 'YOUR_BEARER_TOKEN'
1236
+ end
1237
+
1238
+ api_instance = PharmaObservatory::DrugsApi.new
1239
+ id = 'unii:53AXN4NNHX' # String |
1240
+ opts = {
1241
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1242
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1243
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1244
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1245
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1246
+ }
1247
+
1248
+ begin
1249
+ # Drug regulatory status
1250
+ result = api_instance.drugs_drug_regulatory(id, opts)
1251
+ p result
1252
+ rescue PharmaObservatory::ApiError => e
1253
+ puts "Error when calling DrugsApi->drugs_drug_regulatory: #{e}"
1254
+ end
1255
+ ```
1256
+
1257
+ #### Using the drugs_drug_regulatory_with_http_info variant
1258
+
1259
+ This returns an Array which contains the response data, status code and headers.
1260
+
1261
+ > <Array(<DrugRegulatoryResponse>, Integer, Hash)> drugs_drug_regulatory_with_http_info(id, opts)
1262
+
1263
+ ```ruby
1264
+ begin
1265
+ # Drug regulatory status
1266
+ data, status_code, headers = api_instance.drugs_drug_regulatory_with_http_info(id, opts)
1267
+ p status_code # => 2xx
1268
+ p headers # => { ... }
1269
+ p data # => <DrugRegulatoryResponse>
1270
+ rescue PharmaObservatory::ApiError => e
1271
+ puts "Error when calling DrugsApi->drugs_drug_regulatory_with_http_info: #{e}"
1272
+ end
1273
+ ```
1274
+
1275
+ ### Parameters
1276
+
1277
+ | Name | Type | Description | Notes |
1278
+ | ---- | ---- | ----------- | ----- |
1279
+ | **id** | **String** | | |
1280
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1281
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1282
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1283
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1284
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1285
+
1286
+ ### Return type
1287
+
1288
+ [**DrugRegulatoryResponse**](DrugRegulatoryResponse.md)
1289
+
1290
+ ### Authorization
1291
+
1292
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1293
+
1294
+ ### HTTP request headers
1295
+
1296
+ - **Content-Type**: Not defined
1297
+ - **Accept**: application/json
1298
+
1299
+
1300
+ ## drugs_drug_sites
1301
+
1302
+ > <DrugSitesResponse> drugs_drug_sites(id, opts)
1303
+
1304
+ Drug sites
1305
+
1306
+ ### Examples
1307
+
1308
+ ```ruby
1309
+ require 'time'
1310
+ require 'pharmaobservatory'
1311
+ # setup authorization
1312
+ PharmaObservatory.configure do |config|
1313
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1314
+ config.access_token = 'YOUR_BEARER_TOKEN'
1315
+ end
1316
+
1317
+ api_instance = PharmaObservatory::DrugsApi.new
1318
+ id = 'unii:53AXN4NNHX' # String |
1319
+ opts = {
1320
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1321
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1322
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1323
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1324
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1325
+ }
1326
+
1327
+ begin
1328
+ # Drug sites
1329
+ result = api_instance.drugs_drug_sites(id, opts)
1330
+ p result
1331
+ rescue PharmaObservatory::ApiError => e
1332
+ puts "Error when calling DrugsApi->drugs_drug_sites: #{e}"
1333
+ end
1334
+ ```
1335
+
1336
+ #### Using the drugs_drug_sites_with_http_info variant
1337
+
1338
+ This returns an Array which contains the response data, status code and headers.
1339
+
1340
+ > <Array(<DrugSitesResponse>, Integer, Hash)> drugs_drug_sites_with_http_info(id, opts)
1341
+
1342
+ ```ruby
1343
+ begin
1344
+ # Drug sites
1345
+ data, status_code, headers = api_instance.drugs_drug_sites_with_http_info(id, opts)
1346
+ p status_code # => 2xx
1347
+ p headers # => { ... }
1348
+ p data # => <DrugSitesResponse>
1349
+ rescue PharmaObservatory::ApiError => e
1350
+ puts "Error when calling DrugsApi->drugs_drug_sites_with_http_info: #{e}"
1351
+ end
1352
+ ```
1353
+
1354
+ ### Parameters
1355
+
1356
+ | Name | Type | Description | Notes |
1357
+ | ---- | ---- | ----------- | ----- |
1358
+ | **id** | **String** | | |
1359
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1360
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1361
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1362
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1363
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1364
+
1365
+ ### Return type
1366
+
1367
+ [**DrugSitesResponse**](DrugSitesResponse.md)
1368
+
1369
+ ### Authorization
1370
+
1371
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1372
+
1373
+ ### HTTP request headers
1374
+
1375
+ - **Content-Type**: Not defined
1376
+ - **Accept**: application/json
1377
+
1378
+
1379
+ ## drugs_drug_targets
1380
+
1381
+ > <DrugTargetsResponse> drugs_drug_targets(id, opts)
1382
+
1383
+ Drug targets
1384
+
1385
+ ### Examples
1386
+
1387
+ ```ruby
1388
+ require 'time'
1389
+ require 'pharmaobservatory'
1390
+ # setup authorization
1391
+ PharmaObservatory.configure do |config|
1392
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1393
+ config.access_token = 'YOUR_BEARER_TOKEN'
1394
+ end
1395
+
1396
+ api_instance = PharmaObservatory::DrugsApi.new
1397
+ id = 'unii:53AXN4NNHX' # String |
1398
+ opts = {
1399
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1400
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1401
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1402
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1403
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1404
+ }
1405
+
1406
+ begin
1407
+ # Drug targets
1408
+ result = api_instance.drugs_drug_targets(id, opts)
1409
+ p result
1410
+ rescue PharmaObservatory::ApiError => e
1411
+ puts "Error when calling DrugsApi->drugs_drug_targets: #{e}"
1412
+ end
1413
+ ```
1414
+
1415
+ #### Using the drugs_drug_targets_with_http_info variant
1416
+
1417
+ This returns an Array which contains the response data, status code and headers.
1418
+
1419
+ > <Array(<DrugTargetsResponse>, Integer, Hash)> drugs_drug_targets_with_http_info(id, opts)
1420
+
1421
+ ```ruby
1422
+ begin
1423
+ # Drug targets
1424
+ data, status_code, headers = api_instance.drugs_drug_targets_with_http_info(id, opts)
1425
+ p status_code # => 2xx
1426
+ p headers # => { ... }
1427
+ p data # => <DrugTargetsResponse>
1428
+ rescue PharmaObservatory::ApiError => e
1429
+ puts "Error when calling DrugsApi->drugs_drug_targets_with_http_info: #{e}"
1430
+ end
1431
+ ```
1432
+
1433
+ ### Parameters
1434
+
1435
+ | Name | Type | Description | Notes |
1436
+ | ---- | ---- | ----------- | ----- |
1437
+ | **id** | **String** | | |
1438
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1439
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1440
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1441
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1442
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1443
+
1444
+ ### Return type
1445
+
1446
+ [**DrugTargetsResponse**](DrugTargetsResponse.md)
1447
+
1448
+ ### Authorization
1449
+
1450
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1451
+
1452
+ ### HTTP request headers
1453
+
1454
+ - **Content-Type**: Not defined
1455
+ - **Accept**: application/json
1456
+
1457
+
1458
+ ## drugs_drug_trial_conditions
1459
+
1460
+ > <DrugTrialConditionsResponse> drugs_drug_trial_conditions(id, opts)
1461
+
1462
+ Drug trial conditions
1463
+
1464
+ ### Examples
1465
+
1466
+ ```ruby
1467
+ require 'time'
1468
+ require 'pharmaobservatory'
1469
+ # setup authorization
1470
+ PharmaObservatory.configure do |config|
1471
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1472
+ config.access_token = 'YOUR_BEARER_TOKEN'
1473
+ end
1474
+
1475
+ api_instance = PharmaObservatory::DrugsApi.new
1476
+ id = 'unii:53AXN4NNHX' # String |
1477
+ opts = {
1478
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1479
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1480
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1481
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1482
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1483
+ }
1484
+
1485
+ begin
1486
+ # Drug trial conditions
1487
+ result = api_instance.drugs_drug_trial_conditions(id, opts)
1488
+ p result
1489
+ rescue PharmaObservatory::ApiError => e
1490
+ puts "Error when calling DrugsApi->drugs_drug_trial_conditions: #{e}"
1491
+ end
1492
+ ```
1493
+
1494
+ #### Using the drugs_drug_trial_conditions_with_http_info variant
1495
+
1496
+ This returns an Array which contains the response data, status code and headers.
1497
+
1498
+ > <Array(<DrugTrialConditionsResponse>, Integer, Hash)> drugs_drug_trial_conditions_with_http_info(id, opts)
1499
+
1500
+ ```ruby
1501
+ begin
1502
+ # Drug trial conditions
1503
+ data, status_code, headers = api_instance.drugs_drug_trial_conditions_with_http_info(id, opts)
1504
+ p status_code # => 2xx
1505
+ p headers # => { ... }
1506
+ p data # => <DrugTrialConditionsResponse>
1507
+ rescue PharmaObservatory::ApiError => e
1508
+ puts "Error when calling DrugsApi->drugs_drug_trial_conditions_with_http_info: #{e}"
1509
+ end
1510
+ ```
1511
+
1512
+ ### Parameters
1513
+
1514
+ | Name | Type | Description | Notes |
1515
+ | ---- | ---- | ----------- | ----- |
1516
+ | **id** | **String** | | |
1517
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1518
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1519
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1520
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1521
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1522
+
1523
+ ### Return type
1524
+
1525
+ [**DrugTrialConditionsResponse**](DrugTrialConditionsResponse.md)
1526
+
1527
+ ### Authorization
1528
+
1529
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1530
+
1531
+ ### HTTP request headers
1532
+
1533
+ - **Content-Type**: Not defined
1534
+ - **Accept**: application/json
1535
+
1536
+
1537
+ ## drugs_drug_trials
1538
+
1539
+ > <DrugTrialsResponse> drugs_drug_trials(id, opts)
1540
+
1541
+ Drug trials
1542
+
1543
+ ### Examples
1544
+
1545
+ ```ruby
1546
+ require 'time'
1547
+ require 'pharmaobservatory'
1548
+ # setup authorization
1549
+ PharmaObservatory.configure do |config|
1550
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1551
+ config.access_token = 'YOUR_BEARER_TOKEN'
1552
+ end
1553
+
1554
+ api_instance = PharmaObservatory::DrugsApi.new
1555
+ id = 'unii:53AXN4NNHX' # String |
1556
+ opts = {
1557
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1558
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1559
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1560
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1561
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1562
+ }
1563
+
1564
+ begin
1565
+ # Drug trials
1566
+ result = api_instance.drugs_drug_trials(id, opts)
1567
+ p result
1568
+ rescue PharmaObservatory::ApiError => e
1569
+ puts "Error when calling DrugsApi->drugs_drug_trials: #{e}"
1570
+ end
1571
+ ```
1572
+
1573
+ #### Using the drugs_drug_trials_with_http_info variant
1574
+
1575
+ This returns an Array which contains the response data, status code and headers.
1576
+
1577
+ > <Array(<DrugTrialsResponse>, Integer, Hash)> drugs_drug_trials_with_http_info(id, opts)
1578
+
1579
+ ```ruby
1580
+ begin
1581
+ # Drug trials
1582
+ data, status_code, headers = api_instance.drugs_drug_trials_with_http_info(id, opts)
1583
+ p status_code # => 2xx
1584
+ p headers # => { ... }
1585
+ p data # => <DrugTrialsResponse>
1586
+ rescue PharmaObservatory::ApiError => e
1587
+ puts "Error when calling DrugsApi->drugs_drug_trials_with_http_info: #{e}"
1588
+ end
1589
+ ```
1590
+
1591
+ ### Parameters
1592
+
1593
+ | Name | Type | Description | Notes |
1594
+ | ---- | ---- | ----------- | ----- |
1595
+ | **id** | **String** | | |
1596
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1597
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1598
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1599
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1600
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1601
+
1602
+ ### Return type
1603
+
1604
+ [**DrugTrialsResponse**](DrugTrialsResponse.md)
1605
+
1606
+ ### Authorization
1607
+
1608
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1609
+
1610
+ ### HTTP request headers
1611
+
1612
+ - **Content-Type**: Not defined
1613
+ - **Accept**: application/json
1614
+
1615
+
1616
+ ## drugs_drug_variants
1617
+
1618
+ > <DrugVariantsResponse> drugs_drug_variants(id, opts)
1619
+
1620
+ Drug variants
1621
+
1622
+ ### Examples
1623
+
1624
+ ```ruby
1625
+ require 'time'
1626
+ require 'pharmaobservatory'
1627
+ # setup authorization
1628
+ PharmaObservatory.configure do |config|
1629
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1630
+ config.access_token = 'YOUR_BEARER_TOKEN'
1631
+ end
1632
+
1633
+ api_instance = PharmaObservatory::DrugsApi.new
1634
+ id = 'unii:53AXN4NNHX' # String |
1635
+ opts = {
1636
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1637
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1638
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1639
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1640
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1641
+ }
1642
+
1643
+ begin
1644
+ # Drug variants
1645
+ result = api_instance.drugs_drug_variants(id, opts)
1646
+ p result
1647
+ rescue PharmaObservatory::ApiError => e
1648
+ puts "Error when calling DrugsApi->drugs_drug_variants: #{e}"
1649
+ end
1650
+ ```
1651
+
1652
+ #### Using the drugs_drug_variants_with_http_info variant
1653
+
1654
+ This returns an Array which contains the response data, status code and headers.
1655
+
1656
+ > <Array(<DrugVariantsResponse>, Integer, Hash)> drugs_drug_variants_with_http_info(id, opts)
1657
+
1658
+ ```ruby
1659
+ begin
1660
+ # Drug variants
1661
+ data, status_code, headers = api_instance.drugs_drug_variants_with_http_info(id, opts)
1662
+ p status_code # => 2xx
1663
+ p headers # => { ... }
1664
+ p data # => <DrugVariantsResponse>
1665
+ rescue PharmaObservatory::ApiError => e
1666
+ puts "Error when calling DrugsApi->drugs_drug_variants_with_http_info: #{e}"
1667
+ end
1668
+ ```
1669
+
1670
+ ### Parameters
1671
+
1672
+ | Name | Type | Description | Notes |
1673
+ | ---- | ---- | ----------- | ----- |
1674
+ | **id** | **String** | | |
1675
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1676
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1677
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1678
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1679
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1680
+
1681
+ ### Return type
1682
+
1683
+ [**DrugVariantsResponse**](DrugVariantsResponse.md)
1684
+
1685
+ ### Authorization
1686
+
1687
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1688
+
1689
+ ### HTTP request headers
1690
+
1691
+ - **Content-Type**: Not defined
1692
+ - **Accept**: application/json
1693
+
1694
+
1695
+ ## drugs_get
1696
+
1697
+ > <DrugsRecord> drugs_get(id)
1698
+
1699
+ One drug
1700
+
1701
+ ### Examples
1702
+
1703
+ ```ruby
1704
+ require 'time'
1705
+ require 'pharmaobservatory'
1706
+ # setup authorization
1707
+ PharmaObservatory.configure do |config|
1708
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1709
+ config.access_token = 'YOUR_BEARER_TOKEN'
1710
+ end
1711
+
1712
+ api_instance = PharmaObservatory::DrugsApi.new
1713
+ id = 'unii:53AXN4NNHX' # String |
1714
+
1715
+ begin
1716
+ # One drug
1717
+ result = api_instance.drugs_get(id)
1718
+ p result
1719
+ rescue PharmaObservatory::ApiError => e
1720
+ puts "Error when calling DrugsApi->drugs_get: #{e}"
1721
+ end
1722
+ ```
1723
+
1724
+ #### Using the drugs_get_with_http_info variant
1725
+
1726
+ This returns an Array which contains the response data, status code and headers.
1727
+
1728
+ > <Array(<DrugsRecord>, Integer, Hash)> drugs_get_with_http_info(id)
1729
+
1730
+ ```ruby
1731
+ begin
1732
+ # One drug
1733
+ data, status_code, headers = api_instance.drugs_get_with_http_info(id)
1734
+ p status_code # => 2xx
1735
+ p headers # => { ... }
1736
+ p data # => <DrugsRecord>
1737
+ rescue PharmaObservatory::ApiError => e
1738
+ puts "Error when calling DrugsApi->drugs_get_with_http_info: #{e}"
1739
+ end
1740
+ ```
1741
+
1742
+ ### Parameters
1743
+
1744
+ | Name | Type | Description | Notes |
1745
+ | ---- | ---- | ----------- | ----- |
1746
+ | **id** | **String** | | |
1747
+
1748
+ ### Return type
1749
+
1750
+ [**DrugsRecord**](DrugsRecord.md)
1751
+
1752
+ ### Authorization
1753
+
1754
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1755
+
1756
+ ### HTTP request headers
1757
+
1758
+ - **Content-Type**: Not defined
1759
+ - **Accept**: application/json
1760
+
1761
+
1762
+ ## drugs_list
1763
+
1764
+ > <DrugsResponse> drugs_list(opts)
1765
+
1766
+ List drugs
1767
+
1768
+ ### Examples
1769
+
1770
+ ```ruby
1771
+ require 'time'
1772
+ require 'pharmaobservatory'
1773
+ # setup authorization
1774
+ PharmaObservatory.configure do |config|
1775
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1776
+ config.access_token = 'YOUR_BEARER_TOKEN'
1777
+ end
1778
+
1779
+ api_instance = PharmaObservatory::DrugsApi.new
1780
+ opts = {
1781
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1782
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1783
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1784
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1785
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1786
+ }
1787
+
1788
+ begin
1789
+ # List drugs
1790
+ result = api_instance.drugs_list(opts)
1791
+ p result
1792
+ rescue PharmaObservatory::ApiError => e
1793
+ puts "Error when calling DrugsApi->drugs_list: #{e}"
1794
+ end
1795
+ ```
1796
+
1797
+ #### Using the drugs_list_with_http_info variant
1798
+
1799
+ This returns an Array which contains the response data, status code and headers.
1800
+
1801
+ > <Array(<DrugsResponse>, Integer, Hash)> drugs_list_with_http_info(opts)
1802
+
1803
+ ```ruby
1804
+ begin
1805
+ # List drugs
1806
+ data, status_code, headers = api_instance.drugs_list_with_http_info(opts)
1807
+ p status_code # => 2xx
1808
+ p headers # => { ... }
1809
+ p data # => <DrugsResponse>
1810
+ rescue PharmaObservatory::ApiError => e
1811
+ puts "Error when calling DrugsApi->drugs_list_with_http_info: #{e}"
1812
+ end
1813
+ ```
1814
+
1815
+ ### Parameters
1816
+
1817
+ | Name | Type | Description | Notes |
1818
+ | ---- | ---- | ----------- | ----- |
1819
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1820
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1821
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1822
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1823
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1824
+
1825
+ ### Return type
1826
+
1827
+ [**DrugsResponse**](DrugsResponse.md)
1828
+
1829
+ ### Authorization
1830
+
1831
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1832
+
1833
+ ### HTTP request headers
1834
+
1835
+ - **Content-Type**: Not defined
1836
+ - **Accept**: application/json
1837
+
1838
+
1839
+ ## drugs_pdufa_dates
1840
+
1841
+ > <PdufaDatesResponse> drugs_pdufa_dates(id, opts)
1842
+
1843
+ FDA decision dates (PDUFA) and catalysts
1844
+
1845
+ ### Examples
1846
+
1847
+ ```ruby
1848
+ require 'time'
1849
+ require 'pharmaobservatory'
1850
+ # setup authorization
1851
+ PharmaObservatory.configure do |config|
1852
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1853
+ config.access_token = 'YOUR_BEARER_TOKEN'
1854
+ end
1855
+
1856
+ api_instance = PharmaObservatory::DrugsApi.new
1857
+ id = 'unii:53AXN4NNHX' # String |
1858
+ opts = {
1859
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1860
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1861
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1862
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1863
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1864
+ }
1865
+
1866
+ begin
1867
+ # FDA decision dates (PDUFA) and catalysts
1868
+ result = api_instance.drugs_pdufa_dates(id, opts)
1869
+ p result
1870
+ rescue PharmaObservatory::ApiError => e
1871
+ puts "Error when calling DrugsApi->drugs_pdufa_dates: #{e}"
1872
+ end
1873
+ ```
1874
+
1875
+ #### Using the drugs_pdufa_dates_with_http_info variant
1876
+
1877
+ This returns an Array which contains the response data, status code and headers.
1878
+
1879
+ > <Array(<PdufaDatesResponse>, Integer, Hash)> drugs_pdufa_dates_with_http_info(id, opts)
1880
+
1881
+ ```ruby
1882
+ begin
1883
+ # FDA decision dates (PDUFA) and catalysts
1884
+ data, status_code, headers = api_instance.drugs_pdufa_dates_with_http_info(id, opts)
1885
+ p status_code # => 2xx
1886
+ p headers # => { ... }
1887
+ p data # => <PdufaDatesResponse>
1888
+ rescue PharmaObservatory::ApiError => e
1889
+ puts "Error when calling DrugsApi->drugs_pdufa_dates_with_http_info: #{e}"
1890
+ end
1891
+ ```
1892
+
1893
+ ### Parameters
1894
+
1895
+ | Name | Type | Description | Notes |
1896
+ | ---- | ---- | ----------- | ----- |
1897
+ | **id** | **String** | | |
1898
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1899
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1900
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1901
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1902
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1903
+
1904
+ ### Return type
1905
+
1906
+ [**PdufaDatesResponse**](PdufaDatesResponse.md)
1907
+
1908
+ ### Authorization
1909
+
1910
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1911
+
1912
+ ### HTTP request headers
1913
+
1914
+ - **Content-Type**: Not defined
1915
+ - **Accept**: application/json
1916
+
1917
+
1918
+ ## drugs_programs
1919
+
1920
+ > <ProgramsResponse> drugs_programs(id, opts)
1921
+
1922
+ Programs
1923
+
1924
+ ### Examples
1925
+
1926
+ ```ruby
1927
+ require 'time'
1928
+ require 'pharmaobservatory'
1929
+ # setup authorization
1930
+ PharmaObservatory.configure do |config|
1931
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1932
+ config.access_token = 'YOUR_BEARER_TOKEN'
1933
+ end
1934
+
1935
+ api_instance = PharmaObservatory::DrugsApi.new
1936
+ id = 'unii:53AXN4NNHX' # String |
1937
+ opts = {
1938
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1939
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1940
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1941
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1942
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1943
+ }
1944
+
1945
+ begin
1946
+ # Programs
1947
+ result = api_instance.drugs_programs(id, opts)
1948
+ p result
1949
+ rescue PharmaObservatory::ApiError => e
1950
+ puts "Error when calling DrugsApi->drugs_programs: #{e}"
1951
+ end
1952
+ ```
1953
+
1954
+ #### Using the drugs_programs_with_http_info variant
1955
+
1956
+ This returns an Array which contains the response data, status code and headers.
1957
+
1958
+ > <Array(<ProgramsResponse>, Integer, Hash)> drugs_programs_with_http_info(id, opts)
1959
+
1960
+ ```ruby
1961
+ begin
1962
+ # Programs
1963
+ data, status_code, headers = api_instance.drugs_programs_with_http_info(id, opts)
1964
+ p status_code # => 2xx
1965
+ p headers # => { ... }
1966
+ p data # => <ProgramsResponse>
1967
+ rescue PharmaObservatory::ApiError => e
1968
+ puts "Error when calling DrugsApi->drugs_programs_with_http_info: #{e}"
1969
+ end
1970
+ ```
1971
+
1972
+ ### Parameters
1973
+
1974
+ | Name | Type | Description | Notes |
1975
+ | ---- | ---- | ----------- | ----- |
1976
+ | **id** | **String** | | |
1977
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1978
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1979
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1980
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1981
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1982
+
1983
+ ### Return type
1984
+
1985
+ [**ProgramsResponse**](ProgramsResponse.md)
1986
+
1987
+ ### Authorization
1988
+
1989
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1990
+
1991
+ ### HTTP request headers
1992
+
1993
+ - **Content-Type**: Not defined
1994
+ - **Accept**: application/json
1995
+
1996
+
1997
+ ## drugs_sec_pdufa_dates
1998
+
1999
+ > <SecPdufaDatesResponse> drugs_sec_pdufa_dates(id, opts)
2000
+
2001
+ FDA dates disclosed in SEC filings
2002
+
2003
+ ### Examples
2004
+
2005
+ ```ruby
2006
+ require 'time'
2007
+ require 'pharmaobservatory'
2008
+ # setup authorization
2009
+ PharmaObservatory.configure do |config|
2010
+ # Configure Bearer authorization (JWT): ApiBearerJwt
2011
+ config.access_token = 'YOUR_BEARER_TOKEN'
2012
+ end
2013
+
2014
+ api_instance = PharmaObservatory::DrugsApi.new
2015
+ id = 'unii:53AXN4NNHX' # String |
2016
+ opts = {
2017
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2018
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
2019
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
2020
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
2021
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2022
+ }
2023
+
2024
+ begin
2025
+ # FDA dates disclosed in SEC filings
2026
+ result = api_instance.drugs_sec_pdufa_dates(id, opts)
2027
+ p result
2028
+ rescue PharmaObservatory::ApiError => e
2029
+ puts "Error when calling DrugsApi->drugs_sec_pdufa_dates: #{e}"
2030
+ end
2031
+ ```
2032
+
2033
+ #### Using the drugs_sec_pdufa_dates_with_http_info variant
2034
+
2035
+ This returns an Array which contains the response data, status code and headers.
2036
+
2037
+ > <Array(<SecPdufaDatesResponse>, Integer, Hash)> drugs_sec_pdufa_dates_with_http_info(id, opts)
2038
+
2039
+ ```ruby
2040
+ begin
2041
+ # FDA dates disclosed in SEC filings
2042
+ data, status_code, headers = api_instance.drugs_sec_pdufa_dates_with_http_info(id, opts)
2043
+ p status_code # => 2xx
2044
+ p headers # => { ... }
2045
+ p data # => <SecPdufaDatesResponse>
2046
+ rescue PharmaObservatory::ApiError => e
2047
+ puts "Error when calling DrugsApi->drugs_sec_pdufa_dates_with_http_info: #{e}"
2048
+ end
2049
+ ```
2050
+
2051
+ ### Parameters
2052
+
2053
+ | Name | Type | Description | Notes |
2054
+ | ---- | ---- | ----------- | ----- |
2055
+ | **id** | **String** | | |
2056
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
2057
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
2058
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
2059
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
2060
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
2061
+
2062
+ ### Return type
2063
+
2064
+ [**SecPdufaDatesResponse**](SecPdufaDatesResponse.md)
2065
+
2066
+ ### Authorization
2067
+
2068
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
2069
+
2070
+ ### HTTP request headers
2071
+
2072
+ - **Content-Type**: Not defined
2073
+ - **Accept**: application/json
2074
+
2075
+
2076
+ ## drugs_trial_drugs
2077
+
2078
+ > <TrialDrugsResponse> drugs_trial_drugs(id, opts)
2079
+
2080
+ Trial drugs
2081
+
2082
+ ### Examples
2083
+
2084
+ ```ruby
2085
+ require 'time'
2086
+ require 'pharmaobservatory'
2087
+ # setup authorization
2088
+ PharmaObservatory.configure do |config|
2089
+ # Configure Bearer authorization (JWT): ApiBearerJwt
2090
+ config.access_token = 'YOUR_BEARER_TOKEN'
2091
+ end
2092
+
2093
+ api_instance = PharmaObservatory::DrugsApi.new
2094
+ id = 'unii:53AXN4NNHX' # String |
2095
+ opts = {
2096
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
2097
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
2098
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
2099
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
2100
+ measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
2101
+ }
2102
+
2103
+ begin
2104
+ # Trial drugs
2105
+ result = api_instance.drugs_trial_drugs(id, opts)
2106
+ p result
2107
+ rescue PharmaObservatory::ApiError => e
2108
+ puts "Error when calling DrugsApi->drugs_trial_drugs: #{e}"
2109
+ end
2110
+ ```
2111
+
2112
+ #### Using the drugs_trial_drugs_with_http_info variant
2113
+
2114
+ This returns an Array which contains the response data, status code and headers.
2115
+
2116
+ > <Array(<TrialDrugsResponse>, Integer, Hash)> drugs_trial_drugs_with_http_info(id, opts)
2117
+
2118
+ ```ruby
2119
+ begin
2120
+ # Trial drugs
2121
+ data, status_code, headers = api_instance.drugs_trial_drugs_with_http_info(id, opts)
2122
+ p status_code # => 2xx
2123
+ p headers # => { ... }
2124
+ p data # => <TrialDrugsResponse>
2125
+ rescue PharmaObservatory::ApiError => e
2126
+ puts "Error when calling DrugsApi->drugs_trial_drugs_with_http_info: #{e}"
2127
+ end
2128
+ ```
2129
+
2130
+ ### Parameters
2131
+
2132
+ | Name | Type | Description | Notes |
2133
+ | ---- | ---- | ----------- | ----- |
2134
+ | **id** | **String** | | |
2135
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
2136
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
2137
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
2138
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
2139
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
2140
+
2141
+ ### Return type
2142
+
2143
+ [**TrialDrugsResponse**](TrialDrugsResponse.md)
2144
+
2145
+ ### Authorization
2146
+
2147
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
2148
+
2149
+ ### HTTP request headers
2150
+
2151
+ - **Content-Type**: Not defined
2152
+ - **Accept**: application/json
2153
+