pharmaobservatory 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +101 -4
- data/docs/BiomarkerBqpAssertionsRow.md +1 -1
- data/docs/BiomarkerEvidenceRow.md +1 -1
- data/docs/BiomarkerLiteratureRow.md +1 -1
- data/docs/BiomarkerRelationsResponse.md +58 -0
- data/docs/BiomarkerRelationsRow.md +54 -0
- data/docs/BiomarkerSampleCoverageResponse.md +58 -0
- data/docs/BiomarkerSampleCoverageRow.md +36 -0
- data/docs/BiomarkerSamplePrevalenceResponse.md +58 -0
- data/docs/BiomarkerSamplePrevalenceRow.md +56 -0
- data/docs/BiomarkerValidationResponse.md +58 -0
- data/docs/BiomarkerValidationRow.md +70 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/BiomarkersRow.md +2 -2
- data/docs/CellLinesRow.md +1 -1
- data/docs/CompaniesApi.md +410 -0
- data/docs/CompaniesRecord.md +1 -1
- data/docs/CompaniesRecordAttributes.md +18 -0
- data/docs/CompaniesRow.md +7 -3
- data/docs/CompanyAssetsResponse.md +58 -0
- data/docs/CompanyAssetsRow.md +42 -0
- data/docs/CompanyFundingEventsResponse.md +58 -0
- data/docs/CompanyFundingEventsRow.md +62 -0
- data/docs/CompanyFundingSummaryResponse.md +58 -0
- data/docs/CompanyFundingSummaryRow.md +46 -0
- data/docs/CompanyProgramsRow.md +2 -2
- data/docs/ConditionAdverseEventsResponse.md +58 -0
- data/docs/ConditionAdverseEventsRow.md +24 -0
- data/docs/ConditionBurdenResponse.md +58 -0
- data/docs/ConditionBurdenRow.md +32 -0
- data/docs/ConditionDeliveryResponse.md +58 -0
- data/docs/ConditionDeliveryRow.md +44 -0
- data/docs/ConditionDrugsResponse.md +58 -0
- data/docs/ConditionDrugsRow.md +26 -0
- data/docs/ConditionPrevalenceResponse.md +58 -0
- data/docs/ConditionPrevalenceRow.md +62 -0
- data/docs/ConditionPublicationsResponse.md +58 -0
- data/docs/ConditionPublicationsRow.md +32 -0
- data/docs/ConditionSitesResponse.md +58 -0
- data/docs/ConditionSitesRow.md +28 -0
- data/docs/ConditionTrialsResponse.md +58 -0
- data/docs/ConditionTrialsRow.md +58 -0
- data/docs/ConditionsApi.md +953 -0
- data/docs/ConditionsRecord.md +38 -0
- data/docs/ConditionsRecordAttributes.md +20 -0
- data/docs/ConditionsResponse.md +58 -0
- data/docs/ConditionsRow.md +32 -0
- data/docs/DrugPatentCliffRow.md +1 -1
- data/docs/InstitutionalHoldingsRow.md +3 -1
- data/docs/LegalEntitiesApi.md +160 -0
- data/docs/LegalEntitiesRow.md +1 -1
- data/docs/OwnershipPositionsResponse.md +58 -0
- data/docs/OwnershipPositionsRow.md +100 -0
- data/docs/PdufaDatesRow.md +2 -2
- data/docs/SiteCroTrialsRow.md +1 -1
- data/docs/SiteTrialConditionsRow.md +1 -1
- data/docs/SiteTrialDrugsRow.md +1 -1
- data/docs/SiteTrialsRow.md +1 -1
- data/docs/SponsorRecruitmentByPhaseRow.md +2 -2
- data/docs/SponsorRecruitmentDurationRow.md +1 -1
- data/docs/SponsorTrialsRow.md +2 -2
- data/docs/TrialAdverseEventsResponse.md +58 -0
- data/docs/TrialAdverseEventsRow.md +28 -0
- data/docs/TrialChangesResponse.md +58 -0
- data/docs/TrialChangesRow.md +36 -0
- data/docs/TrialDeliveryResponse.md +58 -0
- data/docs/TrialDeliveryRow.md +64 -0
- data/docs/TrialDemographicsResponse.md +58 -0
- data/docs/TrialDemographicsRow.md +32 -0
- data/docs/TrialDrugsResponse.md +58 -0
- data/docs/TrialDrugsRow.md +30 -0
- data/docs/TrialEnrollmentHistoryResponse.md +58 -0
- data/docs/TrialEnrollmentHistoryRow.md +36 -0
- data/docs/TrialEnrollmentRateResponse.md +58 -0
- data/docs/TrialEnrollmentRateRow.md +58 -0
- data/docs/TrialExtractedEndpointsResponse.md +58 -0
- data/docs/TrialExtractedEndpointsRow.md +40 -0
- data/docs/TrialOutcomeMeasuresResponse.md +58 -0
- data/docs/TrialOutcomeMeasuresRow.md +28 -0
- data/docs/TrialSitesResponse.md +58 -0
- data/docs/TrialSitesRow.md +46 -0
- data/docs/TrialsApi.md +1033 -0
- data/docs/TrialsRecord.md +38 -0
- data/docs/TrialsRecordAttributes.md +24 -0
- data/docs/TrialsResponse.md +58 -0
- data/docs/TrialsRow.md +116 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +455 -0
- data/lib/pharmaobservatory/api/conditions_api.rb +1001 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
- data/lib/pharmaobservatory/api/trials_api.rb +1085 -0
- data/lib/pharmaobservatory/models/biomarker_bqp_assertions_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_evidence_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_literature_row.rb +1 -1
- data/lib/pharmaobservatory/models/biomarker_relations_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_relations_row.rb +421 -0
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_sample_coverage_row.rb +322 -0
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_sample_prevalence_row.rb +436 -0
- data/lib/pharmaobservatory/models/biomarker_validation_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_validation_row.rb +509 -0
- data/lib/pharmaobservatory/models/biomarkers_row.rb +2 -2
- data/lib/pharmaobservatory/models/cell_lines_row.rb +1 -1
- data/lib/pharmaobservatory/models/companies_record.rb +1 -1
- data/lib/pharmaobservatory/models/companies_record_attributes.rb +220 -0
- data/lib/pharmaobservatory/models/companies_row.rb +29 -7
- data/lib/pharmaobservatory/models/company_assets_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_assets_row.rb +355 -0
- data/lib/pharmaobservatory/models/company_funding_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_funding_events_row.rb +465 -0
- data/lib/pharmaobservatory/models/company_funding_summary_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_funding_summary_row.rb +377 -0
- data/lib/pharmaobservatory/models/company_programs_row.rb +2 -2
- data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +256 -0
- data/lib/pharmaobservatory/models/condition_burden_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_burden_row.rb +300 -0
- data/lib/pharmaobservatory/models/condition_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_delivery_row.rb +366 -0
- data/lib/pharmaobservatory/models/condition_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_drugs_row.rb +267 -0
- data/lib/pharmaobservatory/models/condition_prevalence_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_prevalence_row.rb +465 -0
- data/lib/pharmaobservatory/models/condition_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_publications_row.rb +300 -0
- data/lib/pharmaobservatory/models/condition_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_sites_row.rb +278 -0
- data/lib/pharmaobservatory/models/condition_trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/condition_trials_row.rb +443 -0
- data/lib/pharmaobservatory/models/conditions_record.rb +385 -0
- data/lib/pharmaobservatory/models/conditions_record_attributes.rb +229 -0
- data/lib/pharmaobservatory/models/conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/conditions_row.rb +304 -0
- data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +1 -1
- data/lib/pharmaobservatory/models/institutional_holdings_row.rb +13 -2
- data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
- data/lib/pharmaobservatory/models/ownership_positions_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_positions_row.rb +674 -0
- data/lib/pharmaobservatory/models/pdufa_dates_row.rb +2 -2
- data/lib/pharmaobservatory/models/site_cro_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trial_conditions_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trial_drugs_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trials_row.rb +1 -1
- data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_row.rb +2 -2
- data/lib/pharmaobservatory/models/sponsor_recruitment_duration_row.rb +1 -1
- data/lib/pharmaobservatory/models/sponsor_trials_row.rb +2 -2
- data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_adverse_events_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_changes_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_changes_row.rb +328 -0
- data/lib/pharmaobservatory/models/trial_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_delivery_row.rb +476 -0
- data/lib/pharmaobservatory/models/trial_demographics_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_demographics_row.rb +300 -0
- data/lib/pharmaobservatory/models/trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_drugs_row.rb +291 -0
- data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_enrollment_history_row.rb +322 -0
- data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +443 -0
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_extracted_endpoints_row.rb +346 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_outcome_measures_row.rb +278 -0
- data/lib/pharmaobservatory/models/trial_sites_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_sites_row.rb +377 -0
- data/lib/pharmaobservatory/models/trials_record.rb +385 -0
- data/lib/pharmaobservatory/models/trials_record_attributes.rb +247 -0
- data/lib/pharmaobservatory/models/trials_response.rb +478 -0
- data/lib/pharmaobservatory/models/trials_row.rb +784 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +63 -0
- metadata +127 -1
data/docs/TrialsApi.md
ADDED
|
@@ -0,0 +1,1033 @@
|
|
|
1
|
+
# PharmaObservatory::TrialsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://pharmaobservatory.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**trials_get**](TrialsApi.md#trials_get) | **GET** /api/v1/trials/{id} | One trial |
|
|
8
|
+
| [**trials_list**](TrialsApi.md#trials_list) | **GET** /api/v1/trials | List trials |
|
|
9
|
+
| [**trials_sponsor_trials**](TrialsApi.md#trials_sponsor_trials) | **GET** /api/v1/trials/{id}/sponsor_trials | Sponsor trials |
|
|
10
|
+
| [**trials_trial_adverse_events**](TrialsApi.md#trials_trial_adverse_events) | **GET** /api/v1/trials/{id}/trial_adverse_events | Trial adverse events |
|
|
11
|
+
| [**trials_trial_changes**](TrialsApi.md#trials_trial_changes) | **GET** /api/v1/trials/{id}/trial_changes | Trial changes |
|
|
12
|
+
| [**trials_trial_delivery**](TrialsApi.md#trials_trial_delivery) | **GET** /api/v1/trials/{id}/trial_delivery | Trial delivery |
|
|
13
|
+
| [**trials_trial_demographics**](TrialsApi.md#trials_trial_demographics) | **GET** /api/v1/trials/{id}/trial_demographics | Trial demographics |
|
|
14
|
+
| [**trials_trial_drugs**](TrialsApi.md#trials_trial_drugs) | **GET** /api/v1/trials/{id}/trial_drugs | Trial drugs |
|
|
15
|
+
| [**trials_trial_enrollment_history**](TrialsApi.md#trials_trial_enrollment_history) | **GET** /api/v1/trials/{id}/trial_enrollment_history | Trial enrollment history |
|
|
16
|
+
| [**trials_trial_enrollment_rate**](TrialsApi.md#trials_trial_enrollment_rate) | **GET** /api/v1/trials/{id}/trial_enrollment_rate | Trial enrollment rate |
|
|
17
|
+
| [**trials_trial_extracted_endpoints**](TrialsApi.md#trials_trial_extracted_endpoints) | **GET** /api/v1/trials/{id}/trial_extracted_endpoints | Trial extracted endpoints |
|
|
18
|
+
| [**trials_trial_outcome_measures**](TrialsApi.md#trials_trial_outcome_measures) | **GET** /api/v1/trials/{id}/trial_outcome_measures | Trial outcome measures |
|
|
19
|
+
| [**trials_trial_sites**](TrialsApi.md#trials_trial_sites) | **GET** /api/v1/trials/{id}/trial_sites | Trial sites |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## trials_get
|
|
23
|
+
|
|
24
|
+
> <TrialsRecord> trials_get(id)
|
|
25
|
+
|
|
26
|
+
One trial
|
|
27
|
+
|
|
28
|
+
### Examples
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
require 'time'
|
|
32
|
+
require 'pharmaobservatory'
|
|
33
|
+
# setup authorization
|
|
34
|
+
PharmaObservatory.configure do |config|
|
|
35
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
36
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
40
|
+
id = 'NCT00000125' # String |
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# One trial
|
|
44
|
+
result = api_instance.trials_get(id)
|
|
45
|
+
p result
|
|
46
|
+
rescue PharmaObservatory::ApiError => e
|
|
47
|
+
puts "Error when calling TrialsApi->trials_get: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the trials_get_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<TrialsRecord>, Integer, Hash)> trials_get_with_http_info(id)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# One trial
|
|
60
|
+
data, status_code, headers = api_instance.trials_get_with_http_info(id)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <TrialsRecord>
|
|
64
|
+
rescue PharmaObservatory::ApiError => e
|
|
65
|
+
puts "Error when calling TrialsApi->trials_get_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **id** | **String** | | |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**TrialsRecord**](TrialsRecord.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## trials_list
|
|
90
|
+
|
|
91
|
+
> <TrialsResponse> trials_list(opts)
|
|
92
|
+
|
|
93
|
+
List trials
|
|
94
|
+
|
|
95
|
+
### Examples
|
|
96
|
+
|
|
97
|
+
```ruby
|
|
98
|
+
require 'time'
|
|
99
|
+
require 'pharmaobservatory'
|
|
100
|
+
# setup authorization
|
|
101
|
+
PharmaObservatory.configure do |config|
|
|
102
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
103
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
107
|
+
opts = {
|
|
108
|
+
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.
|
|
109
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
110
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
111
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
112
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# List trials
|
|
117
|
+
result = api_instance.trials_list(opts)
|
|
118
|
+
p result
|
|
119
|
+
rescue PharmaObservatory::ApiError => e
|
|
120
|
+
puts "Error when calling TrialsApi->trials_list: #{e}"
|
|
121
|
+
end
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Using the trials_list_with_http_info variant
|
|
125
|
+
|
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
|
127
|
+
|
|
128
|
+
> <Array(<TrialsResponse>, Integer, Hash)> trials_list_with_http_info(opts)
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
begin
|
|
132
|
+
# List trials
|
|
133
|
+
data, status_code, headers = api_instance.trials_list_with_http_info(opts)
|
|
134
|
+
p status_code # => 2xx
|
|
135
|
+
p headers # => { ... }
|
|
136
|
+
p data # => <TrialsResponse>
|
|
137
|
+
rescue PharmaObservatory::ApiError => e
|
|
138
|
+
puts "Error when calling TrialsApi->trials_list_with_http_info: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
| Name | Type | Description | Notes |
|
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
|
146
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
147
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
148
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
149
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
150
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
151
|
+
|
|
152
|
+
### Return type
|
|
153
|
+
|
|
154
|
+
[**TrialsResponse**](TrialsResponse.md)
|
|
155
|
+
|
|
156
|
+
### Authorization
|
|
157
|
+
|
|
158
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
159
|
+
|
|
160
|
+
### HTTP request headers
|
|
161
|
+
|
|
162
|
+
- **Content-Type**: Not defined
|
|
163
|
+
- **Accept**: application/json
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## trials_sponsor_trials
|
|
167
|
+
|
|
168
|
+
> <SponsorTrialsResponse> trials_sponsor_trials(id, opts)
|
|
169
|
+
|
|
170
|
+
Sponsor trials
|
|
171
|
+
|
|
172
|
+
### Examples
|
|
173
|
+
|
|
174
|
+
```ruby
|
|
175
|
+
require 'time'
|
|
176
|
+
require 'pharmaobservatory'
|
|
177
|
+
# setup authorization
|
|
178
|
+
PharmaObservatory.configure do |config|
|
|
179
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
180
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
184
|
+
id = 'NCT00000125' # String |
|
|
185
|
+
opts = {
|
|
186
|
+
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.
|
|
187
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
188
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
189
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
190
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
begin
|
|
194
|
+
# Sponsor trials
|
|
195
|
+
result = api_instance.trials_sponsor_trials(id, opts)
|
|
196
|
+
p result
|
|
197
|
+
rescue PharmaObservatory::ApiError => e
|
|
198
|
+
puts "Error when calling TrialsApi->trials_sponsor_trials: #{e}"
|
|
199
|
+
end
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Using the trials_sponsor_trials_with_http_info variant
|
|
203
|
+
|
|
204
|
+
This returns an Array which contains the response data, status code and headers.
|
|
205
|
+
|
|
206
|
+
> <Array(<SponsorTrialsResponse>, Integer, Hash)> trials_sponsor_trials_with_http_info(id, opts)
|
|
207
|
+
|
|
208
|
+
```ruby
|
|
209
|
+
begin
|
|
210
|
+
# Sponsor trials
|
|
211
|
+
data, status_code, headers = api_instance.trials_sponsor_trials_with_http_info(id, opts)
|
|
212
|
+
p status_code # => 2xx
|
|
213
|
+
p headers # => { ... }
|
|
214
|
+
p data # => <SponsorTrialsResponse>
|
|
215
|
+
rescue PharmaObservatory::ApiError => e
|
|
216
|
+
puts "Error when calling TrialsApi->trials_sponsor_trials_with_http_info: #{e}"
|
|
217
|
+
end
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Parameters
|
|
221
|
+
|
|
222
|
+
| Name | Type | Description | Notes |
|
|
223
|
+
| ---- | ---- | ----------- | ----- |
|
|
224
|
+
| **id** | **String** | | |
|
|
225
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
226
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
227
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
228
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
229
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
230
|
+
|
|
231
|
+
### Return type
|
|
232
|
+
|
|
233
|
+
[**SponsorTrialsResponse**](SponsorTrialsResponse.md)
|
|
234
|
+
|
|
235
|
+
### Authorization
|
|
236
|
+
|
|
237
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
238
|
+
|
|
239
|
+
### HTTP request headers
|
|
240
|
+
|
|
241
|
+
- **Content-Type**: Not defined
|
|
242
|
+
- **Accept**: application/json
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
## trials_trial_adverse_events
|
|
246
|
+
|
|
247
|
+
> <TrialAdverseEventsResponse> trials_trial_adverse_events(id, opts)
|
|
248
|
+
|
|
249
|
+
Trial adverse events
|
|
250
|
+
|
|
251
|
+
### Examples
|
|
252
|
+
|
|
253
|
+
```ruby
|
|
254
|
+
require 'time'
|
|
255
|
+
require 'pharmaobservatory'
|
|
256
|
+
# setup authorization
|
|
257
|
+
PharmaObservatory.configure do |config|
|
|
258
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
259
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
263
|
+
id = 'NCT00000125' # String |
|
|
264
|
+
opts = {
|
|
265
|
+
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.
|
|
266
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
267
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
268
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
269
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
begin
|
|
273
|
+
# Trial adverse events
|
|
274
|
+
result = api_instance.trials_trial_adverse_events(id, opts)
|
|
275
|
+
p result
|
|
276
|
+
rescue PharmaObservatory::ApiError => e
|
|
277
|
+
puts "Error when calling TrialsApi->trials_trial_adverse_events: #{e}"
|
|
278
|
+
end
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
#### Using the trials_trial_adverse_events_with_http_info variant
|
|
282
|
+
|
|
283
|
+
This returns an Array which contains the response data, status code and headers.
|
|
284
|
+
|
|
285
|
+
> <Array(<TrialAdverseEventsResponse>, Integer, Hash)> trials_trial_adverse_events_with_http_info(id, opts)
|
|
286
|
+
|
|
287
|
+
```ruby
|
|
288
|
+
begin
|
|
289
|
+
# Trial adverse events
|
|
290
|
+
data, status_code, headers = api_instance.trials_trial_adverse_events_with_http_info(id, opts)
|
|
291
|
+
p status_code # => 2xx
|
|
292
|
+
p headers # => { ... }
|
|
293
|
+
p data # => <TrialAdverseEventsResponse>
|
|
294
|
+
rescue PharmaObservatory::ApiError => e
|
|
295
|
+
puts "Error when calling TrialsApi->trials_trial_adverse_events_with_http_info: #{e}"
|
|
296
|
+
end
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
### Parameters
|
|
300
|
+
|
|
301
|
+
| Name | Type | Description | Notes |
|
|
302
|
+
| ---- | ---- | ----------- | ----- |
|
|
303
|
+
| **id** | **String** | | |
|
|
304
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
305
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
306
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
307
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
308
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
309
|
+
|
|
310
|
+
### Return type
|
|
311
|
+
|
|
312
|
+
[**TrialAdverseEventsResponse**](TrialAdverseEventsResponse.md)
|
|
313
|
+
|
|
314
|
+
### Authorization
|
|
315
|
+
|
|
316
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
317
|
+
|
|
318
|
+
### HTTP request headers
|
|
319
|
+
|
|
320
|
+
- **Content-Type**: Not defined
|
|
321
|
+
- **Accept**: application/json
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
## trials_trial_changes
|
|
325
|
+
|
|
326
|
+
> <TrialChangesResponse> trials_trial_changes(id, opts)
|
|
327
|
+
|
|
328
|
+
Trial changes
|
|
329
|
+
|
|
330
|
+
### Examples
|
|
331
|
+
|
|
332
|
+
```ruby
|
|
333
|
+
require 'time'
|
|
334
|
+
require 'pharmaobservatory'
|
|
335
|
+
# setup authorization
|
|
336
|
+
PharmaObservatory.configure do |config|
|
|
337
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
338
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
342
|
+
id = 'NCT00000125' # String |
|
|
343
|
+
opts = {
|
|
344
|
+
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.
|
|
345
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
346
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
347
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
348
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
begin
|
|
352
|
+
# Trial changes
|
|
353
|
+
result = api_instance.trials_trial_changes(id, opts)
|
|
354
|
+
p result
|
|
355
|
+
rescue PharmaObservatory::ApiError => e
|
|
356
|
+
puts "Error when calling TrialsApi->trials_trial_changes: #{e}"
|
|
357
|
+
end
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
#### Using the trials_trial_changes_with_http_info variant
|
|
361
|
+
|
|
362
|
+
This returns an Array which contains the response data, status code and headers.
|
|
363
|
+
|
|
364
|
+
> <Array(<TrialChangesResponse>, Integer, Hash)> trials_trial_changes_with_http_info(id, opts)
|
|
365
|
+
|
|
366
|
+
```ruby
|
|
367
|
+
begin
|
|
368
|
+
# Trial changes
|
|
369
|
+
data, status_code, headers = api_instance.trials_trial_changes_with_http_info(id, opts)
|
|
370
|
+
p status_code # => 2xx
|
|
371
|
+
p headers # => { ... }
|
|
372
|
+
p data # => <TrialChangesResponse>
|
|
373
|
+
rescue PharmaObservatory::ApiError => e
|
|
374
|
+
puts "Error when calling TrialsApi->trials_trial_changes_with_http_info: #{e}"
|
|
375
|
+
end
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Parameters
|
|
379
|
+
|
|
380
|
+
| Name | Type | Description | Notes |
|
|
381
|
+
| ---- | ---- | ----------- | ----- |
|
|
382
|
+
| **id** | **String** | | |
|
|
383
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
384
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
385
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
386
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
387
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
388
|
+
|
|
389
|
+
### Return type
|
|
390
|
+
|
|
391
|
+
[**TrialChangesResponse**](TrialChangesResponse.md)
|
|
392
|
+
|
|
393
|
+
### Authorization
|
|
394
|
+
|
|
395
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
396
|
+
|
|
397
|
+
### HTTP request headers
|
|
398
|
+
|
|
399
|
+
- **Content-Type**: Not defined
|
|
400
|
+
- **Accept**: application/json
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
## trials_trial_delivery
|
|
404
|
+
|
|
405
|
+
> <TrialDeliveryResponse> trials_trial_delivery(id, opts)
|
|
406
|
+
|
|
407
|
+
Trial delivery
|
|
408
|
+
|
|
409
|
+
### Examples
|
|
410
|
+
|
|
411
|
+
```ruby
|
|
412
|
+
require 'time'
|
|
413
|
+
require 'pharmaobservatory'
|
|
414
|
+
# setup authorization
|
|
415
|
+
PharmaObservatory.configure do |config|
|
|
416
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
417
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
421
|
+
id = 'NCT00000125' # String |
|
|
422
|
+
opts = {
|
|
423
|
+
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.
|
|
424
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
425
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
426
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
427
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
begin
|
|
431
|
+
# Trial delivery
|
|
432
|
+
result = api_instance.trials_trial_delivery(id, opts)
|
|
433
|
+
p result
|
|
434
|
+
rescue PharmaObservatory::ApiError => e
|
|
435
|
+
puts "Error when calling TrialsApi->trials_trial_delivery: #{e}"
|
|
436
|
+
end
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
#### Using the trials_trial_delivery_with_http_info variant
|
|
440
|
+
|
|
441
|
+
This returns an Array which contains the response data, status code and headers.
|
|
442
|
+
|
|
443
|
+
> <Array(<TrialDeliveryResponse>, Integer, Hash)> trials_trial_delivery_with_http_info(id, opts)
|
|
444
|
+
|
|
445
|
+
```ruby
|
|
446
|
+
begin
|
|
447
|
+
# Trial delivery
|
|
448
|
+
data, status_code, headers = api_instance.trials_trial_delivery_with_http_info(id, opts)
|
|
449
|
+
p status_code # => 2xx
|
|
450
|
+
p headers # => { ... }
|
|
451
|
+
p data # => <TrialDeliveryResponse>
|
|
452
|
+
rescue PharmaObservatory::ApiError => e
|
|
453
|
+
puts "Error when calling TrialsApi->trials_trial_delivery_with_http_info: #{e}"
|
|
454
|
+
end
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
### Parameters
|
|
458
|
+
|
|
459
|
+
| Name | Type | Description | Notes |
|
|
460
|
+
| ---- | ---- | ----------- | ----- |
|
|
461
|
+
| **id** | **String** | | |
|
|
462
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
463
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
464
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
465
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
466
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
467
|
+
|
|
468
|
+
### Return type
|
|
469
|
+
|
|
470
|
+
[**TrialDeliveryResponse**](TrialDeliveryResponse.md)
|
|
471
|
+
|
|
472
|
+
### Authorization
|
|
473
|
+
|
|
474
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
475
|
+
|
|
476
|
+
### HTTP request headers
|
|
477
|
+
|
|
478
|
+
- **Content-Type**: Not defined
|
|
479
|
+
- **Accept**: application/json
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
## trials_trial_demographics
|
|
483
|
+
|
|
484
|
+
> <TrialDemographicsResponse> trials_trial_demographics(id, opts)
|
|
485
|
+
|
|
486
|
+
Trial demographics
|
|
487
|
+
|
|
488
|
+
### Examples
|
|
489
|
+
|
|
490
|
+
```ruby
|
|
491
|
+
require 'time'
|
|
492
|
+
require 'pharmaobservatory'
|
|
493
|
+
# setup authorization
|
|
494
|
+
PharmaObservatory.configure do |config|
|
|
495
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
496
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
500
|
+
id = 'NCT00000125' # String |
|
|
501
|
+
opts = {
|
|
502
|
+
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.
|
|
503
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
504
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
505
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
506
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
begin
|
|
510
|
+
# Trial demographics
|
|
511
|
+
result = api_instance.trials_trial_demographics(id, opts)
|
|
512
|
+
p result
|
|
513
|
+
rescue PharmaObservatory::ApiError => e
|
|
514
|
+
puts "Error when calling TrialsApi->trials_trial_demographics: #{e}"
|
|
515
|
+
end
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
#### Using the trials_trial_demographics_with_http_info variant
|
|
519
|
+
|
|
520
|
+
This returns an Array which contains the response data, status code and headers.
|
|
521
|
+
|
|
522
|
+
> <Array(<TrialDemographicsResponse>, Integer, Hash)> trials_trial_demographics_with_http_info(id, opts)
|
|
523
|
+
|
|
524
|
+
```ruby
|
|
525
|
+
begin
|
|
526
|
+
# Trial demographics
|
|
527
|
+
data, status_code, headers = api_instance.trials_trial_demographics_with_http_info(id, opts)
|
|
528
|
+
p status_code # => 2xx
|
|
529
|
+
p headers # => { ... }
|
|
530
|
+
p data # => <TrialDemographicsResponse>
|
|
531
|
+
rescue PharmaObservatory::ApiError => e
|
|
532
|
+
puts "Error when calling TrialsApi->trials_trial_demographics_with_http_info: #{e}"
|
|
533
|
+
end
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Parameters
|
|
537
|
+
|
|
538
|
+
| Name | Type | Description | Notes |
|
|
539
|
+
| ---- | ---- | ----------- | ----- |
|
|
540
|
+
| **id** | **String** | | |
|
|
541
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
542
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
543
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
544
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
545
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
546
|
+
|
|
547
|
+
### Return type
|
|
548
|
+
|
|
549
|
+
[**TrialDemographicsResponse**](TrialDemographicsResponse.md)
|
|
550
|
+
|
|
551
|
+
### Authorization
|
|
552
|
+
|
|
553
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
554
|
+
|
|
555
|
+
### HTTP request headers
|
|
556
|
+
|
|
557
|
+
- **Content-Type**: Not defined
|
|
558
|
+
- **Accept**: application/json
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
## trials_trial_drugs
|
|
562
|
+
|
|
563
|
+
> <TrialDrugsResponse> trials_trial_drugs(id, opts)
|
|
564
|
+
|
|
565
|
+
Trial drugs
|
|
566
|
+
|
|
567
|
+
### Examples
|
|
568
|
+
|
|
569
|
+
```ruby
|
|
570
|
+
require 'time'
|
|
571
|
+
require 'pharmaobservatory'
|
|
572
|
+
# setup authorization
|
|
573
|
+
PharmaObservatory.configure do |config|
|
|
574
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
575
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
579
|
+
id = 'NCT00000125' # String |
|
|
580
|
+
opts = {
|
|
581
|
+
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.
|
|
582
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
583
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
584
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
585
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
begin
|
|
589
|
+
# Trial drugs
|
|
590
|
+
result = api_instance.trials_trial_drugs(id, opts)
|
|
591
|
+
p result
|
|
592
|
+
rescue PharmaObservatory::ApiError => e
|
|
593
|
+
puts "Error when calling TrialsApi->trials_trial_drugs: #{e}"
|
|
594
|
+
end
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
#### Using the trials_trial_drugs_with_http_info variant
|
|
598
|
+
|
|
599
|
+
This returns an Array which contains the response data, status code and headers.
|
|
600
|
+
|
|
601
|
+
> <Array(<TrialDrugsResponse>, Integer, Hash)> trials_trial_drugs_with_http_info(id, opts)
|
|
602
|
+
|
|
603
|
+
```ruby
|
|
604
|
+
begin
|
|
605
|
+
# Trial drugs
|
|
606
|
+
data, status_code, headers = api_instance.trials_trial_drugs_with_http_info(id, opts)
|
|
607
|
+
p status_code # => 2xx
|
|
608
|
+
p headers # => { ... }
|
|
609
|
+
p data # => <TrialDrugsResponse>
|
|
610
|
+
rescue PharmaObservatory::ApiError => e
|
|
611
|
+
puts "Error when calling TrialsApi->trials_trial_drugs_with_http_info: #{e}"
|
|
612
|
+
end
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
### Parameters
|
|
616
|
+
|
|
617
|
+
| Name | Type | Description | Notes |
|
|
618
|
+
| ---- | ---- | ----------- | ----- |
|
|
619
|
+
| **id** | **String** | | |
|
|
620
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
621
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
622
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
623
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
624
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
625
|
+
|
|
626
|
+
### Return type
|
|
627
|
+
|
|
628
|
+
[**TrialDrugsResponse**](TrialDrugsResponse.md)
|
|
629
|
+
|
|
630
|
+
### Authorization
|
|
631
|
+
|
|
632
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
633
|
+
|
|
634
|
+
### HTTP request headers
|
|
635
|
+
|
|
636
|
+
- **Content-Type**: Not defined
|
|
637
|
+
- **Accept**: application/json
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
## trials_trial_enrollment_history
|
|
641
|
+
|
|
642
|
+
> <TrialEnrollmentHistoryResponse> trials_trial_enrollment_history(id, opts)
|
|
643
|
+
|
|
644
|
+
Trial enrollment history
|
|
645
|
+
|
|
646
|
+
### Examples
|
|
647
|
+
|
|
648
|
+
```ruby
|
|
649
|
+
require 'time'
|
|
650
|
+
require 'pharmaobservatory'
|
|
651
|
+
# setup authorization
|
|
652
|
+
PharmaObservatory.configure do |config|
|
|
653
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
654
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
658
|
+
id = 'NCT00000125' # String |
|
|
659
|
+
opts = {
|
|
660
|
+
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.
|
|
661
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
662
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
663
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
664
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
begin
|
|
668
|
+
# Trial enrollment history
|
|
669
|
+
result = api_instance.trials_trial_enrollment_history(id, opts)
|
|
670
|
+
p result
|
|
671
|
+
rescue PharmaObservatory::ApiError => e
|
|
672
|
+
puts "Error when calling TrialsApi->trials_trial_enrollment_history: #{e}"
|
|
673
|
+
end
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
#### Using the trials_trial_enrollment_history_with_http_info variant
|
|
677
|
+
|
|
678
|
+
This returns an Array which contains the response data, status code and headers.
|
|
679
|
+
|
|
680
|
+
> <Array(<TrialEnrollmentHistoryResponse>, Integer, Hash)> trials_trial_enrollment_history_with_http_info(id, opts)
|
|
681
|
+
|
|
682
|
+
```ruby
|
|
683
|
+
begin
|
|
684
|
+
# Trial enrollment history
|
|
685
|
+
data, status_code, headers = api_instance.trials_trial_enrollment_history_with_http_info(id, opts)
|
|
686
|
+
p status_code # => 2xx
|
|
687
|
+
p headers # => { ... }
|
|
688
|
+
p data # => <TrialEnrollmentHistoryResponse>
|
|
689
|
+
rescue PharmaObservatory::ApiError => e
|
|
690
|
+
puts "Error when calling TrialsApi->trials_trial_enrollment_history_with_http_info: #{e}"
|
|
691
|
+
end
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
### Parameters
|
|
695
|
+
|
|
696
|
+
| Name | Type | Description | Notes |
|
|
697
|
+
| ---- | ---- | ----------- | ----- |
|
|
698
|
+
| **id** | **String** | | |
|
|
699
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
700
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
701
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
702
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
703
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
704
|
+
|
|
705
|
+
### Return type
|
|
706
|
+
|
|
707
|
+
[**TrialEnrollmentHistoryResponse**](TrialEnrollmentHistoryResponse.md)
|
|
708
|
+
|
|
709
|
+
### Authorization
|
|
710
|
+
|
|
711
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
712
|
+
|
|
713
|
+
### HTTP request headers
|
|
714
|
+
|
|
715
|
+
- **Content-Type**: Not defined
|
|
716
|
+
- **Accept**: application/json
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
## trials_trial_enrollment_rate
|
|
720
|
+
|
|
721
|
+
> <TrialEnrollmentRateResponse> trials_trial_enrollment_rate(id, opts)
|
|
722
|
+
|
|
723
|
+
Trial enrollment rate
|
|
724
|
+
|
|
725
|
+
### Examples
|
|
726
|
+
|
|
727
|
+
```ruby
|
|
728
|
+
require 'time'
|
|
729
|
+
require 'pharmaobservatory'
|
|
730
|
+
# setup authorization
|
|
731
|
+
PharmaObservatory.configure do |config|
|
|
732
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
733
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
737
|
+
id = 'NCT00000125' # String |
|
|
738
|
+
opts = {
|
|
739
|
+
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.
|
|
740
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
741
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
742
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
743
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
begin
|
|
747
|
+
# Trial enrollment rate
|
|
748
|
+
result = api_instance.trials_trial_enrollment_rate(id, opts)
|
|
749
|
+
p result
|
|
750
|
+
rescue PharmaObservatory::ApiError => e
|
|
751
|
+
puts "Error when calling TrialsApi->trials_trial_enrollment_rate: #{e}"
|
|
752
|
+
end
|
|
753
|
+
```
|
|
754
|
+
|
|
755
|
+
#### Using the trials_trial_enrollment_rate_with_http_info variant
|
|
756
|
+
|
|
757
|
+
This returns an Array which contains the response data, status code and headers.
|
|
758
|
+
|
|
759
|
+
> <Array(<TrialEnrollmentRateResponse>, Integer, Hash)> trials_trial_enrollment_rate_with_http_info(id, opts)
|
|
760
|
+
|
|
761
|
+
```ruby
|
|
762
|
+
begin
|
|
763
|
+
# Trial enrollment rate
|
|
764
|
+
data, status_code, headers = api_instance.trials_trial_enrollment_rate_with_http_info(id, opts)
|
|
765
|
+
p status_code # => 2xx
|
|
766
|
+
p headers # => { ... }
|
|
767
|
+
p data # => <TrialEnrollmentRateResponse>
|
|
768
|
+
rescue PharmaObservatory::ApiError => e
|
|
769
|
+
puts "Error when calling TrialsApi->trials_trial_enrollment_rate_with_http_info: #{e}"
|
|
770
|
+
end
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
### Parameters
|
|
774
|
+
|
|
775
|
+
| Name | Type | Description | Notes |
|
|
776
|
+
| ---- | ---- | ----------- | ----- |
|
|
777
|
+
| **id** | **String** | | |
|
|
778
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
779
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
780
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
781
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
782
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
783
|
+
|
|
784
|
+
### Return type
|
|
785
|
+
|
|
786
|
+
[**TrialEnrollmentRateResponse**](TrialEnrollmentRateResponse.md)
|
|
787
|
+
|
|
788
|
+
### Authorization
|
|
789
|
+
|
|
790
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
791
|
+
|
|
792
|
+
### HTTP request headers
|
|
793
|
+
|
|
794
|
+
- **Content-Type**: Not defined
|
|
795
|
+
- **Accept**: application/json
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
## trials_trial_extracted_endpoints
|
|
799
|
+
|
|
800
|
+
> <TrialExtractedEndpointsResponse> trials_trial_extracted_endpoints(id, opts)
|
|
801
|
+
|
|
802
|
+
Trial extracted endpoints
|
|
803
|
+
|
|
804
|
+
### Examples
|
|
805
|
+
|
|
806
|
+
```ruby
|
|
807
|
+
require 'time'
|
|
808
|
+
require 'pharmaobservatory'
|
|
809
|
+
# setup authorization
|
|
810
|
+
PharmaObservatory.configure do |config|
|
|
811
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
812
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
816
|
+
id = 'NCT00000125' # String |
|
|
817
|
+
opts = {
|
|
818
|
+
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.
|
|
819
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
820
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
821
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
822
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
begin
|
|
826
|
+
# Trial extracted endpoints
|
|
827
|
+
result = api_instance.trials_trial_extracted_endpoints(id, opts)
|
|
828
|
+
p result
|
|
829
|
+
rescue PharmaObservatory::ApiError => e
|
|
830
|
+
puts "Error when calling TrialsApi->trials_trial_extracted_endpoints: #{e}"
|
|
831
|
+
end
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
#### Using the trials_trial_extracted_endpoints_with_http_info variant
|
|
835
|
+
|
|
836
|
+
This returns an Array which contains the response data, status code and headers.
|
|
837
|
+
|
|
838
|
+
> <Array(<TrialExtractedEndpointsResponse>, Integer, Hash)> trials_trial_extracted_endpoints_with_http_info(id, opts)
|
|
839
|
+
|
|
840
|
+
```ruby
|
|
841
|
+
begin
|
|
842
|
+
# Trial extracted endpoints
|
|
843
|
+
data, status_code, headers = api_instance.trials_trial_extracted_endpoints_with_http_info(id, opts)
|
|
844
|
+
p status_code # => 2xx
|
|
845
|
+
p headers # => { ... }
|
|
846
|
+
p data # => <TrialExtractedEndpointsResponse>
|
|
847
|
+
rescue PharmaObservatory::ApiError => e
|
|
848
|
+
puts "Error when calling TrialsApi->trials_trial_extracted_endpoints_with_http_info: #{e}"
|
|
849
|
+
end
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
### Parameters
|
|
853
|
+
|
|
854
|
+
| Name | Type | Description | Notes |
|
|
855
|
+
| ---- | ---- | ----------- | ----- |
|
|
856
|
+
| **id** | **String** | | |
|
|
857
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
858
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
859
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
860
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
861
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
862
|
+
|
|
863
|
+
### Return type
|
|
864
|
+
|
|
865
|
+
[**TrialExtractedEndpointsResponse**](TrialExtractedEndpointsResponse.md)
|
|
866
|
+
|
|
867
|
+
### Authorization
|
|
868
|
+
|
|
869
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
870
|
+
|
|
871
|
+
### HTTP request headers
|
|
872
|
+
|
|
873
|
+
- **Content-Type**: Not defined
|
|
874
|
+
- **Accept**: application/json
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
## trials_trial_outcome_measures
|
|
878
|
+
|
|
879
|
+
> <TrialOutcomeMeasuresResponse> trials_trial_outcome_measures(id, opts)
|
|
880
|
+
|
|
881
|
+
Trial outcome measures
|
|
882
|
+
|
|
883
|
+
### Examples
|
|
884
|
+
|
|
885
|
+
```ruby
|
|
886
|
+
require 'time'
|
|
887
|
+
require 'pharmaobservatory'
|
|
888
|
+
# setup authorization
|
|
889
|
+
PharmaObservatory.configure do |config|
|
|
890
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
891
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
895
|
+
id = 'NCT00000125' # String |
|
|
896
|
+
opts = {
|
|
897
|
+
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.
|
|
898
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
899
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
900
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
901
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
begin
|
|
905
|
+
# Trial outcome measures
|
|
906
|
+
result = api_instance.trials_trial_outcome_measures(id, opts)
|
|
907
|
+
p result
|
|
908
|
+
rescue PharmaObservatory::ApiError => e
|
|
909
|
+
puts "Error when calling TrialsApi->trials_trial_outcome_measures: #{e}"
|
|
910
|
+
end
|
|
911
|
+
```
|
|
912
|
+
|
|
913
|
+
#### Using the trials_trial_outcome_measures_with_http_info variant
|
|
914
|
+
|
|
915
|
+
This returns an Array which contains the response data, status code and headers.
|
|
916
|
+
|
|
917
|
+
> <Array(<TrialOutcomeMeasuresResponse>, Integer, Hash)> trials_trial_outcome_measures_with_http_info(id, opts)
|
|
918
|
+
|
|
919
|
+
```ruby
|
|
920
|
+
begin
|
|
921
|
+
# Trial outcome measures
|
|
922
|
+
data, status_code, headers = api_instance.trials_trial_outcome_measures_with_http_info(id, opts)
|
|
923
|
+
p status_code # => 2xx
|
|
924
|
+
p headers # => { ... }
|
|
925
|
+
p data # => <TrialOutcomeMeasuresResponse>
|
|
926
|
+
rescue PharmaObservatory::ApiError => e
|
|
927
|
+
puts "Error when calling TrialsApi->trials_trial_outcome_measures_with_http_info: #{e}"
|
|
928
|
+
end
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
### Parameters
|
|
932
|
+
|
|
933
|
+
| Name | Type | Description | Notes |
|
|
934
|
+
| ---- | ---- | ----------- | ----- |
|
|
935
|
+
| **id** | **String** | | |
|
|
936
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
937
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
938
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
939
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
940
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
941
|
+
|
|
942
|
+
### Return type
|
|
943
|
+
|
|
944
|
+
[**TrialOutcomeMeasuresResponse**](TrialOutcomeMeasuresResponse.md)
|
|
945
|
+
|
|
946
|
+
### Authorization
|
|
947
|
+
|
|
948
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
949
|
+
|
|
950
|
+
### HTTP request headers
|
|
951
|
+
|
|
952
|
+
- **Content-Type**: Not defined
|
|
953
|
+
- **Accept**: application/json
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
## trials_trial_sites
|
|
957
|
+
|
|
958
|
+
> <TrialSitesResponse> trials_trial_sites(id, opts)
|
|
959
|
+
|
|
960
|
+
Trial sites
|
|
961
|
+
|
|
962
|
+
### Examples
|
|
963
|
+
|
|
964
|
+
```ruby
|
|
965
|
+
require 'time'
|
|
966
|
+
require 'pharmaobservatory'
|
|
967
|
+
# setup authorization
|
|
968
|
+
PharmaObservatory.configure do |config|
|
|
969
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
970
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
api_instance = PharmaObservatory::TrialsApi.new
|
|
974
|
+
id = 'NCT00000125' # String |
|
|
975
|
+
opts = {
|
|
976
|
+
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.
|
|
977
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
978
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
979
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
980
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
begin
|
|
984
|
+
# Trial sites
|
|
985
|
+
result = api_instance.trials_trial_sites(id, opts)
|
|
986
|
+
p result
|
|
987
|
+
rescue PharmaObservatory::ApiError => e
|
|
988
|
+
puts "Error when calling TrialsApi->trials_trial_sites: #{e}"
|
|
989
|
+
end
|
|
990
|
+
```
|
|
991
|
+
|
|
992
|
+
#### Using the trials_trial_sites_with_http_info variant
|
|
993
|
+
|
|
994
|
+
This returns an Array which contains the response data, status code and headers.
|
|
995
|
+
|
|
996
|
+
> <Array(<TrialSitesResponse>, Integer, Hash)> trials_trial_sites_with_http_info(id, opts)
|
|
997
|
+
|
|
998
|
+
```ruby
|
|
999
|
+
begin
|
|
1000
|
+
# Trial sites
|
|
1001
|
+
data, status_code, headers = api_instance.trials_trial_sites_with_http_info(id, opts)
|
|
1002
|
+
p status_code # => 2xx
|
|
1003
|
+
p headers # => { ... }
|
|
1004
|
+
p data # => <TrialSitesResponse>
|
|
1005
|
+
rescue PharmaObservatory::ApiError => e
|
|
1006
|
+
puts "Error when calling TrialsApi->trials_trial_sites_with_http_info: #{e}"
|
|
1007
|
+
end
|
|
1008
|
+
```
|
|
1009
|
+
|
|
1010
|
+
### Parameters
|
|
1011
|
+
|
|
1012
|
+
| Name | Type | Description | Notes |
|
|
1013
|
+
| ---- | ---- | ----------- | ----- |
|
|
1014
|
+
| **id** | **String** | | |
|
|
1015
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
1016
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
1017
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
1018
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
1019
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
1020
|
+
|
|
1021
|
+
### Return type
|
|
1022
|
+
|
|
1023
|
+
[**TrialSitesResponse**](TrialSitesResponse.md)
|
|
1024
|
+
|
|
1025
|
+
### Authorization
|
|
1026
|
+
|
|
1027
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
1028
|
+
|
|
1029
|
+
### HTTP request headers
|
|
1030
|
+
|
|
1031
|
+
- **Content-Type**: Not defined
|
|
1032
|
+
- **Accept**: application/json
|
|
1033
|
+
|