pharmaobservatory 0.1.19 → 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/InvestorPortfolioRow.md +7 -7
- data/docs/InvestorsApi.md +240 -0
- data/docs/InvestorsRow.md +1 -1
- 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/investor_portfolio_row.rb +7 -7
- data/lib/pharmaobservatory/models/investors_row.rb +1 -1
- 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
|
@@ -0,0 +1,412 @@
|
|
|
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
|
+
# One row of the investment_graph_nodes dataset: one row per node: an investor or a company that is an endpoint of at least one edge. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class InvestmentGraphNodesRow
|
|
19
|
+
# The node key: an investor id (adv:, agency:, lei:, investor:), a company's organization id (the resolved parent), or investor_site: followed by the normalized printed name for an unadmitted website-only company.
|
|
20
|
+
attr_accessor :node_id
|
|
21
|
+
|
|
22
|
+
# investor or company.
|
|
23
|
+
attr_accessor :node_kind
|
|
24
|
+
|
|
25
|
+
# The investor's legal name, the company's resolved parent name, or for an unadmitted website-only company the lowest name as printed on the investors' pages.
|
|
26
|
+
attr_accessor :display_name
|
|
27
|
+
|
|
28
|
+
# venture_capital, private_equity, hedge_fund, government_agency or other. Null for a company node.
|
|
29
|
+
attr_accessor :investor_type
|
|
30
|
+
|
|
31
|
+
# The investor key for an investor node (the same as node_id), null for a company node.
|
|
32
|
+
attr_accessor :investor_id
|
|
33
|
+
|
|
34
|
+
# Legal-entity level: a company node's organization (the same as node_id), or an investor node's own organization resolved to its parent. Null for an unadmitted website-only company and for an investor with no organization.
|
|
35
|
+
attr_accessor :org_id
|
|
36
|
+
|
|
37
|
+
# Company level: the company record of org_id (null where unresolved).
|
|
38
|
+
attr_accessor :company_id
|
|
39
|
+
|
|
40
|
+
# Display name of the company.
|
|
41
|
+
attr_accessor :company_name
|
|
42
|
+
|
|
43
|
+
# Group level: the company's current ultimate parent; a root's group is itself.
|
|
44
|
+
attr_accessor :group_id
|
|
45
|
+
|
|
46
|
+
# Display name of the group.
|
|
47
|
+
attr_accessor :group_name
|
|
48
|
+
|
|
49
|
+
# The other node of one real-world entity: an investor that is also a company with edges points at its company node and the reverse. An annotation, not an edge. Null when there is none.
|
|
50
|
+
attr_accessor :same_entity_node_id
|
|
51
|
+
|
|
52
|
+
# spine: the id is an organization or investor id. unadmitted_listing: a website-only company the organization spine has not admitted, keyed on its printed name (same-printed-name companies merge into one node; the id will change on admission).
|
|
53
|
+
attr_accessor :node_resolution
|
|
54
|
+
|
|
55
|
+
# Stored edge rows incident to the node, as the sum of out_edge_count and in_edge_count. A co_invested edge is stored in both directions, so a co-investor counts it once in each.
|
|
56
|
+
attr_accessor :edge_count
|
|
57
|
+
|
|
58
|
+
# Stored edge rows that start at the node.
|
|
59
|
+
attr_accessor :out_edge_count
|
|
60
|
+
|
|
61
|
+
# Stored edge rows that end at the node.
|
|
62
|
+
attr_accessor :in_edge_count
|
|
63
|
+
|
|
64
|
+
# Distinct sources among the node's edges.
|
|
65
|
+
attr_accessor :node_source_count
|
|
66
|
+
|
|
67
|
+
# The sources that state the node's edges.
|
|
68
|
+
attr_accessor :sources
|
|
69
|
+
|
|
70
|
+
# For an investor node, its portfolio rows that cannot become a node (a company known only by an SEC filer number, or an organization with no resolved parent); shown as a count and never guessed at. 0 for a company node.
|
|
71
|
+
attr_accessor :unlinked_company_count
|
|
72
|
+
|
|
73
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
74
|
+
def self.attribute_map
|
|
75
|
+
{
|
|
76
|
+
:'node_id' => :'node_id',
|
|
77
|
+
:'node_kind' => :'node_kind',
|
|
78
|
+
:'display_name' => :'display_name',
|
|
79
|
+
:'investor_type' => :'investor_type',
|
|
80
|
+
:'investor_id' => :'investor_id',
|
|
81
|
+
:'org_id' => :'org_id',
|
|
82
|
+
:'company_id' => :'company_id',
|
|
83
|
+
:'company_name' => :'company_name',
|
|
84
|
+
:'group_id' => :'group_id',
|
|
85
|
+
:'group_name' => :'group_name',
|
|
86
|
+
:'same_entity_node_id' => :'same_entity_node_id',
|
|
87
|
+
:'node_resolution' => :'node_resolution',
|
|
88
|
+
:'edge_count' => :'edge_count',
|
|
89
|
+
:'out_edge_count' => :'out_edge_count',
|
|
90
|
+
:'in_edge_count' => :'in_edge_count',
|
|
91
|
+
:'node_source_count' => :'node_source_count',
|
|
92
|
+
:'sources' => :'sources',
|
|
93
|
+
:'unlinked_company_count' => :'unlinked_company_count'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Returns attribute mapping this model knows about
|
|
98
|
+
def self.acceptable_attribute_map
|
|
99
|
+
attribute_map
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Returns all the JSON keys this model knows about
|
|
103
|
+
def self.acceptable_attributes
|
|
104
|
+
acceptable_attribute_map.values
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Attribute type mapping.
|
|
108
|
+
def self.openapi_types
|
|
109
|
+
{
|
|
110
|
+
:'node_id' => :'String',
|
|
111
|
+
:'node_kind' => :'String',
|
|
112
|
+
:'display_name' => :'String',
|
|
113
|
+
:'investor_type' => :'String',
|
|
114
|
+
:'investor_id' => :'String',
|
|
115
|
+
:'org_id' => :'String',
|
|
116
|
+
:'company_id' => :'String',
|
|
117
|
+
:'company_name' => :'String',
|
|
118
|
+
:'group_id' => :'String',
|
|
119
|
+
:'group_name' => :'String',
|
|
120
|
+
:'same_entity_node_id' => :'String',
|
|
121
|
+
:'node_resolution' => :'String',
|
|
122
|
+
:'edge_count' => :'Integer',
|
|
123
|
+
:'out_edge_count' => :'Integer',
|
|
124
|
+
:'in_edge_count' => :'Integer',
|
|
125
|
+
:'node_source_count' => :'Integer',
|
|
126
|
+
:'sources' => :'Array<String>',
|
|
127
|
+
:'unlinked_company_count' => :'Integer'
|
|
128
|
+
}
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# List of attributes with nullable: true
|
|
132
|
+
def self.openapi_nullable
|
|
133
|
+
Set.new([
|
|
134
|
+
:'node_id',
|
|
135
|
+
:'node_kind',
|
|
136
|
+
:'display_name',
|
|
137
|
+
:'investor_type',
|
|
138
|
+
:'investor_id',
|
|
139
|
+
:'org_id',
|
|
140
|
+
:'company_id',
|
|
141
|
+
:'company_name',
|
|
142
|
+
:'group_id',
|
|
143
|
+
:'group_name',
|
|
144
|
+
:'same_entity_node_id',
|
|
145
|
+
:'node_resolution',
|
|
146
|
+
:'edge_count',
|
|
147
|
+
:'out_edge_count',
|
|
148
|
+
:'in_edge_count',
|
|
149
|
+
:'node_source_count',
|
|
150
|
+
:'sources',
|
|
151
|
+
:'unlinked_company_count'
|
|
152
|
+
])
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Initializes the object
|
|
156
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
157
|
+
def initialize(attributes = {})
|
|
158
|
+
if (!attributes.is_a?(Hash))
|
|
159
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::InvestmentGraphNodesRow` initialize method"
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
163
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
164
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
165
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
166
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::InvestmentGraphNodesRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
167
|
+
end
|
|
168
|
+
h[k.to_sym] = v
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'node_id')
|
|
172
|
+
self.node_id = attributes[:'node_id']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'node_kind')
|
|
176
|
+
self.node_kind = attributes[:'node_kind']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'display_name')
|
|
180
|
+
self.display_name = attributes[:'display_name']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'investor_type')
|
|
184
|
+
self.investor_type = attributes[:'investor_type']
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if attributes.key?(:'investor_id')
|
|
188
|
+
self.investor_id = attributes[:'investor_id']
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
if attributes.key?(:'org_id')
|
|
192
|
+
self.org_id = attributes[:'org_id']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'company_id')
|
|
196
|
+
self.company_id = attributes[:'company_id']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'company_name')
|
|
200
|
+
self.company_name = attributes[:'company_name']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'group_id')
|
|
204
|
+
self.group_id = attributes[:'group_id']
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
if attributes.key?(:'group_name')
|
|
208
|
+
self.group_name = attributes[:'group_name']
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if attributes.key?(:'same_entity_node_id')
|
|
212
|
+
self.same_entity_node_id = attributes[:'same_entity_node_id']
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if attributes.key?(:'node_resolution')
|
|
216
|
+
self.node_resolution = attributes[:'node_resolution']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'edge_count')
|
|
220
|
+
self.edge_count = attributes[:'edge_count']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'out_edge_count')
|
|
224
|
+
self.out_edge_count = attributes[:'out_edge_count']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'in_edge_count')
|
|
228
|
+
self.in_edge_count = attributes[:'in_edge_count']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'node_source_count')
|
|
232
|
+
self.node_source_count = attributes[:'node_source_count']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'sources')
|
|
236
|
+
if (value = attributes[:'sources']).is_a?(Array)
|
|
237
|
+
self.sources = value
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'unlinked_company_count')
|
|
242
|
+
self.unlinked_company_count = attributes[:'unlinked_company_count']
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
247
|
+
# @return Array for valid properties with the reasons
|
|
248
|
+
def list_invalid_properties
|
|
249
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
250
|
+
invalid_properties = Array.new
|
|
251
|
+
invalid_properties
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Check to see if the all the properties in the model are valid
|
|
255
|
+
# @return true if the model is valid
|
|
256
|
+
def valid?
|
|
257
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
258
|
+
true
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Checks equality by comparing each attribute.
|
|
262
|
+
# @param [Object] Object to be compared
|
|
263
|
+
def ==(o)
|
|
264
|
+
return true if self.equal?(o)
|
|
265
|
+
self.class == o.class &&
|
|
266
|
+
node_id == o.node_id &&
|
|
267
|
+
node_kind == o.node_kind &&
|
|
268
|
+
display_name == o.display_name &&
|
|
269
|
+
investor_type == o.investor_type &&
|
|
270
|
+
investor_id == o.investor_id &&
|
|
271
|
+
org_id == o.org_id &&
|
|
272
|
+
company_id == o.company_id &&
|
|
273
|
+
company_name == o.company_name &&
|
|
274
|
+
group_id == o.group_id &&
|
|
275
|
+
group_name == o.group_name &&
|
|
276
|
+
same_entity_node_id == o.same_entity_node_id &&
|
|
277
|
+
node_resolution == o.node_resolution &&
|
|
278
|
+
edge_count == o.edge_count &&
|
|
279
|
+
out_edge_count == o.out_edge_count &&
|
|
280
|
+
in_edge_count == o.in_edge_count &&
|
|
281
|
+
node_source_count == o.node_source_count &&
|
|
282
|
+
sources == o.sources &&
|
|
283
|
+
unlinked_company_count == o.unlinked_company_count
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# @see the `==` method
|
|
287
|
+
# @param [Object] Object to be compared
|
|
288
|
+
def eql?(o)
|
|
289
|
+
self == o
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Calculates hash code according to all attributes.
|
|
293
|
+
# @return [Integer] Hash code
|
|
294
|
+
def hash
|
|
295
|
+
[node_id, node_kind, display_name, investor_type, investor_id, org_id, company_id, company_name, group_id, group_name, same_entity_node_id, node_resolution, edge_count, out_edge_count, in_edge_count, node_source_count, sources, unlinked_company_count].hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Builds the object from hash
|
|
299
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
300
|
+
# @return [Object] Returns the model itself
|
|
301
|
+
def self.build_from_hash(attributes)
|
|
302
|
+
return nil unless attributes.is_a?(Hash)
|
|
303
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
304
|
+
transformed_hash = {}
|
|
305
|
+
openapi_types.each_pair do |key, type|
|
|
306
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
307
|
+
transformed_hash["#{key}"] = nil
|
|
308
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
309
|
+
# check to ensure the input is an array given that the attribute
|
|
310
|
+
# is documented as an array but the input is not
|
|
311
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
312
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
313
|
+
end
|
|
314
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
315
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
new(transformed_hash)
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# Deserializes the data based on type
|
|
322
|
+
# @param string type Data type
|
|
323
|
+
# @param string value Value to be deserialized
|
|
324
|
+
# @return [Object] Deserialized data
|
|
325
|
+
def self._deserialize(type, value)
|
|
326
|
+
case type.to_sym
|
|
327
|
+
when :Time
|
|
328
|
+
Time.parse(value)
|
|
329
|
+
when :Date
|
|
330
|
+
Date.parse(value)
|
|
331
|
+
when :String
|
|
332
|
+
value.to_s
|
|
333
|
+
when :Integer
|
|
334
|
+
value.to_i
|
|
335
|
+
when :Float
|
|
336
|
+
value.to_f
|
|
337
|
+
when :Boolean
|
|
338
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
339
|
+
true
|
|
340
|
+
else
|
|
341
|
+
false
|
|
342
|
+
end
|
|
343
|
+
when :Object
|
|
344
|
+
# generic object (usually a Hash), return directly
|
|
345
|
+
value
|
|
346
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
347
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
348
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
349
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
350
|
+
k_type = Regexp.last_match[:k_type]
|
|
351
|
+
v_type = Regexp.last_match[:v_type]
|
|
352
|
+
{}.tap do |hash|
|
|
353
|
+
value.each do |k, v|
|
|
354
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
355
|
+
end
|
|
356
|
+
end
|
|
357
|
+
else # model
|
|
358
|
+
# models (e.g. Pet) or oneOf
|
|
359
|
+
klass = PharmaObservatory.const_get(type)
|
|
360
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
361
|
+
end
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Returns the string representation of the object
|
|
365
|
+
# @return [String] String presentation of the object
|
|
366
|
+
def to_s
|
|
367
|
+
to_hash.to_s
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
371
|
+
# @return [Hash] Returns the object in the form of hash
|
|
372
|
+
def to_body
|
|
373
|
+
to_hash
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Returns the object in the form of hash
|
|
377
|
+
# @return [Hash] Returns the object in the form of hash
|
|
378
|
+
def to_hash
|
|
379
|
+
hash = {}
|
|
380
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
381
|
+
value = self.send(attr)
|
|
382
|
+
if value.nil?
|
|
383
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
384
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
hash[param] = _to_hash(value)
|
|
388
|
+
end
|
|
389
|
+
hash
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# Outputs non-array value in the form of hash
|
|
393
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
394
|
+
# @param [Object] value Any valid value
|
|
395
|
+
# @return [Hash] Returns the value in the form of hash
|
|
396
|
+
def _to_hash(value)
|
|
397
|
+
if value.is_a?(Array)
|
|
398
|
+
value.compact.map { |v| _to_hash(v) }
|
|
399
|
+
elsif value.is_a?(Hash)
|
|
400
|
+
{}.tap do |hash|
|
|
401
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
402
|
+
end
|
|
403
|
+
elsif value.respond_to? :to_hash
|
|
404
|
+
value.to_hash
|
|
405
|
+
else
|
|
406
|
+
value
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
end
|
|
@@ -55,7 +55,7 @@ module PharmaObservatory
|
|
|
55
55
|
# Display name of the company's group.
|
|
56
56
|
attr_accessor :issuer_group_name
|
|
57
57
|
|
|
58
|
-
# How the investor is tied to the company: holder_5pct (a 5 percent holder) or selling_stockholder from filings, and
|
|
58
|
+
# How the investor is tied to the company: holder_5pct (a 5 percent holder) or selling_stockholder from filings, and portfolio_listed (status-free) from the investor's own page. While website status is gated the website lane is always portfolio_listed.
|
|
59
59
|
attr_accessor :relationship_types
|
|
60
60
|
|
|
61
61
|
# Filing mentions behind the row, across every filing and relationship type. 0 for a row only the investor's website names.
|
|
@@ -70,22 +70,22 @@ module PharmaObservatory
|
|
|
70
70
|
# The retrieval date of the first crawl of the investor's own portfolio page that listed the company (a crawl date, not an investment date). Null for a row only SEC filings name.
|
|
71
71
|
attr_accessor :listed_from
|
|
72
72
|
|
|
73
|
-
#
|
|
73
|
+
# Always null while website-lane removal is gated: a crawl-derived absence is not served as a removal. Null for a row only SEC filings name.
|
|
74
74
|
attr_accessor :listed_to
|
|
75
75
|
|
|
76
|
-
#
|
|
76
|
+
# Always null while website-lane removal is gated. When a gated version is re-enabled: absent_from_later_version (a later crawl of the page omitted the company) or page_gone (the page went away), null exactly when listed_to is null.
|
|
77
77
|
attr_accessor :removal_reason
|
|
78
78
|
|
|
79
|
-
#
|
|
79
|
+
# Always false while website-lane removal is gated; no row is served as removed. When re-enabled: true when the investor's own page no longer lists the company (listed_to is set).
|
|
80
80
|
attr_accessor :is_removed
|
|
81
81
|
|
|
82
|
-
#
|
|
82
|
+
# Always unknown for a website-listed company while website status is gated (the v1 status is not reliable enough to show). When re-enabled: the status the page states, current, realized or exited. Null for a row only SEC filings name.
|
|
83
83
|
attr_accessor :status_on_page
|
|
84
84
|
|
|
85
|
-
#
|
|
85
|
+
# Always null while website status is gated. When re-enabled: the date the page itself prints for the status, as printed (for example 2024 or March 2024).
|
|
86
86
|
attr_accessor :status_date
|
|
87
87
|
|
|
88
|
-
#
|
|
88
|
+
# Always null while website status is gated. When re-enabled: the date we first saw this status on the investor's page, an observation date, never the date the event happened.
|
|
89
89
|
attr_accessor :status_first_observed_at
|
|
90
90
|
|
|
91
91
|
# True when the quote behind a website listing was found on the investor's page, false when it was not, null when no verification flag was recorded and for a row only SEC filings name.
|
|
@@ -55,7 +55,7 @@ module PharmaObservatory
|
|
|
55
55
|
# Distinct portfolio companies named against the investor in S-1 and 424B offering holder tables or listed on the investor's own portfolio page, not marked removed there. 0 usually means no named-holder link or website listing was observed.
|
|
56
56
|
attr_accessor :portfolio_co_count
|
|
57
57
|
|
|
58
|
-
# Distinct portfolio companies the investor's own portfolio page listed in an earlier crawl and no longer lists. portfolio_co_count and this count sum to the investor's rows in investor_portfolio.
|
|
58
|
+
# Distinct portfolio companies the investor's own portfolio page listed in an earlier crawl and no longer lists. portfolio_co_count and this count sum to the investor's rows in investor_portfolio. Always 0 while website-lane removal is gated.
|
|
59
59
|
attr_accessor :portfolio_co_removed_count
|
|
60
60
|
|
|
61
61
|
# Current Form 13F positions reported by the managers that resolve to this investor, summed over its manager keys. 0 when none resolves.
|