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
|
@@ -0,0 +1,953 @@
|
|
|
1
|
+
# PharmaObservatory::ConditionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://pharmaobservatory.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**conditions_company_programs**](ConditionsApi.md#conditions_company_programs) | **GET** /api/v1/conditions/{id}/company_programs | Company programs |
|
|
8
|
+
| [**conditions_condition_adverse_events**](ConditionsApi.md#conditions_condition_adverse_events) | **GET** /api/v1/conditions/{id}/condition_adverse_events | Condition adverse events |
|
|
9
|
+
| [**conditions_condition_burden**](ConditionsApi.md#conditions_condition_burden) | **GET** /api/v1/conditions/{id}/condition_burden | Condition burden |
|
|
10
|
+
| [**conditions_condition_delivery**](ConditionsApi.md#conditions_condition_delivery) | **GET** /api/v1/conditions/{id}/condition_delivery | Condition delivery |
|
|
11
|
+
| [**conditions_condition_drugs**](ConditionsApi.md#conditions_condition_drugs) | **GET** /api/v1/conditions/{id}/condition_drugs | Condition drugs |
|
|
12
|
+
| [**conditions_condition_prevalence**](ConditionsApi.md#conditions_condition_prevalence) | **GET** /api/v1/conditions/{id}/condition_prevalence | Condition prevalence |
|
|
13
|
+
| [**conditions_condition_publications**](ConditionsApi.md#conditions_condition_publications) | **GET** /api/v1/conditions/{id}/condition_publications | Condition publications |
|
|
14
|
+
| [**conditions_condition_sites**](ConditionsApi.md#conditions_condition_sites) | **GET** /api/v1/conditions/{id}/condition_sites | Condition sites |
|
|
15
|
+
| [**conditions_condition_trials**](ConditionsApi.md#conditions_condition_trials) | **GET** /api/v1/conditions/{id}/condition_trials | Condition trials |
|
|
16
|
+
| [**conditions_get**](ConditionsApi.md#conditions_get) | **GET** /api/v1/conditions/{id} | One condition |
|
|
17
|
+
| [**conditions_list**](ConditionsApi.md#conditions_list) | **GET** /api/v1/conditions | List conditions |
|
|
18
|
+
| [**conditions_pdufa_dates**](ConditionsApi.md#conditions_pdufa_dates) | **GET** /api/v1/conditions/{id}/pdufa_dates | FDA decision dates (PDUFA) and catalysts |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## conditions_company_programs
|
|
22
|
+
|
|
23
|
+
> <CompanyProgramsResponse> conditions_company_programs(id, opts)
|
|
24
|
+
|
|
25
|
+
Company programs
|
|
26
|
+
|
|
27
|
+
### Examples
|
|
28
|
+
|
|
29
|
+
```ruby
|
|
30
|
+
require 'time'
|
|
31
|
+
require 'pharmaobservatory'
|
|
32
|
+
# setup authorization
|
|
33
|
+
PharmaObservatory.configure do |config|
|
|
34
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
35
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
39
|
+
id = 'D001523' # String |
|
|
40
|
+
opts = {
|
|
41
|
+
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.
|
|
42
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
43
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
44
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
45
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
begin
|
|
49
|
+
# Company programs
|
|
50
|
+
result = api_instance.conditions_company_programs(id, opts)
|
|
51
|
+
p result
|
|
52
|
+
rescue PharmaObservatory::ApiError => e
|
|
53
|
+
puts "Error when calling ConditionsApi->conditions_company_programs: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### Using the conditions_company_programs_with_http_info variant
|
|
58
|
+
|
|
59
|
+
This returns an Array which contains the response data, status code and headers.
|
|
60
|
+
|
|
61
|
+
> <Array(<CompanyProgramsResponse>, Integer, Hash)> conditions_company_programs_with_http_info(id, opts)
|
|
62
|
+
|
|
63
|
+
```ruby
|
|
64
|
+
begin
|
|
65
|
+
# Company programs
|
|
66
|
+
data, status_code, headers = api_instance.conditions_company_programs_with_http_info(id, opts)
|
|
67
|
+
p status_code # => 2xx
|
|
68
|
+
p headers # => { ... }
|
|
69
|
+
p data # => <CompanyProgramsResponse>
|
|
70
|
+
rescue PharmaObservatory::ApiError => e
|
|
71
|
+
puts "Error when calling ConditionsApi->conditions_company_programs_with_http_info: #{e}"
|
|
72
|
+
end
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Parameters
|
|
76
|
+
|
|
77
|
+
| Name | Type | Description | Notes |
|
|
78
|
+
| ---- | ---- | ----------- | ----- |
|
|
79
|
+
| **id** | **String** | | |
|
|
80
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
81
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
82
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
83
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
84
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
[**CompanyProgramsResponse**](CompanyProgramsResponse.md)
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## conditions_condition_adverse_events
|
|
101
|
+
|
|
102
|
+
> <ConditionAdverseEventsResponse> conditions_condition_adverse_events(id, opts)
|
|
103
|
+
|
|
104
|
+
Condition adverse events
|
|
105
|
+
|
|
106
|
+
### Examples
|
|
107
|
+
|
|
108
|
+
```ruby
|
|
109
|
+
require 'time'
|
|
110
|
+
require 'pharmaobservatory'
|
|
111
|
+
# setup authorization
|
|
112
|
+
PharmaObservatory.configure do |config|
|
|
113
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
114
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
118
|
+
id = 'D001523' # String |
|
|
119
|
+
opts = {
|
|
120
|
+
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.
|
|
121
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
122
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
123
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
124
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
begin
|
|
128
|
+
# Condition adverse events
|
|
129
|
+
result = api_instance.conditions_condition_adverse_events(id, opts)
|
|
130
|
+
p result
|
|
131
|
+
rescue PharmaObservatory::ApiError => e
|
|
132
|
+
puts "Error when calling ConditionsApi->conditions_condition_adverse_events: #{e}"
|
|
133
|
+
end
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
#### Using the conditions_condition_adverse_events_with_http_info variant
|
|
137
|
+
|
|
138
|
+
This returns an Array which contains the response data, status code and headers.
|
|
139
|
+
|
|
140
|
+
> <Array(<ConditionAdverseEventsResponse>, Integer, Hash)> conditions_condition_adverse_events_with_http_info(id, opts)
|
|
141
|
+
|
|
142
|
+
```ruby
|
|
143
|
+
begin
|
|
144
|
+
# Condition adverse events
|
|
145
|
+
data, status_code, headers = api_instance.conditions_condition_adverse_events_with_http_info(id, opts)
|
|
146
|
+
p status_code # => 2xx
|
|
147
|
+
p headers # => { ... }
|
|
148
|
+
p data # => <ConditionAdverseEventsResponse>
|
|
149
|
+
rescue PharmaObservatory::ApiError => e
|
|
150
|
+
puts "Error when calling ConditionsApi->conditions_condition_adverse_events_with_http_info: #{e}"
|
|
151
|
+
end
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
| Name | Type | Description | Notes |
|
|
157
|
+
| ---- | ---- | ----------- | ----- |
|
|
158
|
+
| **id** | **String** | | |
|
|
159
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
160
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
161
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
162
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
163
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
[**ConditionAdverseEventsResponse**](ConditionAdverseEventsResponse.md)
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: Not defined
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## conditions_condition_burden
|
|
180
|
+
|
|
181
|
+
> <ConditionBurdenResponse> conditions_condition_burden(id, opts)
|
|
182
|
+
|
|
183
|
+
Condition burden
|
|
184
|
+
|
|
185
|
+
### Examples
|
|
186
|
+
|
|
187
|
+
```ruby
|
|
188
|
+
require 'time'
|
|
189
|
+
require 'pharmaobservatory'
|
|
190
|
+
# setup authorization
|
|
191
|
+
PharmaObservatory.configure do |config|
|
|
192
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
193
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
197
|
+
id = 'D001523' # String |
|
|
198
|
+
opts = {
|
|
199
|
+
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.
|
|
200
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
201
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
202
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
203
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
begin
|
|
207
|
+
# Condition burden
|
|
208
|
+
result = api_instance.conditions_condition_burden(id, opts)
|
|
209
|
+
p result
|
|
210
|
+
rescue PharmaObservatory::ApiError => e
|
|
211
|
+
puts "Error when calling ConditionsApi->conditions_condition_burden: #{e}"
|
|
212
|
+
end
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
#### Using the conditions_condition_burden_with_http_info variant
|
|
216
|
+
|
|
217
|
+
This returns an Array which contains the response data, status code and headers.
|
|
218
|
+
|
|
219
|
+
> <Array(<ConditionBurdenResponse>, Integer, Hash)> conditions_condition_burden_with_http_info(id, opts)
|
|
220
|
+
|
|
221
|
+
```ruby
|
|
222
|
+
begin
|
|
223
|
+
# Condition burden
|
|
224
|
+
data, status_code, headers = api_instance.conditions_condition_burden_with_http_info(id, opts)
|
|
225
|
+
p status_code # => 2xx
|
|
226
|
+
p headers # => { ... }
|
|
227
|
+
p data # => <ConditionBurdenResponse>
|
|
228
|
+
rescue PharmaObservatory::ApiError => e
|
|
229
|
+
puts "Error when calling ConditionsApi->conditions_condition_burden_with_http_info: #{e}"
|
|
230
|
+
end
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Parameters
|
|
234
|
+
|
|
235
|
+
| Name | Type | Description | Notes |
|
|
236
|
+
| ---- | ---- | ----------- | ----- |
|
|
237
|
+
| **id** | **String** | | |
|
|
238
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
239
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
240
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
241
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
242
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
243
|
+
|
|
244
|
+
### Return type
|
|
245
|
+
|
|
246
|
+
[**ConditionBurdenResponse**](ConditionBurdenResponse.md)
|
|
247
|
+
|
|
248
|
+
### Authorization
|
|
249
|
+
|
|
250
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
251
|
+
|
|
252
|
+
### HTTP request headers
|
|
253
|
+
|
|
254
|
+
- **Content-Type**: Not defined
|
|
255
|
+
- **Accept**: application/json
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## conditions_condition_delivery
|
|
259
|
+
|
|
260
|
+
> <ConditionDeliveryResponse> conditions_condition_delivery(id, opts)
|
|
261
|
+
|
|
262
|
+
Condition delivery
|
|
263
|
+
|
|
264
|
+
### Examples
|
|
265
|
+
|
|
266
|
+
```ruby
|
|
267
|
+
require 'time'
|
|
268
|
+
require 'pharmaobservatory'
|
|
269
|
+
# setup authorization
|
|
270
|
+
PharmaObservatory.configure do |config|
|
|
271
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
272
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
276
|
+
id = 'D001523' # String |
|
|
277
|
+
opts = {
|
|
278
|
+
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.
|
|
279
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
280
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
281
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
282
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
begin
|
|
286
|
+
# Condition delivery
|
|
287
|
+
result = api_instance.conditions_condition_delivery(id, opts)
|
|
288
|
+
p result
|
|
289
|
+
rescue PharmaObservatory::ApiError => e
|
|
290
|
+
puts "Error when calling ConditionsApi->conditions_condition_delivery: #{e}"
|
|
291
|
+
end
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
#### Using the conditions_condition_delivery_with_http_info variant
|
|
295
|
+
|
|
296
|
+
This returns an Array which contains the response data, status code and headers.
|
|
297
|
+
|
|
298
|
+
> <Array(<ConditionDeliveryResponse>, Integer, Hash)> conditions_condition_delivery_with_http_info(id, opts)
|
|
299
|
+
|
|
300
|
+
```ruby
|
|
301
|
+
begin
|
|
302
|
+
# Condition delivery
|
|
303
|
+
data, status_code, headers = api_instance.conditions_condition_delivery_with_http_info(id, opts)
|
|
304
|
+
p status_code # => 2xx
|
|
305
|
+
p headers # => { ... }
|
|
306
|
+
p data # => <ConditionDeliveryResponse>
|
|
307
|
+
rescue PharmaObservatory::ApiError => e
|
|
308
|
+
puts "Error when calling ConditionsApi->conditions_condition_delivery_with_http_info: #{e}"
|
|
309
|
+
end
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### Parameters
|
|
313
|
+
|
|
314
|
+
| Name | Type | Description | Notes |
|
|
315
|
+
| ---- | ---- | ----------- | ----- |
|
|
316
|
+
| **id** | **String** | | |
|
|
317
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
318
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
319
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
320
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
321
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
322
|
+
|
|
323
|
+
### Return type
|
|
324
|
+
|
|
325
|
+
[**ConditionDeliveryResponse**](ConditionDeliveryResponse.md)
|
|
326
|
+
|
|
327
|
+
### Authorization
|
|
328
|
+
|
|
329
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
330
|
+
|
|
331
|
+
### HTTP request headers
|
|
332
|
+
|
|
333
|
+
- **Content-Type**: Not defined
|
|
334
|
+
- **Accept**: application/json
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
## conditions_condition_drugs
|
|
338
|
+
|
|
339
|
+
> <ConditionDrugsResponse> conditions_condition_drugs(id, opts)
|
|
340
|
+
|
|
341
|
+
Condition drugs
|
|
342
|
+
|
|
343
|
+
### Examples
|
|
344
|
+
|
|
345
|
+
```ruby
|
|
346
|
+
require 'time'
|
|
347
|
+
require 'pharmaobservatory'
|
|
348
|
+
# setup authorization
|
|
349
|
+
PharmaObservatory.configure do |config|
|
|
350
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
351
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
355
|
+
id = 'D001523' # String |
|
|
356
|
+
opts = {
|
|
357
|
+
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.
|
|
358
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
359
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
360
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
361
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
begin
|
|
365
|
+
# Condition drugs
|
|
366
|
+
result = api_instance.conditions_condition_drugs(id, opts)
|
|
367
|
+
p result
|
|
368
|
+
rescue PharmaObservatory::ApiError => e
|
|
369
|
+
puts "Error when calling ConditionsApi->conditions_condition_drugs: #{e}"
|
|
370
|
+
end
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
#### Using the conditions_condition_drugs_with_http_info variant
|
|
374
|
+
|
|
375
|
+
This returns an Array which contains the response data, status code and headers.
|
|
376
|
+
|
|
377
|
+
> <Array(<ConditionDrugsResponse>, Integer, Hash)> conditions_condition_drugs_with_http_info(id, opts)
|
|
378
|
+
|
|
379
|
+
```ruby
|
|
380
|
+
begin
|
|
381
|
+
# Condition drugs
|
|
382
|
+
data, status_code, headers = api_instance.conditions_condition_drugs_with_http_info(id, opts)
|
|
383
|
+
p status_code # => 2xx
|
|
384
|
+
p headers # => { ... }
|
|
385
|
+
p data # => <ConditionDrugsResponse>
|
|
386
|
+
rescue PharmaObservatory::ApiError => e
|
|
387
|
+
puts "Error when calling ConditionsApi->conditions_condition_drugs_with_http_info: #{e}"
|
|
388
|
+
end
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Parameters
|
|
392
|
+
|
|
393
|
+
| Name | Type | Description | Notes |
|
|
394
|
+
| ---- | ---- | ----------- | ----- |
|
|
395
|
+
| **id** | **String** | | |
|
|
396
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
397
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
398
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
399
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
400
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
401
|
+
|
|
402
|
+
### Return type
|
|
403
|
+
|
|
404
|
+
[**ConditionDrugsResponse**](ConditionDrugsResponse.md)
|
|
405
|
+
|
|
406
|
+
### Authorization
|
|
407
|
+
|
|
408
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
409
|
+
|
|
410
|
+
### HTTP request headers
|
|
411
|
+
|
|
412
|
+
- **Content-Type**: Not defined
|
|
413
|
+
- **Accept**: application/json
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
## conditions_condition_prevalence
|
|
417
|
+
|
|
418
|
+
> <ConditionPrevalenceResponse> conditions_condition_prevalence(id, opts)
|
|
419
|
+
|
|
420
|
+
Condition prevalence
|
|
421
|
+
|
|
422
|
+
### Examples
|
|
423
|
+
|
|
424
|
+
```ruby
|
|
425
|
+
require 'time'
|
|
426
|
+
require 'pharmaobservatory'
|
|
427
|
+
# setup authorization
|
|
428
|
+
PharmaObservatory.configure do |config|
|
|
429
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
430
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
434
|
+
id = 'D001523' # String |
|
|
435
|
+
opts = {
|
|
436
|
+
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.
|
|
437
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
438
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
439
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
440
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
begin
|
|
444
|
+
# Condition prevalence
|
|
445
|
+
result = api_instance.conditions_condition_prevalence(id, opts)
|
|
446
|
+
p result
|
|
447
|
+
rescue PharmaObservatory::ApiError => e
|
|
448
|
+
puts "Error when calling ConditionsApi->conditions_condition_prevalence: #{e}"
|
|
449
|
+
end
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
#### Using the conditions_condition_prevalence_with_http_info variant
|
|
453
|
+
|
|
454
|
+
This returns an Array which contains the response data, status code and headers.
|
|
455
|
+
|
|
456
|
+
> <Array(<ConditionPrevalenceResponse>, Integer, Hash)> conditions_condition_prevalence_with_http_info(id, opts)
|
|
457
|
+
|
|
458
|
+
```ruby
|
|
459
|
+
begin
|
|
460
|
+
# Condition prevalence
|
|
461
|
+
data, status_code, headers = api_instance.conditions_condition_prevalence_with_http_info(id, opts)
|
|
462
|
+
p status_code # => 2xx
|
|
463
|
+
p headers # => { ... }
|
|
464
|
+
p data # => <ConditionPrevalenceResponse>
|
|
465
|
+
rescue PharmaObservatory::ApiError => e
|
|
466
|
+
puts "Error when calling ConditionsApi->conditions_condition_prevalence_with_http_info: #{e}"
|
|
467
|
+
end
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
### Parameters
|
|
471
|
+
|
|
472
|
+
| Name | Type | Description | Notes |
|
|
473
|
+
| ---- | ---- | ----------- | ----- |
|
|
474
|
+
| **id** | **String** | | |
|
|
475
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
476
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
477
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
478
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
479
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
480
|
+
|
|
481
|
+
### Return type
|
|
482
|
+
|
|
483
|
+
[**ConditionPrevalenceResponse**](ConditionPrevalenceResponse.md)
|
|
484
|
+
|
|
485
|
+
### Authorization
|
|
486
|
+
|
|
487
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
488
|
+
|
|
489
|
+
### HTTP request headers
|
|
490
|
+
|
|
491
|
+
- **Content-Type**: Not defined
|
|
492
|
+
- **Accept**: application/json
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
## conditions_condition_publications
|
|
496
|
+
|
|
497
|
+
> <ConditionPublicationsResponse> conditions_condition_publications(id, opts)
|
|
498
|
+
|
|
499
|
+
Condition publications
|
|
500
|
+
|
|
501
|
+
### Examples
|
|
502
|
+
|
|
503
|
+
```ruby
|
|
504
|
+
require 'time'
|
|
505
|
+
require 'pharmaobservatory'
|
|
506
|
+
# setup authorization
|
|
507
|
+
PharmaObservatory.configure do |config|
|
|
508
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
509
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
513
|
+
id = 'D001523' # String |
|
|
514
|
+
opts = {
|
|
515
|
+
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.
|
|
516
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
517
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
518
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
519
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
begin
|
|
523
|
+
# Condition publications
|
|
524
|
+
result = api_instance.conditions_condition_publications(id, opts)
|
|
525
|
+
p result
|
|
526
|
+
rescue PharmaObservatory::ApiError => e
|
|
527
|
+
puts "Error when calling ConditionsApi->conditions_condition_publications: #{e}"
|
|
528
|
+
end
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
#### Using the conditions_condition_publications_with_http_info variant
|
|
532
|
+
|
|
533
|
+
This returns an Array which contains the response data, status code and headers.
|
|
534
|
+
|
|
535
|
+
> <Array(<ConditionPublicationsResponse>, Integer, Hash)> conditions_condition_publications_with_http_info(id, opts)
|
|
536
|
+
|
|
537
|
+
```ruby
|
|
538
|
+
begin
|
|
539
|
+
# Condition publications
|
|
540
|
+
data, status_code, headers = api_instance.conditions_condition_publications_with_http_info(id, opts)
|
|
541
|
+
p status_code # => 2xx
|
|
542
|
+
p headers # => { ... }
|
|
543
|
+
p data # => <ConditionPublicationsResponse>
|
|
544
|
+
rescue PharmaObservatory::ApiError => e
|
|
545
|
+
puts "Error when calling ConditionsApi->conditions_condition_publications_with_http_info: #{e}"
|
|
546
|
+
end
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Parameters
|
|
550
|
+
|
|
551
|
+
| Name | Type | Description | Notes |
|
|
552
|
+
| ---- | ---- | ----------- | ----- |
|
|
553
|
+
| **id** | **String** | | |
|
|
554
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
555
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
556
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
557
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
558
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
559
|
+
|
|
560
|
+
### Return type
|
|
561
|
+
|
|
562
|
+
[**ConditionPublicationsResponse**](ConditionPublicationsResponse.md)
|
|
563
|
+
|
|
564
|
+
### Authorization
|
|
565
|
+
|
|
566
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
567
|
+
|
|
568
|
+
### HTTP request headers
|
|
569
|
+
|
|
570
|
+
- **Content-Type**: Not defined
|
|
571
|
+
- **Accept**: application/json
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
## conditions_condition_sites
|
|
575
|
+
|
|
576
|
+
> <ConditionSitesResponse> conditions_condition_sites(id, opts)
|
|
577
|
+
|
|
578
|
+
Condition sites
|
|
579
|
+
|
|
580
|
+
### Examples
|
|
581
|
+
|
|
582
|
+
```ruby
|
|
583
|
+
require 'time'
|
|
584
|
+
require 'pharmaobservatory'
|
|
585
|
+
# setup authorization
|
|
586
|
+
PharmaObservatory.configure do |config|
|
|
587
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
588
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
589
|
+
end
|
|
590
|
+
|
|
591
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
592
|
+
id = 'D001523' # String |
|
|
593
|
+
opts = {
|
|
594
|
+
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.
|
|
595
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
596
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
597
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
598
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
begin
|
|
602
|
+
# Condition sites
|
|
603
|
+
result = api_instance.conditions_condition_sites(id, opts)
|
|
604
|
+
p result
|
|
605
|
+
rescue PharmaObservatory::ApiError => e
|
|
606
|
+
puts "Error when calling ConditionsApi->conditions_condition_sites: #{e}"
|
|
607
|
+
end
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
#### Using the conditions_condition_sites_with_http_info variant
|
|
611
|
+
|
|
612
|
+
This returns an Array which contains the response data, status code and headers.
|
|
613
|
+
|
|
614
|
+
> <Array(<ConditionSitesResponse>, Integer, Hash)> conditions_condition_sites_with_http_info(id, opts)
|
|
615
|
+
|
|
616
|
+
```ruby
|
|
617
|
+
begin
|
|
618
|
+
# Condition sites
|
|
619
|
+
data, status_code, headers = api_instance.conditions_condition_sites_with_http_info(id, opts)
|
|
620
|
+
p status_code # => 2xx
|
|
621
|
+
p headers # => { ... }
|
|
622
|
+
p data # => <ConditionSitesResponse>
|
|
623
|
+
rescue PharmaObservatory::ApiError => e
|
|
624
|
+
puts "Error when calling ConditionsApi->conditions_condition_sites_with_http_info: #{e}"
|
|
625
|
+
end
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
### Parameters
|
|
629
|
+
|
|
630
|
+
| Name | Type | Description | Notes |
|
|
631
|
+
| ---- | ---- | ----------- | ----- |
|
|
632
|
+
| **id** | **String** | | |
|
|
633
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
634
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
635
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
636
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
637
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
638
|
+
|
|
639
|
+
### Return type
|
|
640
|
+
|
|
641
|
+
[**ConditionSitesResponse**](ConditionSitesResponse.md)
|
|
642
|
+
|
|
643
|
+
### Authorization
|
|
644
|
+
|
|
645
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
646
|
+
|
|
647
|
+
### HTTP request headers
|
|
648
|
+
|
|
649
|
+
- **Content-Type**: Not defined
|
|
650
|
+
- **Accept**: application/json
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
## conditions_condition_trials
|
|
654
|
+
|
|
655
|
+
> <ConditionTrialsResponse> conditions_condition_trials(id, opts)
|
|
656
|
+
|
|
657
|
+
Condition trials
|
|
658
|
+
|
|
659
|
+
### Examples
|
|
660
|
+
|
|
661
|
+
```ruby
|
|
662
|
+
require 'time'
|
|
663
|
+
require 'pharmaobservatory'
|
|
664
|
+
# setup authorization
|
|
665
|
+
PharmaObservatory.configure do |config|
|
|
666
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
667
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
671
|
+
id = 'D001523' # String |
|
|
672
|
+
opts = {
|
|
673
|
+
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.
|
|
674
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
675
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
676
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
677
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
begin
|
|
681
|
+
# Condition trials
|
|
682
|
+
result = api_instance.conditions_condition_trials(id, opts)
|
|
683
|
+
p result
|
|
684
|
+
rescue PharmaObservatory::ApiError => e
|
|
685
|
+
puts "Error when calling ConditionsApi->conditions_condition_trials: #{e}"
|
|
686
|
+
end
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
#### Using the conditions_condition_trials_with_http_info variant
|
|
690
|
+
|
|
691
|
+
This returns an Array which contains the response data, status code and headers.
|
|
692
|
+
|
|
693
|
+
> <Array(<ConditionTrialsResponse>, Integer, Hash)> conditions_condition_trials_with_http_info(id, opts)
|
|
694
|
+
|
|
695
|
+
```ruby
|
|
696
|
+
begin
|
|
697
|
+
# Condition trials
|
|
698
|
+
data, status_code, headers = api_instance.conditions_condition_trials_with_http_info(id, opts)
|
|
699
|
+
p status_code # => 2xx
|
|
700
|
+
p headers # => { ... }
|
|
701
|
+
p data # => <ConditionTrialsResponse>
|
|
702
|
+
rescue PharmaObservatory::ApiError => e
|
|
703
|
+
puts "Error when calling ConditionsApi->conditions_condition_trials_with_http_info: #{e}"
|
|
704
|
+
end
|
|
705
|
+
```
|
|
706
|
+
|
|
707
|
+
### Parameters
|
|
708
|
+
|
|
709
|
+
| Name | Type | Description | Notes |
|
|
710
|
+
| ---- | ---- | ----------- | ----- |
|
|
711
|
+
| **id** | **String** | | |
|
|
712
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
713
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
714
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
715
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
716
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
717
|
+
|
|
718
|
+
### Return type
|
|
719
|
+
|
|
720
|
+
[**ConditionTrialsResponse**](ConditionTrialsResponse.md)
|
|
721
|
+
|
|
722
|
+
### Authorization
|
|
723
|
+
|
|
724
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
725
|
+
|
|
726
|
+
### HTTP request headers
|
|
727
|
+
|
|
728
|
+
- **Content-Type**: Not defined
|
|
729
|
+
- **Accept**: application/json
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
## conditions_get
|
|
733
|
+
|
|
734
|
+
> <ConditionsRecord> conditions_get(id)
|
|
735
|
+
|
|
736
|
+
One condition
|
|
737
|
+
|
|
738
|
+
### Examples
|
|
739
|
+
|
|
740
|
+
```ruby
|
|
741
|
+
require 'time'
|
|
742
|
+
require 'pharmaobservatory'
|
|
743
|
+
# setup authorization
|
|
744
|
+
PharmaObservatory.configure do |config|
|
|
745
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
746
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
750
|
+
id = 'D001523' # String |
|
|
751
|
+
|
|
752
|
+
begin
|
|
753
|
+
# One condition
|
|
754
|
+
result = api_instance.conditions_get(id)
|
|
755
|
+
p result
|
|
756
|
+
rescue PharmaObservatory::ApiError => e
|
|
757
|
+
puts "Error when calling ConditionsApi->conditions_get: #{e}"
|
|
758
|
+
end
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
#### Using the conditions_get_with_http_info variant
|
|
762
|
+
|
|
763
|
+
This returns an Array which contains the response data, status code and headers.
|
|
764
|
+
|
|
765
|
+
> <Array(<ConditionsRecord>, Integer, Hash)> conditions_get_with_http_info(id)
|
|
766
|
+
|
|
767
|
+
```ruby
|
|
768
|
+
begin
|
|
769
|
+
# One condition
|
|
770
|
+
data, status_code, headers = api_instance.conditions_get_with_http_info(id)
|
|
771
|
+
p status_code # => 2xx
|
|
772
|
+
p headers # => { ... }
|
|
773
|
+
p data # => <ConditionsRecord>
|
|
774
|
+
rescue PharmaObservatory::ApiError => e
|
|
775
|
+
puts "Error when calling ConditionsApi->conditions_get_with_http_info: #{e}"
|
|
776
|
+
end
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
### Parameters
|
|
780
|
+
|
|
781
|
+
| Name | Type | Description | Notes |
|
|
782
|
+
| ---- | ---- | ----------- | ----- |
|
|
783
|
+
| **id** | **String** | | |
|
|
784
|
+
|
|
785
|
+
### Return type
|
|
786
|
+
|
|
787
|
+
[**ConditionsRecord**](ConditionsRecord.md)
|
|
788
|
+
|
|
789
|
+
### Authorization
|
|
790
|
+
|
|
791
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
792
|
+
|
|
793
|
+
### HTTP request headers
|
|
794
|
+
|
|
795
|
+
- **Content-Type**: Not defined
|
|
796
|
+
- **Accept**: application/json
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
## conditions_list
|
|
800
|
+
|
|
801
|
+
> <ConditionsResponse> conditions_list(opts)
|
|
802
|
+
|
|
803
|
+
List conditions
|
|
804
|
+
|
|
805
|
+
### Examples
|
|
806
|
+
|
|
807
|
+
```ruby
|
|
808
|
+
require 'time'
|
|
809
|
+
require 'pharmaobservatory'
|
|
810
|
+
# setup authorization
|
|
811
|
+
PharmaObservatory.configure do |config|
|
|
812
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
813
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
814
|
+
end
|
|
815
|
+
|
|
816
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
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
|
+
# List conditions
|
|
827
|
+
result = api_instance.conditions_list(opts)
|
|
828
|
+
p result
|
|
829
|
+
rescue PharmaObservatory::ApiError => e
|
|
830
|
+
puts "Error when calling ConditionsApi->conditions_list: #{e}"
|
|
831
|
+
end
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
#### Using the conditions_list_with_http_info variant
|
|
835
|
+
|
|
836
|
+
This returns an Array which contains the response data, status code and headers.
|
|
837
|
+
|
|
838
|
+
> <Array(<ConditionsResponse>, Integer, Hash)> conditions_list_with_http_info(opts)
|
|
839
|
+
|
|
840
|
+
```ruby
|
|
841
|
+
begin
|
|
842
|
+
# List conditions
|
|
843
|
+
data, status_code, headers = api_instance.conditions_list_with_http_info(opts)
|
|
844
|
+
p status_code # => 2xx
|
|
845
|
+
p headers # => { ... }
|
|
846
|
+
p data # => <ConditionsResponse>
|
|
847
|
+
rescue PharmaObservatory::ApiError => e
|
|
848
|
+
puts "Error when calling ConditionsApi->conditions_list_with_http_info: #{e}"
|
|
849
|
+
end
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
### Parameters
|
|
853
|
+
|
|
854
|
+
| Name | Type | Description | Notes |
|
|
855
|
+
| ---- | ---- | ----------- | ----- |
|
|
856
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
857
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
858
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
859
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
860
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
861
|
+
|
|
862
|
+
### Return type
|
|
863
|
+
|
|
864
|
+
[**ConditionsResponse**](ConditionsResponse.md)
|
|
865
|
+
|
|
866
|
+
### Authorization
|
|
867
|
+
|
|
868
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
869
|
+
|
|
870
|
+
### HTTP request headers
|
|
871
|
+
|
|
872
|
+
- **Content-Type**: Not defined
|
|
873
|
+
- **Accept**: application/json
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
## conditions_pdufa_dates
|
|
877
|
+
|
|
878
|
+
> <PdufaDatesResponse> conditions_pdufa_dates(id, opts)
|
|
879
|
+
|
|
880
|
+
FDA decision dates (PDUFA) and catalysts
|
|
881
|
+
|
|
882
|
+
### Examples
|
|
883
|
+
|
|
884
|
+
```ruby
|
|
885
|
+
require 'time'
|
|
886
|
+
require 'pharmaobservatory'
|
|
887
|
+
# setup authorization
|
|
888
|
+
PharmaObservatory.configure do |config|
|
|
889
|
+
# Configure Bearer authorization (JWT): ApiBearerJwt
|
|
890
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
api_instance = PharmaObservatory::ConditionsApi.new
|
|
894
|
+
id = 'D001523' # String |
|
|
895
|
+
opts = {
|
|
896
|
+
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.
|
|
897
|
+
limit: 56, # Integer | Rows per page, up to 500 (default 50).
|
|
898
|
+
sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
899
|
+
group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
|
|
900
|
+
measure: 'measure_example' # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
begin
|
|
904
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
905
|
+
result = api_instance.conditions_pdufa_dates(id, opts)
|
|
906
|
+
p result
|
|
907
|
+
rescue PharmaObservatory::ApiError => e
|
|
908
|
+
puts "Error when calling ConditionsApi->conditions_pdufa_dates: #{e}"
|
|
909
|
+
end
|
|
910
|
+
```
|
|
911
|
+
|
|
912
|
+
#### Using the conditions_pdufa_dates_with_http_info variant
|
|
913
|
+
|
|
914
|
+
This returns an Array which contains the response data, status code and headers.
|
|
915
|
+
|
|
916
|
+
> <Array(<PdufaDatesResponse>, Integer, Hash)> conditions_pdufa_dates_with_http_info(id, opts)
|
|
917
|
+
|
|
918
|
+
```ruby
|
|
919
|
+
begin
|
|
920
|
+
# FDA decision dates (PDUFA) and catalysts
|
|
921
|
+
data, status_code, headers = api_instance.conditions_pdufa_dates_with_http_info(id, opts)
|
|
922
|
+
p status_code # => 2xx
|
|
923
|
+
p headers # => { ... }
|
|
924
|
+
p data # => <PdufaDatesResponse>
|
|
925
|
+
rescue PharmaObservatory::ApiError => e
|
|
926
|
+
puts "Error when calling ConditionsApi->conditions_pdufa_dates_with_http_info: #{e}"
|
|
927
|
+
end
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
### Parameters
|
|
931
|
+
|
|
932
|
+
| Name | Type | Description | Notes |
|
|
933
|
+
| ---- | ---- | ----------- | ----- |
|
|
934
|
+
| **id** | **String** | | |
|
|
935
|
+
| **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
|
|
936
|
+
| **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
|
|
937
|
+
| **sort** | **String** | Comma separated columns, a leading minus for descending: sort=a,-b. | [optional] |
|
|
938
|
+
| **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
|
|
939
|
+
| **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
|
|
940
|
+
|
|
941
|
+
### Return type
|
|
942
|
+
|
|
943
|
+
[**PdufaDatesResponse**](PdufaDatesResponse.md)
|
|
944
|
+
|
|
945
|
+
### Authorization
|
|
946
|
+
|
|
947
|
+
[ApiBearerJwt](../README.md#ApiBearerJwt)
|
|
948
|
+
|
|
949
|
+
### HTTP request headers
|
|
950
|
+
|
|
951
|
+
- **Content-Type**: Not defined
|
|
952
|
+
- **Accept**: application/json
|
|
953
|
+
|