pharmaobservatory 0.1.20 → 0.1.22

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -4
  3. data/docs/BiomarkersApi.md +160 -0
  4. data/docs/CompaniesApi.md +246 -0
  5. data/docs/HospitalsRow.md +11 -1
  6. data/docs/InvestmentGraphEdgesResponse.md +58 -0
  7. data/docs/InvestmentGraphEdgesRow.md +90 -0
  8. data/docs/InvestmentGraphNodeEdgesResponse.md +58 -0
  9. data/docs/InvestmentGraphNodeEdgesRow.md +88 -0
  10. data/docs/InvestmentGraphNodesResponse.md +58 -0
  11. data/docs/InvestmentGraphNodesRow.md +52 -0
  12. data/docs/InvestorsApi.md +240 -0
  13. data/docs/LegalEntitiesApi.md +240 -0
  14. data/docs/ProviderBiomarkerCapabilityResponse.md +58 -0
  15. data/docs/ProviderBiomarkerCapabilityRow.md +86 -0
  16. data/docs/ProviderBiomarkerCapabilitySummaryResponse.md +58 -0
  17. data/docs/ProviderBiomarkerCapabilitySummaryRow.md +70 -0
  18. data/docs/ProviderCliaLicensureResponse.md +58 -0
  19. data/docs/ProviderCliaLicensureRow.md +80 -0
  20. data/docs/ProviderRwdDeliveryResponse.md +58 -0
  21. data/docs/ProviderRwdDeliveryRow.md +74 -0
  22. data/docs/ProviderRwdDeliveryStudyResponse.md +58 -0
  23. data/docs/ProviderRwdDeliveryStudyRow.md +58 -0
  24. data/docs/ProviderRwdFootprintResponse.md +58 -0
  25. data/docs/ProviderRwdFootprintRow.md +72 -0
  26. data/docs/RwdInstitutionsApi.md +80 -0
  27. data/docs/SuppliersApi.md +480 -0
  28. data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -0
  29. data/lib/pharmaobservatory/api/companies_api.rb +273 -0
  30. data/lib/pharmaobservatory/api/investors_api.rb +252 -0
  31. data/lib/pharmaobservatory/api/legal_entities_api.rb +252 -0
  32. data/lib/pharmaobservatory/api/rwd_institutions_api.rb +84 -0
  33. data/lib/pharmaobservatory/api/suppliers_api.rb +504 -0
  34. data/lib/pharmaobservatory/models/hospitals_row.rb +60 -5
  35. data/lib/pharmaobservatory/models/investment_graph_edges_response.rb +478 -0
  36. data/lib/pharmaobservatory/models/investment_graph_edges_row.rb +619 -0
  37. data/lib/pharmaobservatory/models/investment_graph_node_edges_response.rb +478 -0
  38. data/lib/pharmaobservatory/models/investment_graph_node_edges_row.rb +608 -0
  39. data/lib/pharmaobservatory/models/investment_graph_nodes_response.rb +478 -0
  40. data/lib/pharmaobservatory/models/investment_graph_nodes_row.rb +412 -0
  41. data/lib/pharmaobservatory/models/provider_biomarker_capability_response.rb +478 -0
  42. data/lib/pharmaobservatory/models/provider_biomarker_capability_row.rb +601 -0
  43. data/lib/pharmaobservatory/models/provider_biomarker_capability_summary_response.rb +478 -0
  44. data/lib/pharmaobservatory/models/provider_biomarker_capability_summary_row.rb +509 -0
  45. data/lib/pharmaobservatory/models/provider_clia_licensure_response.rb +478 -0
  46. data/lib/pharmaobservatory/models/provider_clia_licensure_row.rb +568 -0
  47. data/lib/pharmaobservatory/models/provider_rwd_delivery_response.rb +478 -0
  48. data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +535 -0
  49. data/lib/pharmaobservatory/models/provider_rwd_delivery_study_response.rb +478 -0
  50. data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +443 -0
  51. data/lib/pharmaobservatory/models/provider_rwd_footprint_response.rb +478 -0
  52. data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +528 -0
  53. data/lib/pharmaobservatory/version.rb +1 -1
  54. data/lib/pharmaobservatory.rb +18 -0
  55. metadata +38 -2
@@ -158,6 +158,510 @@ module PharmaObservatory
158
158
  return data, status_code, headers
159
159
  end
160
160
 
161
+ # Supplier biomarker capability
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 [ProviderBiomarkerCapabilityResponse]
170
+ def suppliers_provider_biomarker_capability(id, opts = {})
171
+ data, _status_code, _headers = suppliers_provider_biomarker_capability_with_http_info(id, opts)
172
+ data
173
+ end
174
+
175
+ # Supplier biomarker capability
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<(ProviderBiomarkerCapabilityResponse, Integer, Hash)>] ProviderBiomarkerCapabilityResponse data, response status code and response headers
184
+ def suppliers_provider_biomarker_capability_with_http_info(id, opts = {})
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_biomarker_capability ...'
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 SuppliersApi.suppliers_provider_biomarker_capability"
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 SuppliersApi.suppliers_provider_biomarker_capability, 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 SuppliersApi.suppliers_provider_biomarker_capability, must be greater than or equal to 1.'
198
+ end
199
+
200
+ # resource path
201
+ local_var_path = '/api/v1/suppliers/{id}/provider_biomarker_capability'.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] || 'ProviderBiomarkerCapabilityResponse'
224
+
225
+ # auth_names
226
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
227
+
228
+ new_options = opts.merge(
229
+ :operation => :"SuppliersApi.suppliers_provider_biomarker_capability",
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: SuppliersApi#suppliers_provider_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
241
+ end
242
+ return data, status_code, headers
243
+ end
244
+
245
+ # Supplier biomarker capability, summarised
246
+ # @param id [Integer]
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 [ProviderBiomarkerCapabilitySummaryResponse]
254
+ def suppliers_provider_biomarker_capability_summary(id, opts = {})
255
+ data, _status_code, _headers = suppliers_provider_biomarker_capability_summary_with_http_info(id, opts)
256
+ data
257
+ end
258
+
259
+ # Supplier biomarker capability, summarised
260
+ # @param id [Integer]
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<(ProviderBiomarkerCapabilitySummaryResponse, Integer, Hash)>] ProviderBiomarkerCapabilitySummaryResponse data, response status code and response headers
268
+ def suppliers_provider_biomarker_capability_summary_with_http_info(id, opts = {})
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_biomarker_capability_summary ...'
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 SuppliersApi.suppliers_provider_biomarker_capability_summary"
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 SuppliersApi.suppliers_provider_biomarker_capability_summary, 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 SuppliersApi.suppliers_provider_biomarker_capability_summary, must be greater than or equal to 1.'
282
+ end
283
+
284
+ # resource path
285
+ local_var_path = '/api/v1/suppliers/{id}/provider_biomarker_capability_summary'.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] || 'ProviderBiomarkerCapabilitySummaryResponse'
308
+
309
+ # auth_names
310
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
311
+
312
+ new_options = opts.merge(
313
+ :operation => :"SuppliersApi.suppliers_provider_biomarker_capability_summary",
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: SuppliersApi#suppliers_provider_biomarker_capability_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
+ end
326
+ return data, status_code, headers
327
+ end
328
+
329
+ # Supplier CLIA laboratory licensure
330
+ # @param id [Integer]
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 [ProviderCliaLicensureResponse]
338
+ def suppliers_provider_clia_licensure(id, opts = {})
339
+ data, _status_code, _headers = suppliers_provider_clia_licensure_with_http_info(id, opts)
340
+ data
341
+ end
342
+
343
+ # Supplier CLIA laboratory licensure
344
+ # @param id [Integer]
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<(ProviderCliaLicensureResponse, Integer, Hash)>] ProviderCliaLicensureResponse data, response status code and response headers
352
+ def suppliers_provider_clia_licensure_with_http_info(id, opts = {})
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_clia_licensure ...'
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 SuppliersApi.suppliers_provider_clia_licensure"
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 SuppliersApi.suppliers_provider_clia_licensure, 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 SuppliersApi.suppliers_provider_clia_licensure, must be greater than or equal to 1.'
366
+ end
367
+
368
+ # resource path
369
+ local_var_path = '/api/v1/suppliers/{id}/provider_clia_licensure'.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] || 'ProviderCliaLicensureResponse'
392
+
393
+ # auth_names
394
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
395
+
396
+ new_options = opts.merge(
397
+ :operation => :"SuppliersApi.suppliers_provider_clia_licensure",
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: SuppliersApi#suppliers_provider_clia_licensure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
409
+ end
410
+ return data, status_code, headers
411
+ end
412
+
413
+ # RX provider real-world data study delivery track record (HMA-EMA catalogue)
414
+ # @param id [Integer]
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 [ProviderRwdDeliveryResponse]
422
+ def suppliers_provider_rwd_delivery(id, opts = {})
423
+ data, _status_code, _headers = suppliers_provider_rwd_delivery_with_http_info(id, opts)
424
+ data
425
+ end
426
+
427
+ # RX provider real-world data study delivery track record (HMA-EMA catalogue)
428
+ # @param id [Integer]
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<(ProviderRwdDeliveryResponse, Integer, Hash)>] ProviderRwdDeliveryResponse data, response status code and response headers
436
+ def suppliers_provider_rwd_delivery_with_http_info(id, opts = {})
437
+ if @api_client.config.debugging
438
+ @api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_rwd_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 SuppliersApi.suppliers_provider_rwd_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 SuppliersApi.suppliers_provider_rwd_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 SuppliersApi.suppliers_provider_rwd_delivery, must be greater than or equal to 1.'
450
+ end
451
+
452
+ # resource path
453
+ local_var_path = '/api/v1/suppliers/{id}/provider_rwd_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] || 'ProviderRwdDeliveryResponse'
476
+
477
+ # auth_names
478
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
479
+
480
+ new_options = opts.merge(
481
+ :operation => :"SuppliersApi.suppliers_provider_rwd_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: SuppliersApi#suppliers_provider_rwd_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
493
+ end
494
+ return data, status_code, headers
495
+ end
496
+
497
+ # RX provider real-world data study final-report dates below the floor (HMA-EMA catalogue)
498
+ # @param id [Integer]
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 [ProviderRwdDeliveryStudyResponse]
506
+ def suppliers_provider_rwd_delivery_study(id, opts = {})
507
+ data, _status_code, _headers = suppliers_provider_rwd_delivery_study_with_http_info(id, opts)
508
+ data
509
+ end
510
+
511
+ # RX provider real-world data study final-report dates below the floor (HMA-EMA catalogue)
512
+ # @param id [Integer]
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<(ProviderRwdDeliveryStudyResponse, Integer, Hash)>] ProviderRwdDeliveryStudyResponse data, response status code and response headers
520
+ def suppliers_provider_rwd_delivery_study_with_http_info(id, opts = {})
521
+ if @api_client.config.debugging
522
+ @api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_rwd_delivery_study ...'
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 SuppliersApi.suppliers_provider_rwd_delivery_study"
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 SuppliersApi.suppliers_provider_rwd_delivery_study, 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 SuppliersApi.suppliers_provider_rwd_delivery_study, must be greater than or equal to 1.'
534
+ end
535
+
536
+ # resource path
537
+ local_var_path = '/api/v1/suppliers/{id}/provider_rwd_delivery_study'.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] || 'ProviderRwdDeliveryStudyResponse'
560
+
561
+ # auth_names
562
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
563
+
564
+ new_options = opts.merge(
565
+ :operation => :"SuppliersApi.suppliers_provider_rwd_delivery_study",
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: SuppliersApi#suppliers_provider_rwd_delivery_study\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
577
+ end
578
+ return data, status_code, headers
579
+ end
580
+
581
+ # Supplier real-world data footprint (HMA-EMA catalogue)
582
+ # @param id [Integer]
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 [ProviderRwdFootprintResponse]
590
+ def suppliers_provider_rwd_footprint(id, opts = {})
591
+ data, _status_code, _headers = suppliers_provider_rwd_footprint_with_http_info(id, opts)
592
+ data
593
+ end
594
+
595
+ # Supplier real-world data footprint (HMA-EMA catalogue)
596
+ # @param id [Integer]
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<(ProviderRwdFootprintResponse, Integer, Hash)>] ProviderRwdFootprintResponse data, response status code and response headers
604
+ def suppliers_provider_rwd_footprint_with_http_info(id, opts = {})
605
+ if @api_client.config.debugging
606
+ @api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_rwd_footprint ...'
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 SuppliersApi.suppliers_provider_rwd_footprint"
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 SuppliersApi.suppliers_provider_rwd_footprint, 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 SuppliersApi.suppliers_provider_rwd_footprint, must be greater than or equal to 1.'
618
+ end
619
+
620
+ # resource path
621
+ local_var_path = '/api/v1/suppliers/{id}/provider_rwd_footprint'.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] || 'ProviderRwdFootprintResponse'
644
+
645
+ # auth_names
646
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
647
+
648
+ new_options = opts.merge(
649
+ :operation => :"SuppliersApi.suppliers_provider_rwd_footprint",
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: SuppliersApi#suppliers_provider_rwd_footprint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
661
+ end
662
+ return data, status_code, headers
663
+ end
664
+
161
665
  # Supplier services
162
666
  # @param id [Integer]
163
667
  # @param [Hash] opts the optional parameters
@@ -52,6 +52,21 @@ module PharmaObservatory
52
52
  # How the coordinate was placed: als (Amazon Location Service address match), zip_centroid (coarse ZIP-code centroid) or unmatched (no coordinate).
53
53
  attr_accessor :geocode_method
54
54
 
55
+ # Dartmouth Atlas Hospital Referral Region number. Null when hrr_match is not zip.
56
+ attr_accessor :hrr_num
57
+
58
+ # The Hospital Referral Region, named for its hub city and state. The hub state can differ from the hospital's own state.
59
+ attr_accessor :hrr_name
60
+
61
+ # Dartmouth Atlas Hospital Service Area number. Null when hrr_match is not zip.
62
+ attr_accessor :hsa_num
63
+
64
+ # The Hospital Service Area, named for its hub city and state.
65
+ attr_accessor :hsa_name
66
+
67
+ # zip (region found by ZIP), territory_uncovered (the Atlas does not cover US territories) or zip_unmatched (a mainland ZIP absent from the 2019 crosswalk).
68
+ attr_accessor :hrr_match
69
+
55
70
  # Attribute mapping from ruby-style variable name to JSON key.
56
71
  def self.attribute_map
57
72
  {
@@ -66,7 +81,12 @@ module PharmaObservatory
66
81
  :'emergency_services' => :'emergency_services',
67
82
  :'latitude' => :'latitude',
68
83
  :'longitude' => :'longitude',
69
- :'geocode_method' => :'geocode_method'
84
+ :'geocode_method' => :'geocode_method',
85
+ :'hrr_num' => :'hrr_num',
86
+ :'hrr_name' => :'hrr_name',
87
+ :'hsa_num' => :'hsa_num',
88
+ :'hsa_name' => :'hsa_name',
89
+ :'hrr_match' => :'hrr_match'
70
90
  }
71
91
  end
72
92
 
@@ -94,7 +114,12 @@ module PharmaObservatory
94
114
  :'emergency_services' => :'String',
95
115
  :'latitude' => :'Float',
96
116
  :'longitude' => :'Float',
97
- :'geocode_method' => :'String'
117
+ :'geocode_method' => :'String',
118
+ :'hrr_num' => :'Integer',
119
+ :'hrr_name' => :'String',
120
+ :'hsa_num' => :'Integer',
121
+ :'hsa_name' => :'String',
122
+ :'hrr_match' => :'String'
98
123
  }
99
124
  end
100
125
 
@@ -112,7 +137,12 @@ module PharmaObservatory
112
137
  :'emergency_services',
113
138
  :'latitude',
114
139
  :'longitude',
115
- :'geocode_method'
140
+ :'geocode_method',
141
+ :'hrr_num',
142
+ :'hrr_name',
143
+ :'hsa_num',
144
+ :'hsa_name',
145
+ :'hrr_match'
116
146
  ])
117
147
  end
118
148
 
@@ -179,6 +209,26 @@ module PharmaObservatory
179
209
  if attributes.key?(:'geocode_method')
180
210
  self.geocode_method = attributes[:'geocode_method']
181
211
  end
212
+
213
+ if attributes.key?(:'hrr_num')
214
+ self.hrr_num = attributes[:'hrr_num']
215
+ end
216
+
217
+ if attributes.key?(:'hrr_name')
218
+ self.hrr_name = attributes[:'hrr_name']
219
+ end
220
+
221
+ if attributes.key?(:'hsa_num')
222
+ self.hsa_num = attributes[:'hsa_num']
223
+ end
224
+
225
+ if attributes.key?(:'hsa_name')
226
+ self.hsa_name = attributes[:'hsa_name']
227
+ end
228
+
229
+ if attributes.key?(:'hrr_match')
230
+ self.hrr_match = attributes[:'hrr_match']
231
+ end
182
232
  end
183
233
 
184
234
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -212,7 +262,12 @@ module PharmaObservatory
212
262
  emergency_services == o.emergency_services &&
213
263
  latitude == o.latitude &&
214
264
  longitude == o.longitude &&
215
- geocode_method == o.geocode_method
265
+ geocode_method == o.geocode_method &&
266
+ hrr_num == o.hrr_num &&
267
+ hrr_name == o.hrr_name &&
268
+ hsa_num == o.hsa_num &&
269
+ hsa_name == o.hsa_name &&
270
+ hrr_match == o.hrr_match
216
271
  end
217
272
 
218
273
  # @see the `==` method
@@ -224,7 +279,7 @@ module PharmaObservatory
224
279
  # Calculates hash code according to all attributes.
225
280
  # @return [Integer] Hash code
226
281
  def hash
227
- [ccn, hospital_name, city, state, bed_count, hospital_type, ownership, is_teaching, emergency_services, latitude, longitude, geocode_method].hash
282
+ [ccn, hospital_name, city, state, bed_count, hospital_type, ownership, is_teaching, emergency_services, latitude, longitude, geocode_method, hrr_num, hrr_name, hsa_num, hsa_name, hrr_match].hash
228
283
  end
229
284
 
230
285
  # Builds the object from hash