pharmaobservatory 0.1.22 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -4
- data/docs/ConditionSiteCoverageResponse.md +58 -0
- data/docs/ConditionSiteCoverageRow.md +24 -0
- data/docs/ConditionSiteYearsResponse.md +58 -0
- data/docs/ConditionSiteYearsRow.md +36 -0
- data/docs/ConditionsApi.md +160 -0
- data/docs/InvestigatorsApi.md +80 -0
- data/docs/ProviderRwdDeliveryRow.md +2 -0
- data/docs/ProviderRwdDeliveryStudyRow.md +2 -0
- data/docs/ProviderRwdFootprintRow.md +2 -0
- data/docs/RwdConductorsApi.md +160 -0
- data/docs/RwdInstitutionsRow.md +3 -3
- data/docs/RwdNetworksRow.md +1 -1
- data/docs/RwdSourcesRow.md +1 -1
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/RwdUsNetworkMembershipsResponse.md +58 -0
- data/docs/RwdUsNetworkMembershipsRow.md +98 -0
- data/docs/RwdUsNetworkProjectsResponse.md +58 -0
- data/docs/RwdUsNetworkProjectsRow.md +80 -0
- data/docs/RwdUsNetworksApi.md +313 -0
- data/docs/RwdUsNetworksRecord.md +38 -0
- data/docs/RwdUsNetworksResponse.md +58 -0
- data/docs/RwdUsNetworksRow.md +60 -0
- data/docs/SupplierRwdDeclarationsResponse.md +58 -0
- data/docs/SupplierRwdDeclarationsRow.md +74 -0
- data/docs/SuppliersApi.md +160 -0
- data/docs/TrialPublicationsResponse.md +58 -0
- data/docs/TrialPublicationsRow.md +34 -0
- data/docs/TrialsApi.md +80 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +168 -0
- data/lib/pharmaobservatory/api/investigators_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +168 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_us_networks_api.rb +329 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +168 -0
- data/lib/pharmaobservatory/api/trials_api.rb +84 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_coverage_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_site_years_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_site_years_row.rb +322 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +12 -1
- data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +12 -1
- data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +12 -1
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +3 -3
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_sources_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_us_network_memberships_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_network_memberships_row.rb +663 -0
- data/lib/pharmaobservatory/models/rwd_us_network_projects_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_network_projects_row.rb +564 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_row.rb +454 -0
- data/lib/pharmaobservatory/models/supplier_rwd_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_rwd_declarations_row.rb +539 -0
- data/lib/pharmaobservatory/models/trial_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_publications_row.rb +313 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +16 -0
- metadata +34 -2
data/docs/SuppliersApi.md
CHANGED
|
@@ -12,6 +12,8 @@ All URIs are relative to *https://pharmaobservatory.com*
|
|
|
12
12
|
| [**suppliers_provider_rwd_delivery**](SuppliersApi.md#suppliers_provider_rwd_delivery) | **GET** /api/v1/suppliers/{id}/provider_rwd_delivery | RX provider real-world data study delivery track record (HMA-EMA catalogue) |
|
|
13
13
|
| [**suppliers_provider_rwd_delivery_study**](SuppliersApi.md#suppliers_provider_rwd_delivery_study) | **GET** /api/v1/suppliers/{id}/provider_rwd_delivery_study | RX provider real-world data study final-report dates below the floor (HMA-EMA catalogue) |
|
|
14
14
|
| [**suppliers_provider_rwd_footprint**](SuppliersApi.md#suppliers_provider_rwd_footprint) | **GET** /api/v1/suppliers/{id}/provider_rwd_footprint | Supplier real-world data footprint (HMA-EMA catalogue) |
|
|
15
|
+
| [**suppliers_rwd_us_network_memberships**](SuppliersApi.md#suppliers_rwd_us_network_memberships) | **GET** /api/v1/suppliers/{id}/rwd_us_network_memberships | US real-world data network membership (N3C) |
|
|
16
|
+
| [**suppliers_supplier_rwd_declarations**](SuppliersApi.md#suppliers_supplier_rwd_declarations) | **GET** /api/v1/suppliers/{id}/supplier_rwd_declarations | Supplier declared real-world data facts |
|
|
15
17
|
| [**suppliers_supplier_services**](SuppliersApi.md#suppliers_supplier_services) | **GET** /api/v1/suppliers/{id}/supplier_services | Supplier services |
|
|
16
18
|
| [**suppliers_supplier_sites**](SuppliersApi.md#suppliers_supplier_sites) | **GET** /api/v1/suppliers/{id}/supplier_sites | Supplier sites |
|
|
17
19
|
|
|
@@ -634,6 +636,164 @@ end
|
|
|
634
636
|
- **Accept**: application/json
|
|
635
637
|
|
|
636
638
|
|
|
639
|
+
## suppliers_rwd_us_network_memberships
|
|
640
|
+
|
|
641
|
+
> <RwdUsNetworkMembershipsResponse> suppliers_rwd_us_network_memberships(id, opts)
|
|
642
|
+
|
|
643
|
+
US real-world data network membership (N3C)
|
|
644
|
+
|
|
645
|
+
### Examples
|
|
646
|
+
|
|
647
|
+
```ruby
|
|
648
|
+
require 'time'
|
|
649
|
+
require 'pharmaobservatory'
|
|
650
|
+
# setup authorization
|
|
651
|
+
PharmaObservatory.configure do |config|
|
|
652
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
653
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
api_instance = PharmaObservatory::SuppliersApi.new
|
|
657
|
+
id = 990502 # Integer |
|
|
658
|
+
opts = {
|
|
659
|
+
cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
660
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
661
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
662
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
663
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
begin
|
|
667
|
+
# US real-world data network membership (N3C)
|
|
668
|
+
result = api_instance.suppliers_rwd_us_network_memberships(id, opts)
|
|
669
|
+
p result
|
|
670
|
+
rescue PharmaObservatory::ApiError => e
|
|
671
|
+
puts "Error when calling SuppliersApi->suppliers_rwd_us_network_memberships: #{e}"
|
|
672
|
+
end
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
#### Using the suppliers_rwd_us_network_memberships_with_http_info variant
|
|
676
|
+
|
|
677
|
+
This returns an Array which contains the response data, status code and headers.
|
|
678
|
+
|
|
679
|
+
> <Array(<RwdUsNetworkMembershipsResponse>, Integer, Hash)> suppliers_rwd_us_network_memberships_with_http_info(id, opts)
|
|
680
|
+
|
|
681
|
+
```ruby
|
|
682
|
+
begin
|
|
683
|
+
# US real-world data network membership (N3C)
|
|
684
|
+
data, status_code, headers = api_instance.suppliers_rwd_us_network_memberships_with_http_info(id, opts)
|
|
685
|
+
p status_code # => 2xx
|
|
686
|
+
p headers # => { ... }
|
|
687
|
+
p data # => <RwdUsNetworkMembershipsResponse>
|
|
688
|
+
rescue PharmaObservatory::ApiError => e
|
|
689
|
+
puts "Error when calling SuppliersApi->suppliers_rwd_us_network_memberships_with_http_info: #{e}"
|
|
690
|
+
end
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
### Parameters
|
|
694
|
+
|
|
695
|
+
| Name | Type | Description | Notes |
|
|
696
|
+
| ---- | ---- | ----------- | ----- |
|
|
697
|
+
| **id** | **Integer** | | |
|
|
698
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
699
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
700
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
701
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
702
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
703
|
+
|
|
704
|
+
### Return type
|
|
705
|
+
|
|
706
|
+
[**RwdUsNetworkMembershipsResponse**](RwdUsNetworkMembershipsResponse.md)
|
|
707
|
+
|
|
708
|
+
### Authorization
|
|
709
|
+
|
|
710
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
711
|
+
|
|
712
|
+
### HTTP request headers
|
|
713
|
+
|
|
714
|
+
- **Content-Type**: Not defined
|
|
715
|
+
- **Accept**: application/json
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
## suppliers_supplier_rwd_declarations
|
|
719
|
+
|
|
720
|
+
> <SupplierRwdDeclarationsResponse> suppliers_supplier_rwd_declarations(id, opts)
|
|
721
|
+
|
|
722
|
+
Supplier declared real-world data facts
|
|
723
|
+
|
|
724
|
+
### Examples
|
|
725
|
+
|
|
726
|
+
```ruby
|
|
727
|
+
require 'time'
|
|
728
|
+
require 'pharmaobservatory'
|
|
729
|
+
# setup authorization
|
|
730
|
+
PharmaObservatory.configure do |config|
|
|
731
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
732
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
733
|
+
end
|
|
734
|
+
|
|
735
|
+
api_instance = PharmaObservatory::SuppliersApi.new
|
|
736
|
+
id = 990502 # Integer |
|
|
737
|
+
opts = {
|
|
738
|
+
cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
739
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
740
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
741
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
742
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
begin
|
|
746
|
+
# Supplier declared real-world data facts
|
|
747
|
+
result = api_instance.suppliers_supplier_rwd_declarations(id, opts)
|
|
748
|
+
p result
|
|
749
|
+
rescue PharmaObservatory::ApiError => e
|
|
750
|
+
puts "Error when calling SuppliersApi->suppliers_supplier_rwd_declarations: #{e}"
|
|
751
|
+
end
|
|
752
|
+
```
|
|
753
|
+
|
|
754
|
+
#### Using the suppliers_supplier_rwd_declarations_with_http_info variant
|
|
755
|
+
|
|
756
|
+
This returns an Array which contains the response data, status code and headers.
|
|
757
|
+
|
|
758
|
+
> <Array(<SupplierRwdDeclarationsResponse>, Integer, Hash)> suppliers_supplier_rwd_declarations_with_http_info(id, opts)
|
|
759
|
+
|
|
760
|
+
```ruby
|
|
761
|
+
begin
|
|
762
|
+
# Supplier declared real-world data facts
|
|
763
|
+
data, status_code, headers = api_instance.suppliers_supplier_rwd_declarations_with_http_info(id, opts)
|
|
764
|
+
p status_code # => 2xx
|
|
765
|
+
p headers # => { ... }
|
|
766
|
+
p data # => <SupplierRwdDeclarationsResponse>
|
|
767
|
+
rescue PharmaObservatory::ApiError => e
|
|
768
|
+
puts "Error when calling SuppliersApi->suppliers_supplier_rwd_declarations_with_http_info: #{e}"
|
|
769
|
+
end
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
### Parameters
|
|
773
|
+
|
|
774
|
+
| Name | Type | Description | Notes |
|
|
775
|
+
| ---- | ---- | ----------- | ----- |
|
|
776
|
+
| **id** | **Integer** | | |
|
|
777
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
778
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
779
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
780
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
781
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
782
|
+
|
|
783
|
+
### Return type
|
|
784
|
+
|
|
785
|
+
[**SupplierRwdDeclarationsResponse**](SupplierRwdDeclarationsResponse.md)
|
|
786
|
+
|
|
787
|
+
### Authorization
|
|
788
|
+
|
|
789
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
790
|
+
|
|
791
|
+
### HTTP request headers
|
|
792
|
+
|
|
793
|
+
- **Content-Type**: Not defined
|
|
794
|
+
- **Accept**: application/json
|
|
795
|
+
|
|
796
|
+
|
|
637
797
|
## suppliers_supplier_services
|
|
638
798
|
|
|
639
799
|
> <SupplierServicesResponse> suppliers_supplier_services(id, opts)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# PharmaObservatory::TrialPublicationsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **dataset** | **String** | | |
|
|
8
|
+
| **grain** | **String** | | [optional] |
|
|
9
|
+
| **object_type** | **String** | | [optional] |
|
|
10
|
+
| **id** | **String** | | [optional] |
|
|
11
|
+
| **scope** | [**AnimalWelfareAssurancesResponseScope**](AnimalWelfareAssurancesResponseScope.md) | | [optional] |
|
|
12
|
+
| **columns** | [**Array<DatasetColumn>**](DatasetColumn.md) | | |
|
|
13
|
+
| **rows** | [**Array<TrialPublicationsRow>**](TrialPublicationsRow.md) | | |
|
|
14
|
+
| **total** | **Integer** | The exact count of the filtered rows on an ungrouped read, carried by the cursor; null when grouped. | [optional] |
|
|
15
|
+
| **next_cursor** | **String** | | [optional] |
|
|
16
|
+
| **sort** | **Array<String>** | | [optional] |
|
|
17
|
+
| **filters** | **Array<Hash<String, Object>>** | | [optional] |
|
|
18
|
+
| **group_by** | **Array<String>** | | [optional] |
|
|
19
|
+
| **measures** | **Array<String>** | | [optional] |
|
|
20
|
+
| **attribution** | [**Array<DatasetAttribution>**](DatasetAttribution.md) | | [optional] |
|
|
21
|
+
| **source_credit** | **String** | | [optional] |
|
|
22
|
+
| **withheld_tiers** | **Array<String>** | | [optional] |
|
|
23
|
+
| **withheld_columns** | **Array<String>** | | [optional] |
|
|
24
|
+
| **freshness** | [**AnimalWelfareAssurancesResponseFreshness**](AnimalWelfareAssurancesResponseFreshness.md) | | [optional] |
|
|
25
|
+
| **build** | [**AnimalWelfareAssurancesResponseBuild**](AnimalWelfareAssurancesResponseBuild.md) | | [optional] |
|
|
26
|
+
| **build_state** | [**DatasetBuildState**](DatasetBuildState.md) | | [optional] |
|
|
27
|
+
| **restriction** | **Hash<String, Object>** | | [optional] |
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'pharmaobservatory'
|
|
33
|
+
|
|
34
|
+
instance = PharmaObservatory::TrialPublicationsResponse.new(
|
|
35
|
+
dataset: null,
|
|
36
|
+
grain: null,
|
|
37
|
+
object_type: null,
|
|
38
|
+
id: null,
|
|
39
|
+
scope: null,
|
|
40
|
+
columns: null,
|
|
41
|
+
rows: null,
|
|
42
|
+
total: null,
|
|
43
|
+
next_cursor: null,
|
|
44
|
+
sort: null,
|
|
45
|
+
filters: null,
|
|
46
|
+
group_by: null,
|
|
47
|
+
measures: null,
|
|
48
|
+
attribution: null,
|
|
49
|
+
source_credit: null,
|
|
50
|
+
withheld_tiers: null,
|
|
51
|
+
withheld_columns: null,
|
|
52
|
+
freshness: null,
|
|
53
|
+
build: null,
|
|
54
|
+
build_state: null,
|
|
55
|
+
restriction: null
|
|
56
|
+
)
|
|
57
|
+
```
|
|
58
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# PharmaObservatory::TrialPublicationsRow
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **trial_id** | **String** | The trial's ClinicalTrials.gov registry id (NCT, National Clinical Trial, number). | [optional] |
|
|
8
|
+
| **pmid** | **String** | The PubMed id of the paper. | [optional] |
|
|
9
|
+
| **title** | **String** | The paper's title. | [optional] |
|
|
10
|
+
| **journal_title** | **String** | The journal's title (null when the paper's journal is not in the journal table). | [optional] |
|
|
11
|
+
| **pub_year** | **Integer** | The publication year (null when undated). | [optional] |
|
|
12
|
+
| **evidence_type** | **String** | The paper's study-design label, one normalized publication type by study-design priority; the page's design column. | [optional] |
|
|
13
|
+
| **citation** | **String** | The citation for the paper: one citation per paper, the longest among the trials that cite the PubMed id. | [optional] |
|
|
14
|
+
| **reference_types** | **Array<String>** | Every reference kind the registry filed for this paper on this trial, lower-cased (background, result, derived). | [optional] |
|
|
15
|
+
| **results** | **Boolean** | True when any reference kind of the row is a results reference; the page's Results label. | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'pharmaobservatory'
|
|
21
|
+
|
|
22
|
+
instance = PharmaObservatory::TrialPublicationsRow.new(
|
|
23
|
+
trial_id: null,
|
|
24
|
+
pmid: null,
|
|
25
|
+
title: null,
|
|
26
|
+
journal_title: null,
|
|
27
|
+
pub_year: null,
|
|
28
|
+
evidence_type: null,
|
|
29
|
+
citation: null,
|
|
30
|
+
reference_types: null,
|
|
31
|
+
results: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/TrialsApi.md
CHANGED
|
@@ -19,6 +19,7 @@ All URIs are relative to *https://pharmaobservatory.com*
|
|
|
19
19
|
| [**trials_trial_extracted_endpoints**](TrialsApi.md#trials_trial_extracted_endpoints) | **GET** /api/v1/trials/{id}/trial_extracted_endpoints | Trial extracted endpoints |
|
|
20
20
|
| [**trials_trial_kols**](TrialsApi.md#trials_trial_kols) | **GET** /api/v1/trials/{id}/trial_kols | Trial investigators |
|
|
21
21
|
| [**trials_trial_outcome_measures**](TrialsApi.md#trials_trial_outcome_measures) | **GET** /api/v1/trials/{id}/trial_outcome_measures | Trial outcome measures |
|
|
22
|
+
| [**trials_trial_publications**](TrialsApi.md#trials_trial_publications) | **GET** /api/v1/trials/{id}/trial_publications | Trial publications |
|
|
22
23
|
| [**trials_trial_research_payments**](TrialsApi.md#trials_trial_research_payments) | **GET** /api/v1/trials/{id}/trial_research_payments | Trial research payments |
|
|
23
24
|
| [**trials_trial_site_history**](TrialsApi.md#trials_trial_site_history) | **GET** /api/v1/trials/{id}/trial_site_history | Trial site history |
|
|
24
25
|
| [**trials_trial_sites**](TrialsApi.md#trials_trial_sites) | **GET** /api/v1/trials/{id}/trial_sites | Trial sites |
|
|
@@ -1195,6 +1196,85 @@ end
|
|
|
1195
1196
|
- **Accept**: application/json
|
|
1196
1197
|
|
|
1197
1198
|
|
|
1199
|
+
## trials_trial_publications
|
|
1200
|
+
|
|
1201
|
+
> <TrialPublicationsResponse> trials_trial_publications(id, opts)
|
|
1202
|
+
|
|
1203
|
+
Trial publications
|
|
1204
|
+
|
|
1205
|
+
### Examples
|
|
1206
|
+
|
|
1207
|
+
```ruby
|
|
1208
|
+
require 'time'
|
|
1209
|
+
require 'pharmaobservatory'
|
|
1210
|
+
# setup authorization
|
|
1211
|
+
PharmaObservatory.configure do |config|
|
|
1212
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
1213
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1216
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
1217
|
+
id = 'NCT00000125' # String |
|
|
1218
|
+
opts = {
|
|
1219
|
+
cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
1220
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
1221
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
1222
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
1223
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
begin
|
|
1227
|
+
# Trial publications
|
|
1228
|
+
result = api_instance.trials_trial_publications(id, opts)
|
|
1229
|
+
p result
|
|
1230
|
+
rescue PharmaObservatory::ApiError => e
|
|
1231
|
+
puts "Error when calling TrialsApi->trials_trial_publications: #{e}"
|
|
1232
|
+
end
|
|
1233
|
+
```
|
|
1234
|
+
|
|
1235
|
+
#### Using the trials_trial_publications_with_http_info variant
|
|
1236
|
+
|
|
1237
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1238
|
+
|
|
1239
|
+
> <Array(<TrialPublicationsResponse>, Integer, Hash)> trials_trial_publications_with_http_info(id, opts)
|
|
1240
|
+
|
|
1241
|
+
```ruby
|
|
1242
|
+
begin
|
|
1243
|
+
# Trial publications
|
|
1244
|
+
data, status_code, headers = api_instance.trials_trial_publications_with_http_info(id, opts)
|
|
1245
|
+
p status_code # => 2xx
|
|
1246
|
+
p headers # => { ... }
|
|
1247
|
+
p data # => <TrialPublicationsResponse>
|
|
1248
|
+
rescue PharmaObservatory::ApiError => e
|
|
1249
|
+
puts "Error when calling TrialsApi->trials_trial_publications_with_http_info: #{e}"
|
|
1250
|
+
end
|
|
1251
|
+
```
|
|
1252
|
+
|
|
1253
|
+
### Parameters
|
|
1254
|
+
|
|
1255
|
+
| Name | Type | Description | Notes |
|
|
1256
|
+
| ---- | ---- | ----------- | ----- |
|
|
1257
|
+
| **id** | **String** | | |
|
|
1258
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
1259
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
1260
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
1261
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
1262
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
1263
|
+
|
|
1264
|
+
### Return type
|
|
1265
|
+
|
|
1266
|
+
[**TrialPublicationsResponse**](TrialPublicationsResponse.md)
|
|
1267
|
+
|
|
1268
|
+
### Authorization
|
|
1269
|
+
|
|
1270
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
1271
|
+
|
|
1272
|
+
### HTTP request headers
|
|
1273
|
+
|
|
1274
|
+
- **Content-Type**: Not defined
|
|
1275
|
+
- **Accept**: application/json
|
|
1276
|
+
|
|
1277
|
+
|
|
1198
1278
|
## trials_trial_research_payments
|
|
1199
1279
|
|
|
1200
1280
|
> <TrialResearchPaymentsResponse> trials_trial_research_payments(id, opts)
|
|
@@ -859,6 +859,174 @@ module PharmaObservatory
|
|
|
859
859
|
return data, status_code, headers
|
|
860
860
|
end
|
|
861
861
|
|
|
862
|
+
# Condition site coverage
|
|
863
|
+
# @param id [String]
|
|
864
|
+
# @param [Hash] opts the optional parameters
|
|
865
|
+
# @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.
|
|
866
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
867
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
868
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
869
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
870
|
+
# @return [ConditionSiteCoverageResponse]
|
|
871
|
+
def conditions_condition_site_coverage(id, opts = {})
|
|
872
|
+
data, _status_code, _headers = conditions_condition_site_coverage_with_http_info(id, opts)
|
|
873
|
+
data
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
# Condition site coverage
|
|
877
|
+
# @param id [String]
|
|
878
|
+
# @param [Hash] opts the optional parameters
|
|
879
|
+
# @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.
|
|
880
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
881
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
882
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
883
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
884
|
+
# @return [Array<(ConditionSiteCoverageResponse, Integer, Hash)>] ConditionSiteCoverageResponse data, response status code and response headers
|
|
885
|
+
def conditions_condition_site_coverage_with_http_info(id, opts = {})
|
|
886
|
+
if @api_client.config.debugging
|
|
887
|
+
@api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_site_coverage ...'
|
|
888
|
+
end
|
|
889
|
+
# verify the required parameter 'id' is set
|
|
890
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
891
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_site_coverage"
|
|
892
|
+
end
|
|
893
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
894
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_coverage, must be smaller than or equal to 500.'
|
|
895
|
+
end
|
|
896
|
+
|
|
897
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
898
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_coverage, must be greater than or equal to 1.'
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# resource path
|
|
902
|
+
local_var_path = '/api/v1/conditions/{id}/condition_site_coverage'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
903
|
+
|
|
904
|
+
# query parameters
|
|
905
|
+
query_params = opts[:query_params] || {}
|
|
906
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
907
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
908
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
909
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
910
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
911
|
+
|
|
912
|
+
# header parameters
|
|
913
|
+
header_params = opts[:header_params] || {}
|
|
914
|
+
# HTTP header 'Accept' (if needed)
|
|
915
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
916
|
+
|
|
917
|
+
# form parameters
|
|
918
|
+
form_params = opts[:form_params] || {}
|
|
919
|
+
|
|
920
|
+
# http body (model)
|
|
921
|
+
post_body = opts[:debug_body]
|
|
922
|
+
|
|
923
|
+
# return_type
|
|
924
|
+
return_type = opts[:debug_return_type] || 'ConditionSiteCoverageResponse'
|
|
925
|
+
|
|
926
|
+
# auth_names
|
|
927
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
928
|
+
|
|
929
|
+
new_options = opts.merge(
|
|
930
|
+
:operation => :"ConditionsApi.conditions_condition_site_coverage",
|
|
931
|
+
:header_params => header_params,
|
|
932
|
+
:query_params => query_params,
|
|
933
|
+
:form_params => form_params,
|
|
934
|
+
:body => post_body,
|
|
935
|
+
:auth_names => auth_names,
|
|
936
|
+
:return_type => return_type
|
|
937
|
+
)
|
|
938
|
+
|
|
939
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
940
|
+
if @api_client.config.debugging
|
|
941
|
+
@api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_site_coverage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
942
|
+
end
|
|
943
|
+
return data, status_code, headers
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# Condition site years
|
|
947
|
+
# @param id [String]
|
|
948
|
+
# @param [Hash] opts the optional parameters
|
|
949
|
+
# @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.
|
|
950
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
951
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
952
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
953
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
954
|
+
# @return [ConditionSiteYearsResponse]
|
|
955
|
+
def conditions_condition_site_years(id, opts = {})
|
|
956
|
+
data, _status_code, _headers = conditions_condition_site_years_with_http_info(id, opts)
|
|
957
|
+
data
|
|
958
|
+
end
|
|
959
|
+
|
|
960
|
+
# Condition site years
|
|
961
|
+
# @param id [String]
|
|
962
|
+
# @param [Hash] opts the optional parameters
|
|
963
|
+
# @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.
|
|
964
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
965
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
966
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
967
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
968
|
+
# @return [Array<(ConditionSiteYearsResponse, Integer, Hash)>] ConditionSiteYearsResponse data, response status code and response headers
|
|
969
|
+
def conditions_condition_site_years_with_http_info(id, opts = {})
|
|
970
|
+
if @api_client.config.debugging
|
|
971
|
+
@api_client.config.logger.debug 'Calling API: ConditionsApi.conditions_condition_site_years ...'
|
|
972
|
+
end
|
|
973
|
+
# verify the required parameter 'id' is set
|
|
974
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
975
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ConditionsApi.conditions_condition_site_years"
|
|
976
|
+
end
|
|
977
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
978
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_years, must be smaller than or equal to 500.'
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
982
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ConditionsApi.conditions_condition_site_years, must be greater than or equal to 1.'
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# resource path
|
|
986
|
+
local_var_path = '/api/v1/conditions/{id}/condition_site_years'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
987
|
+
|
|
988
|
+
# query parameters
|
|
989
|
+
query_params = opts[:query_params] || {}
|
|
990
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
991
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
992
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
993
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
994
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
995
|
+
|
|
996
|
+
# header parameters
|
|
997
|
+
header_params = opts[:header_params] || {}
|
|
998
|
+
# HTTP header 'Accept' (if needed)
|
|
999
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1000
|
+
|
|
1001
|
+
# form parameters
|
|
1002
|
+
form_params = opts[:form_params] || {}
|
|
1003
|
+
|
|
1004
|
+
# http body (model)
|
|
1005
|
+
post_body = opts[:debug_body]
|
|
1006
|
+
|
|
1007
|
+
# return_type
|
|
1008
|
+
return_type = opts[:debug_return_type] || 'ConditionSiteYearsResponse'
|
|
1009
|
+
|
|
1010
|
+
# auth_names
|
|
1011
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
1012
|
+
|
|
1013
|
+
new_options = opts.merge(
|
|
1014
|
+
:operation => :"ConditionsApi.conditions_condition_site_years",
|
|
1015
|
+
:header_params => header_params,
|
|
1016
|
+
:query_params => query_params,
|
|
1017
|
+
:form_params => form_params,
|
|
1018
|
+
:body => post_body,
|
|
1019
|
+
:auth_names => auth_names,
|
|
1020
|
+
:return_type => return_type
|
|
1021
|
+
)
|
|
1022
|
+
|
|
1023
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1024
|
+
if @api_client.config.debugging
|
|
1025
|
+
@api_client.config.logger.debug "API called: ConditionsApi#conditions_condition_site_years\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1026
|
+
end
|
|
1027
|
+
return data, status_code, headers
|
|
1028
|
+
end
|
|
1029
|
+
|
|
862
1030
|
# Condition sites
|
|
863
1031
|
# @param id [String]
|
|
864
1032
|
# @param [Hash] opts the optional parameters
|
|
@@ -914,6 +914,90 @@ module PharmaObservatory
|
|
|
914
914
|
return data, status_code, headers
|
|
915
915
|
end
|
|
916
916
|
|
|
917
|
+
# US real-world data network projects (N3C)
|
|
918
|
+
# @param id [String]
|
|
919
|
+
# @param [Hash] opts the optional parameters
|
|
920
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
921
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
922
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
923
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
924
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
925
|
+
# @return [RwdUsNetworkProjectsResponse]
|
|
926
|
+
def investigators_rwd_us_network_projects(id, opts = {})
|
|
927
|
+
data, _status_code, _headers = investigators_rwd_us_network_projects_with_http_info(id, opts)
|
|
928
|
+
data
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# US real-world data network projects (N3C)
|
|
932
|
+
# @param id [String]
|
|
933
|
+
# @param [Hash] opts the optional parameters
|
|
934
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
935
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
936
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
937
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
938
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
939
|
+
# @return [Array<(RwdUsNetworkProjectsResponse, Integer, Hash)>] RwdUsNetworkProjectsResponse data, response status code and response headers
|
|
940
|
+
def investigators_rwd_us_network_projects_with_http_info(id, opts = {})
|
|
941
|
+
if @api_client.config.debugging
|
|
942
|
+
@api_client.config.logger.debug 'Calling API: InvestigatorsApi.investigators_rwd_us_network_projects ...'
|
|
943
|
+
end
|
|
944
|
+
# verify the required parameter 'id' is set
|
|
945
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
946
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling InvestigatorsApi.investigators_rwd_us_network_projects"
|
|
947
|
+
end
|
|
948
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
949
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_rwd_us_network_projects, must be smaller than or equal to 500.'
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
953
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling InvestigatorsApi.investigators_rwd_us_network_projects, must be greater than or equal to 1.'
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# resource path
|
|
957
|
+
local_var_path = '/api/v1/investigators/{id}/rwd_us_network_projects'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
958
|
+
|
|
959
|
+
# query parameters
|
|
960
|
+
query_params = opts[:query_params] || {}
|
|
961
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
962
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
963
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
964
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
965
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
966
|
+
|
|
967
|
+
# header parameters
|
|
968
|
+
header_params = opts[:header_params] || {}
|
|
969
|
+
# HTTP header 'Accept' (if needed)
|
|
970
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
971
|
+
|
|
972
|
+
# form parameters
|
|
973
|
+
form_params = opts[:form_params] || {}
|
|
974
|
+
|
|
975
|
+
# http body (model)
|
|
976
|
+
post_body = opts[:debug_body]
|
|
977
|
+
|
|
978
|
+
# return_type
|
|
979
|
+
return_type = opts[:debug_return_type] || 'RwdUsNetworkProjectsResponse'
|
|
980
|
+
|
|
981
|
+
# auth_names
|
|
982
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
983
|
+
|
|
984
|
+
new_options = opts.merge(
|
|
985
|
+
:operation => :"InvestigatorsApi.investigators_rwd_us_network_projects",
|
|
986
|
+
:header_params => header_params,
|
|
987
|
+
:query_params => query_params,
|
|
988
|
+
:form_params => form_params,
|
|
989
|
+
:body => post_body,
|
|
990
|
+
:auth_names => auth_names,
|
|
991
|
+
:return_type => return_type
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
995
|
+
if @api_client.config.debugging
|
|
996
|
+
@api_client.config.logger.debug "API called: InvestigatorsApi#investigators_rwd_us_network_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
997
|
+
end
|
|
998
|
+
return data, status_code, headers
|
|
999
|
+
end
|
|
1000
|
+
|
|
917
1001
|
# Site investigators
|
|
918
1002
|
# @param id [String]
|
|
919
1003
|
# @param [Hash] opts the optional parameters
|