pharmaobservatory 0.1.22 → 0.1.24
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.
- checksums.yaml +4 -4
- data/README.md +32 -4
- data/docs/ConditionSiteCoverageResponse.md +58 -0
- data/docs/ConditionSiteCoverageRow.md +24 -0
- data/docs/ConditionSiteYearsResponse.md +58 -0
- data/docs/ConditionSiteYearsRow.md +36 -0
- data/docs/ConditionsApi.md +160 -0
- data/docs/InvestigatorsApi.md +80 -0
- data/docs/ProviderRwdDeliveryRow.md +2 -0
- data/docs/ProviderRwdDeliveryStudyRow.md +2 -0
- data/docs/ProviderRwdFootprintRow.md +2 -0
- data/docs/RwdConductorsApi.md +160 -0
- data/docs/RwdInstitutionsRow.md +3 -3
- data/docs/RwdNetworksRow.md +1 -1
- data/docs/RwdSourcesRow.md +1 -1
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/RwdUsNetworkMembershipsResponse.md +58 -0
- data/docs/RwdUsNetworkMembershipsRow.md +98 -0
- data/docs/RwdUsNetworkProjectsResponse.md +58 -0
- data/docs/RwdUsNetworkProjectsRow.md +80 -0
- data/docs/RwdUsNetworksApi.md +313 -0
- data/docs/RwdUsNetworksRecord.md +38 -0
- data/docs/RwdUsNetworksResponse.md +58 -0
- data/docs/RwdUsNetworksRow.md +60 -0
- data/docs/SupplierRwdDeclarationsResponse.md +58 -0
- data/docs/SupplierRwdDeclarationsRow.md +74 -0
- data/docs/SuppliersApi.md +160 -0
- data/docs/TrialPublicationsResponse.md +58 -0
- data/docs/TrialPublicationsRow.md +34 -0
- data/docs/TrialsApi.md +80 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
- data/lib/pharmaobservatory/api/investigators_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +168 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_us_networks_api.rb +329 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +168 -0
- data/lib/pharmaobservatory/api/trials_api.rb +84 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_site_years_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_years_row.rb +322 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +12 -1
- data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +12 -1
- data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +12 -1
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_sources_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_us_network_memberships_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_network_memberships_row.rb +663 -0
- data/lib/pharmaobservatory/models/rwd_us_network_projects_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_network_projects_row.rb +564 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_row.rb +454 -0
- data/lib/pharmaobservatory/models/supplier_rwd_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_rwd_declarations_row.rb +539 -0
- data/lib/pharmaobservatory/models/trial_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_publications_row.rb +313 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +16 -0
- metadata +34 -2
|
@@ -158,6 +158,174 @@ module PharmaObservatory
|
|
|
158
158
|
return data, status_code, headers
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
# RX provider real-world data study delivery track record (HMA-EMA catalogue)
|
|
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=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 [ProviderRwdDeliveryResponse]
|
|
170
|
+
def rwd_conductors_provider_rwd_delivery(id, opts = {})
|
|
171
|
+
data, _status_code, _headers = rwd_conductors_provider_rwd_delivery_with_http_info(id, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# RX provider real-world data study delivery track record (HMA-EMA catalogue)
|
|
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=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<(ProviderRwdDeliveryResponse, Integer, Hash)>] ProviderRwdDeliveryResponse data, response status code and response headers
|
|
184
|
+
def rwd_conductors_provider_rwd_delivery_with_http_info(id, opts = {})
|
|
185
|
+
if @api_client.config.debugging
|
|
186
|
+
@api_client.config.logger.debug 'Calling API: RwdConductorsApi.rwd_conductors_provider_rwd_delivery ...'
|
|
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 RwdConductorsApi.rwd_conductors_provider_rwd_delivery"
|
|
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 RwdConductorsApi.rwd_conductors_provider_rwd_delivery, 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 RwdConductorsApi.rwd_conductors_provider_rwd_delivery, must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/api/v1/rwd_conductors/{id}/provider_rwd_delivery'.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] || 'ProviderRwdDeliveryResponse'
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"RwdConductorsApi.rwd_conductors_provider_rwd_delivery",
|
|
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: RwdConductorsApi#rwd_conductors_provider_rwd_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# RX provider real-world data study final-report dates below the floor (HMA-EMA catalogue)
|
|
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=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 [ProviderRwdDeliveryStudyResponse]
|
|
254
|
+
def rwd_conductors_provider_rwd_delivery_study(id, opts = {})
|
|
255
|
+
data, _status_code, _headers = rwd_conductors_provider_rwd_delivery_study_with_http_info(id, opts)
|
|
256
|
+
data
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# RX provider real-world data study final-report dates below the floor (HMA-EMA catalogue)
|
|
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=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<(ProviderRwdDeliveryStudyResponse, Integer, Hash)>] ProviderRwdDeliveryStudyResponse data, response status code and response headers
|
|
268
|
+
def rwd_conductors_provider_rwd_delivery_study_with_http_info(id, opts = {})
|
|
269
|
+
if @api_client.config.debugging
|
|
270
|
+
@api_client.config.logger.debug 'Calling API: RwdConductorsApi.rwd_conductors_provider_rwd_delivery_study ...'
|
|
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 RwdConductorsApi.rwd_conductors_provider_rwd_delivery_study"
|
|
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 RwdConductorsApi.rwd_conductors_provider_rwd_delivery_study, 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 RwdConductorsApi.rwd_conductors_provider_rwd_delivery_study, must be greater than or equal to 1.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/api/v1/rwd_conductors/{id}/provider_rwd_delivery_study'.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] || 'ProviderRwdDeliveryStudyResponse'
|
|
308
|
+
|
|
309
|
+
# auth_names
|
|
310
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
311
|
+
|
|
312
|
+
new_options = opts.merge(
|
|
313
|
+
:operation => :"RwdConductorsApi.rwd_conductors_provider_rwd_delivery_study",
|
|
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: RwdConductorsApi#rwd_conductors_provider_rwd_delivery_study\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
|
+
end
|
|
326
|
+
return data, status_code, headers
|
|
327
|
+
end
|
|
328
|
+
|
|
161
329
|
# Real-world data study conductor delivery by mandate (HMA-EMA catalogue)
|
|
162
330
|
# @param id [String]
|
|
163
331
|
# @param [Hash] opts the optional parameters
|
|
@@ -158,6 +158,90 @@ module PharmaObservatory
|
|
|
158
158
|
return data, status_code, headers
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
# Supplier real-world data footprint (HMA-EMA catalogue)
|
|
162
|
+
# @param id [Integer]
|
|
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=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 [ProviderRwdFootprintResponse]
|
|
170
|
+
def rwd_studies_provider_rwd_footprint(id, opts = {})
|
|
171
|
+
data, _status_code, _headers = rwd_studies_provider_rwd_footprint_with_http_info(id, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Supplier real-world data footprint (HMA-EMA catalogue)
|
|
176
|
+
# @param id [Integer]
|
|
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=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<(ProviderRwdFootprintResponse, Integer, Hash)>] ProviderRwdFootprintResponse data, response status code and response headers
|
|
184
|
+
def rwd_studies_provider_rwd_footprint_with_http_info(id, opts = {})
|
|
185
|
+
if @api_client.config.debugging
|
|
186
|
+
@api_client.config.logger.debug 'Calling API: RwdStudiesApi.rwd_studies_provider_rwd_footprint ...'
|
|
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 RwdStudiesApi.rwd_studies_provider_rwd_footprint"
|
|
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 RwdStudiesApi.rwd_studies_provider_rwd_footprint, 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 RwdStudiesApi.rwd_studies_provider_rwd_footprint, must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/api/v1/rwd_studies/{id}/provider_rwd_footprint'.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] || 'ProviderRwdFootprintResponse'
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"RwdStudiesApi.rwd_studies_provider_rwd_footprint",
|
|
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: RwdStudiesApi#rwd_studies_provider_rwd_footprint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
161
245
|
# Real-world data study conductor studies (HMA-EMA catalogue)
|
|
162
246
|
# @param id [Integer]
|
|
163
247
|
# @param [Hash] opts the optional parameters
|
|
@@ -0,0 +1,329 @@
|
|
|
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 RwdUsNetworksApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# One us real-world data network
|
|
23
|
+
# @param id [String]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [RwdUsNetworksRecord]
|
|
26
|
+
def rwd_us_networks_get(id, opts = {})
|
|
27
|
+
data, _status_code, _headers = rwd_us_networks_get_with_http_info(id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# One us real-world data network
|
|
32
|
+
# @param id [String]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(RwdUsNetworksRecord, Integer, Hash)>] RwdUsNetworksRecord data, response status code and response headers
|
|
35
|
+
def rwd_us_networks_get_with_http_info(id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: RwdUsNetworksApi.rwd_us_networks_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 RwdUsNetworksApi.rwd_us_networks_get"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/api/v1/rwd_us_networks/{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] || 'RwdUsNetworksRecord'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"RwdUsNetworksApi.rwd_us_networks_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: RwdUsNetworksApi#rwd_us_networks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# List us real-world data networks
|
|
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=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 [RwdUsNetworksResponse]
|
|
91
|
+
def rwd_us_networks_list(opts = {})
|
|
92
|
+
data, _status_code, _headers = rwd_us_networks_list_with_http_info(opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List us real-world data networks
|
|
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=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<(RwdUsNetworksResponse, Integer, Hash)>] RwdUsNetworksResponse data, response status code and response headers
|
|
104
|
+
def rwd_us_networks_list_with_http_info(opts = {})
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug 'Calling API: RwdUsNetworksApi.rwd_us_networks_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 RwdUsNetworksApi.rwd_us_networks_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 RwdUsNetworksApi.rwd_us_networks_list, must be greater than or equal to 1.'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# resource path
|
|
117
|
+
local_var_path = '/api/v1/rwd_us_networks'
|
|
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] || 'RwdUsNetworksResponse'
|
|
140
|
+
|
|
141
|
+
# auth_names
|
|
142
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
143
|
+
|
|
144
|
+
new_options = opts.merge(
|
|
145
|
+
:operation => :"RwdUsNetworksApi.rwd_us_networks_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: RwdUsNetworksApi#rwd_us_networks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
157
|
+
end
|
|
158
|
+
return data, status_code, headers
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# US real-world data network membership (N3C)
|
|
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=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 [RwdUsNetworkMembershipsResponse]
|
|
170
|
+
def rwd_us_networks_rwd_us_network_memberships(id, opts = {})
|
|
171
|
+
data, _status_code, _headers = rwd_us_networks_rwd_us_network_memberships_with_http_info(id, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# US real-world data network membership (N3C)
|
|
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=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<(RwdUsNetworkMembershipsResponse, Integer, Hash)>] RwdUsNetworkMembershipsResponse data, response status code and response headers
|
|
184
|
+
def rwd_us_networks_rwd_us_network_memberships_with_http_info(id, opts = {})
|
|
185
|
+
if @api_client.config.debugging
|
|
186
|
+
@api_client.config.logger.debug 'Calling API: RwdUsNetworksApi.rwd_us_networks_rwd_us_network_memberships ...'
|
|
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 RwdUsNetworksApi.rwd_us_networks_rwd_us_network_memberships"
|
|
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 RwdUsNetworksApi.rwd_us_networks_rwd_us_network_memberships, 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 RwdUsNetworksApi.rwd_us_networks_rwd_us_network_memberships, must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/api/v1/rwd_us_networks/{id}/rwd_us_network_memberships'.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] || 'RwdUsNetworkMembershipsResponse'
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"RwdUsNetworksApi.rwd_us_networks_rwd_us_network_memberships",
|
|
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: RwdUsNetworksApi#rwd_us_networks_rwd_us_network_memberships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# US real-world data network projects (N3C)
|
|
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=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 [RwdUsNetworkProjectsResponse]
|
|
254
|
+
def rwd_us_networks_rwd_us_network_projects(id, opts = {})
|
|
255
|
+
data, _status_code, _headers = rwd_us_networks_rwd_us_network_projects_with_http_info(id, opts)
|
|
256
|
+
data
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# US real-world data network projects (N3C)
|
|
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=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<(RwdUsNetworkProjectsResponse, Integer, Hash)>] RwdUsNetworkProjectsResponse data, response status code and response headers
|
|
268
|
+
def rwd_us_networks_rwd_us_network_projects_with_http_info(id, opts = {})
|
|
269
|
+
if @api_client.config.debugging
|
|
270
|
+
@api_client.config.logger.debug 'Calling API: RwdUsNetworksApi.rwd_us_networks_rwd_us_network_projects ...'
|
|
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 RwdUsNetworksApi.rwd_us_networks_rwd_us_network_projects"
|
|
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 RwdUsNetworksApi.rwd_us_networks_rwd_us_network_projects, 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 RwdUsNetworksApi.rwd_us_networks_rwd_us_network_projects, must be greater than or equal to 1.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/api/v1/rwd_us_networks/{id}/rwd_us_network_projects'.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] || 'RwdUsNetworkProjectsResponse'
|
|
308
|
+
|
|
309
|
+
# auth_names
|
|
310
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
311
|
+
|
|
312
|
+
new_options = opts.merge(
|
|
313
|
+
:operation => :"RwdUsNetworksApi.rwd_us_networks_rwd_us_network_projects",
|
|
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: RwdUsNetworksApi#rwd_us_networks_rwd_us_network_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
|
+
end
|
|
326
|
+
return data, status_code, headers
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
end
|