pharmaobservatory 0.1.4 → 0.1.5
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 +8 -4
- data/docs/ApiV1WhoamiGet200Response.md +13 -1
- data/docs/ApiV1WhoamiGet200ResponseLimits.md +32 -0
- data/docs/ApiV1WhoamiGet200ResponseQuota.md +20 -0
- data/docs/ApiV1WhoamiGet200ResponseQuotaBuckets.md +28 -0
- data/docs/ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute.md +28 -0
- data/docs/CompaniesRow.md +1 -1
- data/docs/ConditionTrialsRow.md +4 -2
- data/docs/LegalEntitiesRow.md +1 -1
- data/docs/SiteTrialsRow.md +3 -1
- data/docs/SponsorTrialsRow.md +4 -2
- data/docs/TrialDeliveryRow.md +7 -5
- data/docs/TrialEnrollmentRateRow.md +5 -3
- data/docs/TrialsRow.md +3 -3
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response.rb +62 -4
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_limits.rb +419 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota.rb +263 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets.rb +367 -0
- data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets_requests_per_minute.rb +367 -0
- data/lib/pharmaobservatory/models/companies_row.rb +1 -1
- data/lib/pharmaobservatory/models/condition_trials_row.rb +14 -3
- data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
- data/lib/pharmaobservatory/models/site_trials_row.rb +13 -2
- data/lib/pharmaobservatory/models/sponsor_trials_row.rb +14 -3
- data/lib/pharmaobservatory/models/trial_delivery_row.rb +22 -11
- data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +15 -4
- data/lib/pharmaobservatory/models/trials_row.rb +3 -3
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +4 -0
- metadata +10 -2
data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets_requests_per_minute.rb
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PharmaObservatory
|
|
17
|
+
class ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute
|
|
18
|
+
attr_accessor :unit
|
|
19
|
+
|
|
20
|
+
attr_accessor :window
|
|
21
|
+
|
|
22
|
+
attr_accessor :limit
|
|
23
|
+
|
|
24
|
+
attr_accessor :used
|
|
25
|
+
|
|
26
|
+
attr_accessor :remaining
|
|
27
|
+
|
|
28
|
+
attr_accessor :resets_at
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'unit' => :'unit',
|
|
34
|
+
:'window' => :'window',
|
|
35
|
+
:'limit' => :'limit',
|
|
36
|
+
:'used' => :'used',
|
|
37
|
+
:'remaining' => :'remaining',
|
|
38
|
+
:'resets_at' => :'resets_at'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Returns attribute mapping this model knows about
|
|
43
|
+
def self.acceptable_attribute_map
|
|
44
|
+
attribute_map
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Returns all the JSON keys this model knows about
|
|
48
|
+
def self.acceptable_attributes
|
|
49
|
+
acceptable_attribute_map.values
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
def self.openapi_types
|
|
54
|
+
{
|
|
55
|
+
:'unit' => :'String',
|
|
56
|
+
:'window' => :'String',
|
|
57
|
+
:'limit' => :'Integer',
|
|
58
|
+
:'used' => :'Integer',
|
|
59
|
+
:'remaining' => :'Integer',
|
|
60
|
+
:'resets_at' => :'String'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# List of attributes with nullable: true
|
|
65
|
+
def self.openapi_nullable
|
|
66
|
+
Set.new([
|
|
67
|
+
])
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
def initialize(attributes = {})
|
|
73
|
+
if (!attributes.is_a?(Hash))
|
|
74
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute` initialize method"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
78
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
82
|
+
end
|
|
83
|
+
h[k.to_sym] = v
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'unit')
|
|
87
|
+
self.unit = attributes[:'unit']
|
|
88
|
+
else
|
|
89
|
+
self.unit = nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'window')
|
|
93
|
+
self.window = attributes[:'window']
|
|
94
|
+
else
|
|
95
|
+
self.window = nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'limit')
|
|
99
|
+
self.limit = attributes[:'limit']
|
|
100
|
+
else
|
|
101
|
+
self.limit = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'used')
|
|
105
|
+
self.used = attributes[:'used']
|
|
106
|
+
else
|
|
107
|
+
self.used = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'remaining')
|
|
111
|
+
self.remaining = attributes[:'remaining']
|
|
112
|
+
else
|
|
113
|
+
self.remaining = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'resets_at')
|
|
117
|
+
self.resets_at = attributes[:'resets_at']
|
|
118
|
+
else
|
|
119
|
+
self.resets_at = nil
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
124
|
+
# @return Array for valid properties with the reasons
|
|
125
|
+
def list_invalid_properties
|
|
126
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
127
|
+
invalid_properties = Array.new
|
|
128
|
+
if @unit.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "unit", unit cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if @window.nil?
|
|
133
|
+
invalid_properties.push('invalid value for "window", window cannot be nil.')
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if @limit.nil?
|
|
137
|
+
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if @used.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "used", used cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @remaining.nil?
|
|
145
|
+
invalid_properties.push('invalid value for "remaining", remaining cannot be nil.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if @resets_at.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "resets_at", resets_at cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
invalid_properties
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Check to see if the all the properties in the model are valid
|
|
156
|
+
# @return true if the model is valid
|
|
157
|
+
def valid?
|
|
158
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
159
|
+
return false if @unit.nil?
|
|
160
|
+
return false if @window.nil?
|
|
161
|
+
return false if @limit.nil?
|
|
162
|
+
return false if @used.nil?
|
|
163
|
+
return false if @remaining.nil?
|
|
164
|
+
return false if @resets_at.nil?
|
|
165
|
+
true
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param [Object] unit Value to be assigned
|
|
170
|
+
def unit=(unit)
|
|
171
|
+
if unit.nil?
|
|
172
|
+
fail ArgumentError, 'unit cannot be nil'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@unit = unit
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param [Object] window Value to be assigned
|
|
180
|
+
def window=(window)
|
|
181
|
+
if window.nil?
|
|
182
|
+
fail ArgumentError, 'window cannot be nil'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
@window = window
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Custom attribute writer method with validation
|
|
189
|
+
# @param [Object] limit Value to be assigned
|
|
190
|
+
def limit=(limit)
|
|
191
|
+
if limit.nil?
|
|
192
|
+
fail ArgumentError, 'limit cannot be nil'
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
@limit = limit
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method with validation
|
|
199
|
+
# @param [Object] used Value to be assigned
|
|
200
|
+
def used=(used)
|
|
201
|
+
if used.nil?
|
|
202
|
+
fail ArgumentError, 'used cannot be nil'
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
@used = used
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Custom attribute writer method with validation
|
|
209
|
+
# @param [Object] remaining Value to be assigned
|
|
210
|
+
def remaining=(remaining)
|
|
211
|
+
if remaining.nil?
|
|
212
|
+
fail ArgumentError, 'remaining cannot be nil'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
@remaining = remaining
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Custom attribute writer method with validation
|
|
219
|
+
# @param [Object] resets_at Value to be assigned
|
|
220
|
+
def resets_at=(resets_at)
|
|
221
|
+
if resets_at.nil?
|
|
222
|
+
fail ArgumentError, 'resets_at cannot be nil'
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
@resets_at = resets_at
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# Checks equality by comparing each attribute.
|
|
229
|
+
# @param [Object] Object to be compared
|
|
230
|
+
def ==(o)
|
|
231
|
+
return true if self.equal?(o)
|
|
232
|
+
self.class == o.class &&
|
|
233
|
+
unit == o.unit &&
|
|
234
|
+
window == o.window &&
|
|
235
|
+
limit == o.limit &&
|
|
236
|
+
used == o.used &&
|
|
237
|
+
remaining == o.remaining &&
|
|
238
|
+
resets_at == o.resets_at
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# @see the `==` method
|
|
242
|
+
# @param [Object] Object to be compared
|
|
243
|
+
def eql?(o)
|
|
244
|
+
self == o
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Calculates hash code according to all attributes.
|
|
248
|
+
# @return [Integer] Hash code
|
|
249
|
+
def hash
|
|
250
|
+
[unit, window, limit, used, remaining, resets_at].hash
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Builds the object from hash
|
|
254
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
255
|
+
# @return [Object] Returns the model itself
|
|
256
|
+
def self.build_from_hash(attributes)
|
|
257
|
+
return nil unless attributes.is_a?(Hash)
|
|
258
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
259
|
+
transformed_hash = {}
|
|
260
|
+
openapi_types.each_pair do |key, type|
|
|
261
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
262
|
+
transformed_hash["#{key}"] = nil
|
|
263
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
264
|
+
# check to ensure the input is an array given that the attribute
|
|
265
|
+
# is documented as an array but the input is not
|
|
266
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
267
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
268
|
+
end
|
|
269
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
270
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
new(transformed_hash)
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Deserializes the data based on type
|
|
277
|
+
# @param string type Data type
|
|
278
|
+
# @param string value Value to be deserialized
|
|
279
|
+
# @return [Object] Deserialized data
|
|
280
|
+
def self._deserialize(type, value)
|
|
281
|
+
case type.to_sym
|
|
282
|
+
when :Time
|
|
283
|
+
Time.parse(value)
|
|
284
|
+
when :Date
|
|
285
|
+
Date.parse(value)
|
|
286
|
+
when :String
|
|
287
|
+
value.to_s
|
|
288
|
+
when :Integer
|
|
289
|
+
value.to_i
|
|
290
|
+
when :Float
|
|
291
|
+
value.to_f
|
|
292
|
+
when :Boolean
|
|
293
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
294
|
+
true
|
|
295
|
+
else
|
|
296
|
+
false
|
|
297
|
+
end
|
|
298
|
+
when :Object
|
|
299
|
+
# generic object (usually a Hash), return directly
|
|
300
|
+
value
|
|
301
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
302
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
303
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
304
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
305
|
+
k_type = Regexp.last_match[:k_type]
|
|
306
|
+
v_type = Regexp.last_match[:v_type]
|
|
307
|
+
{}.tap do |hash|
|
|
308
|
+
value.each do |k, v|
|
|
309
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
else # model
|
|
313
|
+
# models (e.g. Pet) or oneOf
|
|
314
|
+
klass = PharmaObservatory.const_get(type)
|
|
315
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Returns the string representation of the object
|
|
320
|
+
# @return [String] String presentation of the object
|
|
321
|
+
def to_s
|
|
322
|
+
to_hash.to_s
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
326
|
+
# @return [Hash] Returns the object in the form of hash
|
|
327
|
+
def to_body
|
|
328
|
+
to_hash
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Returns the object in the form of hash
|
|
332
|
+
# @return [Hash] Returns the object in the form of hash
|
|
333
|
+
def to_hash
|
|
334
|
+
hash = {}
|
|
335
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
336
|
+
value = self.send(attr)
|
|
337
|
+
if value.nil?
|
|
338
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
339
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
hash[param] = _to_hash(value)
|
|
343
|
+
end
|
|
344
|
+
hash
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Outputs non-array value in the form of hash
|
|
348
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
349
|
+
# @param [Object] value Any valid value
|
|
350
|
+
# @return [Hash] Returns the value in the form of hash
|
|
351
|
+
def _to_hash(value)
|
|
352
|
+
if value.is_a?(Array)
|
|
353
|
+
value.compact.map { |v| _to_hash(v) }
|
|
354
|
+
elsif value.is_a?(Hash)
|
|
355
|
+
{}.tap do |hash|
|
|
356
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
357
|
+
end
|
|
358
|
+
elsif value.respond_to? :to_hash
|
|
359
|
+
value.to_hash
|
|
360
|
+
else
|
|
361
|
+
value
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
end
|
|
@@ -28,7 +28,7 @@ module PharmaObservatory
|
|
|
28
28
|
# Country of the company's own legal entity, as the source states it.
|
|
29
29
|
attr_accessor :country
|
|
30
30
|
|
|
31
|
-
# The organization type of the company's representative record.
|
|
31
|
+
# The organization type of the company's representative record: Academic, Government, Hospital, Industry, Nonprofit or Other (from the ROR record or the filing), or the lowercase tags investor and manufacturer that mark a minted adviser or manufacturer record.
|
|
32
32
|
attr_accessor :org_type
|
|
33
33
|
|
|
34
34
|
# The roles the company's organizations play (Manufacturer, Sponsor and so on).
|
|
@@ -34,9 +34,12 @@ module PharmaObservatory
|
|
|
34
34
|
# The registry's study type (INTERVENTIONAL, OBSERVATIONAL or EXPANDED_ACCESS).
|
|
35
35
|
attr_accessor :study_type
|
|
36
36
|
|
|
37
|
-
# The
|
|
37
|
+
# The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
|
|
38
38
|
attr_accessor :phase
|
|
39
39
|
|
|
40
|
+
# The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code.
|
|
41
|
+
attr_accessor :phase_label
|
|
42
|
+
|
|
40
43
|
# The registry's overall recruitment status (COMPLETED, RECRUITING, TERMINATED and so on).
|
|
41
44
|
attr_accessor :overall_status
|
|
42
45
|
|
|
@@ -76,7 +79,7 @@ module PharmaObservatory
|
|
|
76
79
|
# Display name of the lead sponsor's group.
|
|
77
80
|
attr_accessor :sponsor_group_name
|
|
78
81
|
|
|
79
|
-
# The registry
|
|
82
|
+
# The funder class the registry declared for the sponsor (INDUSTRY, NIH, FED, OTHER_GOV, NETWORK, OTHER, INDIV, AMBIG, UNKNOWN). UNKNOWN is the registry's own code for a class it does not state. Null when the trial has no lead sponsor row.
|
|
80
83
|
attr_accessor :sponsor_agency_class
|
|
81
84
|
|
|
82
85
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -89,6 +92,7 @@ module PharmaObservatory
|
|
|
89
92
|
:'trial_title' => :'trial_title',
|
|
90
93
|
:'study_type' => :'study_type',
|
|
91
94
|
:'phase' => :'phase',
|
|
95
|
+
:'phase_label' => :'phase_label',
|
|
92
96
|
:'overall_status' => :'overall_status',
|
|
93
97
|
:'start_date' => :'start_date',
|
|
94
98
|
:'start_year' => :'start_year',
|
|
@@ -126,6 +130,7 @@ module PharmaObservatory
|
|
|
126
130
|
:'trial_title' => :'String',
|
|
127
131
|
:'study_type' => :'String',
|
|
128
132
|
:'phase' => :'String',
|
|
133
|
+
:'phase_label' => :'String',
|
|
129
134
|
:'overall_status' => :'String',
|
|
130
135
|
:'start_date' => :'Date',
|
|
131
136
|
:'start_year' => :'Integer',
|
|
@@ -153,6 +158,7 @@ module PharmaObservatory
|
|
|
153
158
|
:'trial_title',
|
|
154
159
|
:'study_type',
|
|
155
160
|
:'phase',
|
|
161
|
+
:'phase_label',
|
|
156
162
|
:'overall_status',
|
|
157
163
|
:'start_date',
|
|
158
164
|
:'start_year',
|
|
@@ -214,6 +220,10 @@ module PharmaObservatory
|
|
|
214
220
|
self.phase = attributes[:'phase']
|
|
215
221
|
end
|
|
216
222
|
|
|
223
|
+
if attributes.key?(:'phase_label')
|
|
224
|
+
self.phase_label = attributes[:'phase_label']
|
|
225
|
+
end
|
|
226
|
+
|
|
217
227
|
if attributes.key?(:'overall_status')
|
|
218
228
|
self.overall_status = attributes[:'overall_status']
|
|
219
229
|
end
|
|
@@ -298,6 +308,7 @@ module PharmaObservatory
|
|
|
298
308
|
trial_title == o.trial_title &&
|
|
299
309
|
study_type == o.study_type &&
|
|
300
310
|
phase == o.phase &&
|
|
311
|
+
phase_label == o.phase_label &&
|
|
301
312
|
overall_status == o.overall_status &&
|
|
302
313
|
start_date == o.start_date &&
|
|
303
314
|
start_year == o.start_year &&
|
|
@@ -323,7 +334,7 @@ module PharmaObservatory
|
|
|
323
334
|
# Calculates hash code according to all attributes.
|
|
324
335
|
# @return [Integer] Hash code
|
|
325
336
|
def hash
|
|
326
|
-
[condition_id, condition_name, trial_id, is_direct, trial_title, study_type, phase, overall_status, start_date, start_year, primary_completion_date, last_update_posted_date, enrollment, were_results_reported, sponsor_name, sponsor_org_id, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, sponsor_agency_class].hash
|
|
337
|
+
[condition_id, condition_name, trial_id, is_direct, trial_title, study_type, phase, phase_label, overall_status, start_date, start_year, primary_completion_date, last_update_posted_date, enrollment, were_results_reported, sponsor_name, sponsor_org_id, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, sponsor_agency_class].hash
|
|
327
338
|
end
|
|
328
339
|
|
|
329
340
|
# Builds the object from hash
|
|
@@ -31,7 +31,7 @@ module PharmaObservatory
|
|
|
31
31
|
# Country as the source states it.
|
|
32
32
|
attr_accessor :country
|
|
33
33
|
|
|
34
|
-
# Organization type.
|
|
34
|
+
# Organization type: Academic, Government, Hospital, Industry, Nonprofit or Other (from the ROR record or the filing), or the lowercase tags investor and manufacturer that mark a minted adviser or manufacturer record.
|
|
35
35
|
attr_accessor :org_type
|
|
36
36
|
|
|
37
37
|
# Central index key (CIK) in EDGAR, the US Securities and Exchange Commission (SEC) filing system, when it files.
|
|
@@ -28,9 +28,12 @@ module PharmaObservatory
|
|
|
28
28
|
# INTERVENTIONAL or OBSERVATIONAL.
|
|
29
29
|
attr_accessor :study_type
|
|
30
30
|
|
|
31
|
-
# The
|
|
31
|
+
# The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
|
|
32
32
|
attr_accessor :phase
|
|
33
33
|
|
|
34
|
+
# The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code.
|
|
35
|
+
attr_accessor :phase_label
|
|
36
|
+
|
|
34
37
|
# The registry's overall status.
|
|
35
38
|
attr_accessor :overall_status
|
|
36
39
|
|
|
@@ -69,6 +72,7 @@ module PharmaObservatory
|
|
|
69
72
|
:'trial_title' => :'trial_title',
|
|
70
73
|
:'study_type' => :'study_type',
|
|
71
74
|
:'phase' => :'phase',
|
|
75
|
+
:'phase_label' => :'phase_label',
|
|
72
76
|
:'overall_status' => :'overall_status',
|
|
73
77
|
:'start_date' => :'start_date',
|
|
74
78
|
:'start_year' => :'start_year',
|
|
@@ -100,6 +104,7 @@ module PharmaObservatory
|
|
|
100
104
|
:'trial_title' => :'String',
|
|
101
105
|
:'study_type' => :'String',
|
|
102
106
|
:'phase' => :'String',
|
|
107
|
+
:'phase_label' => :'String',
|
|
103
108
|
:'overall_status' => :'String',
|
|
104
109
|
:'start_date' => :'Date',
|
|
105
110
|
:'start_year' => :'Integer',
|
|
@@ -121,6 +126,7 @@ module PharmaObservatory
|
|
|
121
126
|
:'trial_title',
|
|
122
127
|
:'study_type',
|
|
123
128
|
:'phase',
|
|
129
|
+
:'phase_label',
|
|
124
130
|
:'overall_status',
|
|
125
131
|
:'start_date',
|
|
126
132
|
:'start_year',
|
|
@@ -170,6 +176,10 @@ module PharmaObservatory
|
|
|
170
176
|
self.phase = attributes[:'phase']
|
|
171
177
|
end
|
|
172
178
|
|
|
179
|
+
if attributes.key?(:'phase_label')
|
|
180
|
+
self.phase_label = attributes[:'phase_label']
|
|
181
|
+
end
|
|
182
|
+
|
|
173
183
|
if attributes.key?(:'overall_status')
|
|
174
184
|
self.overall_status = attributes[:'overall_status']
|
|
175
185
|
end
|
|
@@ -236,6 +246,7 @@ module PharmaObservatory
|
|
|
236
246
|
trial_title == o.trial_title &&
|
|
237
247
|
study_type == o.study_type &&
|
|
238
248
|
phase == o.phase &&
|
|
249
|
+
phase_label == o.phase_label &&
|
|
239
250
|
overall_status == o.overall_status &&
|
|
240
251
|
start_date == o.start_date &&
|
|
241
252
|
start_year == o.start_year &&
|
|
@@ -257,7 +268,7 @@ module PharmaObservatory
|
|
|
257
268
|
# Calculates hash code according to all attributes.
|
|
258
269
|
# @return [Integer] Hash code
|
|
259
270
|
def hash
|
|
260
|
-
[site_id, trial_id, trial_title, study_type, phase, overall_status, start_date, start_year, enrollment, lead_sponsor_name, lead_sponsor_org_id, lead_sponsor_company_id, lead_sponsor_company_name, lead_sponsor_group_id, lead_sponsor_group_name].hash
|
|
271
|
+
[site_id, trial_id, trial_title, study_type, phase, phase_label, overall_status, start_date, start_year, enrollment, lead_sponsor_name, lead_sponsor_org_id, lead_sponsor_company_id, lead_sponsor_company_name, lead_sponsor_group_id, lead_sponsor_group_name].hash
|
|
261
272
|
end
|
|
262
273
|
|
|
263
274
|
# Builds the object from hash
|
|
@@ -40,7 +40,7 @@ module PharmaObservatory
|
|
|
40
40
|
# Display name of the sponsor's group.
|
|
41
41
|
attr_accessor :sponsor_group_name
|
|
42
42
|
|
|
43
|
-
# The registry
|
|
43
|
+
# The funder class the registry declared for the sponsor (INDUSTRY, NIH, FED, OTHER_GOV, NETWORK, OTHER, INDIV, AMBIG, UNKNOWN). UNKNOWN is the registry's own code for a class it does not state.
|
|
44
44
|
attr_accessor :sponsor_agency_class
|
|
45
45
|
|
|
46
46
|
# How the sponsor name was resolved to an organization record.
|
|
@@ -52,9 +52,12 @@ module PharmaObservatory
|
|
|
52
52
|
# INTERVENTIONAL or OBSERVATIONAL.
|
|
53
53
|
attr_accessor :study_type
|
|
54
54
|
|
|
55
|
-
# The
|
|
55
|
+
# The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
|
|
56
56
|
attr_accessor :phase
|
|
57
57
|
|
|
58
|
+
# The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code.
|
|
59
|
+
attr_accessor :phase_label
|
|
60
|
+
|
|
58
61
|
# The registry's overall status.
|
|
59
62
|
attr_accessor :overall_status
|
|
60
63
|
|
|
@@ -95,6 +98,7 @@ module PharmaObservatory
|
|
|
95
98
|
:'trial_title' => :'trial_title',
|
|
96
99
|
:'study_type' => :'study_type',
|
|
97
100
|
:'phase' => :'phase',
|
|
101
|
+
:'phase_label' => :'phase_label',
|
|
98
102
|
:'overall_status' => :'overall_status',
|
|
99
103
|
:'start_date' => :'start_date',
|
|
100
104
|
:'start_year' => :'start_year',
|
|
@@ -132,6 +136,7 @@ module PharmaObservatory
|
|
|
132
136
|
:'trial_title' => :'String',
|
|
133
137
|
:'study_type' => :'String',
|
|
134
138
|
:'phase' => :'String',
|
|
139
|
+
:'phase_label' => :'String',
|
|
135
140
|
:'overall_status' => :'String',
|
|
136
141
|
:'start_date' => :'Date',
|
|
137
142
|
:'start_year' => :'Integer',
|
|
@@ -159,6 +164,7 @@ module PharmaObservatory
|
|
|
159
164
|
:'trial_title',
|
|
160
165
|
:'study_type',
|
|
161
166
|
:'phase',
|
|
167
|
+
:'phase_label',
|
|
162
168
|
:'overall_status',
|
|
163
169
|
:'start_date',
|
|
164
170
|
:'start_year',
|
|
@@ -238,6 +244,10 @@ module PharmaObservatory
|
|
|
238
244
|
self.phase = attributes[:'phase']
|
|
239
245
|
end
|
|
240
246
|
|
|
247
|
+
if attributes.key?(:'phase_label')
|
|
248
|
+
self.phase_label = attributes[:'phase_label']
|
|
249
|
+
end
|
|
250
|
+
|
|
241
251
|
if attributes.key?(:'overall_status')
|
|
242
252
|
self.overall_status = attributes[:'overall_status']
|
|
243
253
|
end
|
|
@@ -308,6 +318,7 @@ module PharmaObservatory
|
|
|
308
318
|
trial_title == o.trial_title &&
|
|
309
319
|
study_type == o.study_type &&
|
|
310
320
|
phase == o.phase &&
|
|
321
|
+
phase_label == o.phase_label &&
|
|
311
322
|
overall_status == o.overall_status &&
|
|
312
323
|
start_date == o.start_date &&
|
|
313
324
|
start_year == o.start_year &&
|
|
@@ -327,7 +338,7 @@ module PharmaObservatory
|
|
|
327
338
|
# Calculates hash code according to all attributes.
|
|
328
339
|
# @return [Integer] Hash code
|
|
329
340
|
def hash
|
|
330
|
-
[trial_id, sponsor_role, sponsor_name, sponsor_org_id, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, sponsor_agency_class, sponsor_resolution_method, trial_title, study_type, phase, overall_status, start_date, start_year, primary_completion_date, enrollment, were_results_reported, conditions, interventions].hash
|
|
341
|
+
[trial_id, sponsor_role, sponsor_name, sponsor_org_id, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, sponsor_agency_class, sponsor_resolution_method, trial_title, study_type, phase, phase_label, overall_status, start_date, start_year, primary_completion_date, enrollment, were_results_reported, conditions, interventions].hash
|
|
331
342
|
end
|
|
332
343
|
|
|
333
344
|
# Builds the object from hash
|