pharmaobservatory 0.1.13 → 0.1.14
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 +21 -4
- data/docs/BiomarkerValidationRow.md +1 -1
- data/docs/ChangesList200Response.md +26 -0
- data/docs/ChangesList200ResponseBuildState.md +20 -0
- data/docs/ChangesList200ResponseItemsInner.md +48 -0
- data/docs/ChangesList200ResponseItemsInnerEntryKeys.md +18 -0
- data/docs/CompanyFinancialsRow.md +18 -0
- data/docs/ConditionAdverseEventsRow.md +5 -1
- data/docs/SubscriptionsApi.md +282 -0
- data/docs/SubscriptionsCreate201Response.md +22 -0
- data/docs/SubscriptionsCreate201ResponseSubscription.md +28 -0
- data/docs/SubscriptionsCreate201ResponseSubscriptionTarget.md +22 -0
- data/docs/SubscriptionsCreateRequest.md +20 -0
- data/docs/SubscriptionsDelete200Response.md +24 -0
- data/docs/SubscriptionsList200Response.md +22 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInner.md +28 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInnerTarget.md +26 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md +18 -0
- data/lib/pharmaobservatory/api/subscriptions_api.rb +261 -0
- data/lib/pharmaobservatory/models/biomarker_validation_row.rb +1 -1
- data/lib/pharmaobservatory/models/changes_list200_response.rb +343 -0
- data/lib/pharmaobservatory/models/changes_list200_response_build_state.rb +263 -0
- data/lib/pharmaobservatory/models/changes_list200_response_items_inner.rb +627 -0
- data/lib/pharmaobservatory/models/changes_list200_response_items_inner_entry_keys.rb +237 -0
- data/lib/pharmaobservatory/models/company_financials_row.rb +100 -1
- data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +27 -5
- data/lib/pharmaobservatory/models/subscriptions_create201_response.rb +289 -0
- data/lib/pharmaobservatory/models/subscriptions_create201_response_subscription.rb +369 -0
- data/lib/pharmaobservatory/models/subscriptions_create201_response_subscription_target.rb +289 -0
- data/lib/pharmaobservatory/models/subscriptions_create_request.rb +263 -0
- data/lib/pharmaobservatory/models/subscriptions_delete200_response.rb +315 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response.rb +291 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner.rb +369 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target.rb +277 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters.rb +237 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +14 -0
- metadata +30 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **subscriptions** | [**Array<SubscriptionsList200ResponseSubscriptionsInner>**](SubscriptionsList200ResponseSubscriptionsInner.md) | | |
|
|
8
|
+
| **count** | **Integer** | | |
|
|
9
|
+
| **build_state** | [**ChangesList200ResponseBuildState**](ChangesList200ResponseBuildState.md) | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'pharmaobservatory'
|
|
15
|
+
|
|
16
|
+
instance = PharmaObservatory::SubscriptionsList200Response.new(
|
|
17
|
+
subscriptions: null,
|
|
18
|
+
count: null,
|
|
19
|
+
build_state: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **Integer** | | |
|
|
8
|
+
| **label** | **String** | | |
|
|
9
|
+
| **target** | [**SubscriptionsList200ResponseSubscriptionsInnerTarget**](SubscriptionsList200ResponseSubscriptionsInnerTarget.md) | | |
|
|
10
|
+
| **event_types** | **Array<String>** | | |
|
|
11
|
+
| **paused** | **Boolean** | | |
|
|
12
|
+
| **created_at** | **String** | | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'pharmaobservatory'
|
|
18
|
+
|
|
19
|
+
instance = PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInner.new(
|
|
20
|
+
id: null,
|
|
21
|
+
label: null,
|
|
22
|
+
target: null,
|
|
23
|
+
event_types: null,
|
|
24
|
+
paused: null,
|
|
25
|
+
created_at: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTarget
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **kind** | **String** | | |
|
|
8
|
+
| **dataset** | **String** | | [optional] |
|
|
9
|
+
| **filters** | [**SubscriptionsList200ResponseSubscriptionsInnerTargetFilters**](SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md) | | [optional] |
|
|
10
|
+
| **object_type** | **String** | | [optional] |
|
|
11
|
+
| **entity_id** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'pharmaobservatory'
|
|
17
|
+
|
|
18
|
+
instance = PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTarget.new(
|
|
19
|
+
kind: null,
|
|
20
|
+
dataset: null,
|
|
21
|
+
filters: null,
|
|
22
|
+
object_type: null,
|
|
23
|
+
entity_id: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTargetFilters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **phase** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'pharmaobservatory'
|
|
13
|
+
|
|
14
|
+
instance = PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.new(
|
|
15
|
+
phase: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PharmaObservatory
|
|
16
|
+
class SubscriptionsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Changes since a cursor
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @option opts [String] :cursor
|
|
25
|
+
# @option opts [Integer] :limit
|
|
26
|
+
# @return [ChangesList200Response]
|
|
27
|
+
def changes_list(opts = {})
|
|
28
|
+
data, _status_code, _headers = changes_list_with_http_info(opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Changes since a cursor
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @option opts [String] :cursor
|
|
35
|
+
# @option opts [Integer] :limit
|
|
36
|
+
# @return [Array<(ChangesList200Response, Integer, Hash)>] ChangesList200Response data, response status code and response headers
|
|
37
|
+
def changes_list_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.changes_list ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/api/v1/changes'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
47
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'ChangesList200Response'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"SubscriptionsApi.changes_list",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#changes_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Follow an entity or a dataset query
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [SubscriptionsCreateRequest] :subscriptions_create_request
|
|
86
|
+
# @return [SubscriptionsCreate201Response]
|
|
87
|
+
def subscriptions_create(opts = {})
|
|
88
|
+
data, _status_code, _headers = subscriptions_create_with_http_info(opts)
|
|
89
|
+
data
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Follow an entity or a dataset query
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [SubscriptionsCreateRequest] :subscriptions_create_request
|
|
95
|
+
# @return [Array<(SubscriptionsCreate201Response, Integer, Hash)>] SubscriptionsCreate201Response data, response status code and response headers
|
|
96
|
+
def subscriptions_create_with_http_info(opts = {})
|
|
97
|
+
if @api_client.config.debugging
|
|
98
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.subscriptions_create ...'
|
|
99
|
+
end
|
|
100
|
+
# resource path
|
|
101
|
+
local_var_path = '/api/v1/subscriptions'
|
|
102
|
+
|
|
103
|
+
# query parameters
|
|
104
|
+
query_params = opts[:query_params] || {}
|
|
105
|
+
|
|
106
|
+
# header parameters
|
|
107
|
+
header_params = opts[:header_params] || {}
|
|
108
|
+
# HTTP header 'Accept' (if needed)
|
|
109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
110
|
+
# HTTP header 'Content-Type'
|
|
111
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
112
|
+
if !content_type.nil?
|
|
113
|
+
header_params['Content-Type'] = content_type
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# form parameters
|
|
117
|
+
form_params = opts[:form_params] || {}
|
|
118
|
+
|
|
119
|
+
# http body (model)
|
|
120
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'subscriptions_create_request'])
|
|
121
|
+
|
|
122
|
+
# return_type
|
|
123
|
+
return_type = opts[:debug_return_type] || 'SubscriptionsCreate201Response'
|
|
124
|
+
|
|
125
|
+
# auth_names
|
|
126
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
127
|
+
|
|
128
|
+
new_options = opts.merge(
|
|
129
|
+
:operation => :"SubscriptionsApi.subscriptions_create",
|
|
130
|
+
:header_params => header_params,
|
|
131
|
+
:query_params => query_params,
|
|
132
|
+
:form_params => form_params,
|
|
133
|
+
:body => post_body,
|
|
134
|
+
:auth_names => auth_names,
|
|
135
|
+
:return_type => return_type
|
|
136
|
+
)
|
|
137
|
+
|
|
138
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
139
|
+
if @api_client.config.debugging
|
|
140
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#subscriptions_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
141
|
+
end
|
|
142
|
+
return data, status_code, headers
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Stop following
|
|
146
|
+
# @param id [Integer]
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [SubscriptionsDelete200Response]
|
|
149
|
+
def subscriptions_delete(id, opts = {})
|
|
150
|
+
data, _status_code, _headers = subscriptions_delete_with_http_info(id, opts)
|
|
151
|
+
data
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Stop following
|
|
155
|
+
# @param id [Integer]
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @return [Array<(SubscriptionsDelete200Response, Integer, Hash)>] SubscriptionsDelete200Response data, response status code and response headers
|
|
158
|
+
def subscriptions_delete_with_http_info(id, opts = {})
|
|
159
|
+
if @api_client.config.debugging
|
|
160
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.subscriptions_delete ...'
|
|
161
|
+
end
|
|
162
|
+
# verify the required parameter 'id' is set
|
|
163
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
164
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.subscriptions_delete"
|
|
165
|
+
end
|
|
166
|
+
# resource path
|
|
167
|
+
local_var_path = '/api/v1/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
168
|
+
|
|
169
|
+
# query parameters
|
|
170
|
+
query_params = opts[:query_params] || {}
|
|
171
|
+
|
|
172
|
+
# header parameters
|
|
173
|
+
header_params = opts[:header_params] || {}
|
|
174
|
+
# HTTP header 'Accept' (if needed)
|
|
175
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
176
|
+
|
|
177
|
+
# form parameters
|
|
178
|
+
form_params = opts[:form_params] || {}
|
|
179
|
+
|
|
180
|
+
# http body (model)
|
|
181
|
+
post_body = opts[:debug_body]
|
|
182
|
+
|
|
183
|
+
# return_type
|
|
184
|
+
return_type = opts[:debug_return_type] || 'SubscriptionsDelete200Response'
|
|
185
|
+
|
|
186
|
+
# auth_names
|
|
187
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
188
|
+
|
|
189
|
+
new_options = opts.merge(
|
|
190
|
+
:operation => :"SubscriptionsApi.subscriptions_delete",
|
|
191
|
+
:header_params => header_params,
|
|
192
|
+
:query_params => query_params,
|
|
193
|
+
:form_params => form_params,
|
|
194
|
+
:body => post_body,
|
|
195
|
+
:auth_names => auth_names,
|
|
196
|
+
:return_type => return_type
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
200
|
+
if @api_client.config.debugging
|
|
201
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#subscriptions_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
202
|
+
end
|
|
203
|
+
return data, status_code, headers
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# List your subscriptions
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @return [SubscriptionsList200Response]
|
|
209
|
+
def subscriptions_list(opts = {})
|
|
210
|
+
data, _status_code, _headers = subscriptions_list_with_http_info(opts)
|
|
211
|
+
data
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# List your subscriptions
|
|
215
|
+
# @param [Hash] opts the optional parameters
|
|
216
|
+
# @return [Array<(SubscriptionsList200Response, Integer, Hash)>] SubscriptionsList200Response data, response status code and response headers
|
|
217
|
+
def subscriptions_list_with_http_info(opts = {})
|
|
218
|
+
if @api_client.config.debugging
|
|
219
|
+
@api_client.config.logger.debug 'Calling API: SubscriptionsApi.subscriptions_list ...'
|
|
220
|
+
end
|
|
221
|
+
# resource path
|
|
222
|
+
local_var_path = '/api/v1/subscriptions'
|
|
223
|
+
|
|
224
|
+
# query parameters
|
|
225
|
+
query_params = opts[:query_params] || {}
|
|
226
|
+
|
|
227
|
+
# header parameters
|
|
228
|
+
header_params = opts[:header_params] || {}
|
|
229
|
+
# HTTP header 'Accept' (if needed)
|
|
230
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
231
|
+
|
|
232
|
+
# form parameters
|
|
233
|
+
form_params = opts[:form_params] || {}
|
|
234
|
+
|
|
235
|
+
# http body (model)
|
|
236
|
+
post_body = opts[:debug_body]
|
|
237
|
+
|
|
238
|
+
# return_type
|
|
239
|
+
return_type = opts[:debug_return_type] || 'SubscriptionsList200Response'
|
|
240
|
+
|
|
241
|
+
# auth_names
|
|
242
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
243
|
+
|
|
244
|
+
new_options = opts.merge(
|
|
245
|
+
:operation => :"SubscriptionsApi.subscriptions_list",
|
|
246
|
+
:header_params => header_params,
|
|
247
|
+
:query_params => query_params,
|
|
248
|
+
:form_params => form_params,
|
|
249
|
+
:body => post_body,
|
|
250
|
+
:auth_names => auth_names,
|
|
251
|
+
:return_type => return_type
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
255
|
+
if @api_client.config.debugging
|
|
256
|
+
@api_client.config.logger.debug "API called: SubscriptionsApi#subscriptions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
257
|
+
end
|
|
258
|
+
return data, status_code, headers
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
@@ -82,7 +82,7 @@ module PharmaObservatory
|
|
|
82
82
|
# A link to the cited record.
|
|
83
83
|
attr_accessor :citation_url
|
|
84
84
|
|
|
85
|
-
#
|
|
85
|
+
# True on every row. Kept for contract stability; the FDA Biomarker Qualification Program links were rebuilt on the current FDA host (#5778).
|
|
86
86
|
attr_accessor :citation_verified
|
|
87
87
|
|
|
88
88
|
# The text span the evidence rests on, where the source gives one.
|