pharmaobservatory 0.1.20 → 0.1.21
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 +26 -4
- data/docs/BiomarkersApi.md +80 -0
- data/docs/CompaniesApi.md +246 -0
- data/docs/HospitalsRow.md +11 -1
- data/docs/InvestmentGraphEdgesResponse.md +58 -0
- data/docs/InvestmentGraphEdgesRow.md +90 -0
- data/docs/InvestmentGraphNodeEdgesResponse.md +58 -0
- data/docs/InvestmentGraphNodeEdgesRow.md +88 -0
- data/docs/InvestmentGraphNodesResponse.md +58 -0
- data/docs/InvestmentGraphNodesRow.md +52 -0
- data/docs/InvestorsApi.md +240 -0
- data/docs/LegalEntitiesApi.md +240 -0
- data/docs/ProviderBiomarkerCapabilityResponse.md +58 -0
- data/docs/ProviderBiomarkerCapabilityRow.md +86 -0
- data/docs/ProviderCliaLicensureResponse.md +58 -0
- data/docs/ProviderCliaLicensureRow.md +80 -0
- data/docs/SuppliersApi.md +160 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +84 -0
- data/lib/pharmaobservatory/api/companies_api.rb +273 -0
- data/lib/pharmaobservatory/api/investors_api.rb +252 -0
- data/lib/pharmaobservatory/api/legal_entities_api.rb +252 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +168 -0
- data/lib/pharmaobservatory/models/hospitals_row.rb +60 -5
- data/lib/pharmaobservatory/models/investment_graph_edges_response.rb +478 -0
- data/lib/pharmaobservatory/models/investment_graph_edges_row.rb +619 -0
- data/lib/pharmaobservatory/models/investment_graph_node_edges_response.rb +478 -0
- data/lib/pharmaobservatory/models/investment_graph_node_edges_row.rb +608 -0
- data/lib/pharmaobservatory/models/investment_graph_nodes_response.rb +478 -0
- data/lib/pharmaobservatory/models/investment_graph_nodes_row.rb +412 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_row.rb +601 -0
- data/lib/pharmaobservatory/models/provider_clia_licensure_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_clia_licensure_row.rb +568 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +10 -0
- metadata +22 -2
|
@@ -158,6 +158,174 @@ module PharmaObservatory
|
|
|
158
158
|
return data, status_code, headers
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
+
# Supplier biomarker capability
|
|
162
|
+
# @param id [Integer]
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
165
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
166
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
167
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
168
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
169
|
+
# @return [ProviderBiomarkerCapabilityResponse]
|
|
170
|
+
def suppliers_provider_biomarker_capability(id, opts = {})
|
|
171
|
+
data, _status_code, _headers = suppliers_provider_biomarker_capability_with_http_info(id, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Supplier biomarker capability
|
|
176
|
+
# @param id [Integer]
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
179
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
180
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
181
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
182
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
183
|
+
# @return [Array<(ProviderBiomarkerCapabilityResponse, Integer, Hash)>] ProviderBiomarkerCapabilityResponse data, response status code and response headers
|
|
184
|
+
def suppliers_provider_biomarker_capability_with_http_info(id, opts = {})
|
|
185
|
+
if @api_client.config.debugging
|
|
186
|
+
@api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_biomarker_capability ...'
|
|
187
|
+
end
|
|
188
|
+
# verify the required parameter 'id' is set
|
|
189
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
190
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SuppliersApi.suppliers_provider_biomarker_capability"
|
|
191
|
+
end
|
|
192
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
193
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SuppliersApi.suppliers_provider_biomarker_capability, must be smaller than or equal to 500.'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SuppliersApi.suppliers_provider_biomarker_capability, must be greater than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/api/v1/suppliers/{id}/provider_biomarker_capability'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
202
|
+
|
|
203
|
+
# query parameters
|
|
204
|
+
query_params = opts[:query_params] || {}
|
|
205
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
206
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
207
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
208
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
209
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
210
|
+
|
|
211
|
+
# header parameters
|
|
212
|
+
header_params = opts[:header_params] || {}
|
|
213
|
+
# HTTP header 'Accept' (if needed)
|
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
215
|
+
|
|
216
|
+
# form parameters
|
|
217
|
+
form_params = opts[:form_params] || {}
|
|
218
|
+
|
|
219
|
+
# http body (model)
|
|
220
|
+
post_body = opts[:debug_body]
|
|
221
|
+
|
|
222
|
+
# return_type
|
|
223
|
+
return_type = opts[:debug_return_type] || 'ProviderBiomarkerCapabilityResponse'
|
|
224
|
+
|
|
225
|
+
# auth_names
|
|
226
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
227
|
+
|
|
228
|
+
new_options = opts.merge(
|
|
229
|
+
:operation => :"SuppliersApi.suppliers_provider_biomarker_capability",
|
|
230
|
+
:header_params => header_params,
|
|
231
|
+
:query_params => query_params,
|
|
232
|
+
:form_params => form_params,
|
|
233
|
+
:body => post_body,
|
|
234
|
+
:auth_names => auth_names,
|
|
235
|
+
:return_type => return_type
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
239
|
+
if @api_client.config.debugging
|
|
240
|
+
@api_client.config.logger.debug "API called: SuppliersApi#suppliers_provider_biomarker_capability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
|
+
end
|
|
242
|
+
return data, status_code, headers
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Supplier CLIA laboratory licensure
|
|
246
|
+
# @param id [Integer]
|
|
247
|
+
# @param [Hash] opts the optional parameters
|
|
248
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
249
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
250
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
251
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
252
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
253
|
+
# @return [ProviderCliaLicensureResponse]
|
|
254
|
+
def suppliers_provider_clia_licensure(id, opts = {})
|
|
255
|
+
data, _status_code, _headers = suppliers_provider_clia_licensure_with_http_info(id, opts)
|
|
256
|
+
data
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Supplier CLIA laboratory licensure
|
|
260
|
+
# @param id [Integer]
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
|
|
263
|
+
# @option opts [Integer] :limit Rows per page, up to 500 (default 50).
|
|
264
|
+
# @option opts [String] :sort Comma separated columns, a leading minus for descending: sort=a,-b.
|
|
265
|
+
# @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
|
|
266
|
+
# @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
|
|
267
|
+
# @return [Array<(ProviderCliaLicensureResponse, Integer, Hash)>] ProviderCliaLicensureResponse data, response status code and response headers
|
|
268
|
+
def suppliers_provider_clia_licensure_with_http_info(id, opts = {})
|
|
269
|
+
if @api_client.config.debugging
|
|
270
|
+
@api_client.config.logger.debug 'Calling API: SuppliersApi.suppliers_provider_clia_licensure ...'
|
|
271
|
+
end
|
|
272
|
+
# verify the required parameter 'id' is set
|
|
273
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
274
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling SuppliersApi.suppliers_provider_clia_licensure"
|
|
275
|
+
end
|
|
276
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
|
277
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SuppliersApi.suppliers_provider_clia_licensure, must be smaller than or equal to 500.'
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
281
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SuppliersApi.suppliers_provider_clia_licensure, must be greater than or equal to 1.'
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/api/v1/suppliers/{id}/provider_clia_licensure'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
286
|
+
|
|
287
|
+
# query parameters
|
|
288
|
+
query_params = opts[:query_params] || {}
|
|
289
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
290
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
291
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
292
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
293
|
+
query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
|
|
294
|
+
|
|
295
|
+
# header parameters
|
|
296
|
+
header_params = opts[:header_params] || {}
|
|
297
|
+
# HTTP header 'Accept' (if needed)
|
|
298
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
299
|
+
|
|
300
|
+
# form parameters
|
|
301
|
+
form_params = opts[:form_params] || {}
|
|
302
|
+
|
|
303
|
+
# http body (model)
|
|
304
|
+
post_body = opts[:debug_body]
|
|
305
|
+
|
|
306
|
+
# return_type
|
|
307
|
+
return_type = opts[:debug_return_type] || 'ProviderCliaLicensureResponse'
|
|
308
|
+
|
|
309
|
+
# auth_names
|
|
310
|
+
auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
|
|
311
|
+
|
|
312
|
+
new_options = opts.merge(
|
|
313
|
+
:operation => :"SuppliersApi.suppliers_provider_clia_licensure",
|
|
314
|
+
:header_params => header_params,
|
|
315
|
+
:query_params => query_params,
|
|
316
|
+
:form_params => form_params,
|
|
317
|
+
:body => post_body,
|
|
318
|
+
:auth_names => auth_names,
|
|
319
|
+
:return_type => return_type
|
|
320
|
+
)
|
|
321
|
+
|
|
322
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
323
|
+
if @api_client.config.debugging
|
|
324
|
+
@api_client.config.logger.debug "API called: SuppliersApi#suppliers_provider_clia_licensure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
|
+
end
|
|
326
|
+
return data, status_code, headers
|
|
327
|
+
end
|
|
328
|
+
|
|
161
329
|
# Supplier services
|
|
162
330
|
# @param id [Integer]
|
|
163
331
|
# @param [Hash] opts the optional parameters
|
|
@@ -52,6 +52,21 @@ module PharmaObservatory
|
|
|
52
52
|
# How the coordinate was placed: als (Amazon Location Service address match), zip_centroid (coarse ZIP-code centroid) or unmatched (no coordinate).
|
|
53
53
|
attr_accessor :geocode_method
|
|
54
54
|
|
|
55
|
+
# Dartmouth Atlas Hospital Referral Region number. Null when hrr_match is not zip.
|
|
56
|
+
attr_accessor :hrr_num
|
|
57
|
+
|
|
58
|
+
# The Hospital Referral Region, named for its hub city and state. The hub state can differ from the hospital's own state.
|
|
59
|
+
attr_accessor :hrr_name
|
|
60
|
+
|
|
61
|
+
# Dartmouth Atlas Hospital Service Area number. Null when hrr_match is not zip.
|
|
62
|
+
attr_accessor :hsa_num
|
|
63
|
+
|
|
64
|
+
# The Hospital Service Area, named for its hub city and state.
|
|
65
|
+
attr_accessor :hsa_name
|
|
66
|
+
|
|
67
|
+
# zip (region found by ZIP), territory_uncovered (the Atlas does not cover US territories) or zip_unmatched (a mainland ZIP absent from the 2019 crosswalk).
|
|
68
|
+
attr_accessor :hrr_match
|
|
69
|
+
|
|
55
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
71
|
def self.attribute_map
|
|
57
72
|
{
|
|
@@ -66,7 +81,12 @@ module PharmaObservatory
|
|
|
66
81
|
:'emergency_services' => :'emergency_services',
|
|
67
82
|
:'latitude' => :'latitude',
|
|
68
83
|
:'longitude' => :'longitude',
|
|
69
|
-
:'geocode_method' => :'geocode_method'
|
|
84
|
+
:'geocode_method' => :'geocode_method',
|
|
85
|
+
:'hrr_num' => :'hrr_num',
|
|
86
|
+
:'hrr_name' => :'hrr_name',
|
|
87
|
+
:'hsa_num' => :'hsa_num',
|
|
88
|
+
:'hsa_name' => :'hsa_name',
|
|
89
|
+
:'hrr_match' => :'hrr_match'
|
|
70
90
|
}
|
|
71
91
|
end
|
|
72
92
|
|
|
@@ -94,7 +114,12 @@ module PharmaObservatory
|
|
|
94
114
|
:'emergency_services' => :'String',
|
|
95
115
|
:'latitude' => :'Float',
|
|
96
116
|
:'longitude' => :'Float',
|
|
97
|
-
:'geocode_method' => :'String'
|
|
117
|
+
:'geocode_method' => :'String',
|
|
118
|
+
:'hrr_num' => :'Integer',
|
|
119
|
+
:'hrr_name' => :'String',
|
|
120
|
+
:'hsa_num' => :'Integer',
|
|
121
|
+
:'hsa_name' => :'String',
|
|
122
|
+
:'hrr_match' => :'String'
|
|
98
123
|
}
|
|
99
124
|
end
|
|
100
125
|
|
|
@@ -112,7 +137,12 @@ module PharmaObservatory
|
|
|
112
137
|
:'emergency_services',
|
|
113
138
|
:'latitude',
|
|
114
139
|
:'longitude',
|
|
115
|
-
:'geocode_method'
|
|
140
|
+
:'geocode_method',
|
|
141
|
+
:'hrr_num',
|
|
142
|
+
:'hrr_name',
|
|
143
|
+
:'hsa_num',
|
|
144
|
+
:'hsa_name',
|
|
145
|
+
:'hrr_match'
|
|
116
146
|
])
|
|
117
147
|
end
|
|
118
148
|
|
|
@@ -179,6 +209,26 @@ module PharmaObservatory
|
|
|
179
209
|
if attributes.key?(:'geocode_method')
|
|
180
210
|
self.geocode_method = attributes[:'geocode_method']
|
|
181
211
|
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'hrr_num')
|
|
214
|
+
self.hrr_num = attributes[:'hrr_num']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'hrr_name')
|
|
218
|
+
self.hrr_name = attributes[:'hrr_name']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'hsa_num')
|
|
222
|
+
self.hsa_num = attributes[:'hsa_num']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'hsa_name')
|
|
226
|
+
self.hsa_name = attributes[:'hsa_name']
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'hrr_match')
|
|
230
|
+
self.hrr_match = attributes[:'hrr_match']
|
|
231
|
+
end
|
|
182
232
|
end
|
|
183
233
|
|
|
184
234
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -212,7 +262,12 @@ module PharmaObservatory
|
|
|
212
262
|
emergency_services == o.emergency_services &&
|
|
213
263
|
latitude == o.latitude &&
|
|
214
264
|
longitude == o.longitude &&
|
|
215
|
-
geocode_method == o.geocode_method
|
|
265
|
+
geocode_method == o.geocode_method &&
|
|
266
|
+
hrr_num == o.hrr_num &&
|
|
267
|
+
hrr_name == o.hrr_name &&
|
|
268
|
+
hsa_num == o.hsa_num &&
|
|
269
|
+
hsa_name == o.hsa_name &&
|
|
270
|
+
hrr_match == o.hrr_match
|
|
216
271
|
end
|
|
217
272
|
|
|
218
273
|
# @see the `==` method
|
|
@@ -224,7 +279,7 @@ module PharmaObservatory
|
|
|
224
279
|
# Calculates hash code according to all attributes.
|
|
225
280
|
# @return [Integer] Hash code
|
|
226
281
|
def hash
|
|
227
|
-
[ccn, hospital_name, city, state, bed_count, hospital_type, ownership, is_teaching, emergency_services, latitude, longitude, geocode_method].hash
|
|
282
|
+
[ccn, hospital_name, city, state, bed_count, hospital_type, ownership, is_teaching, emergency_services, latitude, longitude, geocode_method, hrr_num, hrr_name, hsa_num, hsa_name, hrr_match].hash
|
|
228
283
|
end
|
|
229
284
|
|
|
230
285
|
# Builds the object from hash
|