pharmaobservatory 0.1.3 → 0.1.4

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 (175) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +101 -4
  3. data/docs/BiomarkerBqpAssertionsRow.md +1 -1
  4. data/docs/BiomarkerEvidenceRow.md +1 -1
  5. data/docs/BiomarkerLiteratureRow.md +1 -1
  6. data/docs/BiomarkerRelationsResponse.md +58 -0
  7. data/docs/BiomarkerRelationsRow.md +54 -0
  8. data/docs/BiomarkerSampleCoverageResponse.md +58 -0
  9. data/docs/BiomarkerSampleCoverageRow.md +36 -0
  10. data/docs/BiomarkerSamplePrevalenceResponse.md +58 -0
  11. data/docs/BiomarkerSamplePrevalenceRow.md +56 -0
  12. data/docs/BiomarkerValidationResponse.md +58 -0
  13. data/docs/BiomarkerValidationRow.md +70 -0
  14. data/docs/BiomarkersApi.md +320 -0
  15. data/docs/BiomarkersRow.md +2 -2
  16. data/docs/CellLinesRow.md +1 -1
  17. data/docs/CompaniesApi.md +410 -0
  18. data/docs/CompaniesRecord.md +1 -1
  19. data/docs/CompaniesRecordAttributes.md +18 -0
  20. data/docs/CompaniesRow.md +7 -3
  21. data/docs/CompanyAssetsResponse.md +58 -0
  22. data/docs/CompanyAssetsRow.md +42 -0
  23. data/docs/CompanyFundingEventsResponse.md +58 -0
  24. data/docs/CompanyFundingEventsRow.md +62 -0
  25. data/docs/CompanyFundingSummaryResponse.md +58 -0
  26. data/docs/CompanyFundingSummaryRow.md +46 -0
  27. data/docs/CompanyProgramsRow.md +2 -2
  28. data/docs/ConditionAdverseEventsResponse.md +58 -0
  29. data/docs/ConditionAdverseEventsRow.md +24 -0
  30. data/docs/ConditionBurdenResponse.md +58 -0
  31. data/docs/ConditionBurdenRow.md +32 -0
  32. data/docs/ConditionDeliveryResponse.md +58 -0
  33. data/docs/ConditionDeliveryRow.md +44 -0
  34. data/docs/ConditionDrugsResponse.md +58 -0
  35. data/docs/ConditionDrugsRow.md +26 -0
  36. data/docs/ConditionPrevalenceResponse.md +58 -0
  37. data/docs/ConditionPrevalenceRow.md +62 -0
  38. data/docs/ConditionPublicationsResponse.md +58 -0
  39. data/docs/ConditionPublicationsRow.md +32 -0
  40. data/docs/ConditionSitesResponse.md +58 -0
  41. data/docs/ConditionSitesRow.md +28 -0
  42. data/docs/ConditionTrialsResponse.md +58 -0
  43. data/docs/ConditionTrialsRow.md +58 -0
  44. data/docs/ConditionsApi.md +953 -0
  45. data/docs/ConditionsRecord.md +38 -0
  46. data/docs/ConditionsRecordAttributes.md +20 -0
  47. data/docs/ConditionsResponse.md +58 -0
  48. data/docs/ConditionsRow.md +32 -0
  49. data/docs/DrugPatentCliffRow.md +1 -1
  50. data/docs/InstitutionalHoldingsRow.md +3 -1
  51. data/docs/LegalEntitiesApi.md +160 -0
  52. data/docs/LegalEntitiesRow.md +1 -1
  53. data/docs/OwnershipPositionsResponse.md +58 -0
  54. data/docs/OwnershipPositionsRow.md +100 -0
  55. data/docs/PdufaDatesRow.md +2 -2
  56. data/docs/SiteCroTrialsRow.md +1 -1
  57. data/docs/SiteTrialConditionsRow.md +1 -1
  58. data/docs/SiteTrialDrugsRow.md +1 -1
  59. data/docs/SiteTrialsRow.md +1 -1
  60. data/docs/SponsorRecruitmentByPhaseRow.md +2 -2
  61. data/docs/SponsorRecruitmentDurationRow.md +1 -1
  62. data/docs/SponsorTrialsRow.md +2 -2
  63. data/docs/TrialAdverseEventsResponse.md +58 -0
  64. data/docs/TrialAdverseEventsRow.md +28 -0
  65. data/docs/TrialChangesResponse.md +58 -0
  66. data/docs/TrialChangesRow.md +36 -0
  67. data/docs/TrialDeliveryResponse.md +58 -0
  68. data/docs/TrialDeliveryRow.md +64 -0
  69. data/docs/TrialDemographicsResponse.md +58 -0
  70. data/docs/TrialDemographicsRow.md +32 -0
  71. data/docs/TrialDrugsResponse.md +58 -0
  72. data/docs/TrialDrugsRow.md +30 -0
  73. data/docs/TrialEnrollmentHistoryResponse.md +58 -0
  74. data/docs/TrialEnrollmentHistoryRow.md +36 -0
  75. data/docs/TrialEnrollmentRateResponse.md +58 -0
  76. data/docs/TrialEnrollmentRateRow.md +58 -0
  77. data/docs/TrialExtractedEndpointsResponse.md +58 -0
  78. data/docs/TrialExtractedEndpointsRow.md +40 -0
  79. data/docs/TrialOutcomeMeasuresResponse.md +58 -0
  80. data/docs/TrialOutcomeMeasuresRow.md +28 -0
  81. data/docs/TrialSitesResponse.md +58 -0
  82. data/docs/TrialSitesRow.md +46 -0
  83. data/docs/TrialsApi.md +1033 -0
  84. data/docs/TrialsRecord.md +38 -0
  85. data/docs/TrialsRecordAttributes.md +24 -0
  86. data/docs/TrialsResponse.md +58 -0
  87. data/docs/TrialsRow.md +116 -0
  88. data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
  89. data/lib/pharmaobservatory/api/companies_api.rb +455 -0
  90. data/lib/pharmaobservatory/api/conditions_api.rb +1001 -0
  91. data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
  92. data/lib/pharmaobservatory/api/trials_api.rb +1085 -0
  93. data/lib/pharmaobservatory/models/biomarker_bqp_assertions_row.rb +1 -1
  94. data/lib/pharmaobservatory/models/biomarker_evidence_row.rb +1 -1
  95. data/lib/pharmaobservatory/models/biomarker_literature_row.rb +1 -1
  96. data/lib/pharmaobservatory/models/biomarker_relations_response.rb +478 -0
  97. data/lib/pharmaobservatory/models/biomarker_relations_row.rb +421 -0
  98. data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +478 -0
  99. data/lib/pharmaobservatory/models/biomarker_sample_coverage_row.rb +322 -0
  100. data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +478 -0
  101. data/lib/pharmaobservatory/models/biomarker_sample_prevalence_row.rb +436 -0
  102. data/lib/pharmaobservatory/models/biomarker_validation_response.rb +478 -0
  103. data/lib/pharmaobservatory/models/biomarker_validation_row.rb +509 -0
  104. data/lib/pharmaobservatory/models/biomarkers_row.rb +2 -2
  105. data/lib/pharmaobservatory/models/cell_lines_row.rb +1 -1
  106. data/lib/pharmaobservatory/models/companies_record.rb +1 -1
  107. data/lib/pharmaobservatory/models/companies_record_attributes.rb +220 -0
  108. data/lib/pharmaobservatory/models/companies_row.rb +29 -7
  109. data/lib/pharmaobservatory/models/company_assets_response.rb +478 -0
  110. data/lib/pharmaobservatory/models/company_assets_row.rb +355 -0
  111. data/lib/pharmaobservatory/models/company_funding_events_response.rb +478 -0
  112. data/lib/pharmaobservatory/models/company_funding_events_row.rb +465 -0
  113. data/lib/pharmaobservatory/models/company_funding_summary_response.rb +478 -0
  114. data/lib/pharmaobservatory/models/company_funding_summary_row.rb +377 -0
  115. data/lib/pharmaobservatory/models/company_programs_row.rb +2 -2
  116. data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +478 -0
  117. data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +256 -0
  118. data/lib/pharmaobservatory/models/condition_burden_response.rb +478 -0
  119. data/lib/pharmaobservatory/models/condition_burden_row.rb +300 -0
  120. data/lib/pharmaobservatory/models/condition_delivery_response.rb +478 -0
  121. data/lib/pharmaobservatory/models/condition_delivery_row.rb +366 -0
  122. data/lib/pharmaobservatory/models/condition_drugs_response.rb +478 -0
  123. data/lib/pharmaobservatory/models/condition_drugs_row.rb +267 -0
  124. data/lib/pharmaobservatory/models/condition_prevalence_response.rb +478 -0
  125. data/lib/pharmaobservatory/models/condition_prevalence_row.rb +465 -0
  126. data/lib/pharmaobservatory/models/condition_publications_response.rb +478 -0
  127. data/lib/pharmaobservatory/models/condition_publications_row.rb +300 -0
  128. data/lib/pharmaobservatory/models/condition_sites_response.rb +478 -0
  129. data/lib/pharmaobservatory/models/condition_sites_row.rb +278 -0
  130. data/lib/pharmaobservatory/models/condition_trials_response.rb +478 -0
  131. data/lib/pharmaobservatory/models/condition_trials_row.rb +443 -0
  132. data/lib/pharmaobservatory/models/conditions_record.rb +385 -0
  133. data/lib/pharmaobservatory/models/conditions_record_attributes.rb +229 -0
  134. data/lib/pharmaobservatory/models/conditions_response.rb +478 -0
  135. data/lib/pharmaobservatory/models/conditions_row.rb +304 -0
  136. data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +1 -1
  137. data/lib/pharmaobservatory/models/institutional_holdings_row.rb +13 -2
  138. data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
  139. data/lib/pharmaobservatory/models/ownership_positions_response.rb +478 -0
  140. data/lib/pharmaobservatory/models/ownership_positions_row.rb +674 -0
  141. data/lib/pharmaobservatory/models/pdufa_dates_row.rb +2 -2
  142. data/lib/pharmaobservatory/models/site_cro_trials_row.rb +1 -1
  143. data/lib/pharmaobservatory/models/site_trial_conditions_row.rb +1 -1
  144. data/lib/pharmaobservatory/models/site_trial_drugs_row.rb +1 -1
  145. data/lib/pharmaobservatory/models/site_trials_row.rb +1 -1
  146. data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_row.rb +2 -2
  147. data/lib/pharmaobservatory/models/sponsor_recruitment_duration_row.rb +1 -1
  148. data/lib/pharmaobservatory/models/sponsor_trials_row.rb +2 -2
  149. data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +478 -0
  150. data/lib/pharmaobservatory/models/trial_adverse_events_row.rb +278 -0
  151. data/lib/pharmaobservatory/models/trial_changes_response.rb +478 -0
  152. data/lib/pharmaobservatory/models/trial_changes_row.rb +328 -0
  153. data/lib/pharmaobservatory/models/trial_delivery_response.rb +478 -0
  154. data/lib/pharmaobservatory/models/trial_delivery_row.rb +476 -0
  155. data/lib/pharmaobservatory/models/trial_demographics_response.rb +478 -0
  156. data/lib/pharmaobservatory/models/trial_demographics_row.rb +300 -0
  157. data/lib/pharmaobservatory/models/trial_drugs_response.rb +478 -0
  158. data/lib/pharmaobservatory/models/trial_drugs_row.rb +291 -0
  159. data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +478 -0
  160. data/lib/pharmaobservatory/models/trial_enrollment_history_row.rb +322 -0
  161. data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +478 -0
  162. data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +443 -0
  163. data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +478 -0
  164. data/lib/pharmaobservatory/models/trial_extracted_endpoints_row.rb +346 -0
  165. data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +478 -0
  166. data/lib/pharmaobservatory/models/trial_outcome_measures_row.rb +278 -0
  167. data/lib/pharmaobservatory/models/trial_sites_response.rb +478 -0
  168. data/lib/pharmaobservatory/models/trial_sites_row.rb +377 -0
  169. data/lib/pharmaobservatory/models/trials_record.rb +385 -0
  170. data/lib/pharmaobservatory/models/trials_record_attributes.rb +247 -0
  171. data/lib/pharmaobservatory/models/trials_response.rb +478 -0
  172. data/lib/pharmaobservatory/models/trials_row.rb +784 -0
  173. data/lib/pharmaobservatory/version.rb +1 -1
  174. data/lib/pharmaobservatory.rb +63 -0
  175. metadata +127 -1
@@ -0,0 +1,1085 @@
1
+ =begin
2
+ #Pharma Observatory Public REST API
3
+
4
+ #Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PharmaObservatory
16
+ class TrialsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # One trial
23
+ # @param id [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [TrialsRecord]
26
+ def trials_get(id, opts = {})
27
+ data, _status_code, _headers = trials_get_with_http_info(id, opts)
28
+ data
29
+ end
30
+
31
+ # One trial
32
+ # @param id [String]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(TrialsRecord, Integer, Hash)>] TrialsRecord data, response status code and response headers
35
+ def trials_get_with_http_info(id, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_get ...'
38
+ end
39
+ # verify the required parameter 'id' is set
40
+ if @api_client.config.client_side_validation && id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_get"
42
+ end
43
+ # resource path
44
+ local_var_path = '/api/v1/trials/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body]
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'TrialsRecord'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"TrialsApi.trials_get",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: TrialsApi#trials_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+
83
+ # List trials
84
+ # @param [Hash] opts the optional parameters
85
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
86
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
87
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
88
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
89
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
90
+ # @return [TrialsResponse]
91
+ def trials_list(opts = {})
92
+ data, _status_code, _headers = trials_list_with_http_info(opts)
93
+ data
94
+ end
95
+
96
+ # List trials
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
99
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
100
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
101
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
102
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
103
+ # @return [Array<(TrialsResponse, Integer, Hash)>] TrialsResponse data, response status code and response headers
104
+ def trials_list_with_http_info(opts = {})
105
+ if @api_client.config.debugging
106
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_list ...'
107
+ end
108
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
109
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_list, must be smaller than or equal to 500.'
110
+ end
111
+
112
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
113
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_list, must be greater than or equal to 1.'
114
+ end
115
+
116
+ # resource path
117
+ local_var_path = '/api/v1/trials'
118
+
119
+ # query parameters
120
+ query_params = opts[:query_params] || {}
121
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
122
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
123
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
124
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
125
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
126
+
127
+ # header parameters
128
+ header_params = opts[:header_params] || {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:debug_body]
137
+
138
+ # return_type
139
+ return_type = opts[:debug_return_type] || 'TrialsResponse'
140
+
141
+ # auth_names
142
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
143
+
144
+ new_options = opts.merge(
145
+ :operation => :"TrialsApi.trials_list",
146
+ :header_params => header_params,
147
+ :query_params => query_params,
148
+ :form_params => form_params,
149
+ :body => post_body,
150
+ :auth_names => auth_names,
151
+ :return_type => return_type
152
+ )
153
+
154
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "API called: TrialsApi#trials_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
+ end
158
+ return data, status_code, headers
159
+ end
160
+
161
+ # Sponsor trials
162
+ # @param id [String]
163
+ # @param [Hash] opts the optional parameters
164
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
165
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
166
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
167
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
168
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
169
+ # @return [SponsorTrialsResponse]
170
+ def trials_sponsor_trials(id, opts = {})
171
+ data, _status_code, _headers = trials_sponsor_trials_with_http_info(id, opts)
172
+ data
173
+ end
174
+
175
+ # Sponsor trials
176
+ # @param id [String]
177
+ # @param [Hash] opts the optional parameters
178
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
179
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
180
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
181
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
182
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
183
+ # @return [Array<(SponsorTrialsResponse, Integer, Hash)>] SponsorTrialsResponse data, response status code and response headers
184
+ def trials_sponsor_trials_with_http_info(id, opts = {})
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_sponsor_trials ...'
187
+ end
188
+ # verify the required parameter 'id' is set
189
+ if @api_client.config.client_side_validation && id.nil?
190
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_sponsor_trials"
191
+ end
192
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
193
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_sponsor_trials, must be smaller than or equal to 500.'
194
+ end
195
+
196
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
197
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_sponsor_trials, must be greater than or equal to 1.'
198
+ end
199
+
200
+ # resource path
201
+ local_var_path = '/api/v1/trials/{id}/sponsor_trials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
202
+
203
+ # query parameters
204
+ query_params = opts[:query_params] || {}
205
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
206
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
207
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
208
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
209
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
210
+
211
+ # header parameters
212
+ header_params = opts[:header_params] || {}
213
+ # HTTP header 'Accept' (if needed)
214
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
215
+
216
+ # form parameters
217
+ form_params = opts[:form_params] || {}
218
+
219
+ # http body (model)
220
+ post_body = opts[:debug_body]
221
+
222
+ # return_type
223
+ return_type = opts[:debug_return_type] || 'SponsorTrialsResponse'
224
+
225
+ # auth_names
226
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
227
+
228
+ new_options = opts.merge(
229
+ :operation => :"TrialsApi.trials_sponsor_trials",
230
+ :header_params => header_params,
231
+ :query_params => query_params,
232
+ :form_params => form_params,
233
+ :body => post_body,
234
+ :auth_names => auth_names,
235
+ :return_type => return_type
236
+ )
237
+
238
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
239
+ if @api_client.config.debugging
240
+ @api_client.config.logger.debug "API called: TrialsApi#trials_sponsor_trials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ end
242
+ return data, status_code, headers
243
+ end
244
+
245
+ # Trial adverse events
246
+ # @param id [String]
247
+ # @param [Hash] opts the optional parameters
248
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
249
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
250
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
251
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
252
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
253
+ # @return [TrialAdverseEventsResponse]
254
+ def trials_trial_adverse_events(id, opts = {})
255
+ data, _status_code, _headers = trials_trial_adverse_events_with_http_info(id, opts)
256
+ data
257
+ end
258
+
259
+ # Trial adverse events
260
+ # @param id [String]
261
+ # @param [Hash] opts the optional parameters
262
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
263
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
264
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
265
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
266
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
267
+ # @return [Array<(TrialAdverseEventsResponse, Integer, Hash)>] TrialAdverseEventsResponse data, response status code and response headers
268
+ def trials_trial_adverse_events_with_http_info(id, opts = {})
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_adverse_events ...'
271
+ end
272
+ # verify the required parameter 'id' is set
273
+ if @api_client.config.client_side_validation && id.nil?
274
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_adverse_events"
275
+ end
276
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
277
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_adverse_events, must be smaller than or equal to 500.'
278
+ end
279
+
280
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
281
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_adverse_events, must be greater than or equal to 1.'
282
+ end
283
+
284
+ # resource path
285
+ local_var_path = '/api/v1/trials/{id}/trial_adverse_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
286
+
287
+ # query parameters
288
+ query_params = opts[:query_params] || {}
289
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
290
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
291
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
292
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
293
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
294
+
295
+ # header parameters
296
+ header_params = opts[:header_params] || {}
297
+ # HTTP header 'Accept' (if needed)
298
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
299
+
300
+ # form parameters
301
+ form_params = opts[:form_params] || {}
302
+
303
+ # http body (model)
304
+ post_body = opts[:debug_body]
305
+
306
+ # return_type
307
+ return_type = opts[:debug_return_type] || 'TrialAdverseEventsResponse'
308
+
309
+ # auth_names
310
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
311
+
312
+ new_options = opts.merge(
313
+ :operation => :"TrialsApi.trials_trial_adverse_events",
314
+ :header_params => header_params,
315
+ :query_params => query_params,
316
+ :form_params => form_params,
317
+ :body => post_body,
318
+ :auth_names => auth_names,
319
+ :return_type => return_type
320
+ )
321
+
322
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
323
+ if @api_client.config.debugging
324
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_adverse_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
+ end
326
+ return data, status_code, headers
327
+ end
328
+
329
+ # Trial changes
330
+ # @param id [String]
331
+ # @param [Hash] opts the optional parameters
332
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
333
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
334
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
335
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
336
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
337
+ # @return [TrialChangesResponse]
338
+ def trials_trial_changes(id, opts = {})
339
+ data, _status_code, _headers = trials_trial_changes_with_http_info(id, opts)
340
+ data
341
+ end
342
+
343
+ # Trial changes
344
+ # @param id [String]
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
347
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
348
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
349
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
350
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
351
+ # @return [Array<(TrialChangesResponse, Integer, Hash)>] TrialChangesResponse data, response status code and response headers
352
+ def trials_trial_changes_with_http_info(id, opts = {})
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_changes ...'
355
+ end
356
+ # verify the required parameter 'id' is set
357
+ if @api_client.config.client_side_validation && id.nil?
358
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_changes"
359
+ end
360
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
361
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_changes, must be smaller than or equal to 500.'
362
+ end
363
+
364
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
365
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_changes, must be greater than or equal to 1.'
366
+ end
367
+
368
+ # resource path
369
+ local_var_path = '/api/v1/trials/{id}/trial_changes'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
370
+
371
+ # query parameters
372
+ query_params = opts[:query_params] || {}
373
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
374
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
375
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
376
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
377
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
378
+
379
+ # header parameters
380
+ header_params = opts[:header_params] || {}
381
+ # HTTP header 'Accept' (if needed)
382
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
383
+
384
+ # form parameters
385
+ form_params = opts[:form_params] || {}
386
+
387
+ # http body (model)
388
+ post_body = opts[:debug_body]
389
+
390
+ # return_type
391
+ return_type = opts[:debug_return_type] || 'TrialChangesResponse'
392
+
393
+ # auth_names
394
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
395
+
396
+ new_options = opts.merge(
397
+ :operation => :"TrialsApi.trials_trial_changes",
398
+ :header_params => header_params,
399
+ :query_params => query_params,
400
+ :form_params => form_params,
401
+ :body => post_body,
402
+ :auth_names => auth_names,
403
+ :return_type => return_type
404
+ )
405
+
406
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
407
+ if @api_client.config.debugging
408
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
409
+ end
410
+ return data, status_code, headers
411
+ end
412
+
413
+ # Trial delivery
414
+ # @param id [String]
415
+ # @param [Hash] opts the optional parameters
416
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
417
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
418
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
419
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
420
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
421
+ # @return [TrialDeliveryResponse]
422
+ def trials_trial_delivery(id, opts = {})
423
+ data, _status_code, _headers = trials_trial_delivery_with_http_info(id, opts)
424
+ data
425
+ end
426
+
427
+ # Trial delivery
428
+ # @param id [String]
429
+ # @param [Hash] opts the optional parameters
430
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
431
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
432
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
433
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
434
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
435
+ # @return [Array<(TrialDeliveryResponse, Integer, Hash)>] TrialDeliveryResponse data, response status code and response headers
436
+ def trials_trial_delivery_with_http_info(id, opts = {})
437
+ if @api_client.config.debugging
438
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_delivery ...'
439
+ end
440
+ # verify the required parameter 'id' is set
441
+ if @api_client.config.client_side_validation && id.nil?
442
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_delivery"
443
+ end
444
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
445
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_delivery, must be smaller than or equal to 500.'
446
+ end
447
+
448
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
449
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_delivery, must be greater than or equal to 1.'
450
+ end
451
+
452
+ # resource path
453
+ local_var_path = '/api/v1/trials/{id}/trial_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
454
+
455
+ # query parameters
456
+ query_params = opts[:query_params] || {}
457
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
458
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
459
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
460
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
461
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
462
+
463
+ # header parameters
464
+ header_params = opts[:header_params] || {}
465
+ # HTTP header 'Accept' (if needed)
466
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
467
+
468
+ # form parameters
469
+ form_params = opts[:form_params] || {}
470
+
471
+ # http body (model)
472
+ post_body = opts[:debug_body]
473
+
474
+ # return_type
475
+ return_type = opts[:debug_return_type] || 'TrialDeliveryResponse'
476
+
477
+ # auth_names
478
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
479
+
480
+ new_options = opts.merge(
481
+ :operation => :"TrialsApi.trials_trial_delivery",
482
+ :header_params => header_params,
483
+ :query_params => query_params,
484
+ :form_params => form_params,
485
+ :body => post_body,
486
+ :auth_names => auth_names,
487
+ :return_type => return_type
488
+ )
489
+
490
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
491
+ if @api_client.config.debugging
492
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
+ end
494
+ return data, status_code, headers
495
+ end
496
+
497
+ # Trial demographics
498
+ # @param id [String]
499
+ # @param [Hash] opts the optional parameters
500
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
501
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
502
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
503
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
504
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
505
+ # @return [TrialDemographicsResponse]
506
+ def trials_trial_demographics(id, opts = {})
507
+ data, _status_code, _headers = trials_trial_demographics_with_http_info(id, opts)
508
+ data
509
+ end
510
+
511
+ # Trial demographics
512
+ # @param id [String]
513
+ # @param [Hash] opts the optional parameters
514
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
515
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
516
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
517
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
518
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
519
+ # @return [Array<(TrialDemographicsResponse, Integer, Hash)>] TrialDemographicsResponse data, response status code and response headers
520
+ def trials_trial_demographics_with_http_info(id, opts = {})
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_demographics ...'
523
+ end
524
+ # verify the required parameter 'id' is set
525
+ if @api_client.config.client_side_validation && id.nil?
526
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_demographics"
527
+ end
528
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
529
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_demographics, must be smaller than or equal to 500.'
530
+ end
531
+
532
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
533
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_demographics, must be greater than or equal to 1.'
534
+ end
535
+
536
+ # resource path
537
+ local_var_path = '/api/v1/trials/{id}/trial_demographics'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
538
+
539
+ # query parameters
540
+ query_params = opts[:query_params] || {}
541
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
542
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
543
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
544
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
545
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
546
+
547
+ # header parameters
548
+ header_params = opts[:header_params] || {}
549
+ # HTTP header 'Accept' (if needed)
550
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
551
+
552
+ # form parameters
553
+ form_params = opts[:form_params] || {}
554
+
555
+ # http body (model)
556
+ post_body = opts[:debug_body]
557
+
558
+ # return_type
559
+ return_type = opts[:debug_return_type] || 'TrialDemographicsResponse'
560
+
561
+ # auth_names
562
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
563
+
564
+ new_options = opts.merge(
565
+ :operation => :"TrialsApi.trials_trial_demographics",
566
+ :header_params => header_params,
567
+ :query_params => query_params,
568
+ :form_params => form_params,
569
+ :body => post_body,
570
+ :auth_names => auth_names,
571
+ :return_type => return_type
572
+ )
573
+
574
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
575
+ if @api_client.config.debugging
576
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_demographics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
+ end
578
+ return data, status_code, headers
579
+ end
580
+
581
+ # Trial drugs
582
+ # @param id [String]
583
+ # @param [Hash] opts the optional parameters
584
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
585
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
586
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
587
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
588
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
589
+ # @return [TrialDrugsResponse]
590
+ def trials_trial_drugs(id, opts = {})
591
+ data, _status_code, _headers = trials_trial_drugs_with_http_info(id, opts)
592
+ data
593
+ end
594
+
595
+ # Trial drugs
596
+ # @param id [String]
597
+ # @param [Hash] opts the optional parameters
598
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
599
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
600
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
601
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
602
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
603
+ # @return [Array<(TrialDrugsResponse, Integer, Hash)>] TrialDrugsResponse data, response status code and response headers
604
+ def trials_trial_drugs_with_http_info(id, opts = {})
605
+ if @api_client.config.debugging
606
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_drugs ...'
607
+ end
608
+ # verify the required parameter 'id' is set
609
+ if @api_client.config.client_side_validation && id.nil?
610
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_drugs"
611
+ end
612
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
613
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_drugs, must be smaller than or equal to 500.'
614
+ end
615
+
616
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
617
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_drugs, must be greater than or equal to 1.'
618
+ end
619
+
620
+ # resource path
621
+ local_var_path = '/api/v1/trials/{id}/trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
622
+
623
+ # query parameters
624
+ query_params = opts[:query_params] || {}
625
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
626
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
627
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
628
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
629
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
630
+
631
+ # header parameters
632
+ header_params = opts[:header_params] || {}
633
+ # HTTP header 'Accept' (if needed)
634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
635
+
636
+ # form parameters
637
+ form_params = opts[:form_params] || {}
638
+
639
+ # http body (model)
640
+ post_body = opts[:debug_body]
641
+
642
+ # return_type
643
+ return_type = opts[:debug_return_type] || 'TrialDrugsResponse'
644
+
645
+ # auth_names
646
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
647
+
648
+ new_options = opts.merge(
649
+ :operation => :"TrialsApi.trials_trial_drugs",
650
+ :header_params => header_params,
651
+ :query_params => query_params,
652
+ :form_params => form_params,
653
+ :body => post_body,
654
+ :auth_names => auth_names,
655
+ :return_type => return_type
656
+ )
657
+
658
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
659
+ if @api_client.config.debugging
660
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
+ end
662
+ return data, status_code, headers
663
+ end
664
+
665
+ # Trial enrollment history
666
+ # @param id [String]
667
+ # @param [Hash] opts the optional parameters
668
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
669
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
670
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
671
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
672
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
673
+ # @return [TrialEnrollmentHistoryResponse]
674
+ def trials_trial_enrollment_history(id, opts = {})
675
+ data, _status_code, _headers = trials_trial_enrollment_history_with_http_info(id, opts)
676
+ data
677
+ end
678
+
679
+ # Trial enrollment history
680
+ # @param id [String]
681
+ # @param [Hash] opts the optional parameters
682
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
683
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
684
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
685
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
686
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
687
+ # @return [Array<(TrialEnrollmentHistoryResponse, Integer, Hash)>] TrialEnrollmentHistoryResponse data, response status code and response headers
688
+ def trials_trial_enrollment_history_with_http_info(id, opts = {})
689
+ if @api_client.config.debugging
690
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_enrollment_history ...'
691
+ end
692
+ # verify the required parameter 'id' is set
693
+ if @api_client.config.client_side_validation && id.nil?
694
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_enrollment_history"
695
+ end
696
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
697
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_enrollment_history, must be smaller than or equal to 500.'
698
+ end
699
+
700
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
701
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_enrollment_history, must be greater than or equal to 1.'
702
+ end
703
+
704
+ # resource path
705
+ local_var_path = '/api/v1/trials/{id}/trial_enrollment_history'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
706
+
707
+ # query parameters
708
+ query_params = opts[:query_params] || {}
709
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
710
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
711
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
712
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
713
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
714
+
715
+ # header parameters
716
+ header_params = opts[:header_params] || {}
717
+ # HTTP header 'Accept' (if needed)
718
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
719
+
720
+ # form parameters
721
+ form_params = opts[:form_params] || {}
722
+
723
+ # http body (model)
724
+ post_body = opts[:debug_body]
725
+
726
+ # return_type
727
+ return_type = opts[:debug_return_type] || 'TrialEnrollmentHistoryResponse'
728
+
729
+ # auth_names
730
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
731
+
732
+ new_options = opts.merge(
733
+ :operation => :"TrialsApi.trials_trial_enrollment_history",
734
+ :header_params => header_params,
735
+ :query_params => query_params,
736
+ :form_params => form_params,
737
+ :body => post_body,
738
+ :auth_names => auth_names,
739
+ :return_type => return_type
740
+ )
741
+
742
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
743
+ if @api_client.config.debugging
744
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_enrollment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
745
+ end
746
+ return data, status_code, headers
747
+ end
748
+
749
+ # Trial enrollment rate
750
+ # @param id [String]
751
+ # @param [Hash] opts the optional parameters
752
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
753
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
754
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
755
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
756
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
757
+ # @return [TrialEnrollmentRateResponse]
758
+ def trials_trial_enrollment_rate(id, opts = {})
759
+ data, _status_code, _headers = trials_trial_enrollment_rate_with_http_info(id, opts)
760
+ data
761
+ end
762
+
763
+ # Trial enrollment rate
764
+ # @param id [String]
765
+ # @param [Hash] opts the optional parameters
766
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
767
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
768
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
769
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
770
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
771
+ # @return [Array<(TrialEnrollmentRateResponse, Integer, Hash)>] TrialEnrollmentRateResponse data, response status code and response headers
772
+ def trials_trial_enrollment_rate_with_http_info(id, opts = {})
773
+ if @api_client.config.debugging
774
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_enrollment_rate ...'
775
+ end
776
+ # verify the required parameter 'id' is set
777
+ if @api_client.config.client_side_validation && id.nil?
778
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_enrollment_rate"
779
+ end
780
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
781
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_enrollment_rate, must be smaller than or equal to 500.'
782
+ end
783
+
784
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
785
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_enrollment_rate, must be greater than or equal to 1.'
786
+ end
787
+
788
+ # resource path
789
+ local_var_path = '/api/v1/trials/{id}/trial_enrollment_rate'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
790
+
791
+ # query parameters
792
+ query_params = opts[:query_params] || {}
793
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
794
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
795
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
796
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
797
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
798
+
799
+ # header parameters
800
+ header_params = opts[:header_params] || {}
801
+ # HTTP header 'Accept' (if needed)
802
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
803
+
804
+ # form parameters
805
+ form_params = opts[:form_params] || {}
806
+
807
+ # http body (model)
808
+ post_body = opts[:debug_body]
809
+
810
+ # return_type
811
+ return_type = opts[:debug_return_type] || 'TrialEnrollmentRateResponse'
812
+
813
+ # auth_names
814
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
815
+
816
+ new_options = opts.merge(
817
+ :operation => :"TrialsApi.trials_trial_enrollment_rate",
818
+ :header_params => header_params,
819
+ :query_params => query_params,
820
+ :form_params => form_params,
821
+ :body => post_body,
822
+ :auth_names => auth_names,
823
+ :return_type => return_type
824
+ )
825
+
826
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
827
+ if @api_client.config.debugging
828
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_enrollment_rate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
829
+ end
830
+ return data, status_code, headers
831
+ end
832
+
833
+ # Trial extracted endpoints
834
+ # @param id [String]
835
+ # @param [Hash] opts the optional parameters
836
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
837
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
838
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
839
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
840
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
841
+ # @return [TrialExtractedEndpointsResponse]
842
+ def trials_trial_extracted_endpoints(id, opts = {})
843
+ data, _status_code, _headers = trials_trial_extracted_endpoints_with_http_info(id, opts)
844
+ data
845
+ end
846
+
847
+ # Trial extracted endpoints
848
+ # @param id [String]
849
+ # @param [Hash] opts the optional parameters
850
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
851
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
852
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
853
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
854
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
855
+ # @return [Array<(TrialExtractedEndpointsResponse, Integer, Hash)>] TrialExtractedEndpointsResponse data, response status code and response headers
856
+ def trials_trial_extracted_endpoints_with_http_info(id, opts = {})
857
+ if @api_client.config.debugging
858
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_extracted_endpoints ...'
859
+ end
860
+ # verify the required parameter 'id' is set
861
+ if @api_client.config.client_side_validation && id.nil?
862
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_extracted_endpoints"
863
+ end
864
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
865
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_extracted_endpoints, must be smaller than or equal to 500.'
866
+ end
867
+
868
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
869
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_extracted_endpoints, must be greater than or equal to 1.'
870
+ end
871
+
872
+ # resource path
873
+ local_var_path = '/api/v1/trials/{id}/trial_extracted_endpoints'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
874
+
875
+ # query parameters
876
+ query_params = opts[:query_params] || {}
877
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
878
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
879
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
880
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
881
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
882
+
883
+ # header parameters
884
+ header_params = opts[:header_params] || {}
885
+ # HTTP header 'Accept' (if needed)
886
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
887
+
888
+ # form parameters
889
+ form_params = opts[:form_params] || {}
890
+
891
+ # http body (model)
892
+ post_body = opts[:debug_body]
893
+
894
+ # return_type
895
+ return_type = opts[:debug_return_type] || 'TrialExtractedEndpointsResponse'
896
+
897
+ # auth_names
898
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
899
+
900
+ new_options = opts.merge(
901
+ :operation => :"TrialsApi.trials_trial_extracted_endpoints",
902
+ :header_params => header_params,
903
+ :query_params => query_params,
904
+ :form_params => form_params,
905
+ :body => post_body,
906
+ :auth_names => auth_names,
907
+ :return_type => return_type
908
+ )
909
+
910
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
911
+ if @api_client.config.debugging
912
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_extracted_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
913
+ end
914
+ return data, status_code, headers
915
+ end
916
+
917
+ # Trial outcome measures
918
+ # @param id [String]
919
+ # @param [Hash] opts the optional parameters
920
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
921
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
922
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
923
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
924
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
925
+ # @return [TrialOutcomeMeasuresResponse]
926
+ def trials_trial_outcome_measures(id, opts = {})
927
+ data, _status_code, _headers = trials_trial_outcome_measures_with_http_info(id, opts)
928
+ data
929
+ end
930
+
931
+ # Trial outcome measures
932
+ # @param id [String]
933
+ # @param [Hash] opts the optional parameters
934
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
935
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
936
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
937
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
938
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
939
+ # @return [Array<(TrialOutcomeMeasuresResponse, Integer, Hash)>] TrialOutcomeMeasuresResponse data, response status code and response headers
940
+ def trials_trial_outcome_measures_with_http_info(id, opts = {})
941
+ if @api_client.config.debugging
942
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_outcome_measures ...'
943
+ end
944
+ # verify the required parameter 'id' is set
945
+ if @api_client.config.client_side_validation && id.nil?
946
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_outcome_measures"
947
+ end
948
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
949
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_outcome_measures, must be smaller than or equal to 500.'
950
+ end
951
+
952
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
953
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_outcome_measures, must be greater than or equal to 1.'
954
+ end
955
+
956
+ # resource path
957
+ local_var_path = '/api/v1/trials/{id}/trial_outcome_measures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
958
+
959
+ # query parameters
960
+ query_params = opts[:query_params] || {}
961
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
962
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
963
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
964
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
965
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
966
+
967
+ # header parameters
968
+ header_params = opts[:header_params] || {}
969
+ # HTTP header 'Accept' (if needed)
970
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
971
+
972
+ # form parameters
973
+ form_params = opts[:form_params] || {}
974
+
975
+ # http body (model)
976
+ post_body = opts[:debug_body]
977
+
978
+ # return_type
979
+ return_type = opts[:debug_return_type] || 'TrialOutcomeMeasuresResponse'
980
+
981
+ # auth_names
982
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
983
+
984
+ new_options = opts.merge(
985
+ :operation => :"TrialsApi.trials_trial_outcome_measures",
986
+ :header_params => header_params,
987
+ :query_params => query_params,
988
+ :form_params => form_params,
989
+ :body => post_body,
990
+ :auth_names => auth_names,
991
+ :return_type => return_type
992
+ )
993
+
994
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
995
+ if @api_client.config.debugging
996
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_outcome_measures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
+ end
998
+ return data, status_code, headers
999
+ end
1000
+
1001
+ # Trial sites
1002
+ # @param id [String]
1003
+ # @param [Hash] opts the optional parameters
1004
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1005
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1006
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1007
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1008
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1009
+ # @return [TrialSitesResponse]
1010
+ def trials_trial_sites(id, opts = {})
1011
+ data, _status_code, _headers = trials_trial_sites_with_http_info(id, opts)
1012
+ data
1013
+ end
1014
+
1015
+ # Trial sites
1016
+ # @param id [String]
1017
+ # @param [Hash] opts the optional parameters
1018
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1019
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1020
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1021
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1022
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1023
+ # @return [Array<(TrialSitesResponse, Integer, Hash)>] TrialSitesResponse data, response status code and response headers
1024
+ def trials_trial_sites_with_http_info(id, opts = {})
1025
+ if @api_client.config.debugging
1026
+ @api_client.config.logger.debug 'Calling API: TrialsApi.trials_trial_sites ...'
1027
+ end
1028
+ # verify the required parameter 'id' is set
1029
+ if @api_client.config.client_side_validation && id.nil?
1030
+ fail ArgumentError, "Missing the required parameter 'id' when calling TrialsApi.trials_trial_sites"
1031
+ end
1032
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1033
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_sites, must be smaller than or equal to 500.'
1034
+ end
1035
+
1036
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1037
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TrialsApi.trials_trial_sites, must be greater than or equal to 1.'
1038
+ end
1039
+
1040
+ # resource path
1041
+ local_var_path = '/api/v1/trials/{id}/trial_sites'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1042
+
1043
+ # query parameters
1044
+ query_params = opts[:query_params] || {}
1045
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1046
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1047
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1048
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1049
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1050
+
1051
+ # header parameters
1052
+ header_params = opts[:header_params] || {}
1053
+ # HTTP header 'Accept' (if needed)
1054
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1055
+
1056
+ # form parameters
1057
+ form_params = opts[:form_params] || {}
1058
+
1059
+ # http body (model)
1060
+ post_body = opts[:debug_body]
1061
+
1062
+ # return_type
1063
+ return_type = opts[:debug_return_type] || 'TrialSitesResponse'
1064
+
1065
+ # auth_names
1066
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1067
+
1068
+ new_options = opts.merge(
1069
+ :operation => :"TrialsApi.trials_trial_sites",
1070
+ :header_params => header_params,
1071
+ :query_params => query_params,
1072
+ :form_params => form_params,
1073
+ :body => post_body,
1074
+ :auth_names => auth_names,
1075
+ :return_type => return_type
1076
+ )
1077
+
1078
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1079
+ if @api_client.config.debugging
1080
+ @api_client.config.logger.debug "API called: TrialsApi#trials_trial_sites\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1081
+ end
1082
+ return data, status_code, headers
1083
+ end
1084
+ end
1085
+ end