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.
- checksums.yaml +4 -4
- data/README.md +101 -4
- data/docs/BiomarkerBqpAssertionsRow.md +1 -1
- data/docs/BiomarkerEvidenceRow.md +1 -1
- data/docs/BiomarkerLiteratureRow.md +1 -1
- data/docs/BiomarkerRelationsResponse.md +58 -0
- data/docs/BiomarkerRelationsRow.md +54 -0
- data/docs/BiomarkerSampleCoverageResponse.md +58 -0
- data/docs/BiomarkerSampleCoverageRow.md +36 -0
- data/docs/BiomarkerSamplePrevalenceResponse.md +58 -0
- data/docs/BiomarkerSamplePrevalenceRow.md +56 -0
- data/docs/BiomarkerValidationResponse.md +58 -0
- data/docs/BiomarkerValidationRow.md +70 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/BiomarkersRow.md +2 -2
- data/docs/CellLinesRow.md +1 -1
- data/docs/CompaniesApi.md +410 -0
- data/docs/CompaniesRecord.md +1 -1
- data/docs/CompaniesRecordAttributes.md +18 -0
- data/docs/CompaniesRow.md +7 -3
- data/docs/CompanyAssetsResponse.md +58 -0
- data/docs/CompanyAssetsRow.md +42 -0
- data/docs/CompanyFundingEventsResponse.md +58 -0
- data/docs/CompanyFundingEventsRow.md +62 -0
- data/docs/CompanyFundingSummaryResponse.md +58 -0
- data/docs/CompanyFundingSummaryRow.md +46 -0
- data/docs/CompanyProgramsRow.md +2 -2
- data/docs/ConditionAdverseEventsResponse.md +58 -0
- data/docs/ConditionAdverseEventsRow.md +24 -0
- data/docs/ConditionBurdenResponse.md +58 -0
- data/docs/ConditionBurdenRow.md +32 -0
- data/docs/ConditionDeliveryResponse.md +58 -0
- data/docs/ConditionDeliveryRow.md +44 -0
- data/docs/ConditionDrugsResponse.md +58 -0
- data/docs/ConditionDrugsRow.md +26 -0
- data/docs/ConditionPrevalenceResponse.md +58 -0
- data/docs/ConditionPrevalenceRow.md +62 -0
- data/docs/ConditionPublicationsResponse.md +58 -0
- data/docs/ConditionPublicationsRow.md +32 -0
- data/docs/ConditionSitesResponse.md +58 -0
- data/docs/ConditionSitesRow.md +28 -0
- data/docs/ConditionTrialsResponse.md +58 -0
- data/docs/ConditionTrialsRow.md +58 -0
- data/docs/ConditionsApi.md +953 -0
- data/docs/ConditionsRecord.md +38 -0
- data/docs/ConditionsRecordAttributes.md +20 -0
- data/docs/ConditionsResponse.md +58 -0
- data/docs/ConditionsRow.md +32 -0
- data/docs/DrugPatentCliffRow.md +1 -1
- data/docs/InstitutionalHoldingsRow.md +3 -1
- data/docs/LegalEntitiesApi.md +160 -0
- data/docs/LegalEntitiesRow.md +1 -1
- data/docs/OwnershipPositionsResponse.md +58 -0
- data/docs/OwnershipPositionsRow.md +100 -0
- data/docs/PdufaDatesRow.md +2 -2
- data/docs/SiteCroTrialsRow.md +1 -1
- data/docs/SiteTrialConditionsRow.md +1 -1
- data/docs/SiteTrialDrugsRow.md +1 -1
- data/docs/SiteTrialsRow.md +1 -1
- data/docs/SponsorRecruitmentByPhaseRow.md +2 -2
- data/docs/SponsorRecruitmentDurationRow.md +1 -1
- data/docs/SponsorTrialsRow.md +2 -2
- data/docs/TrialAdverseEventsResponse.md +58 -0
- data/docs/TrialAdverseEventsRow.md +28 -0
- data/docs/TrialChangesResponse.md +58 -0
- data/docs/TrialChangesRow.md +36 -0
- data/docs/TrialDeliveryResponse.md +58 -0
- data/docs/TrialDeliveryRow.md +64 -0
- data/docs/TrialDemographicsResponse.md +58 -0
- data/docs/TrialDemographicsRow.md +32 -0
- data/docs/TrialDrugsResponse.md +58 -0
- data/docs/TrialDrugsRow.md +30 -0
- data/docs/TrialEnrollmentHistoryResponse.md +58 -0
- data/docs/TrialEnrollmentHistoryRow.md +36 -0
- data/docs/TrialEnrollmentRateResponse.md +58 -0
- data/docs/TrialEnrollmentRateRow.md +58 -0
- data/docs/TrialExtractedEndpointsResponse.md +58 -0
- data/docs/TrialExtractedEndpointsRow.md +40 -0
- data/docs/TrialOutcomeMeasuresResponse.md +58 -0
- data/docs/TrialOutcomeMeasuresRow.md +28 -0
- data/docs/TrialSitesResponse.md +58 -0
- data/docs/TrialSitesRow.md +46 -0
- data/docs/TrialsApi.md +1033 -0
- data/docs/TrialsRecord.md +38 -0
- data/docs/TrialsRecordAttributes.md +24 -0
- data/docs/TrialsResponse.md +58 -0
- data/docs/TrialsRow.md +116 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +455 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +1001 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
- data/lib/pharmaobservatory/api/trials_api.rb +1085 -0
- data/lib/pharmaobservatory/models/biomarker_bqp_assertions_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_evidence_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_literature_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_relations_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_relations_row.rb +421 -0
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_row.rb +322 -0
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_row.rb +436 -0
- data/lib/pharmaobservatory/models/biomarker_validation_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_validation_row.rb +509 -0
- data/lib/pharmaobservatory/models/biomarkers_row.rb +2 -2
- data/lib/pharmaobservatory/models/cell_lines_row.rb +1 -1
- data/lib/pharmaobservatory/models/companies_record.rb +1 -1
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +220 -0
- data/lib/pharmaobservatory/models/companies_row.rb +29 -7
- data/lib/pharmaobservatory/models/company_assets_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_assets_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_funding_events_row.rb +465 -0
- data/lib/pharmaobservatory/models/company_funding_summary_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_funding_summary_row.rb +377 -0
- data/lib/pharmaobservatory/models/company_programs_row.rb +2 -2
- data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_burden_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_burden_row.rb +300 -0
- data/lib/pharmaobservatory/models/condition_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_delivery_row.rb +366 -0
- data/lib/pharmaobservatory/models/condition_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_drugs_row.rb +267 -0
- data/lib/pharmaobservatory/models/condition_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_prevalence_row.rb +465 -0
- data/lib/pharmaobservatory/models/condition_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_publications_row.rb +300 -0
- data/lib/pharmaobservatory/models/condition_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_sites_row.rb +278 -0
- data/lib/pharmaobservatory/models/condition_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_trials_row.rb +443 -0
- data/lib/pharmaobservatory/models/conditions_record.rb +385 -0
- data/lib/pharmaobservatory/models/conditions_record_attributes.rb +229 -0
- data/lib/pharmaobservatory/models/conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/conditions_row.rb +304 -0
- data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +1 -1
- data/lib/pharmaobservatory/models/institutional_holdings_row.rb +13 -2
- data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_positions_row.rb +674 -0
- data/lib/pharmaobservatory/models/pdufa_dates_row.rb +2 -2
- data/lib/pharmaobservatory/models/site_cro_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trial_conditions_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trial_drugs_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_row.rb +2 -2
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_row.rb +1 -1
- data/lib/pharmaobservatory/models/sponsor_trials_row.rb +2 -2
- data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_adverse_events_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_changes_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_changes_row.rb +328 -0
- data/lib/pharmaobservatory/models/trial_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_delivery_row.rb +476 -0
- data/lib/pharmaobservatory/models/trial_demographics_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_demographics_row.rb +300 -0
- data/lib/pharmaobservatory/models/trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_drugs_row.rb +291 -0
- data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_enrollment_history_row.rb +322 -0
- data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +443 -0
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_row.rb +346 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_sites_row.rb +377 -0
- data/lib/pharmaobservatory/models/trials_record.rb +385 -0
- data/lib/pharmaobservatory/models/trials_record_attributes.rb +247 -0
- data/lib/pharmaobservatory/models/trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/trials_row.rb +784 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +63 -0
- metadata +127 -1
|
@@ -292,6 +292,370 @@ module PharmaObservatory
|
|
|
292
292
|
return data, status_code, headers
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
+
# Biomarker validation ladder
|
|
296
|
+
# @param id [String]
|
|
297
|
+
# @param [Hash] opts the optional parameters
|
|
298
|
+
# @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.
|
|
299
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
300
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
301
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
302
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
303
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
304
|
+
# @return [BiomarkerValidationResponse]
|
|
305
|
+
def companies_biomarker_validation(id, opts = {})
|
|
306
|
+
data, _status_code, _headers = companies_biomarker_validation_with_http_info(id, opts)
|
|
307
|
+
data
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Biomarker validation ladder
|
|
311
|
+
# @param id [String]
|
|
312
|
+
# @param [Hash] opts the optional parameters
|
|
313
|
+
# @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.
|
|
314
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
315
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
316
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
317
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
318
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
319
|
+
# @return [Array<(BiomarkerValidationResponse, Integer, Hash)>] BiomarkerValidationResponse data, response status code and response headers
|
|
320
|
+
def companies_biomarker_validation_with_http_info(id, opts = {})
|
|
321
|
+
if @api_client.config.debugging
|
|
322
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_biomarker_validation ...'
|
|
323
|
+
end
|
|
324
|
+
# verify the required parameter 'id' is set
|
|
325
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
326
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_biomarker_validation"
|
|
327
|
+
end
|
|
328
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
329
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_biomarker_validation, must be smaller than or equal to 500.'
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
333
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_biomarker_validation, must be greater than or equal to 1.'
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
allowable_values = ["company", "group"]
|
|
337
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
338
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
339
|
+
end
|
|
340
|
+
# resource path
|
|
341
|
+
local_var_path = '/api/v1/companies/{id}/biomarker_validation'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
342
|
+
|
|
343
|
+
# query parameters
|
|
344
|
+
query_params = opts[:query_params] || {}
|
|
345
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
346
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
347
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
348
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
349
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
350
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
351
|
+
|
|
352
|
+
# header parameters
|
|
353
|
+
header_params = opts[:header_params] || {}
|
|
354
|
+
# HTTP header 'Accept' (if needed)
|
|
355
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
356
|
+
|
|
357
|
+
# form parameters
|
|
358
|
+
form_params = opts[:form_params] || {}
|
|
359
|
+
|
|
360
|
+
# http body (model)
|
|
361
|
+
post_body = opts[:debug_body]
|
|
362
|
+
|
|
363
|
+
# return_type
|
|
364
|
+
return_type = opts[:debug_return_type] || 'BiomarkerValidationResponse'
|
|
365
|
+
|
|
366
|
+
# auth_names
|
|
367
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
368
|
+
|
|
369
|
+
new_options = opts.merge(
|
|
370
|
+
:operation => :"CompaniesApi.companies_biomarker_validation",
|
|
371
|
+
:header_params => header_params,
|
|
372
|
+
:query_params => query_params,
|
|
373
|
+
:form_params => form_params,
|
|
374
|
+
:body => post_body,
|
|
375
|
+
:auth_names => auth_names,
|
|
376
|
+
:return_type => return_type
|
|
377
|
+
)
|
|
378
|
+
|
|
379
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
380
|
+
if @api_client.config.debugging
|
|
381
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_biomarker_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
382
|
+
end
|
|
383
|
+
return data, status_code, headers
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# Company assets (approved and marketed drugs)
|
|
387
|
+
# @param id [String]
|
|
388
|
+
# @param [Hash] opts the optional parameters
|
|
389
|
+
# @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.
|
|
390
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
391
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
392
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
393
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
394
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
395
|
+
# @return [CompanyAssetsResponse]
|
|
396
|
+
def companies_company_assets(id, opts = {})
|
|
397
|
+
data, _status_code, _headers = companies_company_assets_with_http_info(id, opts)
|
|
398
|
+
data
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
# Company assets (approved and marketed drugs)
|
|
402
|
+
# @param id [String]
|
|
403
|
+
# @param [Hash] opts the optional parameters
|
|
404
|
+
# @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.
|
|
405
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
406
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
407
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
408
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
409
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
410
|
+
# @return [Array<(CompanyAssetsResponse, Integer, Hash)>] CompanyAssetsResponse data, response status code and response headers
|
|
411
|
+
def companies_company_assets_with_http_info(id, opts = {})
|
|
412
|
+
if @api_client.config.debugging
|
|
413
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_assets ...'
|
|
414
|
+
end
|
|
415
|
+
# verify the required parameter 'id' is set
|
|
416
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
417
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_assets"
|
|
418
|
+
end
|
|
419
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
420
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_assets, must be smaller than or equal to 500.'
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
424
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_assets, must be greater than or equal to 1.'
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
allowable_values = ["company", "group"]
|
|
428
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
429
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
430
|
+
end
|
|
431
|
+
# resource path
|
|
432
|
+
local_var_path = '/api/v1/companies/{id}/company_assets'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
433
|
+
|
|
434
|
+
# query parameters
|
|
435
|
+
query_params = opts[:query_params] || {}
|
|
436
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
437
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
438
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
439
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
440
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
441
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
442
|
+
|
|
443
|
+
# header parameters
|
|
444
|
+
header_params = opts[:header_params] || {}
|
|
445
|
+
# HTTP header 'Accept' (if needed)
|
|
446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
447
|
+
|
|
448
|
+
# form parameters
|
|
449
|
+
form_params = opts[:form_params] || {}
|
|
450
|
+
|
|
451
|
+
# http body (model)
|
|
452
|
+
post_body = opts[:debug_body]
|
|
453
|
+
|
|
454
|
+
# return_type
|
|
455
|
+
return_type = opts[:debug_return_type] || 'CompanyAssetsResponse'
|
|
456
|
+
|
|
457
|
+
# auth_names
|
|
458
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
459
|
+
|
|
460
|
+
new_options = opts.merge(
|
|
461
|
+
:operation => :"CompaniesApi.companies_company_assets",
|
|
462
|
+
:header_params => header_params,
|
|
463
|
+
:query_params => query_params,
|
|
464
|
+
:form_params => form_params,
|
|
465
|
+
:body => post_body,
|
|
466
|
+
:auth_names => auth_names,
|
|
467
|
+
:return_type => return_type
|
|
468
|
+
)
|
|
469
|
+
|
|
470
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
471
|
+
if @api_client.config.debugging
|
|
472
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
473
|
+
end
|
|
474
|
+
return data, status_code, headers
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Company funding events
|
|
478
|
+
# @param id [String]
|
|
479
|
+
# @param [Hash] opts the optional parameters
|
|
480
|
+
# @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.
|
|
481
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
482
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
483
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
484
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
485
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
486
|
+
# @return [CompanyFundingEventsResponse]
|
|
487
|
+
def companies_company_funding_events(id, opts = {})
|
|
488
|
+
data, _status_code, _headers = companies_company_funding_events_with_http_info(id, opts)
|
|
489
|
+
data
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Company funding events
|
|
493
|
+
# @param id [String]
|
|
494
|
+
# @param [Hash] opts the optional parameters
|
|
495
|
+
# @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.
|
|
496
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
497
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
498
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
499
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
500
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
501
|
+
# @return [Array<(CompanyFundingEventsResponse, Integer, Hash)>] CompanyFundingEventsResponse data, response status code and response headers
|
|
502
|
+
def companies_company_funding_events_with_http_info(id, opts = {})
|
|
503
|
+
if @api_client.config.debugging
|
|
504
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_events ...'
|
|
505
|
+
end
|
|
506
|
+
# verify the required parameter 'id' is set
|
|
507
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
508
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_events"
|
|
509
|
+
end
|
|
510
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
511
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be smaller than or equal to 500.'
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
515
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_events, must be greater than or equal to 1.'
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
allowable_values = ["company", "group"]
|
|
519
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
520
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
521
|
+
end
|
|
522
|
+
# resource path
|
|
523
|
+
local_var_path = '/api/v1/companies/{id}/company_funding_events'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
524
|
+
|
|
525
|
+
# query parameters
|
|
526
|
+
query_params = opts[:query_params] || {}
|
|
527
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
528
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
529
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
530
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
531
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
532
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
533
|
+
|
|
534
|
+
# header parameters
|
|
535
|
+
header_params = opts[:header_params] || {}
|
|
536
|
+
# HTTP header 'Accept' (if needed)
|
|
537
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
538
|
+
|
|
539
|
+
# form parameters
|
|
540
|
+
form_params = opts[:form_params] || {}
|
|
541
|
+
|
|
542
|
+
# http body (model)
|
|
543
|
+
post_body = opts[:debug_body]
|
|
544
|
+
|
|
545
|
+
# return_type
|
|
546
|
+
return_type = opts[:debug_return_type] || 'CompanyFundingEventsResponse'
|
|
547
|
+
|
|
548
|
+
# auth_names
|
|
549
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
550
|
+
|
|
551
|
+
new_options = opts.merge(
|
|
552
|
+
:operation => :"CompaniesApi.companies_company_funding_events",
|
|
553
|
+
:header_params => header_params,
|
|
554
|
+
:query_params => query_params,
|
|
555
|
+
:form_params => form_params,
|
|
556
|
+
:body => post_body,
|
|
557
|
+
:auth_names => auth_names,
|
|
558
|
+
:return_type => return_type
|
|
559
|
+
)
|
|
560
|
+
|
|
561
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
562
|
+
if @api_client.config.debugging
|
|
563
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
|
+
end
|
|
565
|
+
return data, status_code, headers
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
# Company funding summary
|
|
569
|
+
# @param id [String]
|
|
570
|
+
# @param [Hash] opts the optional parameters
|
|
571
|
+
# @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.
|
|
572
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
573
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
574
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
575
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
576
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
577
|
+
# @return [CompanyFundingSummaryResponse]
|
|
578
|
+
def companies_company_funding_summary(id, opts = {})
|
|
579
|
+
data, _status_code, _headers = companies_company_funding_summary_with_http_info(id, opts)
|
|
580
|
+
data
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# Company funding summary
|
|
584
|
+
# @param id [String]
|
|
585
|
+
# @param [Hash] opts the optional parameters
|
|
586
|
+
# @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.
|
|
587
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
588
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
589
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
590
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
591
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
592
|
+
# @return [Array<(CompanyFundingSummaryResponse, Integer, Hash)>] CompanyFundingSummaryResponse data, response status code and response headers
|
|
593
|
+
def companies_company_funding_summary_with_http_info(id, opts = {})
|
|
594
|
+
if @api_client.config.debugging
|
|
595
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_funding_summary ...'
|
|
596
|
+
end
|
|
597
|
+
# verify the required parameter 'id' is set
|
|
598
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
599
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_funding_summary"
|
|
600
|
+
end
|
|
601
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
602
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be smaller than or equal to 500.'
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
606
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_funding_summary, must be greater than or equal to 1.'
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
allowable_values = ["company", "group"]
|
|
610
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
611
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
612
|
+
end
|
|
613
|
+
# resource path
|
|
614
|
+
local_var_path = '/api/v1/companies/{id}/company_funding_summary'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
615
|
+
|
|
616
|
+
# query parameters
|
|
617
|
+
query_params = opts[:query_params] || {}
|
|
618
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
619
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
620
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
621
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
622
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
623
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
624
|
+
|
|
625
|
+
# header parameters
|
|
626
|
+
header_params = opts[:header_params] || {}
|
|
627
|
+
# HTTP header 'Accept' (if needed)
|
|
628
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
629
|
+
|
|
630
|
+
# form parameters
|
|
631
|
+
form_params = opts[:form_params] || {}
|
|
632
|
+
|
|
633
|
+
# http body (model)
|
|
634
|
+
post_body = opts[:debug_body]
|
|
635
|
+
|
|
636
|
+
# return_type
|
|
637
|
+
return_type = opts[:debug_return_type] || 'CompanyFundingSummaryResponse'
|
|
638
|
+
|
|
639
|
+
# auth_names
|
|
640
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
641
|
+
|
|
642
|
+
new_options = opts.merge(
|
|
643
|
+
:operation => :"CompaniesApi.companies_company_funding_summary",
|
|
644
|
+
:header_params => header_params,
|
|
645
|
+
:query_params => query_params,
|
|
646
|
+
:form_params => form_params,
|
|
647
|
+
:body => post_body,
|
|
648
|
+
:auth_names => auth_names,
|
|
649
|
+
:return_type => return_type
|
|
650
|
+
)
|
|
651
|
+
|
|
652
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
653
|
+
if @api_client.config.debugging
|
|
654
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_company_funding_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
655
|
+
end
|
|
656
|
+
return data, status_code, headers
|
|
657
|
+
end
|
|
658
|
+
|
|
295
659
|
# Company members
|
|
296
660
|
# @param id [String]
|
|
297
661
|
# @param [Hash] opts the optional parameters
|
|
@@ -977,6 +1341,97 @@ module PharmaObservatory
|
|
|
977
1341
|
return data, status_code, headers
|
|
978
1342
|
end
|
|
979
1343
|
|
|
1344
|
+
# Ownership and control positions
|
|
1345
|
+
# @param id [String]
|
|
1346
|
+
# @param [Hash] opts the optional parameters
|
|
1347
|
+
# @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.
|
|
1348
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1349
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1350
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1351
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1352
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1353
|
+
# @return [OwnershipPositionsResponse]
|
|
1354
|
+
def companies_ownership_positions(id, opts = {})
|
|
1355
|
+
data, _status_code, _headers = companies_ownership_positions_with_http_info(id, opts)
|
|
1356
|
+
data
|
|
1357
|
+
end
|
|
1358
|
+
|
|
1359
|
+
# Ownership and control positions
|
|
1360
|
+
# @param id [String]
|
|
1361
|
+
# @param [Hash] opts the optional parameters
|
|
1362
|
+
# @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.
|
|
1363
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1364
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1365
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1366
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1367
|
+
# @option opts [String] :scope company (this company only) or group (its corporate group).
|
|
1368
|
+
# @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
|
|
1369
|
+
def companies_ownership_positions_with_http_info(id, opts = {})
|
|
1370
|
+
if @api_client.config.debugging
|
|
1371
|
+
@api_client.config.logger.debug 'Calling API: CompaniesApi.companies_ownership_positions ...'
|
|
1372
|
+
end
|
|
1373
|
+
# verify the required parameter 'id' is set
|
|
1374
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1375
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_ownership_positions"
|
|
1376
|
+
end
|
|
1377
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1378
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be smaller than or equal to 500.'
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1381
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1382
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_ownership_positions, must be greater than or equal to 1.'
|
|
1383
|
+
end
|
|
1384
|
+
|
|
1385
|
+
allowable_values = ["company", "group"]
|
|
1386
|
+
if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
|
|
1387
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
|
|
1388
|
+
end
|
|
1389
|
+
# resource path
|
|
1390
|
+
local_var_path = '/api/v1/companies/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1391
|
+
|
|
1392
|
+
# query parameters
|
|
1393
|
+
query_params = opts[:query_params] || {}
|
|
1394
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1395
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1396
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1397
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1398
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1399
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
1400
|
+
|
|
1401
|
+
# header parameters
|
|
1402
|
+
header_params = opts[:header_params] || {}
|
|
1403
|
+
# HTTP header 'Accept' (if needed)
|
|
1404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1405
|
+
|
|
1406
|
+
# form parameters
|
|
1407
|
+
form_params = opts[:form_params] || {}
|
|
1408
|
+
|
|
1409
|
+
# http body (model)
|
|
1410
|
+
post_body = opts[:debug_body]
|
|
1411
|
+
|
|
1412
|
+
# return_type
|
|
1413
|
+
return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
|
|
1414
|
+
|
|
1415
|
+
# auth_names
|
|
1416
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1417
|
+
|
|
1418
|
+
new_options = opts.merge(
|
|
1419
|
+
:operation => :"CompaniesApi.companies_ownership_positions",
|
|
1420
|
+
:header_params => header_params,
|
|
1421
|
+
:query_params => query_params,
|
|
1422
|
+
:form_params => form_params,
|
|
1423
|
+
:body => post_body,
|
|
1424
|
+
:auth_names => auth_names,
|
|
1425
|
+
:return_type => return_type
|
|
1426
|
+
)
|
|
1427
|
+
|
|
1428
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1429
|
+
if @api_client.config.debugging
|
|
1430
|
+
@api_client.config.logger.debug "API called: CompaniesApi#companies_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1431
|
+
end
|
|
1432
|
+
return data, status_code, headers
|
|
1433
|
+
end
|
|
1434
|
+
|
|
980
1435
|
# FDA decision dates (PDUFA) and catalysts
|
|
981
1436
|
# @param id [String]
|
|
982
1437
|
# @param [Hash] opts the optional parameters
|