pharmaobservatory 0.1.20 → 0.1.22
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 +40 -4
- data/docs/BiomarkersApi.md +160 -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/ProviderBiomarkerCapabilitySummaryResponse.md +58 -0
- data/docs/ProviderBiomarkerCapabilitySummaryRow.md +70 -0
- data/docs/ProviderCliaLicensureResponse.md +58 -0
- data/docs/ProviderCliaLicensureRow.md +80 -0
- data/docs/ProviderRwdDeliveryResponse.md +58 -0
- data/docs/ProviderRwdDeliveryRow.md +74 -0
- data/docs/ProviderRwdDeliveryStudyResponse.md +58 -0
- data/docs/ProviderRwdDeliveryStudyRow.md +58 -0
- data/docs/ProviderRwdFootprintResponse.md +58 -0
- data/docs/ProviderRwdFootprintRow.md +72 -0
- data/docs/RwdInstitutionsApi.md +80 -0
- data/docs/SuppliersApi.md +480 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +168 -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/rwd_institutions_api.rb +84 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +504 -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_biomarker_capability_summary_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_summary_row.rb +509 -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/models/provider_rwd_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +535 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_study_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +443 -0
- data/lib/pharmaobservatory/models/provider_rwd_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +528 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +18 -0
- metadata +38 -2
|
@@ -0,0 +1,601 @@
|
|
|
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 provider_biomarker_capability dataset: one row per evidence assertion joined to an RX provider. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class ProviderBiomarkerCapabilityRow
|
|
19
|
+
# The evidence assertion id: a hash of the supplier, biomarker, lane, role, evidence reference kind, evidence reference and ladder rule.
|
|
20
|
+
attr_accessor :provider_biomarker_capability_id
|
|
21
|
+
|
|
22
|
+
# The supplier id: the Scientist.com provider id as text, the id in the supplier page address (/suppliers/<id>). A supplier is not a company.
|
|
23
|
+
attr_accessor :provider_id
|
|
24
|
+
|
|
25
|
+
# The Scientist.com public provider uuid, the join key to the RX marketplace. Present on every row, including providers the marketplace does not publish.
|
|
26
|
+
attr_accessor :provider_uuid
|
|
27
|
+
|
|
28
|
+
# The supplier's marketplace slug.
|
|
29
|
+
attr_accessor :provider_slug
|
|
30
|
+
|
|
31
|
+
# The supplier's name.
|
|
32
|
+
attr_accessor :provider_name
|
|
33
|
+
|
|
34
|
+
# The biomarker's route key, the entry key for the biomarkers object type; the gene symbol for a gene biomarker.
|
|
35
|
+
attr_accessor :route_key
|
|
36
|
+
|
|
37
|
+
# The canonical biomarker entity id.
|
|
38
|
+
attr_accessor :biomarker_id
|
|
39
|
+
|
|
40
|
+
# The gene symbol; null for a source-scoped biomarker that names no gene.
|
|
41
|
+
attr_accessor :gene_symbol
|
|
42
|
+
|
|
43
|
+
# The biomarker's display name.
|
|
44
|
+
attr_accessor :biomarker_display_name
|
|
45
|
+
|
|
46
|
+
# The source path of the row: ladder_trial and ladder_clinvar (the evidence ladder), fda_cdx (FDA companion diagnostic list), fda_bqp (FDA Biomarker Qualification Program), literature_assay (assay providers named in PubMed full text), supplier_survey (the supplier's own declaration) clinvar_submission (ClinVar clinical-testing submissions by a laboratory the supplier carries by name, one row per ClinVar record, tier null) and supplier_service_listing (a Scientist.com marketplace catalogue service the supplier listed, whose name names the gene; tier null, no evidence sense). Nothing is merged across lanes.
|
|
47
|
+
attr_accessor :evidence_lane
|
|
48
|
+
|
|
49
|
+
# The source's own evidence vocabulary: the ladder evidence_type on a ladder lane, literature_assay_provider on the literature lane, supplier_survey_declaration on the survey lane, rx_service_listing on the service listing lane.
|
|
50
|
+
attr_accessor :evidence_type
|
|
51
|
+
|
|
52
|
+
# The supplier's role on the evidence: the ladder role on a ladder lane, the ledger provider role on the literature lane, respondent on the survey lane, or marketplace_listing on the service listing lane.
|
|
53
|
+
attr_accessor :org_role
|
|
54
|
+
|
|
55
|
+
# Sense 1, literature_assay lane only: the source's own label for how the assay is evidenced, never a number. literature_reported is a paper naming the assay, never validation.
|
|
56
|
+
attr_accessor :analytical_validation_evidence
|
|
57
|
+
|
|
58
|
+
# Sense 2: the ladder rung's name on a ladder lane, literature_reported on the literature lane (a literature mention, never validation), and ClinVar's own review status verbatim on the clinvar_submission lane.
|
|
59
|
+
attr_accessor :clinical_use_evidence
|
|
60
|
+
|
|
61
|
+
# Sense 3, fda_bqp lane only: fda_qualified, the FDA Biomarker Qualification Program qualified the biomarker.
|
|
62
|
+
attr_accessor :regulatory_qualification
|
|
63
|
+
|
|
64
|
+
# Sense 4, fda_cdx lane only: fda_authorized_companion_diagnostic, the FDA companion diagnostic list names the supplier's device for the biomarker.
|
|
65
|
+
attr_accessor :companion_diagnostic
|
|
66
|
+
|
|
67
|
+
# The supplier's own declaration, never mapped into the four evidence kinds: the survey's assay status verbatim on the supplier_survey lane, supplier_declared_service_listed on the supplier_service_listing lane (the supplier listed a catalogue service naming the gene).
|
|
68
|
+
attr_accessor :supplier_declared_status
|
|
69
|
+
|
|
70
|
+
# The ladder rung of this row, 1 to 4, a kind of evidence and never a score; set on the ladder_trial, ladder_clinvar, fda_cdx and fda_bqp lanes, null on literature_assay, supplier_survey, clinvar_submission and supplier_service_listing. Not rolled up: see the example query for the maximum within the ladder lanes.
|
|
71
|
+
attr_accessor :tier
|
|
72
|
+
|
|
73
|
+
# The ladder rule that set the tier of this row; null where tier is null.
|
|
74
|
+
attr_accessor :tier_rule_id
|
|
75
|
+
|
|
76
|
+
# The row key that resolves in the model evidence_ref_kind names.
|
|
77
|
+
attr_accessor :evidence_ref
|
|
78
|
+
|
|
79
|
+
# What evidence_ref is.
|
|
80
|
+
attr_accessor :evidence_ref_kind
|
|
81
|
+
|
|
82
|
+
# The trial's ClinicalTrials.gov registry id (NCT, National Clinical Trial, number) on trial-sourced ladder rows; null otherwise.
|
|
83
|
+
attr_accessor :trial_id
|
|
84
|
+
|
|
85
|
+
# The ClinVar variation id on ClinVar ladder rows; null otherwise.
|
|
86
|
+
attr_accessor :clinvar_variation_id
|
|
87
|
+
|
|
88
|
+
# The FDA device application numbers of a companion diagnostic row; null otherwise.
|
|
89
|
+
attr_accessor :device_application_numbers
|
|
90
|
+
|
|
91
|
+
# The FDA pathway labels (PMA, De Novo, 510(k)) of a companion diagnostic row; null otherwise.
|
|
92
|
+
attr_accessor :device_credential_labels
|
|
93
|
+
|
|
94
|
+
# The source URL the evidence row carries, where it has one.
|
|
95
|
+
attr_accessor :source_url
|
|
96
|
+
|
|
97
|
+
# A resolvable citation: the trial page, the ClinVar variation page, the FDA device page or list, the PubMed page, or the supplier's marketplace page on a service listing. Null where the source offers none.
|
|
98
|
+
attr_accessor :citation_url
|
|
99
|
+
|
|
100
|
+
# A short evidence text (at most 500 characters), the paper title, or the catalogue service name on a service listing row, where the source has one.
|
|
101
|
+
attr_accessor :evidence_snippet
|
|
102
|
+
|
|
103
|
+
# literature_assay lane only: the publication date of the most recent cited paper.
|
|
104
|
+
attr_accessor :most_recent_evidence_date
|
|
105
|
+
|
|
106
|
+
# How the evidence reached the supplier: org_member_exact (the organization record of a member of the supplier), rx_name_key_exact (an exact name-key match of a source name to the supplier) or rx_provider_direct (the supplier's own marketplace listing, no name matched). A name match is not a verified identity.
|
|
107
|
+
attr_accessor :match_method
|
|
108
|
+
|
|
109
|
+
# The confidence of the upstream match rung where that rung defines one; null otherwise, never invented.
|
|
110
|
+
attr_accessor :match_confidence
|
|
111
|
+
|
|
112
|
+
# The source name that matched the supplier's name key, on name-matched rows.
|
|
113
|
+
attr_accessor :company_name_matched
|
|
114
|
+
|
|
115
|
+
# The license statement of the row's source lane. No lane carries a usage restriction.
|
|
116
|
+
attr_accessor :source_license
|
|
117
|
+
|
|
118
|
+
# The credit the row's source lane is owed.
|
|
119
|
+
attr_accessor :attribution
|
|
120
|
+
|
|
121
|
+
# The build date.
|
|
122
|
+
attr_accessor :as_of
|
|
123
|
+
|
|
124
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
125
|
+
def self.attribute_map
|
|
126
|
+
{
|
|
127
|
+
:'provider_biomarker_capability_id' => :'provider_biomarker_capability_id',
|
|
128
|
+
:'provider_id' => :'provider_id',
|
|
129
|
+
:'provider_uuid' => :'provider_uuid',
|
|
130
|
+
:'provider_slug' => :'provider_slug',
|
|
131
|
+
:'provider_name' => :'provider_name',
|
|
132
|
+
:'route_key' => :'route_key',
|
|
133
|
+
:'biomarker_id' => :'biomarker_id',
|
|
134
|
+
:'gene_symbol' => :'gene_symbol',
|
|
135
|
+
:'biomarker_display_name' => :'biomarker_display_name',
|
|
136
|
+
:'evidence_lane' => :'evidence_lane',
|
|
137
|
+
:'evidence_type' => :'evidence_type',
|
|
138
|
+
:'org_role' => :'org_role',
|
|
139
|
+
:'analytical_validation_evidence' => :'analytical_validation_evidence',
|
|
140
|
+
:'clinical_use_evidence' => :'clinical_use_evidence',
|
|
141
|
+
:'regulatory_qualification' => :'regulatory_qualification',
|
|
142
|
+
:'companion_diagnostic' => :'companion_diagnostic',
|
|
143
|
+
:'supplier_declared_status' => :'supplier_declared_status',
|
|
144
|
+
:'tier' => :'tier',
|
|
145
|
+
:'tier_rule_id' => :'tier_rule_id',
|
|
146
|
+
:'evidence_ref' => :'evidence_ref',
|
|
147
|
+
:'evidence_ref_kind' => :'evidence_ref_kind',
|
|
148
|
+
:'trial_id' => :'trial_id',
|
|
149
|
+
:'clinvar_variation_id' => :'clinvar_variation_id',
|
|
150
|
+
:'device_application_numbers' => :'device_application_numbers',
|
|
151
|
+
:'device_credential_labels' => :'device_credential_labels',
|
|
152
|
+
:'source_url' => :'source_url',
|
|
153
|
+
:'citation_url' => :'citation_url',
|
|
154
|
+
:'evidence_snippet' => :'evidence_snippet',
|
|
155
|
+
:'most_recent_evidence_date' => :'most_recent_evidence_date',
|
|
156
|
+
:'match_method' => :'match_method',
|
|
157
|
+
:'match_confidence' => :'match_confidence',
|
|
158
|
+
:'company_name_matched' => :'company_name_matched',
|
|
159
|
+
:'source_license' => :'source_license',
|
|
160
|
+
:'attribution' => :'attribution',
|
|
161
|
+
:'as_of' => :'as_of'
|
|
162
|
+
}
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Returns attribute mapping this model knows about
|
|
166
|
+
def self.acceptable_attribute_map
|
|
167
|
+
attribute_map
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Returns all the JSON keys this model knows about
|
|
171
|
+
def self.acceptable_attributes
|
|
172
|
+
acceptable_attribute_map.values
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Attribute type mapping.
|
|
176
|
+
def self.openapi_types
|
|
177
|
+
{
|
|
178
|
+
:'provider_biomarker_capability_id' => :'String',
|
|
179
|
+
:'provider_id' => :'String',
|
|
180
|
+
:'provider_uuid' => :'String',
|
|
181
|
+
:'provider_slug' => :'String',
|
|
182
|
+
:'provider_name' => :'String',
|
|
183
|
+
:'route_key' => :'String',
|
|
184
|
+
:'biomarker_id' => :'String',
|
|
185
|
+
:'gene_symbol' => :'String',
|
|
186
|
+
:'biomarker_display_name' => :'String',
|
|
187
|
+
:'evidence_lane' => :'String',
|
|
188
|
+
:'evidence_type' => :'String',
|
|
189
|
+
:'org_role' => :'String',
|
|
190
|
+
:'analytical_validation_evidence' => :'String',
|
|
191
|
+
:'clinical_use_evidence' => :'String',
|
|
192
|
+
:'regulatory_qualification' => :'String',
|
|
193
|
+
:'companion_diagnostic' => :'String',
|
|
194
|
+
:'supplier_declared_status' => :'String',
|
|
195
|
+
:'tier' => :'Integer',
|
|
196
|
+
:'tier_rule_id' => :'String',
|
|
197
|
+
:'evidence_ref' => :'String',
|
|
198
|
+
:'evidence_ref_kind' => :'String',
|
|
199
|
+
:'trial_id' => :'String',
|
|
200
|
+
:'clinvar_variation_id' => :'String',
|
|
201
|
+
:'device_application_numbers' => :'Array<String>',
|
|
202
|
+
:'device_credential_labels' => :'Array<String>',
|
|
203
|
+
:'source_url' => :'String',
|
|
204
|
+
:'citation_url' => :'String',
|
|
205
|
+
:'evidence_snippet' => :'String',
|
|
206
|
+
:'most_recent_evidence_date' => :'Date',
|
|
207
|
+
:'match_method' => :'String',
|
|
208
|
+
:'match_confidence' => :'Float',
|
|
209
|
+
:'company_name_matched' => :'String',
|
|
210
|
+
:'source_license' => :'String',
|
|
211
|
+
:'attribution' => :'String',
|
|
212
|
+
:'as_of' => :'Date'
|
|
213
|
+
}
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# List of attributes with nullable: true
|
|
217
|
+
def self.openapi_nullable
|
|
218
|
+
Set.new([
|
|
219
|
+
:'provider_biomarker_capability_id',
|
|
220
|
+
:'provider_id',
|
|
221
|
+
:'provider_uuid',
|
|
222
|
+
:'provider_slug',
|
|
223
|
+
:'provider_name',
|
|
224
|
+
:'route_key',
|
|
225
|
+
:'biomarker_id',
|
|
226
|
+
:'gene_symbol',
|
|
227
|
+
:'biomarker_display_name',
|
|
228
|
+
:'evidence_lane',
|
|
229
|
+
:'evidence_type',
|
|
230
|
+
:'org_role',
|
|
231
|
+
:'analytical_validation_evidence',
|
|
232
|
+
:'clinical_use_evidence',
|
|
233
|
+
:'regulatory_qualification',
|
|
234
|
+
:'companion_diagnostic',
|
|
235
|
+
:'supplier_declared_status',
|
|
236
|
+
:'tier',
|
|
237
|
+
:'tier_rule_id',
|
|
238
|
+
:'evidence_ref',
|
|
239
|
+
:'evidence_ref_kind',
|
|
240
|
+
:'trial_id',
|
|
241
|
+
:'clinvar_variation_id',
|
|
242
|
+
:'device_application_numbers',
|
|
243
|
+
:'device_credential_labels',
|
|
244
|
+
:'source_url',
|
|
245
|
+
:'citation_url',
|
|
246
|
+
:'evidence_snippet',
|
|
247
|
+
:'most_recent_evidence_date',
|
|
248
|
+
:'match_method',
|
|
249
|
+
:'match_confidence',
|
|
250
|
+
:'company_name_matched',
|
|
251
|
+
:'source_license',
|
|
252
|
+
:'attribution',
|
|
253
|
+
:'as_of'
|
|
254
|
+
])
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Initializes the object
|
|
258
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
259
|
+
def initialize(attributes = {})
|
|
260
|
+
if (!attributes.is_a?(Hash))
|
|
261
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ProviderBiomarkerCapabilityRow` initialize method"
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
265
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
266
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
267
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
268
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ProviderBiomarkerCapabilityRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
269
|
+
end
|
|
270
|
+
h[k.to_sym] = v
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'provider_biomarker_capability_id')
|
|
274
|
+
self.provider_biomarker_capability_id = attributes[:'provider_biomarker_capability_id']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'provider_id')
|
|
278
|
+
self.provider_id = attributes[:'provider_id']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'provider_uuid')
|
|
282
|
+
self.provider_uuid = attributes[:'provider_uuid']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'provider_slug')
|
|
286
|
+
self.provider_slug = attributes[:'provider_slug']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'provider_name')
|
|
290
|
+
self.provider_name = attributes[:'provider_name']
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if attributes.key?(:'route_key')
|
|
294
|
+
self.route_key = attributes[:'route_key']
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'biomarker_id')
|
|
298
|
+
self.biomarker_id = attributes[:'biomarker_id']
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if attributes.key?(:'gene_symbol')
|
|
302
|
+
self.gene_symbol = attributes[:'gene_symbol']
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if attributes.key?(:'biomarker_display_name')
|
|
306
|
+
self.biomarker_display_name = attributes[:'biomarker_display_name']
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'evidence_lane')
|
|
310
|
+
self.evidence_lane = attributes[:'evidence_lane']
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'evidence_type')
|
|
314
|
+
self.evidence_type = attributes[:'evidence_type']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'org_role')
|
|
318
|
+
self.org_role = attributes[:'org_role']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'analytical_validation_evidence')
|
|
322
|
+
self.analytical_validation_evidence = attributes[:'analytical_validation_evidence']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'clinical_use_evidence')
|
|
326
|
+
self.clinical_use_evidence = attributes[:'clinical_use_evidence']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'regulatory_qualification')
|
|
330
|
+
self.regulatory_qualification = attributes[:'regulatory_qualification']
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'companion_diagnostic')
|
|
334
|
+
self.companion_diagnostic = attributes[:'companion_diagnostic']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'supplier_declared_status')
|
|
338
|
+
self.supplier_declared_status = attributes[:'supplier_declared_status']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'tier')
|
|
342
|
+
self.tier = attributes[:'tier']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'tier_rule_id')
|
|
346
|
+
self.tier_rule_id = attributes[:'tier_rule_id']
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if attributes.key?(:'evidence_ref')
|
|
350
|
+
self.evidence_ref = attributes[:'evidence_ref']
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'evidence_ref_kind')
|
|
354
|
+
self.evidence_ref_kind = attributes[:'evidence_ref_kind']
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'trial_id')
|
|
358
|
+
self.trial_id = attributes[:'trial_id']
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if attributes.key?(:'clinvar_variation_id')
|
|
362
|
+
self.clinvar_variation_id = attributes[:'clinvar_variation_id']
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
if attributes.key?(:'device_application_numbers')
|
|
366
|
+
if (value = attributes[:'device_application_numbers']).is_a?(Array)
|
|
367
|
+
self.device_application_numbers = value
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
if attributes.key?(:'device_credential_labels')
|
|
372
|
+
if (value = attributes[:'device_credential_labels']).is_a?(Array)
|
|
373
|
+
self.device_credential_labels = value
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if attributes.key?(:'source_url')
|
|
378
|
+
self.source_url = attributes[:'source_url']
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if attributes.key?(:'citation_url')
|
|
382
|
+
self.citation_url = attributes[:'citation_url']
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
if attributes.key?(:'evidence_snippet')
|
|
386
|
+
self.evidence_snippet = attributes[:'evidence_snippet']
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'most_recent_evidence_date')
|
|
390
|
+
self.most_recent_evidence_date = attributes[:'most_recent_evidence_date']
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
if attributes.key?(:'match_method')
|
|
394
|
+
self.match_method = attributes[:'match_method']
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if attributes.key?(:'match_confidence')
|
|
398
|
+
self.match_confidence = attributes[:'match_confidence']
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'company_name_matched')
|
|
402
|
+
self.company_name_matched = attributes[:'company_name_matched']
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
if attributes.key?(:'source_license')
|
|
406
|
+
self.source_license = attributes[:'source_license']
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
if attributes.key?(:'attribution')
|
|
410
|
+
self.attribution = attributes[:'attribution']
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
if attributes.key?(:'as_of')
|
|
414
|
+
self.as_of = attributes[:'as_of']
|
|
415
|
+
end
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
419
|
+
# @return Array for valid properties with the reasons
|
|
420
|
+
def list_invalid_properties
|
|
421
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
422
|
+
invalid_properties = Array.new
|
|
423
|
+
invalid_properties
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# Check to see if the all the properties in the model are valid
|
|
427
|
+
# @return true if the model is valid
|
|
428
|
+
def valid?
|
|
429
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
430
|
+
true
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Checks equality by comparing each attribute.
|
|
434
|
+
# @param [Object] Object to be compared
|
|
435
|
+
def ==(o)
|
|
436
|
+
return true if self.equal?(o)
|
|
437
|
+
self.class == o.class &&
|
|
438
|
+
provider_biomarker_capability_id == o.provider_biomarker_capability_id &&
|
|
439
|
+
provider_id == o.provider_id &&
|
|
440
|
+
provider_uuid == o.provider_uuid &&
|
|
441
|
+
provider_slug == o.provider_slug &&
|
|
442
|
+
provider_name == o.provider_name &&
|
|
443
|
+
route_key == o.route_key &&
|
|
444
|
+
biomarker_id == o.biomarker_id &&
|
|
445
|
+
gene_symbol == o.gene_symbol &&
|
|
446
|
+
biomarker_display_name == o.biomarker_display_name &&
|
|
447
|
+
evidence_lane == o.evidence_lane &&
|
|
448
|
+
evidence_type == o.evidence_type &&
|
|
449
|
+
org_role == o.org_role &&
|
|
450
|
+
analytical_validation_evidence == o.analytical_validation_evidence &&
|
|
451
|
+
clinical_use_evidence == o.clinical_use_evidence &&
|
|
452
|
+
regulatory_qualification == o.regulatory_qualification &&
|
|
453
|
+
companion_diagnostic == o.companion_diagnostic &&
|
|
454
|
+
supplier_declared_status == o.supplier_declared_status &&
|
|
455
|
+
tier == o.tier &&
|
|
456
|
+
tier_rule_id == o.tier_rule_id &&
|
|
457
|
+
evidence_ref == o.evidence_ref &&
|
|
458
|
+
evidence_ref_kind == o.evidence_ref_kind &&
|
|
459
|
+
trial_id == o.trial_id &&
|
|
460
|
+
clinvar_variation_id == o.clinvar_variation_id &&
|
|
461
|
+
device_application_numbers == o.device_application_numbers &&
|
|
462
|
+
device_credential_labels == o.device_credential_labels &&
|
|
463
|
+
source_url == o.source_url &&
|
|
464
|
+
citation_url == o.citation_url &&
|
|
465
|
+
evidence_snippet == o.evidence_snippet &&
|
|
466
|
+
most_recent_evidence_date == o.most_recent_evidence_date &&
|
|
467
|
+
match_method == o.match_method &&
|
|
468
|
+
match_confidence == o.match_confidence &&
|
|
469
|
+
company_name_matched == o.company_name_matched &&
|
|
470
|
+
source_license == o.source_license &&
|
|
471
|
+
attribution == o.attribution &&
|
|
472
|
+
as_of == o.as_of
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# @see the `==` method
|
|
476
|
+
# @param [Object] Object to be compared
|
|
477
|
+
def eql?(o)
|
|
478
|
+
self == o
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# Calculates hash code according to all attributes.
|
|
482
|
+
# @return [Integer] Hash code
|
|
483
|
+
def hash
|
|
484
|
+
[provider_biomarker_capability_id, provider_id, provider_uuid, provider_slug, provider_name, route_key, biomarker_id, gene_symbol, biomarker_display_name, evidence_lane, evidence_type, org_role, analytical_validation_evidence, clinical_use_evidence, regulatory_qualification, companion_diagnostic, supplier_declared_status, tier, tier_rule_id, evidence_ref, evidence_ref_kind, trial_id, clinvar_variation_id, device_application_numbers, device_credential_labels, source_url, citation_url, evidence_snippet, most_recent_evidence_date, match_method, match_confidence, company_name_matched, source_license, attribution, as_of].hash
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# Builds the object from hash
|
|
488
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
489
|
+
# @return [Object] Returns the model itself
|
|
490
|
+
def self.build_from_hash(attributes)
|
|
491
|
+
return nil unless attributes.is_a?(Hash)
|
|
492
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
493
|
+
transformed_hash = {}
|
|
494
|
+
openapi_types.each_pair do |key, type|
|
|
495
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
496
|
+
transformed_hash["#{key}"] = nil
|
|
497
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
498
|
+
# check to ensure the input is an array given that the attribute
|
|
499
|
+
# is documented as an array but the input is not
|
|
500
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
501
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
502
|
+
end
|
|
503
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
504
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
new(transformed_hash)
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# Deserializes the data based on type
|
|
511
|
+
# @param string type Data type
|
|
512
|
+
# @param string value Value to be deserialized
|
|
513
|
+
# @return [Object] Deserialized data
|
|
514
|
+
def self._deserialize(type, value)
|
|
515
|
+
case type.to_sym
|
|
516
|
+
when :Time
|
|
517
|
+
Time.parse(value)
|
|
518
|
+
when :Date
|
|
519
|
+
Date.parse(value)
|
|
520
|
+
when :String
|
|
521
|
+
value.to_s
|
|
522
|
+
when :Integer
|
|
523
|
+
value.to_i
|
|
524
|
+
when :Float
|
|
525
|
+
value.to_f
|
|
526
|
+
when :Boolean
|
|
527
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
528
|
+
true
|
|
529
|
+
else
|
|
530
|
+
false
|
|
531
|
+
end
|
|
532
|
+
when :Object
|
|
533
|
+
# generic object (usually a Hash), return directly
|
|
534
|
+
value
|
|
535
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
536
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
537
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
538
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
539
|
+
k_type = Regexp.last_match[:k_type]
|
|
540
|
+
v_type = Regexp.last_match[:v_type]
|
|
541
|
+
{}.tap do |hash|
|
|
542
|
+
value.each do |k, v|
|
|
543
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
else # model
|
|
547
|
+
# models (e.g. Pet) or oneOf
|
|
548
|
+
klass = PharmaObservatory.const_get(type)
|
|
549
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Returns the string representation of the object
|
|
554
|
+
# @return [String] String presentation of the object
|
|
555
|
+
def to_s
|
|
556
|
+
to_hash.to_s
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
560
|
+
# @return [Hash] Returns the object in the form of hash
|
|
561
|
+
def to_body
|
|
562
|
+
to_hash
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# Returns the object in the form of hash
|
|
566
|
+
# @return [Hash] Returns the object in the form of hash
|
|
567
|
+
def to_hash
|
|
568
|
+
hash = {}
|
|
569
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
570
|
+
value = self.send(attr)
|
|
571
|
+
if value.nil?
|
|
572
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
573
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
hash[param] = _to_hash(value)
|
|
577
|
+
end
|
|
578
|
+
hash
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
# Outputs non-array value in the form of hash
|
|
582
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
583
|
+
# @param [Object] value Any valid value
|
|
584
|
+
# @return [Hash] Returns the value in the form of hash
|
|
585
|
+
def _to_hash(value)
|
|
586
|
+
if value.is_a?(Array)
|
|
587
|
+
value.compact.map { |v| _to_hash(v) }
|
|
588
|
+
elsif value.is_a?(Hash)
|
|
589
|
+
{}.tap do |hash|
|
|
590
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
591
|
+
end
|
|
592
|
+
elsif value.respond_to? :to_hash
|
|
593
|
+
value.to_hash
|
|
594
|
+
else
|
|
595
|
+
value
|
|
596
|
+
end
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
end
|