pharmaobservatory 0.1.7 → 0.1.8
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 +83 -4
- data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
- data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
- data/docs/BiomarkerAssayProvidersResponse.md +58 -0
- data/docs/BiomarkerAssayProvidersRow.md +72 -0
- data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
- data/docs/BiomarkerEvidenceByYearRow.md +32 -0
- data/docs/BiomarkerTraversalStatusResponse.md +58 -0
- data/docs/BiomarkerTraversalStatusRow.md +36 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/CompaniesApi.md +1001 -99
- data/docs/CompanyAssetsRow.md +5 -1
- data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
- data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
- data/docs/CompanyProgramsRow.md +5 -1
- data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
- data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
- data/docs/GxpFacilitiesRow.md +22 -0
- data/docs/LegalEntitiesApi.md +981 -101
- data/docs/LegalEntitiesRecordAttributes.md +6 -0
- data/docs/LegalEntitySecFilingsResponse.md +58 -0
- data/docs/LegalEntitySecFilingsRow.md +44 -0
- data/docs/OrgDisclosureTrendResponse.md +58 -0
- data/docs/OrgDisclosureTrendRow.md +62 -0
- data/docs/OwnershipSourceCoverageResponse.md +58 -0
- data/docs/OwnershipSourceCoverageRow.md +62 -0
- data/docs/ProgramLicensingCandidatesRow.md +5 -1
- data/docs/ProgramsRow.md +1 -1
- data/docs/RwdConductorDeliveryResponse.md +58 -0
- data/docs/RwdConductorDeliveryRow.md +74 -0
- data/docs/RwdConductorFootprintResponse.md +58 -0
- data/docs/RwdConductorFootprintRow.md +40 -0
- data/docs/RwdConductorStudiesResponse.md +58 -0
- data/docs/RwdConductorStudiesRow.md +42 -0
- data/docs/RwdConductorsApi.md +393 -0
- data/docs/RwdConductorsRecord.md +38 -0
- data/docs/RwdConductorsResponse.md +58 -0
- data/docs/RwdConductorsRow.md +72 -0
- data/docs/RwdInstitutionsApi.md +153 -0
- data/docs/RwdInstitutionsRecord.md +38 -0
- data/docs/RwdInstitutionsResponse.md +58 -0
- data/docs/RwdInstitutionsRow.md +154 -0
- data/docs/RwdNetworksApi.md +153 -0
- data/docs/RwdNetworksRecord.md +38 -0
- data/docs/RwdNetworksResponse.md +58 -0
- data/docs/RwdNetworksRow.md +110 -0
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/SbtiCrosscheckResponse.md +58 -0
- data/docs/SbtiCrosscheckRow.md +48 -0
- data/docs/SponsorDeliveryResponse.md +58 -0
- data/docs/SponsorDeliveryRow.md +52 -0
- data/docs/SponsorPatentMentionsResponse.md +58 -0
- data/docs/SponsorPatentMentionsRow.md +42 -0
- data/docs/SponsorTrialConditionsResponse.md +58 -0
- data/docs/SponsorTrialConditionsRow.md +36 -0
- data/docs/SponsorTrialDrugsResponse.md +58 -0
- data/docs/SponsorTrialDrugsRow.md +34 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +1131 -130
- data/lib/pharmaobservatory/api/legal_entities_api.rb +1047 -123
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
- data/lib/pharmaobservatory/models/company_assets_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_programs_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +122 -1
- data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +28 -1
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
- data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +24 -2
- data/lib/pharmaobservatory/models/programs_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +46 -0
- metadata +94 -2
|
@@ -271,6 +271,90 @@ module PharmaObservatory
|
|
|
271
271
|
return data, status_code, headers
|
|
272
272
|
end
|
|
273
273
|
|
|
274
|
+
# Company biomarker capability
|
|
275
|
+
# @param id [String]
|
|
276
|
+
# @param [Hash] opts the optional parameters
|
|
277
|
+
# @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.
|
|
278
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
279
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
280
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
281
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
282
|
+
# @return [CompanyBiomarkerCapabilityResponse]
|
|
283
|
+
def legal_entities_company_biomarker_capability(id, opts = {})
|
|
284
|
+
data, _status_code, _headers = legal_entities_company_biomarker_capability_with_http_info(id, opts)
|
|
285
|
+
data
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Company biomarker capability
|
|
289
|
+
# @param id [String]
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @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.
|
|
292
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
293
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
294
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
295
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
296
|
+
# @return [Array<(CompanyBiomarkerCapabilityResponse, Integer, Hash)>] CompanyBiomarkerCapabilityResponse data, response status code and response headers
|
|
297
|
+
def legal_entities_company_biomarker_capability_with_http_info(id, opts = {})
|
|
298
|
+
if @api_client.config.debugging
|
|
299
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_biomarker_capability ...'
|
|
300
|
+
end
|
|
301
|
+
# verify the required parameter 'id' is set
|
|
302
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
303
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_biomarker_capability"
|
|
304
|
+
end
|
|
305
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
306
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_biomarker_capability, must be smaller than or equal to 500.'
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
310
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_biomarker_capability, must be greater than or equal to 1.'
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# resource path
|
|
314
|
+
local_var_path = '/api/v1/legal_entities/{id}/company_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
315
|
+
|
|
316
|
+
# query parameters
|
|
317
|
+
query_params = opts[:query_params] || {}
|
|
318
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
319
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
320
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
321
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
322
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
323
|
+
|
|
324
|
+
# header parameters
|
|
325
|
+
header_params = opts[:header_params] || {}
|
|
326
|
+
# HTTP header 'Accept' (if needed)
|
|
327
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
328
|
+
|
|
329
|
+
# form parameters
|
|
330
|
+
form_params = opts[:form_params] || {}
|
|
331
|
+
|
|
332
|
+
# http body (model)
|
|
333
|
+
post_body = opts[:debug_body]
|
|
334
|
+
|
|
335
|
+
# return_type
|
|
336
|
+
return_type = opts[:debug_return_type] || 'CompanyBiomarkerCapabilityResponse'
|
|
337
|
+
|
|
338
|
+
# auth_names
|
|
339
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
340
|
+
|
|
341
|
+
new_options = opts.merge(
|
|
342
|
+
:operation => :"LegalEntitiesApi.legal_entities_company_biomarker_capability",
|
|
343
|
+
:header_params => header_params,
|
|
344
|
+
:query_params => query_params,
|
|
345
|
+
:form_params => form_params,
|
|
346
|
+
:body => post_body,
|
|
347
|
+
:auth_names => auth_names,
|
|
348
|
+
:return_type => return_type
|
|
349
|
+
)
|
|
350
|
+
|
|
351
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
352
|
+
if @api_client.config.debugging
|
|
353
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
354
|
+
end
|
|
355
|
+
return data, status_code, headers
|
|
356
|
+
end
|
|
357
|
+
|
|
274
358
|
# Company programs
|
|
275
359
|
# @param id [String]
|
|
276
360
|
# @param [Hash] opts the optional parameters
|
|
@@ -355,6 +439,90 @@ module PharmaObservatory
|
|
|
355
439
|
return data, status_code, headers
|
|
356
440
|
end
|
|
357
441
|
|
|
442
|
+
# Organization-wide rare disease declarations
|
|
443
|
+
# @param id [String]
|
|
444
|
+
# @param [Hash] opts the optional parameters
|
|
445
|
+
# @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.
|
|
446
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
447
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
448
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
449
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
450
|
+
# @return [CompanyRareDiseaseDeclarationsResponse]
|
|
451
|
+
def legal_entities_company_rare_disease_declarations(id, opts = {})
|
|
452
|
+
data, _status_code, _headers = legal_entities_company_rare_disease_declarations_with_http_info(id, opts)
|
|
453
|
+
data
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# Organization-wide rare disease declarations
|
|
457
|
+
# @param id [String]
|
|
458
|
+
# @param [Hash] opts the optional parameters
|
|
459
|
+
# @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.
|
|
460
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
461
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
462
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
463
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
464
|
+
# @return [Array<(CompanyRareDiseaseDeclarationsResponse, Integer, Hash)>] CompanyRareDiseaseDeclarationsResponse data, response status code and response headers
|
|
465
|
+
def legal_entities_company_rare_disease_declarations_with_http_info(id, opts = {})
|
|
466
|
+
if @api_client.config.debugging
|
|
467
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_company_rare_disease_declarations ...'
|
|
468
|
+
end
|
|
469
|
+
# verify the required parameter 'id' is set
|
|
470
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
471
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations"
|
|
472
|
+
end
|
|
473
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
474
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations, must be smaller than or equal to 500.'
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
478
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_company_rare_disease_declarations, must be greater than or equal to 1.'
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# resource path
|
|
482
|
+
local_var_path = '/api/v1/legal_entities/{id}/company_rare_disease_declarations'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
483
|
+
|
|
484
|
+
# query parameters
|
|
485
|
+
query_params = opts[:query_params] || {}
|
|
486
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
487
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
488
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
489
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
490
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
491
|
+
|
|
492
|
+
# header parameters
|
|
493
|
+
header_params = opts[:header_params] || {}
|
|
494
|
+
# HTTP header 'Accept' (if needed)
|
|
495
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
496
|
+
|
|
497
|
+
# form parameters
|
|
498
|
+
form_params = opts[:form_params] || {}
|
|
499
|
+
|
|
500
|
+
# http body (model)
|
|
501
|
+
post_body = opts[:debug_body]
|
|
502
|
+
|
|
503
|
+
# return_type
|
|
504
|
+
return_type = opts[:debug_return_type] || 'CompanyRareDiseaseDeclarationsResponse'
|
|
505
|
+
|
|
506
|
+
# auth_names
|
|
507
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
508
|
+
|
|
509
|
+
new_options = opts.merge(
|
|
510
|
+
:operation => :"LegalEntitiesApi.legal_entities_company_rare_disease_declarations",
|
|
511
|
+
:header_params => header_params,
|
|
512
|
+
:query_params => query_params,
|
|
513
|
+
:form_params => form_params,
|
|
514
|
+
:body => post_body,
|
|
515
|
+
:auth_names => auth_names,
|
|
516
|
+
:return_type => return_type
|
|
517
|
+
)
|
|
518
|
+
|
|
519
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
520
|
+
if @api_client.config.debugging
|
|
521
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_company_rare_disease_declarations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
522
|
+
end
|
|
523
|
+
return data, status_code, headers
|
|
524
|
+
end
|
|
525
|
+
|
|
358
526
|
# FDA firm debarments
|
|
359
527
|
# @param id [String]
|
|
360
528
|
# @param [Hash] opts the optional parameters
|
|
@@ -1172,41 +1340,47 @@ module PharmaObservatory
|
|
|
1172
1340
|
return data, status_code, headers
|
|
1173
1341
|
end
|
|
1174
1342
|
|
|
1175
|
-
#
|
|
1343
|
+
# SEC filer records
|
|
1344
|
+
# @param id [String]
|
|
1176
1345
|
# @param [Hash] opts the optional parameters
|
|
1177
1346
|
# @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.
|
|
1178
1347
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1179
1348
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1180
1349
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1181
1350
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1182
|
-
# @return [
|
|
1183
|
-
def
|
|
1184
|
-
data, _status_code, _headers =
|
|
1351
|
+
# @return [LegalEntitySecFilingsResponse]
|
|
1352
|
+
def legal_entities_legal_entity_sec_filings(id, opts = {})
|
|
1353
|
+
data, _status_code, _headers = legal_entities_legal_entity_sec_filings_with_http_info(id, opts)
|
|
1185
1354
|
data
|
|
1186
1355
|
end
|
|
1187
1356
|
|
|
1188
|
-
#
|
|
1357
|
+
# SEC filer records
|
|
1358
|
+
# @param id [String]
|
|
1189
1359
|
# @param [Hash] opts the optional parameters
|
|
1190
1360
|
# @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.
|
|
1191
1361
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1192
1362
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1193
1363
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1194
1364
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1195
|
-
# @return [Array<(
|
|
1196
|
-
def
|
|
1365
|
+
# @return [Array<(LegalEntitySecFilingsResponse, Integer, Hash)>] LegalEntitySecFilingsResponse data, response status code and response headers
|
|
1366
|
+
def legal_entities_legal_entity_sec_filings_with_http_info(id, opts = {})
|
|
1197
1367
|
if @api_client.config.debugging
|
|
1198
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
1368
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_legal_entity_sec_filings ...'
|
|
1369
|
+
end
|
|
1370
|
+
# verify the required parameter 'id' is set
|
|
1371
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1372
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings"
|
|
1199
1373
|
end
|
|
1200
1374
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1201
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1375
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings, must be smaller than or equal to 500.'
|
|
1202
1376
|
end
|
|
1203
1377
|
|
|
1204
1378
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1205
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1379
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_legal_entity_sec_filings, must be greater than or equal to 1.'
|
|
1206
1380
|
end
|
|
1207
1381
|
|
|
1208
1382
|
# resource path
|
|
1209
|
-
local_var_path = '/api/v1/legal_entities'
|
|
1383
|
+
local_var_path = '/api/v1/legal_entities/{id}/legal_entity_sec_filings'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1210
1384
|
|
|
1211
1385
|
# query parameters
|
|
1212
1386
|
query_params = opts[:query_params] || {}
|
|
@@ -1228,13 +1402,13 @@ module PharmaObservatory
|
|
|
1228
1402
|
post_body = opts[:debug_body]
|
|
1229
1403
|
|
|
1230
1404
|
# return_type
|
|
1231
|
-
return_type = opts[:debug_return_type] || '
|
|
1405
|
+
return_type = opts[:debug_return_type] || 'LegalEntitySecFilingsResponse'
|
|
1232
1406
|
|
|
1233
1407
|
# auth_names
|
|
1234
1408
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1235
1409
|
|
|
1236
1410
|
new_options = opts.merge(
|
|
1237
|
-
:operation => :"LegalEntitiesApi.
|
|
1411
|
+
:operation => :"LegalEntitiesApi.legal_entities_legal_entity_sec_filings",
|
|
1238
1412
|
:header_params => header_params,
|
|
1239
1413
|
:query_params => query_params,
|
|
1240
1414
|
:form_params => form_params,
|
|
@@ -1245,52 +1419,46 @@ module PharmaObservatory
|
|
|
1245
1419
|
|
|
1246
1420
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1247
1421
|
if @api_client.config.debugging
|
|
1248
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
1422
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_legal_entity_sec_filings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1249
1423
|
end
|
|
1250
1424
|
return data, status_code, headers
|
|
1251
1425
|
end
|
|
1252
1426
|
|
|
1253
|
-
#
|
|
1254
|
-
# @param id [String]
|
|
1427
|
+
# List legal entities
|
|
1255
1428
|
# @param [Hash] opts the optional parameters
|
|
1256
1429
|
# @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.
|
|
1257
1430
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1258
1431
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1259
1432
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1260
1433
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1261
|
-
# @return [
|
|
1262
|
-
def
|
|
1263
|
-
data, _status_code, _headers =
|
|
1434
|
+
# @return [LegalEntitiesResponse]
|
|
1435
|
+
def legal_entities_list(opts = {})
|
|
1436
|
+
data, _status_code, _headers = legal_entities_list_with_http_info(opts)
|
|
1264
1437
|
data
|
|
1265
1438
|
end
|
|
1266
1439
|
|
|
1267
|
-
#
|
|
1268
|
-
# @param id [String]
|
|
1440
|
+
# List legal entities
|
|
1269
1441
|
# @param [Hash] opts the optional parameters
|
|
1270
1442
|
# @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.
|
|
1271
1443
|
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1272
1444
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1273
1445
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1274
1446
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1275
|
-
# @return [Array<(
|
|
1276
|
-
def
|
|
1447
|
+
# @return [Array<(LegalEntitiesResponse, Integer, Hash)>] LegalEntitiesResponse data, response status code and response headers
|
|
1448
|
+
def legal_entities_list_with_http_info(opts = {})
|
|
1277
1449
|
if @api_client.config.debugging
|
|
1278
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
1279
|
-
end
|
|
1280
|
-
# verify the required parameter 'id' is set
|
|
1281
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1282
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
|
|
1450
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_list ...'
|
|
1283
1451
|
end
|
|
1284
1452
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1285
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1453
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be smaller than or equal to 500.'
|
|
1286
1454
|
end
|
|
1287
1455
|
|
|
1288
1456
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1289
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1457
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_list, must be greater than or equal to 1.'
|
|
1290
1458
|
end
|
|
1291
1459
|
|
|
1292
1460
|
# resource path
|
|
1293
|
-
local_var_path = '/api/v1/legal_entities
|
|
1461
|
+
local_var_path = '/api/v1/legal_entities'
|
|
1294
1462
|
|
|
1295
1463
|
# query parameters
|
|
1296
1464
|
query_params = opts[:query_params] || {}
|
|
@@ -1312,13 +1480,13 @@ module PharmaObservatory
|
|
|
1312
1480
|
post_body = opts[:debug_body]
|
|
1313
1481
|
|
|
1314
1482
|
# return_type
|
|
1315
|
-
return_type = opts[:debug_return_type] || '
|
|
1483
|
+
return_type = opts[:debug_return_type] || 'LegalEntitiesResponse'
|
|
1316
1484
|
|
|
1317
1485
|
# auth_names
|
|
1318
1486
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1319
1487
|
|
|
1320
1488
|
new_options = opts.merge(
|
|
1321
|
-
:operation => :"LegalEntitiesApi.
|
|
1489
|
+
:operation => :"LegalEntitiesApi.legal_entities_list",
|
|
1322
1490
|
:header_params => header_params,
|
|
1323
1491
|
:query_params => query_params,
|
|
1324
1492
|
:form_params => form_params,
|
|
@@ -1329,12 +1497,12 @@ module PharmaObservatory
|
|
|
1329
1497
|
|
|
1330
1498
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1331
1499
|
if @api_client.config.debugging
|
|
1332
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
1500
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1333
1501
|
end
|
|
1334
1502
|
return data, status_code, headers
|
|
1335
1503
|
end
|
|
1336
1504
|
|
|
1337
|
-
# Organization
|
|
1505
|
+
# Organization disclosure trend
|
|
1338
1506
|
# @param id [String]
|
|
1339
1507
|
# @param [Hash] opts the optional parameters
|
|
1340
1508
|
# @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.
|
|
@@ -1342,13 +1510,13 @@ module PharmaObservatory
|
|
|
1342
1510
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1343
1511
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1344
1512
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1345
|
-
# @return [
|
|
1346
|
-
def
|
|
1347
|
-
data, _status_code, _headers =
|
|
1513
|
+
# @return [OrgDisclosureTrendResponse]
|
|
1514
|
+
def legal_entities_org_disclosure_trend(id, opts = {})
|
|
1515
|
+
data, _status_code, _headers = legal_entities_org_disclosure_trend_with_http_info(id, opts)
|
|
1348
1516
|
data
|
|
1349
1517
|
end
|
|
1350
1518
|
|
|
1351
|
-
# Organization
|
|
1519
|
+
# Organization disclosure trend
|
|
1352
1520
|
# @param id [String]
|
|
1353
1521
|
# @param [Hash] opts the optional parameters
|
|
1354
1522
|
# @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.
|
|
@@ -1356,25 +1524,25 @@ module PharmaObservatory
|
|
|
1356
1524
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1357
1525
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1358
1526
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1359
|
-
# @return [Array<(
|
|
1360
|
-
def
|
|
1527
|
+
# @return [Array<(OrgDisclosureTrendResponse, Integer, Hash)>] OrgDisclosureTrendResponse data, response status code and response headers
|
|
1528
|
+
def legal_entities_org_disclosure_trend_with_http_info(id, opts = {})
|
|
1361
1529
|
if @api_client.config.debugging
|
|
1362
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
1530
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosure_trend ...'
|
|
1363
1531
|
end
|
|
1364
1532
|
# verify the required parameter 'id' is set
|
|
1365
1533
|
if @api_client.config.client_side_validation && id.nil?
|
|
1366
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.
|
|
1534
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosure_trend"
|
|
1367
1535
|
end
|
|
1368
1536
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1369
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1537
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosure_trend, must be smaller than or equal to 500.'
|
|
1370
1538
|
end
|
|
1371
1539
|
|
|
1372
1540
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1373
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1541
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosure_trend, must be greater than or equal to 1.'
|
|
1374
1542
|
end
|
|
1375
1543
|
|
|
1376
1544
|
# resource path
|
|
1377
|
-
local_var_path = '/api/v1/legal_entities/{id}/
|
|
1545
|
+
local_var_path = '/api/v1/legal_entities/{id}/org_disclosure_trend'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1378
1546
|
|
|
1379
1547
|
# query parameters
|
|
1380
1548
|
query_params = opts[:query_params] || {}
|
|
@@ -1396,13 +1564,13 @@ module PharmaObservatory
|
|
|
1396
1564
|
post_body = opts[:debug_body]
|
|
1397
1565
|
|
|
1398
1566
|
# return_type
|
|
1399
|
-
return_type = opts[:debug_return_type] || '
|
|
1567
|
+
return_type = opts[:debug_return_type] || 'OrgDisclosureTrendResponse'
|
|
1400
1568
|
|
|
1401
1569
|
# auth_names
|
|
1402
1570
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1403
1571
|
|
|
1404
1572
|
new_options = opts.merge(
|
|
1405
|
-
:operation => :"LegalEntitiesApi.
|
|
1573
|
+
:operation => :"LegalEntitiesApi.legal_entities_org_disclosure_trend",
|
|
1406
1574
|
:header_params => header_params,
|
|
1407
1575
|
:query_params => query_params,
|
|
1408
1576
|
:form_params => form_params,
|
|
@@ -1413,12 +1581,12 @@ module PharmaObservatory
|
|
|
1413
1581
|
|
|
1414
1582
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1415
1583
|
if @api_client.config.debugging
|
|
1416
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
1584
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosure_trend\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1417
1585
|
end
|
|
1418
1586
|
return data, status_code, headers
|
|
1419
1587
|
end
|
|
1420
1588
|
|
|
1421
|
-
#
|
|
1589
|
+
# Organization disclosures (climate and diversity)
|
|
1422
1590
|
# @param id [String]
|
|
1423
1591
|
# @param [Hash] opts the optional parameters
|
|
1424
1592
|
# @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.
|
|
@@ -1426,13 +1594,13 @@ module PharmaObservatory
|
|
|
1426
1594
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1427
1595
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1428
1596
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1429
|
-
# @return [
|
|
1430
|
-
def
|
|
1431
|
-
data, _status_code, _headers =
|
|
1597
|
+
# @return [OrgDisclosuresResponse]
|
|
1598
|
+
def legal_entities_org_disclosures(id, opts = {})
|
|
1599
|
+
data, _status_code, _headers = legal_entities_org_disclosures_with_http_info(id, opts)
|
|
1432
1600
|
data
|
|
1433
1601
|
end
|
|
1434
1602
|
|
|
1435
|
-
#
|
|
1603
|
+
# Organization disclosures (climate and diversity)
|
|
1436
1604
|
# @param id [String]
|
|
1437
1605
|
# @param [Hash] opts the optional parameters
|
|
1438
1606
|
# @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.
|
|
@@ -1440,25 +1608,25 @@ module PharmaObservatory
|
|
|
1440
1608
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1441
1609
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1442
1610
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1443
|
-
# @return [Array<(
|
|
1444
|
-
def
|
|
1611
|
+
# @return [Array<(OrgDisclosuresResponse, Integer, Hash)>] OrgDisclosuresResponse data, response status code and response headers
|
|
1612
|
+
def legal_entities_org_disclosures_with_http_info(id, opts = {})
|
|
1445
1613
|
if @api_client.config.debugging
|
|
1446
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
1614
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_disclosures ...'
|
|
1447
1615
|
end
|
|
1448
1616
|
# verify the required parameter 'id' is set
|
|
1449
1617
|
if @api_client.config.client_side_validation && id.nil?
|
|
1450
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.
|
|
1618
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_disclosures"
|
|
1451
1619
|
end
|
|
1452
1620
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1453
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1621
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be smaller than or equal to 500.'
|
|
1454
1622
|
end
|
|
1455
1623
|
|
|
1456
1624
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1457
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1625
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_disclosures, must be greater than or equal to 1.'
|
|
1458
1626
|
end
|
|
1459
1627
|
|
|
1460
1628
|
# resource path
|
|
1461
|
-
local_var_path = '/api/v1/legal_entities/{id}/
|
|
1629
|
+
local_var_path = '/api/v1/legal_entities/{id}/org_disclosures'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1462
1630
|
|
|
1463
1631
|
# query parameters
|
|
1464
1632
|
query_params = opts[:query_params] || {}
|
|
@@ -1480,13 +1648,13 @@ module PharmaObservatory
|
|
|
1480
1648
|
post_body = opts[:debug_body]
|
|
1481
1649
|
|
|
1482
1650
|
# return_type
|
|
1483
|
-
return_type = opts[:debug_return_type] || '
|
|
1651
|
+
return_type = opts[:debug_return_type] || 'OrgDisclosuresResponse'
|
|
1484
1652
|
|
|
1485
1653
|
# auth_names
|
|
1486
1654
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1487
1655
|
|
|
1488
1656
|
new_options = opts.merge(
|
|
1489
|
-
:operation => :"LegalEntitiesApi.
|
|
1657
|
+
:operation => :"LegalEntitiesApi.legal_entities_org_disclosures",
|
|
1490
1658
|
:header_params => header_params,
|
|
1491
1659
|
:query_params => query_params,
|
|
1492
1660
|
:form_params => form_params,
|
|
@@ -1497,12 +1665,12 @@ module PharmaObservatory
|
|
|
1497
1665
|
|
|
1498
1666
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1499
1667
|
if @api_client.config.debugging
|
|
1500
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
1668
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_disclosures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1501
1669
|
end
|
|
1502
1670
|
return data, status_code, headers
|
|
1503
1671
|
end
|
|
1504
1672
|
|
|
1505
|
-
#
|
|
1673
|
+
# Organization relationships
|
|
1506
1674
|
# @param id [String]
|
|
1507
1675
|
# @param [Hash] opts the optional parameters
|
|
1508
1676
|
# @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.
|
|
@@ -1510,13 +1678,13 @@ module PharmaObservatory
|
|
|
1510
1678
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1511
1679
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1512
1680
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1513
|
-
# @return [
|
|
1514
|
-
def
|
|
1515
|
-
data, _status_code, _headers =
|
|
1681
|
+
# @return [OrgRelationshipsResponse]
|
|
1682
|
+
def legal_entities_org_relationships(id, opts = {})
|
|
1683
|
+
data, _status_code, _headers = legal_entities_org_relationships_with_http_info(id, opts)
|
|
1516
1684
|
data
|
|
1517
1685
|
end
|
|
1518
1686
|
|
|
1519
|
-
#
|
|
1687
|
+
# Organization relationships
|
|
1520
1688
|
# @param id [String]
|
|
1521
1689
|
# @param [Hash] opts the optional parameters
|
|
1522
1690
|
# @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.
|
|
@@ -1524,17 +1692,185 @@ module PharmaObservatory
|
|
|
1524
1692
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1525
1693
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1526
1694
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1527
|
-
# @return [Array<(
|
|
1528
|
-
def
|
|
1695
|
+
# @return [Array<(OrgRelationshipsResponse, Integer, Hash)>] OrgRelationshipsResponse data, response status code and response headers
|
|
1696
|
+
def legal_entities_org_relationships_with_http_info(id, opts = {})
|
|
1529
1697
|
if @api_client.config.debugging
|
|
1530
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
1698
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_org_relationships ...'
|
|
1531
1699
|
end
|
|
1532
1700
|
# verify the required parameter 'id' is set
|
|
1533
1701
|
if @api_client.config.client_side_validation && id.nil?
|
|
1534
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.
|
|
1702
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_org_relationships"
|
|
1535
1703
|
end
|
|
1536
1704
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1537
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
1705
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be smaller than or equal to 500.'
|
|
1706
|
+
end
|
|
1707
|
+
|
|
1708
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1709
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_org_relationships, must be greater than or equal to 1.'
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1712
|
+
# resource path
|
|
1713
|
+
local_var_path = '/api/v1/legal_entities/{id}/org_relationships'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1714
|
+
|
|
1715
|
+
# query parameters
|
|
1716
|
+
query_params = opts[:query_params] || {}
|
|
1717
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1718
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1719
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1720
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1721
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1722
|
+
|
|
1723
|
+
# header parameters
|
|
1724
|
+
header_params = opts[:header_params] || {}
|
|
1725
|
+
# HTTP header 'Accept' (if needed)
|
|
1726
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1727
|
+
|
|
1728
|
+
# form parameters
|
|
1729
|
+
form_params = opts[:form_params] || {}
|
|
1730
|
+
|
|
1731
|
+
# http body (model)
|
|
1732
|
+
post_body = opts[:debug_body]
|
|
1733
|
+
|
|
1734
|
+
# return_type
|
|
1735
|
+
return_type = opts[:debug_return_type] || 'OrgRelationshipsResponse'
|
|
1736
|
+
|
|
1737
|
+
# auth_names
|
|
1738
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1739
|
+
|
|
1740
|
+
new_options = opts.merge(
|
|
1741
|
+
:operation => :"LegalEntitiesApi.legal_entities_org_relationships",
|
|
1742
|
+
:header_params => header_params,
|
|
1743
|
+
:query_params => query_params,
|
|
1744
|
+
:form_params => form_params,
|
|
1745
|
+
:body => post_body,
|
|
1746
|
+
:auth_names => auth_names,
|
|
1747
|
+
:return_type => return_type
|
|
1748
|
+
)
|
|
1749
|
+
|
|
1750
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1751
|
+
if @api_client.config.debugging
|
|
1752
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_org_relationships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1753
|
+
end
|
|
1754
|
+
return data, status_code, headers
|
|
1755
|
+
end
|
|
1756
|
+
|
|
1757
|
+
# Ownership percentages
|
|
1758
|
+
# @param id [String]
|
|
1759
|
+
# @param [Hash] opts the optional parameters
|
|
1760
|
+
# @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.
|
|
1761
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1762
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1763
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1764
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1765
|
+
# @return [OwnershipPercentagesResponse]
|
|
1766
|
+
def legal_entities_ownership_percentages(id, opts = {})
|
|
1767
|
+
data, _status_code, _headers = legal_entities_ownership_percentages_with_http_info(id, opts)
|
|
1768
|
+
data
|
|
1769
|
+
end
|
|
1770
|
+
|
|
1771
|
+
# Ownership percentages
|
|
1772
|
+
# @param id [String]
|
|
1773
|
+
# @param [Hash] opts the optional parameters
|
|
1774
|
+
# @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.
|
|
1775
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1776
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1777
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1778
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1779
|
+
# @return [Array<(OwnershipPercentagesResponse, Integer, Hash)>] OwnershipPercentagesResponse data, response status code and response headers
|
|
1780
|
+
def legal_entities_ownership_percentages_with_http_info(id, opts = {})
|
|
1781
|
+
if @api_client.config.debugging
|
|
1782
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_percentages ...'
|
|
1783
|
+
end
|
|
1784
|
+
# verify the required parameter 'id' is set
|
|
1785
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1786
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_percentages"
|
|
1787
|
+
end
|
|
1788
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1789
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_percentages, must be smaller than or equal to 500.'
|
|
1790
|
+
end
|
|
1791
|
+
|
|
1792
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1793
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_percentages, must be greater than or equal to 1.'
|
|
1794
|
+
end
|
|
1795
|
+
|
|
1796
|
+
# resource path
|
|
1797
|
+
local_var_path = '/api/v1/legal_entities/{id}/ownership_percentages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1798
|
+
|
|
1799
|
+
# query parameters
|
|
1800
|
+
query_params = opts[:query_params] || {}
|
|
1801
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1802
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1803
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1804
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1805
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1806
|
+
|
|
1807
|
+
# header parameters
|
|
1808
|
+
header_params = opts[:header_params] || {}
|
|
1809
|
+
# HTTP header 'Accept' (if needed)
|
|
1810
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1811
|
+
|
|
1812
|
+
# form parameters
|
|
1813
|
+
form_params = opts[:form_params] || {}
|
|
1814
|
+
|
|
1815
|
+
# http body (model)
|
|
1816
|
+
post_body = opts[:debug_body]
|
|
1817
|
+
|
|
1818
|
+
# return_type
|
|
1819
|
+
return_type = opts[:debug_return_type] || 'OwnershipPercentagesResponse'
|
|
1820
|
+
|
|
1821
|
+
# auth_names
|
|
1822
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1823
|
+
|
|
1824
|
+
new_options = opts.merge(
|
|
1825
|
+
:operation => :"LegalEntitiesApi.legal_entities_ownership_percentages",
|
|
1826
|
+
:header_params => header_params,
|
|
1827
|
+
:query_params => query_params,
|
|
1828
|
+
:form_params => form_params,
|
|
1829
|
+
:body => post_body,
|
|
1830
|
+
:auth_names => auth_names,
|
|
1831
|
+
:return_type => return_type
|
|
1832
|
+
)
|
|
1833
|
+
|
|
1834
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1835
|
+
if @api_client.config.debugging
|
|
1836
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_percentages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1837
|
+
end
|
|
1838
|
+
return data, status_code, headers
|
|
1839
|
+
end
|
|
1840
|
+
|
|
1841
|
+
# Ownership and control positions
|
|
1842
|
+
# @param id [String]
|
|
1843
|
+
# @param [Hash] opts the optional parameters
|
|
1844
|
+
# @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.
|
|
1845
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1846
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1847
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1848
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1849
|
+
# @return [OwnershipPositionsResponse]
|
|
1850
|
+
def legal_entities_ownership_positions(id, opts = {})
|
|
1851
|
+
data, _status_code, _headers = legal_entities_ownership_positions_with_http_info(id, opts)
|
|
1852
|
+
data
|
|
1853
|
+
end
|
|
1854
|
+
|
|
1855
|
+
# Ownership and control positions
|
|
1856
|
+
# @param id [String]
|
|
1857
|
+
# @param [Hash] opts the optional parameters
|
|
1858
|
+
# @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.
|
|
1859
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1860
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1861
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1862
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1863
|
+
# @return [Array<(OwnershipPositionsResponse, Integer, Hash)>] OwnershipPositionsResponse data, response status code and response headers
|
|
1864
|
+
def legal_entities_ownership_positions_with_http_info(id, opts = {})
|
|
1865
|
+
if @api_client.config.debugging
|
|
1866
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_positions ...'
|
|
1867
|
+
end
|
|
1868
|
+
# verify the required parameter 'id' is set
|
|
1869
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1870
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_positions"
|
|
1871
|
+
end
|
|
1872
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1873
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_positions, must be smaller than or equal to 500.'
|
|
1538
1874
|
end
|
|
1539
1875
|
|
|
1540
1876
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
@@ -1542,7 +1878,427 @@ module PharmaObservatory
|
|
|
1542
1878
|
end
|
|
1543
1879
|
|
|
1544
1880
|
# resource path
|
|
1545
|
-
local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1881
|
+
local_var_path = '/api/v1/legal_entities/{id}/ownership_positions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1882
|
+
|
|
1883
|
+
# query parameters
|
|
1884
|
+
query_params = opts[:query_params] || {}
|
|
1885
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1886
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1887
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1888
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1889
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1890
|
+
|
|
1891
|
+
# header parameters
|
|
1892
|
+
header_params = opts[:header_params] || {}
|
|
1893
|
+
# HTTP header 'Accept' (if needed)
|
|
1894
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1895
|
+
|
|
1896
|
+
# form parameters
|
|
1897
|
+
form_params = opts[:form_params] || {}
|
|
1898
|
+
|
|
1899
|
+
# http body (model)
|
|
1900
|
+
post_body = opts[:debug_body]
|
|
1901
|
+
|
|
1902
|
+
# return_type
|
|
1903
|
+
return_type = opts[:debug_return_type] || 'OwnershipPositionsResponse'
|
|
1904
|
+
|
|
1905
|
+
# auth_names
|
|
1906
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1907
|
+
|
|
1908
|
+
new_options = opts.merge(
|
|
1909
|
+
:operation => :"LegalEntitiesApi.legal_entities_ownership_positions",
|
|
1910
|
+
:header_params => header_params,
|
|
1911
|
+
:query_params => query_params,
|
|
1912
|
+
:form_params => form_params,
|
|
1913
|
+
:body => post_body,
|
|
1914
|
+
:auth_names => auth_names,
|
|
1915
|
+
:return_type => return_type
|
|
1916
|
+
)
|
|
1917
|
+
|
|
1918
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1919
|
+
if @api_client.config.debugging
|
|
1920
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_positions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1921
|
+
end
|
|
1922
|
+
return data, status_code, headers
|
|
1923
|
+
end
|
|
1924
|
+
|
|
1925
|
+
# Ownership source coverage
|
|
1926
|
+
# @param id [String]
|
|
1927
|
+
# @param [Hash] opts the optional parameters
|
|
1928
|
+
# @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.
|
|
1929
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1930
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1931
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1932
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1933
|
+
# @return [OwnershipSourceCoverageResponse]
|
|
1934
|
+
def legal_entities_ownership_source_coverage(id, opts = {})
|
|
1935
|
+
data, _status_code, _headers = legal_entities_ownership_source_coverage_with_http_info(id, opts)
|
|
1936
|
+
data
|
|
1937
|
+
end
|
|
1938
|
+
|
|
1939
|
+
# Ownership source coverage
|
|
1940
|
+
# @param id [String]
|
|
1941
|
+
# @param [Hash] opts the optional parameters
|
|
1942
|
+
# @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.
|
|
1943
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
1944
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1945
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1946
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1947
|
+
# @return [Array<(OwnershipSourceCoverageResponse, Integer, Hash)>] OwnershipSourceCoverageResponse data, response status code and response headers
|
|
1948
|
+
def legal_entities_ownership_source_coverage_with_http_info(id, opts = {})
|
|
1949
|
+
if @api_client.config.debugging
|
|
1950
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_ownership_source_coverage ...'
|
|
1951
|
+
end
|
|
1952
|
+
# verify the required parameter 'id' is set
|
|
1953
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1954
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_ownership_source_coverage"
|
|
1955
|
+
end
|
|
1956
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1957
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_source_coverage, must be smaller than or equal to 500.'
|
|
1958
|
+
end
|
|
1959
|
+
|
|
1960
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1961
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_ownership_source_coverage, must be greater than or equal to 1.'
|
|
1962
|
+
end
|
|
1963
|
+
|
|
1964
|
+
# resource path
|
|
1965
|
+
local_var_path = '/api/v1/legal_entities/{id}/ownership_source_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1966
|
+
|
|
1967
|
+
# query parameters
|
|
1968
|
+
query_params = opts[:query_params] || {}
|
|
1969
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1970
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1971
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
1972
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
1973
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
1974
|
+
|
|
1975
|
+
# header parameters
|
|
1976
|
+
header_params = opts[:header_params] || {}
|
|
1977
|
+
# HTTP header 'Accept' (if needed)
|
|
1978
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1979
|
+
|
|
1980
|
+
# form parameters
|
|
1981
|
+
form_params = opts[:form_params] || {}
|
|
1982
|
+
|
|
1983
|
+
# http body (model)
|
|
1984
|
+
post_body = opts[:debug_body]
|
|
1985
|
+
|
|
1986
|
+
# return_type
|
|
1987
|
+
return_type = opts[:debug_return_type] || 'OwnershipSourceCoverageResponse'
|
|
1988
|
+
|
|
1989
|
+
# auth_names
|
|
1990
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1991
|
+
|
|
1992
|
+
new_options = opts.merge(
|
|
1993
|
+
:operation => :"LegalEntitiesApi.legal_entities_ownership_source_coverage",
|
|
1994
|
+
:header_params => header_params,
|
|
1995
|
+
:query_params => query_params,
|
|
1996
|
+
:form_params => form_params,
|
|
1997
|
+
:body => post_body,
|
|
1998
|
+
:auth_names => auth_names,
|
|
1999
|
+
:return_type => return_type
|
|
2000
|
+
)
|
|
2001
|
+
|
|
2002
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2003
|
+
if @api_client.config.debugging
|
|
2004
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_ownership_source_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2005
|
+
end
|
|
2006
|
+
return data, status_code, headers
|
|
2007
|
+
end
|
|
2008
|
+
|
|
2009
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
2010
|
+
# @param id [String]
|
|
2011
|
+
# @param [Hash] opts the optional parameters
|
|
2012
|
+
# @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.
|
|
2013
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2014
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2015
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2016
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2017
|
+
# @return [PdufaDatesResponse]
|
|
2018
|
+
def legal_entities_pdufa_dates(id, opts = {})
|
|
2019
|
+
data, _status_code, _headers = legal_entities_pdufa_dates_with_http_info(id, opts)
|
|
2020
|
+
data
|
|
2021
|
+
end
|
|
2022
|
+
|
|
2023
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
2024
|
+
# @param id [String]
|
|
2025
|
+
# @param [Hash] opts the optional parameters
|
|
2026
|
+
# @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.
|
|
2027
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2028
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2029
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2030
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2031
|
+
# @return [Array<(PdufaDatesResponse, Integer, Hash)>] PdufaDatesResponse data, response status code and response headers
|
|
2032
|
+
def legal_entities_pdufa_dates_with_http_info(id, opts = {})
|
|
2033
|
+
if @api_client.config.debugging
|
|
2034
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_pdufa_dates ...'
|
|
2035
|
+
end
|
|
2036
|
+
# verify the required parameter 'id' is set
|
|
2037
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2038
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_pdufa_dates"
|
|
2039
|
+
end
|
|
2040
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2041
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be smaller than or equal to 500.'
|
|
2042
|
+
end
|
|
2043
|
+
|
|
2044
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2045
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_pdufa_dates, must be greater than or equal to 1.'
|
|
2046
|
+
end
|
|
2047
|
+
|
|
2048
|
+
# resource path
|
|
2049
|
+
local_var_path = '/api/v1/legal_entities/{id}/pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2050
|
+
|
|
2051
|
+
# query parameters
|
|
2052
|
+
query_params = opts[:query_params] || {}
|
|
2053
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2054
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2055
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2056
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2057
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2058
|
+
|
|
2059
|
+
# header parameters
|
|
2060
|
+
header_params = opts[:header_params] || {}
|
|
2061
|
+
# HTTP header 'Accept' (if needed)
|
|
2062
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2063
|
+
|
|
2064
|
+
# form parameters
|
|
2065
|
+
form_params = opts[:form_params] || {}
|
|
2066
|
+
|
|
2067
|
+
# http body (model)
|
|
2068
|
+
post_body = opts[:debug_body]
|
|
2069
|
+
|
|
2070
|
+
# return_type
|
|
2071
|
+
return_type = opts[:debug_return_type] || 'PdufaDatesResponse'
|
|
2072
|
+
|
|
2073
|
+
# auth_names
|
|
2074
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2075
|
+
|
|
2076
|
+
new_options = opts.merge(
|
|
2077
|
+
:operation => :"LegalEntitiesApi.legal_entities_pdufa_dates",
|
|
2078
|
+
:header_params => header_params,
|
|
2079
|
+
:query_params => query_params,
|
|
2080
|
+
:form_params => form_params,
|
|
2081
|
+
:body => post_body,
|
|
2082
|
+
:auth_names => auth_names,
|
|
2083
|
+
:return_type => return_type
|
|
2084
|
+
)
|
|
2085
|
+
|
|
2086
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2087
|
+
if @api_client.config.debugging
|
|
2088
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2089
|
+
end
|
|
2090
|
+
return data, status_code, headers
|
|
2091
|
+
end
|
|
2092
|
+
|
|
2093
|
+
# Program licensing candidates
|
|
2094
|
+
# @param id [String]
|
|
2095
|
+
# @param [Hash] opts the optional parameters
|
|
2096
|
+
# @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.
|
|
2097
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2098
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2099
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2100
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2101
|
+
# @return [ProgramLicensingCandidatesResponse]
|
|
2102
|
+
def legal_entities_program_licensing_candidates(id, opts = {})
|
|
2103
|
+
data, _status_code, _headers = legal_entities_program_licensing_candidates_with_http_info(id, opts)
|
|
2104
|
+
data
|
|
2105
|
+
end
|
|
2106
|
+
|
|
2107
|
+
# Program licensing candidates
|
|
2108
|
+
# @param id [String]
|
|
2109
|
+
# @param [Hash] opts the optional parameters
|
|
2110
|
+
# @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.
|
|
2111
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2112
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2113
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2114
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2115
|
+
# @return [Array<(ProgramLicensingCandidatesResponse, Integer, Hash)>] ProgramLicensingCandidatesResponse data, response status code and response headers
|
|
2116
|
+
def legal_entities_program_licensing_candidates_with_http_info(id, opts = {})
|
|
2117
|
+
if @api_client.config.debugging
|
|
2118
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_program_licensing_candidates ...'
|
|
2119
|
+
end
|
|
2120
|
+
# verify the required parameter 'id' is set
|
|
2121
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2122
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_program_licensing_candidates"
|
|
2123
|
+
end
|
|
2124
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2125
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be smaller than or equal to 500.'
|
|
2126
|
+
end
|
|
2127
|
+
|
|
2128
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2129
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_program_licensing_candidates, must be greater than or equal to 1.'
|
|
2130
|
+
end
|
|
2131
|
+
|
|
2132
|
+
# resource path
|
|
2133
|
+
local_var_path = '/api/v1/legal_entities/{id}/program_licensing_candidates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2134
|
+
|
|
2135
|
+
# query parameters
|
|
2136
|
+
query_params = opts[:query_params] || {}
|
|
2137
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2138
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2139
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2140
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2141
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2142
|
+
|
|
2143
|
+
# header parameters
|
|
2144
|
+
header_params = opts[:header_params] || {}
|
|
2145
|
+
# HTTP header 'Accept' (if needed)
|
|
2146
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2147
|
+
|
|
2148
|
+
# form parameters
|
|
2149
|
+
form_params = opts[:form_params] || {}
|
|
2150
|
+
|
|
2151
|
+
# http body (model)
|
|
2152
|
+
post_body = opts[:debug_body]
|
|
2153
|
+
|
|
2154
|
+
# return_type
|
|
2155
|
+
return_type = opts[:debug_return_type] || 'ProgramLicensingCandidatesResponse'
|
|
2156
|
+
|
|
2157
|
+
# auth_names
|
|
2158
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2159
|
+
|
|
2160
|
+
new_options = opts.merge(
|
|
2161
|
+
:operation => :"LegalEntitiesApi.legal_entities_program_licensing_candidates",
|
|
2162
|
+
:header_params => header_params,
|
|
2163
|
+
:query_params => query_params,
|
|
2164
|
+
:form_params => form_params,
|
|
2165
|
+
:body => post_body,
|
|
2166
|
+
:auth_names => auth_names,
|
|
2167
|
+
:return_type => return_type
|
|
2168
|
+
)
|
|
2169
|
+
|
|
2170
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2171
|
+
if @api_client.config.debugging
|
|
2172
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_program_licensing_candidates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2173
|
+
end
|
|
2174
|
+
return data, status_code, headers
|
|
2175
|
+
end
|
|
2176
|
+
|
|
2177
|
+
# FDA recalls
|
|
2178
|
+
# @param id [String]
|
|
2179
|
+
# @param [Hash] opts the optional parameters
|
|
2180
|
+
# @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.
|
|
2181
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2182
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2183
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2184
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2185
|
+
# @return [RecallsResponse]
|
|
2186
|
+
def legal_entities_recalls(id, opts = {})
|
|
2187
|
+
data, _status_code, _headers = legal_entities_recalls_with_http_info(id, opts)
|
|
2188
|
+
data
|
|
2189
|
+
end
|
|
2190
|
+
|
|
2191
|
+
# FDA recalls
|
|
2192
|
+
# @param id [String]
|
|
2193
|
+
# @param [Hash] opts the optional parameters
|
|
2194
|
+
# @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.
|
|
2195
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2196
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2197
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2198
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2199
|
+
# @return [Array<(RecallsResponse, Integer, Hash)>] RecallsResponse data, response status code and response headers
|
|
2200
|
+
def legal_entities_recalls_with_http_info(id, opts = {})
|
|
2201
|
+
if @api_client.config.debugging
|
|
2202
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_recalls ...'
|
|
2203
|
+
end
|
|
2204
|
+
# verify the required parameter 'id' is set
|
|
2205
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2206
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_recalls"
|
|
2207
|
+
end
|
|
2208
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2209
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be smaller than or equal to 500.'
|
|
2210
|
+
end
|
|
2211
|
+
|
|
2212
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2213
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_recalls, must be greater than or equal to 1.'
|
|
2214
|
+
end
|
|
2215
|
+
|
|
2216
|
+
# resource path
|
|
2217
|
+
local_var_path = '/api/v1/legal_entities/{id}/recalls'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2218
|
+
|
|
2219
|
+
# query parameters
|
|
2220
|
+
query_params = opts[:query_params] || {}
|
|
2221
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2222
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2223
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2224
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2225
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2226
|
+
|
|
2227
|
+
# header parameters
|
|
2228
|
+
header_params = opts[:header_params] || {}
|
|
2229
|
+
# HTTP header 'Accept' (if needed)
|
|
2230
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2231
|
+
|
|
2232
|
+
# form parameters
|
|
2233
|
+
form_params = opts[:form_params] || {}
|
|
2234
|
+
|
|
2235
|
+
# http body (model)
|
|
2236
|
+
post_body = opts[:debug_body]
|
|
2237
|
+
|
|
2238
|
+
# return_type
|
|
2239
|
+
return_type = opts[:debug_return_type] || 'RecallsResponse'
|
|
2240
|
+
|
|
2241
|
+
# auth_names
|
|
2242
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2243
|
+
|
|
2244
|
+
new_options = opts.merge(
|
|
2245
|
+
:operation => :"LegalEntitiesApi.legal_entities_recalls",
|
|
2246
|
+
:header_params => header_params,
|
|
2247
|
+
:query_params => query_params,
|
|
2248
|
+
:form_params => form_params,
|
|
2249
|
+
:body => post_body,
|
|
2250
|
+
:auth_names => auth_names,
|
|
2251
|
+
:return_type => return_type
|
|
2252
|
+
)
|
|
2253
|
+
|
|
2254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2255
|
+
if @api_client.config.debugging
|
|
2256
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_recalls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2257
|
+
end
|
|
2258
|
+
return data, status_code, headers
|
|
2259
|
+
end
|
|
2260
|
+
|
|
2261
|
+
# SBTi cross-check
|
|
2262
|
+
# @param id [String]
|
|
2263
|
+
# @param [Hash] opts the optional parameters
|
|
2264
|
+
# @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.
|
|
2265
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2266
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2267
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2268
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2269
|
+
# @return [SbtiCrosscheckResponse]
|
|
2270
|
+
def legal_entities_sbti_crosscheck(id, opts = {})
|
|
2271
|
+
data, _status_code, _headers = legal_entities_sbti_crosscheck_with_http_info(id, opts)
|
|
2272
|
+
data
|
|
2273
|
+
end
|
|
2274
|
+
|
|
2275
|
+
# SBTi cross-check
|
|
2276
|
+
# @param id [String]
|
|
2277
|
+
# @param [Hash] opts the optional parameters
|
|
2278
|
+
# @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.
|
|
2279
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2280
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2281
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2282
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2283
|
+
# @return [Array<(SbtiCrosscheckResponse, Integer, Hash)>] SbtiCrosscheckResponse data, response status code and response headers
|
|
2284
|
+
def legal_entities_sbti_crosscheck_with_http_info(id, opts = {})
|
|
2285
|
+
if @api_client.config.debugging
|
|
2286
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sbti_crosscheck ...'
|
|
2287
|
+
end
|
|
2288
|
+
# verify the required parameter 'id' is set
|
|
2289
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2290
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sbti_crosscheck"
|
|
2291
|
+
end
|
|
2292
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2293
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sbti_crosscheck, must be smaller than or equal to 500.'
|
|
2294
|
+
end
|
|
2295
|
+
|
|
2296
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2297
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sbti_crosscheck, must be greater than or equal to 1.'
|
|
2298
|
+
end
|
|
2299
|
+
|
|
2300
|
+
# resource path
|
|
2301
|
+
local_var_path = '/api/v1/legal_entities/{id}/sbti_crosscheck'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1546
2302
|
|
|
1547
2303
|
# query parameters
|
|
1548
2304
|
query_params = opts[:query_params] || {}
|
|
@@ -1564,13 +2320,13 @@ module PharmaObservatory
|
|
|
1564
2320
|
post_body = opts[:debug_body]
|
|
1565
2321
|
|
|
1566
2322
|
# return_type
|
|
1567
|
-
return_type = opts[:debug_return_type] || '
|
|
2323
|
+
return_type = opts[:debug_return_type] || 'SbtiCrosscheckResponse'
|
|
1568
2324
|
|
|
1569
2325
|
# auth_names
|
|
1570
2326
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1571
2327
|
|
|
1572
2328
|
new_options = opts.merge(
|
|
1573
|
-
:operation => :"LegalEntitiesApi.
|
|
2329
|
+
:operation => :"LegalEntitiesApi.legal_entities_sbti_crosscheck",
|
|
1574
2330
|
:header_params => header_params,
|
|
1575
2331
|
:query_params => query_params,
|
|
1576
2332
|
:form_params => form_params,
|
|
@@ -1581,12 +2337,12 @@ module PharmaObservatory
|
|
|
1581
2337
|
|
|
1582
2338
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1583
2339
|
if @api_client.config.debugging
|
|
1584
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
2340
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sbti_crosscheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1585
2341
|
end
|
|
1586
2342
|
return data, status_code, headers
|
|
1587
2343
|
end
|
|
1588
2344
|
|
|
1589
|
-
# FDA
|
|
2345
|
+
# FDA dates disclosed in SEC filings
|
|
1590
2346
|
# @param id [String]
|
|
1591
2347
|
# @param [Hash] opts the optional parameters
|
|
1592
2348
|
# @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.
|
|
@@ -1594,13 +2350,13 @@ module PharmaObservatory
|
|
|
1594
2350
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1595
2351
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1596
2352
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1597
|
-
# @return [
|
|
1598
|
-
def
|
|
1599
|
-
data, _status_code, _headers =
|
|
2353
|
+
# @return [SecPdufaDatesResponse]
|
|
2354
|
+
def legal_entities_sec_pdufa_dates(id, opts = {})
|
|
2355
|
+
data, _status_code, _headers = legal_entities_sec_pdufa_dates_with_http_info(id, opts)
|
|
1600
2356
|
data
|
|
1601
2357
|
end
|
|
1602
2358
|
|
|
1603
|
-
# FDA
|
|
2359
|
+
# FDA dates disclosed in SEC filings
|
|
1604
2360
|
# @param id [String]
|
|
1605
2361
|
# @param [Hash] opts the optional parameters
|
|
1606
2362
|
# @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.
|
|
@@ -1608,25 +2364,25 @@ module PharmaObservatory
|
|
|
1608
2364
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1609
2365
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1610
2366
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1611
|
-
# @return [Array<(
|
|
1612
|
-
def
|
|
2367
|
+
# @return [Array<(SecPdufaDatesResponse, Integer, Hash)>] SecPdufaDatesResponse data, response status code and response headers
|
|
2368
|
+
def legal_entities_sec_pdufa_dates_with_http_info(id, opts = {})
|
|
1613
2369
|
if @api_client.config.debugging
|
|
1614
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
2370
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sec_pdufa_dates ...'
|
|
1615
2371
|
end
|
|
1616
2372
|
# verify the required parameter 'id' is set
|
|
1617
2373
|
if @api_client.config.client_side_validation && id.nil?
|
|
1618
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.
|
|
2374
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates"
|
|
1619
2375
|
end
|
|
1620
2376
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1621
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
2377
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates, must be smaller than or equal to 500.'
|
|
1622
2378
|
end
|
|
1623
2379
|
|
|
1624
2380
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1625
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
2381
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sec_pdufa_dates, must be greater than or equal to 1.'
|
|
1626
2382
|
end
|
|
1627
2383
|
|
|
1628
2384
|
# resource path
|
|
1629
|
-
local_var_path = '/api/v1/legal_entities/{id}/
|
|
2385
|
+
local_var_path = '/api/v1/legal_entities/{id}/sec_pdufa_dates'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1630
2386
|
|
|
1631
2387
|
# query parameters
|
|
1632
2388
|
query_params = opts[:query_params] || {}
|
|
@@ -1648,13 +2404,13 @@ module PharmaObservatory
|
|
|
1648
2404
|
post_body = opts[:debug_body]
|
|
1649
2405
|
|
|
1650
2406
|
# return_type
|
|
1651
|
-
return_type = opts[:debug_return_type] || '
|
|
2407
|
+
return_type = opts[:debug_return_type] || 'SecPdufaDatesResponse'
|
|
1652
2408
|
|
|
1653
2409
|
# auth_names
|
|
1654
2410
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1655
2411
|
|
|
1656
2412
|
new_options = opts.merge(
|
|
1657
|
-
:operation => :"LegalEntitiesApi.
|
|
2413
|
+
:operation => :"LegalEntitiesApi.legal_entities_sec_pdufa_dates",
|
|
1658
2414
|
:header_params => header_params,
|
|
1659
2415
|
:query_params => query_params,
|
|
1660
2416
|
:form_params => form_params,
|
|
@@ -1665,12 +2421,12 @@ module PharmaObservatory
|
|
|
1665
2421
|
|
|
1666
2422
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1667
2423
|
if @api_client.config.debugging
|
|
1668
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
2424
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sec_pdufa_dates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1669
2425
|
end
|
|
1670
2426
|
return data, status_code, headers
|
|
1671
2427
|
end
|
|
1672
2428
|
|
|
1673
|
-
#
|
|
2429
|
+
# Sponsor delivery reliability
|
|
1674
2430
|
# @param id [String]
|
|
1675
2431
|
# @param [Hash] opts the optional parameters
|
|
1676
2432
|
# @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.
|
|
@@ -1678,13 +2434,13 @@ module PharmaObservatory
|
|
|
1678
2434
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1679
2435
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1680
2436
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1681
|
-
# @return [
|
|
1682
|
-
def
|
|
1683
|
-
data, _status_code, _headers =
|
|
2437
|
+
# @return [SponsorDeliveryResponse]
|
|
2438
|
+
def legal_entities_sponsor_delivery(id, opts = {})
|
|
2439
|
+
data, _status_code, _headers = legal_entities_sponsor_delivery_with_http_info(id, opts)
|
|
1684
2440
|
data
|
|
1685
2441
|
end
|
|
1686
2442
|
|
|
1687
|
-
#
|
|
2443
|
+
# Sponsor delivery reliability
|
|
1688
2444
|
# @param id [String]
|
|
1689
2445
|
# @param [Hash] opts the optional parameters
|
|
1690
2446
|
# @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.
|
|
@@ -1692,25 +2448,25 @@ module PharmaObservatory
|
|
|
1692
2448
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1693
2449
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1694
2450
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1695
|
-
# @return [Array<(
|
|
1696
|
-
def
|
|
2451
|
+
# @return [Array<(SponsorDeliveryResponse, Integer, Hash)>] SponsorDeliveryResponse data, response status code and response headers
|
|
2452
|
+
def legal_entities_sponsor_delivery_with_http_info(id, opts = {})
|
|
1697
2453
|
if @api_client.config.debugging
|
|
1698
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
2454
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_delivery ...'
|
|
1699
2455
|
end
|
|
1700
2456
|
# verify the required parameter 'id' is set
|
|
1701
2457
|
if @api_client.config.client_side_validation && id.nil?
|
|
1702
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.
|
|
2458
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_delivery"
|
|
1703
2459
|
end
|
|
1704
2460
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1705
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
2461
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_delivery, must be smaller than or equal to 500.'
|
|
1706
2462
|
end
|
|
1707
2463
|
|
|
1708
2464
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1709
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
2465
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_delivery, must be greater than or equal to 1.'
|
|
1710
2466
|
end
|
|
1711
2467
|
|
|
1712
2468
|
# resource path
|
|
1713
|
-
local_var_path = '/api/v1/legal_entities/{id}/
|
|
2469
|
+
local_var_path = '/api/v1/legal_entities/{id}/sponsor_delivery'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1714
2470
|
|
|
1715
2471
|
# query parameters
|
|
1716
2472
|
query_params = opts[:query_params] || {}
|
|
@@ -1732,13 +2488,13 @@ module PharmaObservatory
|
|
|
1732
2488
|
post_body = opts[:debug_body]
|
|
1733
2489
|
|
|
1734
2490
|
# return_type
|
|
1735
|
-
return_type = opts[:debug_return_type] || '
|
|
2491
|
+
return_type = opts[:debug_return_type] || 'SponsorDeliveryResponse'
|
|
1736
2492
|
|
|
1737
2493
|
# auth_names
|
|
1738
2494
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1739
2495
|
|
|
1740
2496
|
new_options = opts.merge(
|
|
1741
|
-
:operation => :"LegalEntitiesApi.
|
|
2497
|
+
:operation => :"LegalEntitiesApi.legal_entities_sponsor_delivery",
|
|
1742
2498
|
:header_params => header_params,
|
|
1743
2499
|
:query_params => query_params,
|
|
1744
2500
|
:form_params => form_params,
|
|
@@ -1749,12 +2505,12 @@ module PharmaObservatory
|
|
|
1749
2505
|
|
|
1750
2506
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1751
2507
|
if @api_client.config.debugging
|
|
1752
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
2508
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1753
2509
|
end
|
|
1754
2510
|
return data, status_code, headers
|
|
1755
2511
|
end
|
|
1756
2512
|
|
|
1757
|
-
#
|
|
2513
|
+
# Sponsor patent mentions
|
|
1758
2514
|
# @param id [String]
|
|
1759
2515
|
# @param [Hash] opts the optional parameters
|
|
1760
2516
|
# @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.
|
|
@@ -1762,13 +2518,13 @@ module PharmaObservatory
|
|
|
1762
2518
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1763
2519
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1764
2520
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1765
|
-
# @return [
|
|
1766
|
-
def
|
|
1767
|
-
data, _status_code, _headers =
|
|
2521
|
+
# @return [SponsorPatentMentionsResponse]
|
|
2522
|
+
def legal_entities_sponsor_patent_mentions(id, opts = {})
|
|
2523
|
+
data, _status_code, _headers = legal_entities_sponsor_patent_mentions_with_http_info(id, opts)
|
|
1768
2524
|
data
|
|
1769
2525
|
end
|
|
1770
2526
|
|
|
1771
|
-
#
|
|
2527
|
+
# Sponsor patent mentions
|
|
1772
2528
|
# @param id [String]
|
|
1773
2529
|
# @param [Hash] opts the optional parameters
|
|
1774
2530
|
# @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.
|
|
@@ -1776,25 +2532,25 @@ module PharmaObservatory
|
|
|
1776
2532
|
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1777
2533
|
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
1778
2534
|
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1779
|
-
# @return [Array<(
|
|
1780
|
-
def
|
|
2535
|
+
# @return [Array<(SponsorPatentMentionsResponse, Integer, Hash)>] SponsorPatentMentionsResponse data, response status code and response headers
|
|
2536
|
+
def legal_entities_sponsor_patent_mentions_with_http_info(id, opts = {})
|
|
1781
2537
|
if @api_client.config.debugging
|
|
1782
|
-
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.
|
|
2538
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_patent_mentions ...'
|
|
1783
2539
|
end
|
|
1784
2540
|
# verify the required parameter 'id' is set
|
|
1785
2541
|
if @api_client.config.client_side_validation && id.nil?
|
|
1786
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.
|
|
2542
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions"
|
|
1787
2543
|
end
|
|
1788
2544
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
1789
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
2545
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions, must be smaller than or equal to 500.'
|
|
1790
2546
|
end
|
|
1791
2547
|
|
|
1792
2548
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1793
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.
|
|
2549
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_patent_mentions, must be greater than or equal to 1.'
|
|
1794
2550
|
end
|
|
1795
2551
|
|
|
1796
2552
|
# resource path
|
|
1797
|
-
local_var_path = '/api/v1/legal_entities/{id}/
|
|
2553
|
+
local_var_path = '/api/v1/legal_entities/{id}/sponsor_patent_mentions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1798
2554
|
|
|
1799
2555
|
# query parameters
|
|
1800
2556
|
query_params = opts[:query_params] || {}
|
|
@@ -1816,13 +2572,13 @@ module PharmaObservatory
|
|
|
1816
2572
|
post_body = opts[:debug_body]
|
|
1817
2573
|
|
|
1818
2574
|
# return_type
|
|
1819
|
-
return_type = opts[:debug_return_type] || '
|
|
2575
|
+
return_type = opts[:debug_return_type] || 'SponsorPatentMentionsResponse'
|
|
1820
2576
|
|
|
1821
2577
|
# auth_names
|
|
1822
2578
|
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1823
2579
|
|
|
1824
2580
|
new_options = opts.merge(
|
|
1825
|
-
:operation => :"LegalEntitiesApi.
|
|
2581
|
+
:operation => :"LegalEntitiesApi.legal_entities_sponsor_patent_mentions",
|
|
1826
2582
|
:header_params => header_params,
|
|
1827
2583
|
:query_params => query_params,
|
|
1828
2584
|
:form_params => form_params,
|
|
@@ -1833,7 +2589,7 @@ module PharmaObservatory
|
|
|
1833
2589
|
|
|
1834
2590
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1835
2591
|
if @api_client.config.debugging
|
|
1836
|
-
@api_client.config.logger.debug "API called: LegalEntitiesApi#
|
|
2592
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_patent_mentions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1837
2593
|
end
|
|
1838
2594
|
return data, status_code, headers
|
|
1839
2595
|
end
|
|
@@ -2006,6 +2762,174 @@ module PharmaObservatory
|
|
|
2006
2762
|
return data, status_code, headers
|
|
2007
2763
|
end
|
|
2008
2764
|
|
|
2765
|
+
# Sponsor trial conditions
|
|
2766
|
+
# @param id [String]
|
|
2767
|
+
# @param [Hash] opts the optional parameters
|
|
2768
|
+
# @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.
|
|
2769
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2770
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2771
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2772
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2773
|
+
# @return [SponsorTrialConditionsResponse]
|
|
2774
|
+
def legal_entities_sponsor_trial_conditions(id, opts = {})
|
|
2775
|
+
data, _status_code, _headers = legal_entities_sponsor_trial_conditions_with_http_info(id, opts)
|
|
2776
|
+
data
|
|
2777
|
+
end
|
|
2778
|
+
|
|
2779
|
+
# Sponsor trial conditions
|
|
2780
|
+
# @param id [String]
|
|
2781
|
+
# @param [Hash] opts the optional parameters
|
|
2782
|
+
# @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.
|
|
2783
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2784
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2785
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2786
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2787
|
+
# @return [Array<(SponsorTrialConditionsResponse, Integer, Hash)>] SponsorTrialConditionsResponse data, response status code and response headers
|
|
2788
|
+
def legal_entities_sponsor_trial_conditions_with_http_info(id, opts = {})
|
|
2789
|
+
if @api_client.config.debugging
|
|
2790
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_conditions ...'
|
|
2791
|
+
end
|
|
2792
|
+
# verify the required parameter 'id' is set
|
|
2793
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2794
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions"
|
|
2795
|
+
end
|
|
2796
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2797
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions, must be smaller than or equal to 500.'
|
|
2798
|
+
end
|
|
2799
|
+
|
|
2800
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2801
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_conditions, must be greater than or equal to 1.'
|
|
2802
|
+
end
|
|
2803
|
+
|
|
2804
|
+
# resource path
|
|
2805
|
+
local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_conditions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2806
|
+
|
|
2807
|
+
# query parameters
|
|
2808
|
+
query_params = opts[:query_params] || {}
|
|
2809
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2810
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2811
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2812
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2813
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2814
|
+
|
|
2815
|
+
# header parameters
|
|
2816
|
+
header_params = opts[:header_params] || {}
|
|
2817
|
+
# HTTP header 'Accept' (if needed)
|
|
2818
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2819
|
+
|
|
2820
|
+
# form parameters
|
|
2821
|
+
form_params = opts[:form_params] || {}
|
|
2822
|
+
|
|
2823
|
+
# http body (model)
|
|
2824
|
+
post_body = opts[:debug_body]
|
|
2825
|
+
|
|
2826
|
+
# return_type
|
|
2827
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialConditionsResponse'
|
|
2828
|
+
|
|
2829
|
+
# auth_names
|
|
2830
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2831
|
+
|
|
2832
|
+
new_options = opts.merge(
|
|
2833
|
+
:operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_conditions",
|
|
2834
|
+
:header_params => header_params,
|
|
2835
|
+
:query_params => query_params,
|
|
2836
|
+
:form_params => form_params,
|
|
2837
|
+
:body => post_body,
|
|
2838
|
+
:auth_names => auth_names,
|
|
2839
|
+
:return_type => return_type
|
|
2840
|
+
)
|
|
2841
|
+
|
|
2842
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2843
|
+
if @api_client.config.debugging
|
|
2844
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_conditions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2845
|
+
end
|
|
2846
|
+
return data, status_code, headers
|
|
2847
|
+
end
|
|
2848
|
+
|
|
2849
|
+
# Sponsor trial drugs
|
|
2850
|
+
# @param id [String]
|
|
2851
|
+
# @param [Hash] opts the optional parameters
|
|
2852
|
+
# @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.
|
|
2853
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2854
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2855
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2856
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2857
|
+
# @return [SponsorTrialDrugsResponse]
|
|
2858
|
+
def legal_entities_sponsor_trial_drugs(id, opts = {})
|
|
2859
|
+
data, _status_code, _headers = legal_entities_sponsor_trial_drugs_with_http_info(id, opts)
|
|
2860
|
+
data
|
|
2861
|
+
end
|
|
2862
|
+
|
|
2863
|
+
# Sponsor trial drugs
|
|
2864
|
+
# @param id [String]
|
|
2865
|
+
# @param [Hash] opts the optional parameters
|
|
2866
|
+
# @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.
|
|
2867
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
2868
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
2869
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
2870
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
2871
|
+
# @return [Array<(SponsorTrialDrugsResponse, Integer, Hash)>] SponsorTrialDrugsResponse data, response status code and response headers
|
|
2872
|
+
def legal_entities_sponsor_trial_drugs_with_http_info(id, opts = {})
|
|
2873
|
+
if @api_client.config.debugging
|
|
2874
|
+
@api_client.config.logger.debug 'Calling API: LegalEntitiesApi.legal_entities_sponsor_trial_drugs ...'
|
|
2875
|
+
end
|
|
2876
|
+
# verify the required parameter 'id' is set
|
|
2877
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2878
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs"
|
|
2879
|
+
end
|
|
2880
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
2881
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs, must be smaller than or equal to 500.'
|
|
2882
|
+
end
|
|
2883
|
+
|
|
2884
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2885
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LegalEntitiesApi.legal_entities_sponsor_trial_drugs, must be greater than or equal to 1.'
|
|
2886
|
+
end
|
|
2887
|
+
|
|
2888
|
+
# resource path
|
|
2889
|
+
local_var_path = '/api/v1/legal_entities/{id}/sponsor_trial_drugs'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2890
|
+
|
|
2891
|
+
# query parameters
|
|
2892
|
+
query_params = opts[:query_params] || {}
|
|
2893
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2894
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2895
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
2896
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
2897
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
2898
|
+
|
|
2899
|
+
# header parameters
|
|
2900
|
+
header_params = opts[:header_params] || {}
|
|
2901
|
+
# HTTP header 'Accept' (if needed)
|
|
2902
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2903
|
+
|
|
2904
|
+
# form parameters
|
|
2905
|
+
form_params = opts[:form_params] || {}
|
|
2906
|
+
|
|
2907
|
+
# http body (model)
|
|
2908
|
+
post_body = opts[:debug_body]
|
|
2909
|
+
|
|
2910
|
+
# return_type
|
|
2911
|
+
return_type = opts[:debug_return_type] || 'SponsorTrialDrugsResponse'
|
|
2912
|
+
|
|
2913
|
+
# auth_names
|
|
2914
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
2915
|
+
|
|
2916
|
+
new_options = opts.merge(
|
|
2917
|
+
:operation => :"LegalEntitiesApi.legal_entities_sponsor_trial_drugs",
|
|
2918
|
+
:header_params => header_params,
|
|
2919
|
+
:query_params => query_params,
|
|
2920
|
+
:form_params => form_params,
|
|
2921
|
+
:body => post_body,
|
|
2922
|
+
:auth_names => auth_names,
|
|
2923
|
+
:return_type => return_type
|
|
2924
|
+
)
|
|
2925
|
+
|
|
2926
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2927
|
+
if @api_client.config.debugging
|
|
2928
|
+
@api_client.config.logger.debug "API called: LegalEntitiesApi#legal_entities_sponsor_trial_drugs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2929
|
+
end
|
|
2930
|
+
return data, status_code, headers
|
|
2931
|
+
end
|
|
2932
|
+
|
|
2009
2933
|
# Trial-start forecast by sponsor
|
|
2010
2934
|
# @param id [String]
|
|
2011
2935
|
# @param [Hash] opts the optional parameters
|