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,498 @@
|
|
|
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 company_biomarker_capability dataset: one row per evidence assertion of an organization on a biomarker. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class CompanyBiomarkerCapabilityRow
|
|
19
|
+
# The evidence assertion id.
|
|
20
|
+
attr_accessor :biomarker_validation_id
|
|
21
|
+
|
|
22
|
+
# The organization's name as filed on the evidence.
|
|
23
|
+
attr_accessor :organization_name
|
|
24
|
+
|
|
25
|
+
# Legal-entity level: the organization record of the organization.
|
|
26
|
+
attr_accessor :organization_org_id
|
|
27
|
+
|
|
28
|
+
# Company level: the company the organization belongs to (null when unresolved).
|
|
29
|
+
attr_accessor :organization_company_id
|
|
30
|
+
|
|
31
|
+
# Display name of the organization's company.
|
|
32
|
+
attr_accessor :organization_company_name
|
|
33
|
+
|
|
34
|
+
# Group level: the organization's current ultimate parent company; a root company's group is itself.
|
|
35
|
+
attr_accessor :organization_group_id
|
|
36
|
+
|
|
37
|
+
# Display name of the organization's group.
|
|
38
|
+
attr_accessor :organization_group_name
|
|
39
|
+
|
|
40
|
+
# The gene's HGNC (Human Genome Organisation Gene Nomenclature Committee) symbol; null for evidence that names no gene.
|
|
41
|
+
attr_accessor :gene_symbol
|
|
42
|
+
|
|
43
|
+
# The biomarker's id (a hash, not the route key).
|
|
44
|
+
attr_accessor :biomarker_id
|
|
45
|
+
|
|
46
|
+
# The biomarker's display name.
|
|
47
|
+
attr_accessor :biomarker_display_name
|
|
48
|
+
|
|
49
|
+
# The kind of biomarker.
|
|
50
|
+
attr_accessor :biomarker_kind
|
|
51
|
+
|
|
52
|
+
# How firmly the biomarker's identity is resolved.
|
|
53
|
+
attr_accessor :biomarker_identity_status
|
|
54
|
+
|
|
55
|
+
# The organization's role in the evidence (for example assay developer or testing laboratory).
|
|
56
|
+
attr_accessor :organization_role
|
|
57
|
+
|
|
58
|
+
# How the organization was matched to its record.
|
|
59
|
+
attr_accessor :organization_match_tier
|
|
60
|
+
|
|
61
|
+
# The evidence tier, higher for stronger kinds of evidence. A label of the kind of evidence, not a quality score.
|
|
62
|
+
attr_accessor :tier
|
|
63
|
+
|
|
64
|
+
# The evidence tier in words.
|
|
65
|
+
attr_accessor :tier_label
|
|
66
|
+
|
|
67
|
+
# The kind of evidence (companion diagnostic authorization, trial endpoint, trial eligibility, trial specimen collection, trial text mention or ClinVar clinical testing).
|
|
68
|
+
attr_accessor :evidence_type
|
|
69
|
+
|
|
70
|
+
# Assertions that share this biomarker, organization and role.
|
|
71
|
+
attr_accessor :evidence_count
|
|
72
|
+
|
|
73
|
+
# The reference of the evidence (a trial id, a device application number or a project id).
|
|
74
|
+
attr_accessor :evidence_ref
|
|
75
|
+
|
|
76
|
+
# What evidence_ref is.
|
|
77
|
+
attr_accessor :evidence_ref_kind
|
|
78
|
+
|
|
79
|
+
# The trial's registry id (NCT, National Clinical Trial, number) when the evidence is a trial.
|
|
80
|
+
attr_accessor :trial_id
|
|
81
|
+
|
|
82
|
+
# A link to the evidence.
|
|
83
|
+
attr_accessor :citation_url
|
|
84
|
+
|
|
85
|
+
# A short excerpt of the evidence.
|
|
86
|
+
attr_accessor :evidence_snippet
|
|
87
|
+
|
|
88
|
+
# The role the biomarker plays in the evidence.
|
|
89
|
+
attr_accessor :biomarker_role
|
|
90
|
+
|
|
91
|
+
# Whether the evidence claims the biomarker as a surrogate endpoint.
|
|
92
|
+
attr_accessor :is_surrogate_endpoint_claim
|
|
93
|
+
|
|
94
|
+
# ClinVar submissions behind a ClinVar row.
|
|
95
|
+
attr_accessor :clinvar_scv_count
|
|
96
|
+
|
|
97
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
|
+
def self.attribute_map
|
|
99
|
+
{
|
|
100
|
+
:'biomarker_validation_id' => :'biomarker_validation_id',
|
|
101
|
+
:'organization_name' => :'organization_name',
|
|
102
|
+
:'organization_org_id' => :'organization_org_id',
|
|
103
|
+
:'organization_company_id' => :'organization_company_id',
|
|
104
|
+
:'organization_company_name' => :'organization_company_name',
|
|
105
|
+
:'organization_group_id' => :'organization_group_id',
|
|
106
|
+
:'organization_group_name' => :'organization_group_name',
|
|
107
|
+
:'gene_symbol' => :'gene_symbol',
|
|
108
|
+
:'biomarker_id' => :'biomarker_id',
|
|
109
|
+
:'biomarker_display_name' => :'biomarker_display_name',
|
|
110
|
+
:'biomarker_kind' => :'biomarker_kind',
|
|
111
|
+
:'biomarker_identity_status' => :'biomarker_identity_status',
|
|
112
|
+
:'organization_role' => :'organization_role',
|
|
113
|
+
:'organization_match_tier' => :'organization_match_tier',
|
|
114
|
+
:'tier' => :'tier',
|
|
115
|
+
:'tier_label' => :'tier_label',
|
|
116
|
+
:'evidence_type' => :'evidence_type',
|
|
117
|
+
:'evidence_count' => :'evidence_count',
|
|
118
|
+
:'evidence_ref' => :'evidence_ref',
|
|
119
|
+
:'evidence_ref_kind' => :'evidence_ref_kind',
|
|
120
|
+
:'trial_id' => :'trial_id',
|
|
121
|
+
:'citation_url' => :'citation_url',
|
|
122
|
+
:'evidence_snippet' => :'evidence_snippet',
|
|
123
|
+
:'biomarker_role' => :'biomarker_role',
|
|
124
|
+
:'is_surrogate_endpoint_claim' => :'is_surrogate_endpoint_claim',
|
|
125
|
+
:'clinvar_scv_count' => :'clinvar_scv_count'
|
|
126
|
+
}
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Returns attribute mapping this model knows about
|
|
130
|
+
def self.acceptable_attribute_map
|
|
131
|
+
attribute_map
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Returns all the JSON keys this model knows about
|
|
135
|
+
def self.acceptable_attributes
|
|
136
|
+
acceptable_attribute_map.values
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Attribute type mapping.
|
|
140
|
+
def self.openapi_types
|
|
141
|
+
{
|
|
142
|
+
:'biomarker_validation_id' => :'String',
|
|
143
|
+
:'organization_name' => :'String',
|
|
144
|
+
:'organization_org_id' => :'String',
|
|
145
|
+
:'organization_company_id' => :'String',
|
|
146
|
+
:'organization_company_name' => :'String',
|
|
147
|
+
:'organization_group_id' => :'String',
|
|
148
|
+
:'organization_group_name' => :'String',
|
|
149
|
+
:'gene_symbol' => :'String',
|
|
150
|
+
:'biomarker_id' => :'String',
|
|
151
|
+
:'biomarker_display_name' => :'String',
|
|
152
|
+
:'biomarker_kind' => :'String',
|
|
153
|
+
:'biomarker_identity_status' => :'String',
|
|
154
|
+
:'organization_role' => :'String',
|
|
155
|
+
:'organization_match_tier' => :'String',
|
|
156
|
+
:'tier' => :'Integer',
|
|
157
|
+
:'tier_label' => :'String',
|
|
158
|
+
:'evidence_type' => :'String',
|
|
159
|
+
:'evidence_count' => :'Integer',
|
|
160
|
+
:'evidence_ref' => :'String',
|
|
161
|
+
:'evidence_ref_kind' => :'String',
|
|
162
|
+
:'trial_id' => :'String',
|
|
163
|
+
:'citation_url' => :'String',
|
|
164
|
+
:'evidence_snippet' => :'String',
|
|
165
|
+
:'biomarker_role' => :'String',
|
|
166
|
+
:'is_surrogate_endpoint_claim' => :'Boolean',
|
|
167
|
+
:'clinvar_scv_count' => :'Integer'
|
|
168
|
+
}
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# List of attributes with nullable: true
|
|
172
|
+
def self.openapi_nullable
|
|
173
|
+
Set.new([
|
|
174
|
+
:'biomarker_validation_id',
|
|
175
|
+
:'organization_name',
|
|
176
|
+
:'organization_org_id',
|
|
177
|
+
:'organization_company_id',
|
|
178
|
+
:'organization_company_name',
|
|
179
|
+
:'organization_group_id',
|
|
180
|
+
:'organization_group_name',
|
|
181
|
+
:'gene_symbol',
|
|
182
|
+
:'biomarker_id',
|
|
183
|
+
:'biomarker_display_name',
|
|
184
|
+
:'biomarker_kind',
|
|
185
|
+
:'biomarker_identity_status',
|
|
186
|
+
:'organization_role',
|
|
187
|
+
:'organization_match_tier',
|
|
188
|
+
:'tier',
|
|
189
|
+
:'tier_label',
|
|
190
|
+
:'evidence_type',
|
|
191
|
+
:'evidence_count',
|
|
192
|
+
:'evidence_ref',
|
|
193
|
+
:'evidence_ref_kind',
|
|
194
|
+
:'trial_id',
|
|
195
|
+
:'citation_url',
|
|
196
|
+
:'evidence_snippet',
|
|
197
|
+
:'biomarker_role',
|
|
198
|
+
:'is_surrogate_endpoint_claim',
|
|
199
|
+
:'clinvar_scv_count'
|
|
200
|
+
])
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Initializes the object
|
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
205
|
+
def initialize(attributes = {})
|
|
206
|
+
if (!attributes.is_a?(Hash))
|
|
207
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::CompanyBiomarkerCapabilityRow` initialize method"
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
211
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
212
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
213
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
214
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::CompanyBiomarkerCapabilityRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
215
|
+
end
|
|
216
|
+
h[k.to_sym] = v
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'biomarker_validation_id')
|
|
220
|
+
self.biomarker_validation_id = attributes[:'biomarker_validation_id']
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'organization_name')
|
|
224
|
+
self.organization_name = attributes[:'organization_name']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'organization_org_id')
|
|
228
|
+
self.organization_org_id = attributes[:'organization_org_id']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'organization_company_id')
|
|
232
|
+
self.organization_company_id = attributes[:'organization_company_id']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'organization_company_name')
|
|
236
|
+
self.organization_company_name = attributes[:'organization_company_name']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'organization_group_id')
|
|
240
|
+
self.organization_group_id = attributes[:'organization_group_id']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'organization_group_name')
|
|
244
|
+
self.organization_group_name = attributes[:'organization_group_name']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'gene_symbol')
|
|
248
|
+
self.gene_symbol = attributes[:'gene_symbol']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'biomarker_id')
|
|
252
|
+
self.biomarker_id = attributes[:'biomarker_id']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'biomarker_display_name')
|
|
256
|
+
self.biomarker_display_name = attributes[:'biomarker_display_name']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'biomarker_kind')
|
|
260
|
+
self.biomarker_kind = attributes[:'biomarker_kind']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'biomarker_identity_status')
|
|
264
|
+
self.biomarker_identity_status = attributes[:'biomarker_identity_status']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'organization_role')
|
|
268
|
+
self.organization_role = attributes[:'organization_role']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.key?(:'organization_match_tier')
|
|
272
|
+
self.organization_match_tier = attributes[:'organization_match_tier']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.key?(:'tier')
|
|
276
|
+
self.tier = attributes[:'tier']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.key?(:'tier_label')
|
|
280
|
+
self.tier_label = attributes[:'tier_label']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.key?(:'evidence_type')
|
|
284
|
+
self.evidence_type = attributes[:'evidence_type']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.key?(:'evidence_count')
|
|
288
|
+
self.evidence_count = attributes[:'evidence_count']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.key?(:'evidence_ref')
|
|
292
|
+
self.evidence_ref = attributes[:'evidence_ref']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.key?(:'evidence_ref_kind')
|
|
296
|
+
self.evidence_ref_kind = attributes[:'evidence_ref_kind']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.key?(:'trial_id')
|
|
300
|
+
self.trial_id = attributes[:'trial_id']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.key?(:'citation_url')
|
|
304
|
+
self.citation_url = attributes[:'citation_url']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.key?(:'evidence_snippet')
|
|
308
|
+
self.evidence_snippet = attributes[:'evidence_snippet']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'biomarker_role')
|
|
312
|
+
self.biomarker_role = attributes[:'biomarker_role']
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.key?(:'is_surrogate_endpoint_claim')
|
|
316
|
+
self.is_surrogate_endpoint_claim = attributes[:'is_surrogate_endpoint_claim']
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if attributes.key?(:'clinvar_scv_count')
|
|
320
|
+
self.clinvar_scv_count = attributes[:'clinvar_scv_count']
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
325
|
+
# @return Array for valid properties with the reasons
|
|
326
|
+
def list_invalid_properties
|
|
327
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
328
|
+
invalid_properties = Array.new
|
|
329
|
+
invalid_properties
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Check to see if the all the properties in the model are valid
|
|
333
|
+
# @return true if the model is valid
|
|
334
|
+
def valid?
|
|
335
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
336
|
+
true
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Checks equality by comparing each attribute.
|
|
340
|
+
# @param [Object] Object to be compared
|
|
341
|
+
def ==(o)
|
|
342
|
+
return true if self.equal?(o)
|
|
343
|
+
self.class == o.class &&
|
|
344
|
+
biomarker_validation_id == o.biomarker_validation_id &&
|
|
345
|
+
organization_name == o.organization_name &&
|
|
346
|
+
organization_org_id == o.organization_org_id &&
|
|
347
|
+
organization_company_id == o.organization_company_id &&
|
|
348
|
+
organization_company_name == o.organization_company_name &&
|
|
349
|
+
organization_group_id == o.organization_group_id &&
|
|
350
|
+
organization_group_name == o.organization_group_name &&
|
|
351
|
+
gene_symbol == o.gene_symbol &&
|
|
352
|
+
biomarker_id == o.biomarker_id &&
|
|
353
|
+
biomarker_display_name == o.biomarker_display_name &&
|
|
354
|
+
biomarker_kind == o.biomarker_kind &&
|
|
355
|
+
biomarker_identity_status == o.biomarker_identity_status &&
|
|
356
|
+
organization_role == o.organization_role &&
|
|
357
|
+
organization_match_tier == o.organization_match_tier &&
|
|
358
|
+
tier == o.tier &&
|
|
359
|
+
tier_label == o.tier_label &&
|
|
360
|
+
evidence_type == o.evidence_type &&
|
|
361
|
+
evidence_count == o.evidence_count &&
|
|
362
|
+
evidence_ref == o.evidence_ref &&
|
|
363
|
+
evidence_ref_kind == o.evidence_ref_kind &&
|
|
364
|
+
trial_id == o.trial_id &&
|
|
365
|
+
citation_url == o.citation_url &&
|
|
366
|
+
evidence_snippet == o.evidence_snippet &&
|
|
367
|
+
biomarker_role == o.biomarker_role &&
|
|
368
|
+
is_surrogate_endpoint_claim == o.is_surrogate_endpoint_claim &&
|
|
369
|
+
clinvar_scv_count == o.clinvar_scv_count
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# @see the `==` method
|
|
373
|
+
# @param [Object] Object to be compared
|
|
374
|
+
def eql?(o)
|
|
375
|
+
self == o
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Calculates hash code according to all attributes.
|
|
379
|
+
# @return [Integer] Hash code
|
|
380
|
+
def hash
|
|
381
|
+
[biomarker_validation_id, organization_name, organization_org_id, organization_company_id, organization_company_name, organization_group_id, organization_group_name, gene_symbol, biomarker_id, biomarker_display_name, biomarker_kind, biomarker_identity_status, organization_role, organization_match_tier, tier, tier_label, evidence_type, evidence_count, evidence_ref, evidence_ref_kind, trial_id, citation_url, evidence_snippet, biomarker_role, is_surrogate_endpoint_claim, clinvar_scv_count].hash
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Builds the object from hash
|
|
385
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
386
|
+
# @return [Object] Returns the model itself
|
|
387
|
+
def self.build_from_hash(attributes)
|
|
388
|
+
return nil unless attributes.is_a?(Hash)
|
|
389
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
390
|
+
transformed_hash = {}
|
|
391
|
+
openapi_types.each_pair do |key, type|
|
|
392
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
393
|
+
transformed_hash["#{key}"] = nil
|
|
394
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
395
|
+
# check to ensure the input is an array given that the attribute
|
|
396
|
+
# is documented as an array but the input is not
|
|
397
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
398
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
399
|
+
end
|
|
400
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
401
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
new(transformed_hash)
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
# Deserializes the data based on type
|
|
408
|
+
# @param string type Data type
|
|
409
|
+
# @param string value Value to be deserialized
|
|
410
|
+
# @return [Object] Deserialized data
|
|
411
|
+
def self._deserialize(type, value)
|
|
412
|
+
case type.to_sym
|
|
413
|
+
when :Time
|
|
414
|
+
Time.parse(value)
|
|
415
|
+
when :Date
|
|
416
|
+
Date.parse(value)
|
|
417
|
+
when :String
|
|
418
|
+
value.to_s
|
|
419
|
+
when :Integer
|
|
420
|
+
value.to_i
|
|
421
|
+
when :Float
|
|
422
|
+
value.to_f
|
|
423
|
+
when :Boolean
|
|
424
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
425
|
+
true
|
|
426
|
+
else
|
|
427
|
+
false
|
|
428
|
+
end
|
|
429
|
+
when :Object
|
|
430
|
+
# generic object (usually a Hash), return directly
|
|
431
|
+
value
|
|
432
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
433
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
434
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
435
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
436
|
+
k_type = Regexp.last_match[:k_type]
|
|
437
|
+
v_type = Regexp.last_match[:v_type]
|
|
438
|
+
{}.tap do |hash|
|
|
439
|
+
value.each do |k, v|
|
|
440
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
else # model
|
|
444
|
+
# models (e.g. Pet) or oneOf
|
|
445
|
+
klass = PharmaObservatory.const_get(type)
|
|
446
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
447
|
+
end
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Returns the string representation of the object
|
|
451
|
+
# @return [String] String presentation of the object
|
|
452
|
+
def to_s
|
|
453
|
+
to_hash.to_s
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
457
|
+
# @return [Hash] Returns the object in the form of hash
|
|
458
|
+
def to_body
|
|
459
|
+
to_hash
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Returns the object in the form of hash
|
|
463
|
+
# @return [Hash] Returns the object in the form of hash
|
|
464
|
+
def to_hash
|
|
465
|
+
hash = {}
|
|
466
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
467
|
+
value = self.send(attr)
|
|
468
|
+
if value.nil?
|
|
469
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
470
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
hash[param] = _to_hash(value)
|
|
474
|
+
end
|
|
475
|
+
hash
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# Outputs non-array value in the form of hash
|
|
479
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
480
|
+
# @param [Object] value Any valid value
|
|
481
|
+
# @return [Hash] Returns the value in the form of hash
|
|
482
|
+
def _to_hash(value)
|
|
483
|
+
if value.is_a?(Array)
|
|
484
|
+
value.compact.map { |v| _to_hash(v) }
|
|
485
|
+
elsif value.is_a?(Hash)
|
|
486
|
+
{}.tap do |hash|
|
|
487
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
488
|
+
end
|
|
489
|
+
elsif value.respond_to? :to_hash
|
|
490
|
+
value.to_hash
|
|
491
|
+
else
|
|
492
|
+
value
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
end
|
|
@@ -46,9 +46,15 @@ module PharmaObservatory
|
|
|
46
46
|
# The condition's name.
|
|
47
47
|
attr_accessor :condition_name
|
|
48
48
|
|
|
49
|
-
# Highest phase reached: 0
|
|
49
|
+
# Highest phase reached on the 0 to 4 scale: 0 not reported, 1 through 4 for phase 1 through phase 4 (4 is marketed); a split phase folds up to its higher phase.
|
|
50
50
|
attr_accessor :max_phase
|
|
51
51
|
|
|
52
|
+
# The furthest phase reached with the split phases kept: Early 1, Phase 1, Phase 1/2, Phase 2, Phase 2/3, Phase 3, Phase 4, or Not reported. max_phase is the same value folded onto 0 to 4 (a split phase counts as its higher phase).
|
|
53
|
+
attr_accessor :max_phase_label
|
|
54
|
+
|
|
55
|
+
# The finest phase rank behind max_phase_label: 6 Phase 4, 5 Phase 3, 4 Phase 2/3, 3 Phase 2, 2 Phase 1/2, 1 Phase 1, 0 Early 1, -1 not reported. Sort on it to order programs by furthest phase with the split phases kept; max_phase is the same value folded onto 0 to 4.
|
|
56
|
+
attr_accessor :max_phase_fine_rank
|
|
57
|
+
|
|
52
58
|
# Lead-sponsored trials in the program.
|
|
53
59
|
attr_accessor :n_trials
|
|
54
60
|
|
|
@@ -81,6 +87,8 @@ module PharmaObservatory
|
|
|
81
87
|
:'condition_id' => :'condition_id',
|
|
82
88
|
:'condition_name' => :'condition_name',
|
|
83
89
|
:'max_phase' => :'max_phase',
|
|
90
|
+
:'max_phase_label' => :'max_phase_label',
|
|
91
|
+
:'max_phase_fine_rank' => :'max_phase_fine_rank',
|
|
84
92
|
:'n_trials' => :'n_trials',
|
|
85
93
|
:'n_active' => :'n_active',
|
|
86
94
|
:'last_year' => :'last_year',
|
|
@@ -114,6 +122,8 @@ module PharmaObservatory
|
|
|
114
122
|
:'condition_id' => :'String',
|
|
115
123
|
:'condition_name' => :'String',
|
|
116
124
|
:'max_phase' => :'Integer',
|
|
125
|
+
:'max_phase_label' => :'String',
|
|
126
|
+
:'max_phase_fine_rank' => :'Integer',
|
|
117
127
|
:'n_trials' => :'Integer',
|
|
118
128
|
:'n_active' => :'Integer',
|
|
119
129
|
:'last_year' => :'Integer',
|
|
@@ -137,6 +147,8 @@ module PharmaObservatory
|
|
|
137
147
|
:'condition_id',
|
|
138
148
|
:'condition_name',
|
|
139
149
|
:'max_phase',
|
|
150
|
+
:'max_phase_label',
|
|
151
|
+
:'max_phase_fine_rank',
|
|
140
152
|
:'n_trials',
|
|
141
153
|
:'n_active',
|
|
142
154
|
:'last_year',
|
|
@@ -206,6 +218,14 @@ module PharmaObservatory
|
|
|
206
218
|
self.max_phase = attributes[:'max_phase']
|
|
207
219
|
end
|
|
208
220
|
|
|
221
|
+
if attributes.key?(:'max_phase_label')
|
|
222
|
+
self.max_phase_label = attributes[:'max_phase_label']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'max_phase_fine_rank')
|
|
226
|
+
self.max_phase_fine_rank = attributes[:'max_phase_fine_rank']
|
|
227
|
+
end
|
|
228
|
+
|
|
209
229
|
if attributes.key?(:'n_trials')
|
|
210
230
|
self.n_trials = attributes[:'n_trials']
|
|
211
231
|
end
|
|
@@ -262,6 +282,8 @@ module PharmaObservatory
|
|
|
262
282
|
condition_id == o.condition_id &&
|
|
263
283
|
condition_name == o.condition_name &&
|
|
264
284
|
max_phase == o.max_phase &&
|
|
285
|
+
max_phase_label == o.max_phase_label &&
|
|
286
|
+
max_phase_fine_rank == o.max_phase_fine_rank &&
|
|
265
287
|
n_trials == o.n_trials &&
|
|
266
288
|
n_active == o.n_active &&
|
|
267
289
|
last_year == o.last_year &&
|
|
@@ -279,7 +301,7 @@ module PharmaObservatory
|
|
|
279
301
|
# Calculates hash code according to all attributes.
|
|
280
302
|
# @return [Integer] Hash code
|
|
281
303
|
def hash
|
|
282
|
-
[sponsor_org_id, sponsor_name, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, drug_id, drug_name, condition_id, condition_name, max_phase, n_trials, n_active, last_year, withdrawn, lifecycle, dalys_millions].hash
|
|
304
|
+
[sponsor_org_id, sponsor_name, sponsor_company_id, sponsor_company_name, sponsor_group_id, sponsor_group_name, drug_id, drug_name, condition_id, condition_name, max_phase, max_phase_label, max_phase_fine_rank, n_trials, n_active, last_year, withdrawn, lifecycle, dalys_millions].hash
|
|
283
305
|
end
|
|
284
306
|
|
|
285
307
|
# Builds the object from hash
|