pharmaobservatory 0.1.7 → 0.1.8
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 +83 -4
- data/docs/BiomarkerAlleleFrequenciesResponse.md +58 -0
- data/docs/BiomarkerAlleleFrequenciesRow.md +62 -0
- data/docs/BiomarkerAssayProvidersResponse.md +58 -0
- data/docs/BiomarkerAssayProvidersRow.md +72 -0
- data/docs/BiomarkerEvidenceByYearResponse.md +58 -0
- data/docs/BiomarkerEvidenceByYearRow.md +32 -0
- data/docs/BiomarkerTraversalStatusResponse.md +58 -0
- data/docs/BiomarkerTraversalStatusRow.md +36 -0
- data/docs/BiomarkersApi.md +320 -0
- data/docs/CompaniesApi.md +1001 -99
- data/docs/CompanyAssetsRow.md +5 -1
- data/docs/CompanyBiomarkerCapabilityResponse.md +58 -0
- data/docs/CompanyBiomarkerCapabilityRow.md +68 -0
- data/docs/CompanyProgramsRow.md +5 -1
- data/docs/CompanyRareDiseaseDeclarationsResponse.md +58 -0
- data/docs/CompanyRareDiseaseDeclarationsRow.md +52 -0
- data/docs/GxpFacilitiesRow.md +22 -0
- data/docs/LegalEntitiesApi.md +981 -101
- data/docs/LegalEntitiesRecordAttributes.md +6 -0
- data/docs/LegalEntitySecFilingsResponse.md +58 -0
- data/docs/LegalEntitySecFilingsRow.md +44 -0
- data/docs/OrgDisclosureTrendResponse.md +58 -0
- data/docs/OrgDisclosureTrendRow.md +62 -0
- data/docs/OwnershipSourceCoverageResponse.md +58 -0
- data/docs/OwnershipSourceCoverageRow.md +62 -0
- data/docs/ProgramLicensingCandidatesRow.md +5 -1
- data/docs/ProgramsRow.md +1 -1
- data/docs/RwdConductorDeliveryResponse.md +58 -0
- data/docs/RwdConductorDeliveryRow.md +74 -0
- data/docs/RwdConductorFootprintResponse.md +58 -0
- data/docs/RwdConductorFootprintRow.md +40 -0
- data/docs/RwdConductorStudiesResponse.md +58 -0
- data/docs/RwdConductorStudiesRow.md +42 -0
- data/docs/RwdConductorsApi.md +393 -0
- data/docs/RwdConductorsRecord.md +38 -0
- data/docs/RwdConductorsResponse.md +58 -0
- data/docs/RwdConductorsRow.md +72 -0
- data/docs/RwdInstitutionsApi.md +153 -0
- data/docs/RwdInstitutionsRecord.md +38 -0
- data/docs/RwdInstitutionsResponse.md +58 -0
- data/docs/RwdInstitutionsRow.md +154 -0
- data/docs/RwdNetworksApi.md +153 -0
- data/docs/RwdNetworksRecord.md +38 -0
- data/docs/RwdNetworksResponse.md +58 -0
- data/docs/RwdNetworksRow.md +110 -0
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/SbtiCrosscheckResponse.md +58 -0
- data/docs/SbtiCrosscheckRow.md +48 -0
- data/docs/SponsorDeliveryResponse.md +58 -0
- data/docs/SponsorDeliveryRow.md +52 -0
- data/docs/SponsorPatentMentionsResponse.md +58 -0
- data/docs/SponsorPatentMentionsRow.md +42 -0
- data/docs/SponsorTrialConditionsResponse.md +58 -0
- data/docs/SponsorTrialConditionsRow.md +36 -0
- data/docs/SponsorTrialDrugsResponse.md +58 -0
- data/docs/SponsorTrialDrugsRow.md +34 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
- data/lib/pharmaobservatory/api/companies_api.rb +1131 -130
- data/lib/pharmaobservatory/api/legal_entities_api.rb +1047 -123
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +413 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_networks_api.rb +161 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_allele_frequencies_row.rb +465 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_assay_providers_row.rb +520 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_evidence_by_year_row.rb +300 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_response.rb +478 -0
- data/lib/pharmaobservatory/models/biomarker_traversal_status_row.rb +322 -0
- data/lib/pharmaobservatory/models/company_assets_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_biomarker_capability_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_biomarker_capability_row.rb +498 -0
- data/lib/pharmaobservatory/models/company_programs_row.rb +24 -2
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/company_rare_disease_declarations_row.rb +410 -0
- data/lib/pharmaobservatory/models/gxp_facilities_row.rb +122 -1
- data/lib/pharmaobservatory/models/legal_entities_record_attributes.rb +28 -1
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_response.rb +478 -0
- data/lib/pharmaobservatory/models/legal_entity_sec_filings_row.rb +370 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_response.rb +478 -0
- data/lib/pharmaobservatory/models/org_disclosure_trend_row.rb +465 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_response.rb +478 -0
- data/lib/pharmaobservatory/models/ownership_source_coverage_row.rb +465 -0
- data/lib/pharmaobservatory/models/program_licensing_candidates_row.rb +24 -2
- data/lib/pharmaobservatory/models/programs_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_delivery_row.rb +537 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_footprint_row.rb +346 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductor_studies_row.rb +355 -0
- data/lib/pharmaobservatory/models/rwd_conductors_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_conductors_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_conductors_row.rb +526 -0
- data/lib/pharmaobservatory/models/rwd_institutions_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_institutions_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_institutions_row.rb +981 -0
- data/lib/pharmaobservatory/models/rwd_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_networks_row.rb +733 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_response.rb +478 -0
- data/lib/pharmaobservatory/models/sbti_crosscheck_row.rb +388 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_delivery_row.rb +410 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_patent_mentions_row.rb +355 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_conditions_row.rb +322 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_response.rb +478 -0
- data/lib/pharmaobservatory/models/sponsor_trial_drugs_row.rb +311 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +46 -0
- metadata +94 -2
|
@@ -0,0 +1,520 @@
|
|
|
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 biomarker_assay_providers dataset: one row per biomarker key and assay-provider company name key. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class BiomarkerAssayProvidersRow
|
|
19
|
+
# The route key of the gene the biomarker resolved to, the entry key for the biomarkers object type. Null when the extraction did not resolve a gene.
|
|
20
|
+
attr_accessor :route_key
|
|
21
|
+
|
|
22
|
+
# The grouping key of the biomarker. The biomarker's key when its gene resolved, otherwise raw: followed by the lower-cased name as written, so two spellings of one unresolved biomarker are two keys.
|
|
23
|
+
attr_accessor :biomarker_key
|
|
24
|
+
|
|
25
|
+
# The biomarker's own key; null for a pair whose gene did not resolve.
|
|
26
|
+
attr_accessor :biomarker_id
|
|
27
|
+
|
|
28
|
+
# The biomarker's name, as resolved or else as extracted.
|
|
29
|
+
attr_accessor :biomarker_display_name
|
|
30
|
+
|
|
31
|
+
# resolved: the gene resolved. unresolved: a gene symbol was extracted and matched nothing. not_applicable: no gene symbol was extracted.
|
|
32
|
+
attr_accessor :gene_resolution_status
|
|
33
|
+
|
|
34
|
+
# The normalised company name the provider rows are grouped on.
|
|
35
|
+
attr_accessor :company_name_key
|
|
36
|
+
|
|
37
|
+
# The provider company name as it appears in the papers.
|
|
38
|
+
attr_accessor :provider_name
|
|
39
|
+
|
|
40
|
+
# The provider's legal entity key, where the marketplace match resolves one.
|
|
41
|
+
attr_accessor :provider_org_id
|
|
42
|
+
|
|
43
|
+
# The provider's company key.
|
|
44
|
+
attr_accessor :provider_company_id
|
|
45
|
+
|
|
46
|
+
# The provider's company name.
|
|
47
|
+
attr_accessor :provider_company_name
|
|
48
|
+
|
|
49
|
+
# The provider's current ultimate parent group key.
|
|
50
|
+
attr_accessor :provider_group_id
|
|
51
|
+
|
|
52
|
+
# The provider's group name.
|
|
53
|
+
attr_accessor :provider_group_name
|
|
54
|
+
|
|
55
|
+
# Whether the provider name matches a supplier in the Scientist.com marketplace.
|
|
56
|
+
attr_accessor :rx_matched
|
|
57
|
+
|
|
58
|
+
# The matched marketplace supplier's id; join to the suppliers dataset.
|
|
59
|
+
attr_accessor :rx_provider_id
|
|
60
|
+
|
|
61
|
+
# The matched marketplace supplier's name.
|
|
62
|
+
attr_accessor :rx_provider_name
|
|
63
|
+
|
|
64
|
+
# The matched supplier's marketplace profile slug.
|
|
65
|
+
attr_accessor :rx_provider_slug
|
|
66
|
+
|
|
67
|
+
# Whether any paper for the pair mentions clinical validation of the assay.
|
|
68
|
+
attr_accessor :has_clinical_validation
|
|
69
|
+
|
|
70
|
+
# Whether any paper for the pair mentions analytical validation of the assay.
|
|
71
|
+
attr_accessor :has_analytical_validation
|
|
72
|
+
|
|
73
|
+
# Papers naming the biomarker and the provider, dated or not.
|
|
74
|
+
attr_accessor :n_papers
|
|
75
|
+
|
|
76
|
+
# Papers with a recoverable publication date.
|
|
77
|
+
attr_accessor :n_dated_papers
|
|
78
|
+
|
|
79
|
+
# Papers with no recoverable publication date. n_dated_papers plus n_undated_papers is n_papers.
|
|
80
|
+
attr_accessor :n_undated_papers
|
|
81
|
+
|
|
82
|
+
# The latest publication date among the dated papers, in UTC. Null when no paper is dated, which is not a statement that none was published recently.
|
|
83
|
+
attr_accessor :most_recent_published_at
|
|
84
|
+
|
|
85
|
+
# The PubMed id of the most recent dated paper.
|
|
86
|
+
attr_accessor :most_recent_pmid
|
|
87
|
+
|
|
88
|
+
# The title of that paper.
|
|
89
|
+
attr_accessor :most_recent_title
|
|
90
|
+
|
|
91
|
+
# True when the provider matches a marketplace supplier or at least two papers name the pair.
|
|
92
|
+
attr_accessor :meets_curated_threshold
|
|
93
|
+
|
|
94
|
+
# The company-level class. diagnostic_provider makes or supplies the diagnostic assay; reagent_supplier is the vendor whose kit appears in a methods section; context_dependent, pharma_or_other and not_a_company are the other decisions; unclassified means no decision yet.
|
|
95
|
+
attr_accessor :assay_provider_class
|
|
96
|
+
|
|
97
|
+
# Where the class decision came from; null when unclassified.
|
|
98
|
+
attr_accessor :assay_provider_class_source
|
|
99
|
+
|
|
100
|
+
# When the class was decided, in UTC; null when unclassified.
|
|
101
|
+
attr_accessor :assay_provider_class_decided_at
|
|
102
|
+
|
|
103
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
104
|
+
def self.attribute_map
|
|
105
|
+
{
|
|
106
|
+
:'route_key' => :'route_key',
|
|
107
|
+
:'biomarker_key' => :'biomarker_key',
|
|
108
|
+
:'biomarker_id' => :'biomarker_id',
|
|
109
|
+
:'biomarker_display_name' => :'biomarker_display_name',
|
|
110
|
+
:'gene_resolution_status' => :'gene_resolution_status',
|
|
111
|
+
:'company_name_key' => :'company_name_key',
|
|
112
|
+
:'provider_name' => :'provider_name',
|
|
113
|
+
:'provider_org_id' => :'provider_org_id',
|
|
114
|
+
:'provider_company_id' => :'provider_company_id',
|
|
115
|
+
:'provider_company_name' => :'provider_company_name',
|
|
116
|
+
:'provider_group_id' => :'provider_group_id',
|
|
117
|
+
:'provider_group_name' => :'provider_group_name',
|
|
118
|
+
:'rx_matched' => :'rx_matched',
|
|
119
|
+
:'rx_provider_id' => :'rx_provider_id',
|
|
120
|
+
:'rx_provider_name' => :'rx_provider_name',
|
|
121
|
+
:'rx_provider_slug' => :'rx_provider_slug',
|
|
122
|
+
:'has_clinical_validation' => :'has_clinical_validation',
|
|
123
|
+
:'has_analytical_validation' => :'has_analytical_validation',
|
|
124
|
+
:'n_papers' => :'n_papers',
|
|
125
|
+
:'n_dated_papers' => :'n_dated_papers',
|
|
126
|
+
:'n_undated_papers' => :'n_undated_papers',
|
|
127
|
+
:'most_recent_published_at' => :'most_recent_published_at',
|
|
128
|
+
:'most_recent_pmid' => :'most_recent_pmid',
|
|
129
|
+
:'most_recent_title' => :'most_recent_title',
|
|
130
|
+
:'meets_curated_threshold' => :'meets_curated_threshold',
|
|
131
|
+
:'assay_provider_class' => :'assay_provider_class',
|
|
132
|
+
:'assay_provider_class_source' => :'assay_provider_class_source',
|
|
133
|
+
:'assay_provider_class_decided_at' => :'assay_provider_class_decided_at'
|
|
134
|
+
}
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Returns attribute mapping this model knows about
|
|
138
|
+
def self.acceptable_attribute_map
|
|
139
|
+
attribute_map
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Returns all the JSON keys this model knows about
|
|
143
|
+
def self.acceptable_attributes
|
|
144
|
+
acceptable_attribute_map.values
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Attribute type mapping.
|
|
148
|
+
def self.openapi_types
|
|
149
|
+
{
|
|
150
|
+
:'route_key' => :'String',
|
|
151
|
+
:'biomarker_key' => :'String',
|
|
152
|
+
:'biomarker_id' => :'String',
|
|
153
|
+
:'biomarker_display_name' => :'String',
|
|
154
|
+
:'gene_resolution_status' => :'String',
|
|
155
|
+
:'company_name_key' => :'String',
|
|
156
|
+
:'provider_name' => :'String',
|
|
157
|
+
:'provider_org_id' => :'String',
|
|
158
|
+
:'provider_company_id' => :'String',
|
|
159
|
+
:'provider_company_name' => :'String',
|
|
160
|
+
:'provider_group_id' => :'String',
|
|
161
|
+
:'provider_group_name' => :'String',
|
|
162
|
+
:'rx_matched' => :'Boolean',
|
|
163
|
+
:'rx_provider_id' => :'String',
|
|
164
|
+
:'rx_provider_name' => :'String',
|
|
165
|
+
:'rx_provider_slug' => :'String',
|
|
166
|
+
:'has_clinical_validation' => :'Boolean',
|
|
167
|
+
:'has_analytical_validation' => :'Boolean',
|
|
168
|
+
:'n_papers' => :'Integer',
|
|
169
|
+
:'n_dated_papers' => :'Integer',
|
|
170
|
+
:'n_undated_papers' => :'Integer',
|
|
171
|
+
:'most_recent_published_at' => :'Time',
|
|
172
|
+
:'most_recent_pmid' => :'String',
|
|
173
|
+
:'most_recent_title' => :'String',
|
|
174
|
+
:'meets_curated_threshold' => :'Boolean',
|
|
175
|
+
:'assay_provider_class' => :'String',
|
|
176
|
+
:'assay_provider_class_source' => :'String',
|
|
177
|
+
:'assay_provider_class_decided_at' => :'Time'
|
|
178
|
+
}
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# List of attributes with nullable: true
|
|
182
|
+
def self.openapi_nullable
|
|
183
|
+
Set.new([
|
|
184
|
+
:'route_key',
|
|
185
|
+
:'biomarker_key',
|
|
186
|
+
:'biomarker_id',
|
|
187
|
+
:'biomarker_display_name',
|
|
188
|
+
:'gene_resolution_status',
|
|
189
|
+
:'company_name_key',
|
|
190
|
+
:'provider_name',
|
|
191
|
+
:'provider_org_id',
|
|
192
|
+
:'provider_company_id',
|
|
193
|
+
:'provider_company_name',
|
|
194
|
+
:'provider_group_id',
|
|
195
|
+
:'provider_group_name',
|
|
196
|
+
:'rx_matched',
|
|
197
|
+
:'rx_provider_id',
|
|
198
|
+
:'rx_provider_name',
|
|
199
|
+
:'rx_provider_slug',
|
|
200
|
+
:'has_clinical_validation',
|
|
201
|
+
:'has_analytical_validation',
|
|
202
|
+
:'n_papers',
|
|
203
|
+
:'n_dated_papers',
|
|
204
|
+
:'n_undated_papers',
|
|
205
|
+
:'most_recent_published_at',
|
|
206
|
+
:'most_recent_pmid',
|
|
207
|
+
:'most_recent_title',
|
|
208
|
+
:'meets_curated_threshold',
|
|
209
|
+
:'assay_provider_class',
|
|
210
|
+
:'assay_provider_class_source',
|
|
211
|
+
:'assay_provider_class_decided_at'
|
|
212
|
+
])
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Initializes the object
|
|
216
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
217
|
+
def initialize(attributes = {})
|
|
218
|
+
if (!attributes.is_a?(Hash))
|
|
219
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::BiomarkerAssayProvidersRow` initialize method"
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
223
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
224
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
225
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
226
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::BiomarkerAssayProvidersRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
227
|
+
end
|
|
228
|
+
h[k.to_sym] = v
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'route_key')
|
|
232
|
+
self.route_key = attributes[:'route_key']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'biomarker_key')
|
|
236
|
+
self.biomarker_key = attributes[:'biomarker_key']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'biomarker_id')
|
|
240
|
+
self.biomarker_id = attributes[:'biomarker_id']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'biomarker_display_name')
|
|
244
|
+
self.biomarker_display_name = attributes[:'biomarker_display_name']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'gene_resolution_status')
|
|
248
|
+
self.gene_resolution_status = attributes[:'gene_resolution_status']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'company_name_key')
|
|
252
|
+
self.company_name_key = attributes[:'company_name_key']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'provider_name')
|
|
256
|
+
self.provider_name = attributes[:'provider_name']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'provider_org_id')
|
|
260
|
+
self.provider_org_id = attributes[:'provider_org_id']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'provider_company_id')
|
|
264
|
+
self.provider_company_id = attributes[:'provider_company_id']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'provider_company_name')
|
|
268
|
+
self.provider_company_name = attributes[:'provider_company_name']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.key?(:'provider_group_id')
|
|
272
|
+
self.provider_group_id = attributes[:'provider_group_id']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'provider_group_name')
|
|
276
|
+
self.provider_group_name = attributes[:'provider_group_name']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'rx_matched')
|
|
280
|
+
self.rx_matched = attributes[:'rx_matched']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.key?(:'rx_provider_id')
|
|
284
|
+
self.rx_provider_id = attributes[:'rx_provider_id']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.key?(:'rx_provider_name')
|
|
288
|
+
self.rx_provider_name = attributes[:'rx_provider_name']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'rx_provider_slug')
|
|
292
|
+
self.rx_provider_slug = attributes[:'rx_provider_slug']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'has_clinical_validation')
|
|
296
|
+
self.has_clinical_validation = attributes[:'has_clinical_validation']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.key?(:'has_analytical_validation')
|
|
300
|
+
self.has_analytical_validation = attributes[:'has_analytical_validation']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'n_papers')
|
|
304
|
+
self.n_papers = attributes[:'n_papers']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'n_dated_papers')
|
|
308
|
+
self.n_dated_papers = attributes[:'n_dated_papers']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'n_undated_papers')
|
|
312
|
+
self.n_undated_papers = attributes[:'n_undated_papers']
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.key?(:'most_recent_published_at')
|
|
316
|
+
self.most_recent_published_at = attributes[:'most_recent_published_at']
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if attributes.key?(:'most_recent_pmid')
|
|
320
|
+
self.most_recent_pmid = attributes[:'most_recent_pmid']
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.key?(:'most_recent_title')
|
|
324
|
+
self.most_recent_title = attributes[:'most_recent_title']
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.key?(:'meets_curated_threshold')
|
|
328
|
+
self.meets_curated_threshold = attributes[:'meets_curated_threshold']
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if attributes.key?(:'assay_provider_class')
|
|
332
|
+
self.assay_provider_class = attributes[:'assay_provider_class']
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
if attributes.key?(:'assay_provider_class_source')
|
|
336
|
+
self.assay_provider_class_source = attributes[:'assay_provider_class_source']
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
if attributes.key?(:'assay_provider_class_decided_at')
|
|
340
|
+
self.assay_provider_class_decided_at = attributes[:'assay_provider_class_decided_at']
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
345
|
+
# @return Array for valid properties with the reasons
|
|
346
|
+
def list_invalid_properties
|
|
347
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
348
|
+
invalid_properties = Array.new
|
|
349
|
+
invalid_properties
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Check to see if the all the properties in the model are valid
|
|
353
|
+
# @return true if the model is valid
|
|
354
|
+
def valid?
|
|
355
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
356
|
+
true
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Checks equality by comparing each attribute.
|
|
360
|
+
# @param [Object] Object to be compared
|
|
361
|
+
def ==(o)
|
|
362
|
+
return true if self.equal?(o)
|
|
363
|
+
self.class == o.class &&
|
|
364
|
+
route_key == o.route_key &&
|
|
365
|
+
biomarker_key == o.biomarker_key &&
|
|
366
|
+
biomarker_id == o.biomarker_id &&
|
|
367
|
+
biomarker_display_name == o.biomarker_display_name &&
|
|
368
|
+
gene_resolution_status == o.gene_resolution_status &&
|
|
369
|
+
company_name_key == o.company_name_key &&
|
|
370
|
+
provider_name == o.provider_name &&
|
|
371
|
+
provider_org_id == o.provider_org_id &&
|
|
372
|
+
provider_company_id == o.provider_company_id &&
|
|
373
|
+
provider_company_name == o.provider_company_name &&
|
|
374
|
+
provider_group_id == o.provider_group_id &&
|
|
375
|
+
provider_group_name == o.provider_group_name &&
|
|
376
|
+
rx_matched == o.rx_matched &&
|
|
377
|
+
rx_provider_id == o.rx_provider_id &&
|
|
378
|
+
rx_provider_name == o.rx_provider_name &&
|
|
379
|
+
rx_provider_slug == o.rx_provider_slug &&
|
|
380
|
+
has_clinical_validation == o.has_clinical_validation &&
|
|
381
|
+
has_analytical_validation == o.has_analytical_validation &&
|
|
382
|
+
n_papers == o.n_papers &&
|
|
383
|
+
n_dated_papers == o.n_dated_papers &&
|
|
384
|
+
n_undated_papers == o.n_undated_papers &&
|
|
385
|
+
most_recent_published_at == o.most_recent_published_at &&
|
|
386
|
+
most_recent_pmid == o.most_recent_pmid &&
|
|
387
|
+
most_recent_title == o.most_recent_title &&
|
|
388
|
+
meets_curated_threshold == o.meets_curated_threshold &&
|
|
389
|
+
assay_provider_class == o.assay_provider_class &&
|
|
390
|
+
assay_provider_class_source == o.assay_provider_class_source &&
|
|
391
|
+
assay_provider_class_decided_at == o.assay_provider_class_decided_at
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# @see the `==` method
|
|
395
|
+
# @param [Object] Object to be compared
|
|
396
|
+
def eql?(o)
|
|
397
|
+
self == o
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# Calculates hash code according to all attributes.
|
|
401
|
+
# @return [Integer] Hash code
|
|
402
|
+
def hash
|
|
403
|
+
[route_key, biomarker_key, biomarker_id, biomarker_display_name, gene_resolution_status, company_name_key, provider_name, provider_org_id, provider_company_id, provider_company_name, provider_group_id, provider_group_name, rx_matched, rx_provider_id, rx_provider_name, rx_provider_slug, has_clinical_validation, has_analytical_validation, n_papers, n_dated_papers, n_undated_papers, most_recent_published_at, most_recent_pmid, most_recent_title, meets_curated_threshold, assay_provider_class, assay_provider_class_source, assay_provider_class_decided_at].hash
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Builds the object from hash
|
|
407
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
408
|
+
# @return [Object] Returns the model itself
|
|
409
|
+
def self.build_from_hash(attributes)
|
|
410
|
+
return nil unless attributes.is_a?(Hash)
|
|
411
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
412
|
+
transformed_hash = {}
|
|
413
|
+
openapi_types.each_pair do |key, type|
|
|
414
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
415
|
+
transformed_hash["#{key}"] = nil
|
|
416
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
417
|
+
# check to ensure the input is an array given that the attribute
|
|
418
|
+
# is documented as an array but the input is not
|
|
419
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
420
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
421
|
+
end
|
|
422
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
423
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
424
|
+
end
|
|
425
|
+
end
|
|
426
|
+
new(transformed_hash)
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Deserializes the data based on type
|
|
430
|
+
# @param string type Data type
|
|
431
|
+
# @param string value Value to be deserialized
|
|
432
|
+
# @return [Object] Deserialized data
|
|
433
|
+
def self._deserialize(type, value)
|
|
434
|
+
case type.to_sym
|
|
435
|
+
when :Time
|
|
436
|
+
Time.parse(value)
|
|
437
|
+
when :Date
|
|
438
|
+
Date.parse(value)
|
|
439
|
+
when :String
|
|
440
|
+
value.to_s
|
|
441
|
+
when :Integer
|
|
442
|
+
value.to_i
|
|
443
|
+
when :Float
|
|
444
|
+
value.to_f
|
|
445
|
+
when :Boolean
|
|
446
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
447
|
+
true
|
|
448
|
+
else
|
|
449
|
+
false
|
|
450
|
+
end
|
|
451
|
+
when :Object
|
|
452
|
+
# generic object (usually a Hash), return directly
|
|
453
|
+
value
|
|
454
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
455
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
456
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
457
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
458
|
+
k_type = Regexp.last_match[:k_type]
|
|
459
|
+
v_type = Regexp.last_match[:v_type]
|
|
460
|
+
{}.tap do |hash|
|
|
461
|
+
value.each do |k, v|
|
|
462
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
463
|
+
end
|
|
464
|
+
end
|
|
465
|
+
else # model
|
|
466
|
+
# models (e.g. Pet) or oneOf
|
|
467
|
+
klass = PharmaObservatory.const_get(type)
|
|
468
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
469
|
+
end
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Returns the string representation of the object
|
|
473
|
+
# @return [String] String presentation of the object
|
|
474
|
+
def to_s
|
|
475
|
+
to_hash.to_s
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
479
|
+
# @return [Hash] Returns the object in the form of hash
|
|
480
|
+
def to_body
|
|
481
|
+
to_hash
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# Returns the object in the form of hash
|
|
485
|
+
# @return [Hash] Returns the object in the form of hash
|
|
486
|
+
def to_hash
|
|
487
|
+
hash = {}
|
|
488
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
489
|
+
value = self.send(attr)
|
|
490
|
+
if value.nil?
|
|
491
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
492
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
hash[param] = _to_hash(value)
|
|
496
|
+
end
|
|
497
|
+
hash
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
# Outputs non-array value in the form of hash
|
|
501
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
502
|
+
# @param [Object] value Any valid value
|
|
503
|
+
# @return [Hash] Returns the value in the form of hash
|
|
504
|
+
def _to_hash(value)
|
|
505
|
+
if value.is_a?(Array)
|
|
506
|
+
value.compact.map { |v| _to_hash(v) }
|
|
507
|
+
elsif value.is_a?(Hash)
|
|
508
|
+
{}.tap do |hash|
|
|
509
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
510
|
+
end
|
|
511
|
+
elsif value.respond_to? :to_hash
|
|
512
|
+
value.to_hash
|
|
513
|
+
else
|
|
514
|
+
value
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
end
|