pharmaobservatory 0.1.3 → 0.1.4

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.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +101 -4
  3. data/docs/BiomarkerBqpAssertionsRow.md +1 -1
  4. data/docs/BiomarkerEvidenceRow.md +1 -1
  5. data/docs/BiomarkerLiteratureRow.md +1 -1
  6. data/docs/BiomarkerRelationsResponse.md +58 -0
  7. data/docs/BiomarkerRelationsRow.md +54 -0
  8. data/docs/BiomarkerSampleCoverageResponse.md +58 -0
  9. data/docs/BiomarkerSampleCoverageRow.md +36 -0
  10. data/docs/BiomarkerSamplePrevalenceResponse.md +58 -0
  11. data/docs/BiomarkerSamplePrevalenceRow.md +56 -0
  12. data/docs/BiomarkerValidationResponse.md +58 -0
  13. data/docs/BiomarkerValidationRow.md +70 -0
  14. data/docs/BiomarkersApi.md +320 -0
  15. data/docs/BiomarkersRow.md +2 -2
  16. data/docs/CellLinesRow.md +1 -1
  17. data/docs/CompaniesApi.md +410 -0
  18. data/docs/CompaniesRecord.md +1 -1
  19. data/docs/CompaniesRecordAttributes.md +18 -0
  20. data/docs/CompaniesRow.md +7 -3
  21. data/docs/CompanyAssetsResponse.md +58 -0
  22. data/docs/CompanyAssetsRow.md +42 -0
  23. data/docs/CompanyFundingEventsResponse.md +58 -0
  24. data/docs/CompanyFundingEventsRow.md +62 -0
  25. data/docs/CompanyFundingSummaryResponse.md +58 -0
  26. data/docs/CompanyFundingSummaryRow.md +46 -0
  27. data/docs/CompanyProgramsRow.md +2 -2
  28. data/docs/ConditionAdverseEventsResponse.md +58 -0
  29. data/docs/ConditionAdverseEventsRow.md +24 -0
  30. data/docs/ConditionBurdenResponse.md +58 -0
  31. data/docs/ConditionBurdenRow.md +32 -0
  32. data/docs/ConditionDeliveryResponse.md +58 -0
  33. data/docs/ConditionDeliveryRow.md +44 -0
  34. data/docs/ConditionDrugsResponse.md +58 -0
  35. data/docs/ConditionDrugsRow.md +26 -0
  36. data/docs/ConditionPrevalenceResponse.md +58 -0
  37. data/docs/ConditionPrevalenceRow.md +62 -0
  38. data/docs/ConditionPublicationsResponse.md +58 -0
  39. data/docs/ConditionPublicationsRow.md +32 -0
  40. data/docs/ConditionSitesResponse.md +58 -0
  41. data/docs/ConditionSitesRow.md +28 -0
  42. data/docs/ConditionTrialsResponse.md +58 -0
  43. data/docs/ConditionTrialsRow.md +58 -0
  44. data/docs/ConditionsApi.md +953 -0
  45. data/docs/ConditionsRecord.md +38 -0
  46. data/docs/ConditionsRecordAttributes.md +20 -0
  47. data/docs/ConditionsResponse.md +58 -0
  48. data/docs/ConditionsRow.md +32 -0
  49. data/docs/DrugPatentCliffRow.md +1 -1
  50. data/docs/InstitutionalHoldingsRow.md +3 -1
  51. data/docs/LegalEntitiesApi.md +160 -0
  52. data/docs/LegalEntitiesRow.md +1 -1
  53. data/docs/OwnershipPositionsResponse.md +58 -0
  54. data/docs/OwnershipPositionsRow.md +100 -0
  55. data/docs/PdufaDatesRow.md +2 -2
  56. data/docs/SiteCroTrialsRow.md +1 -1
  57. data/docs/SiteTrialConditionsRow.md +1 -1
  58. data/docs/SiteTrialDrugsRow.md +1 -1
  59. data/docs/SiteTrialsRow.md +1 -1
  60. data/docs/SponsorRecruitmentByPhaseRow.md +2 -2
  61. data/docs/SponsorRecruitmentDurationRow.md +1 -1
  62. data/docs/SponsorTrialsRow.md +2 -2
  63. data/docs/TrialAdverseEventsResponse.md +58 -0
  64. data/docs/TrialAdverseEventsRow.md +28 -0
  65. data/docs/TrialChangesResponse.md +58 -0
  66. data/docs/TrialChangesRow.md +36 -0
  67. data/docs/TrialDeliveryResponse.md +58 -0
  68. data/docs/TrialDeliveryRow.md +64 -0
  69. data/docs/TrialDemographicsResponse.md +58 -0
  70. data/docs/TrialDemographicsRow.md +32 -0
  71. data/docs/TrialDrugsResponse.md +58 -0
  72. data/docs/TrialDrugsRow.md +30 -0
  73. data/docs/TrialEnrollmentHistoryResponse.md +58 -0
  74. data/docs/TrialEnrollmentHistoryRow.md +36 -0
  75. data/docs/TrialEnrollmentRateResponse.md +58 -0
  76. data/docs/TrialEnrollmentRateRow.md +58 -0
  77. data/docs/TrialExtractedEndpointsResponse.md +58 -0
  78. data/docs/TrialExtractedEndpointsRow.md +40 -0
  79. data/docs/TrialOutcomeMeasuresResponse.md +58 -0
  80. data/docs/TrialOutcomeMeasuresRow.md +28 -0
  81. data/docs/TrialSitesResponse.md +58 -0
  82. data/docs/TrialSitesRow.md +46 -0
  83. data/docs/TrialsApi.md +1033 -0
  84. data/docs/TrialsRecord.md +38 -0
  85. data/docs/TrialsRecordAttributes.md +24 -0
  86. data/docs/TrialsResponse.md +58 -0
  87. data/docs/TrialsRow.md +116 -0
  88. data/lib/pharmaobservatory/api/biomarkers_api.rb +336 -0
  89. data/lib/pharmaobservatory/api/companies_api.rb +455 -0
  90. data/lib/pharmaobservatory/api/conditions_api.rb +1001 -0
  91. data/lib/pharmaobservatory/api/legal_entities_api.rb +168 -0
  92. data/lib/pharmaobservatory/api/trials_api.rb +1085 -0
  93. data/lib/pharmaobservatory/models/biomarker_bqp_assertions_row.rb +1 -1
  94. data/lib/pharmaobservatory/models/biomarker_evidence_row.rb +1 -1
  95. data/lib/pharmaobservatory/models/biomarker_literature_row.rb +1 -1
  96. data/lib/pharmaobservatory/models/biomarker_relations_response.rb +478 -0
  97. data/lib/pharmaobservatory/models/biomarker_relations_row.rb +421 -0
  98. data/lib/pharmaobservatory/models/biomarker_sample_coverage_response.rb +478 -0
  99. data/lib/pharmaobservatory/models/biomarker_sample_coverage_row.rb +322 -0
  100. data/lib/pharmaobservatory/models/biomarker_sample_prevalence_response.rb +478 -0
  101. data/lib/pharmaobservatory/models/biomarker_sample_prevalence_row.rb +436 -0
  102. data/lib/pharmaobservatory/models/biomarker_validation_response.rb +478 -0
  103. data/lib/pharmaobservatory/models/biomarker_validation_row.rb +509 -0
  104. data/lib/pharmaobservatory/models/biomarkers_row.rb +2 -2
  105. data/lib/pharmaobservatory/models/cell_lines_row.rb +1 -1
  106. data/lib/pharmaobservatory/models/companies_record.rb +1 -1
  107. data/lib/pharmaobservatory/models/companies_record_attributes.rb +220 -0
  108. data/lib/pharmaobservatory/models/companies_row.rb +29 -7
  109. data/lib/pharmaobservatory/models/company_assets_response.rb +478 -0
  110. data/lib/pharmaobservatory/models/company_assets_row.rb +355 -0
  111. data/lib/pharmaobservatory/models/company_funding_events_response.rb +478 -0
  112. data/lib/pharmaobservatory/models/company_funding_events_row.rb +465 -0
  113. data/lib/pharmaobservatory/models/company_funding_summary_response.rb +478 -0
  114. data/lib/pharmaobservatory/models/company_funding_summary_row.rb +377 -0
  115. data/lib/pharmaobservatory/models/company_programs_row.rb +2 -2
  116. data/lib/pharmaobservatory/models/condition_adverse_events_response.rb +478 -0
  117. data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +256 -0
  118. data/lib/pharmaobservatory/models/condition_burden_response.rb +478 -0
  119. data/lib/pharmaobservatory/models/condition_burden_row.rb +300 -0
  120. data/lib/pharmaobservatory/models/condition_delivery_response.rb +478 -0
  121. data/lib/pharmaobservatory/models/condition_delivery_row.rb +366 -0
  122. data/lib/pharmaobservatory/models/condition_drugs_response.rb +478 -0
  123. data/lib/pharmaobservatory/models/condition_drugs_row.rb +267 -0
  124. data/lib/pharmaobservatory/models/condition_prevalence_response.rb +478 -0
  125. data/lib/pharmaobservatory/models/condition_prevalence_row.rb +465 -0
  126. data/lib/pharmaobservatory/models/condition_publications_response.rb +478 -0
  127. data/lib/pharmaobservatory/models/condition_publications_row.rb +300 -0
  128. data/lib/pharmaobservatory/models/condition_sites_response.rb +478 -0
  129. data/lib/pharmaobservatory/models/condition_sites_row.rb +278 -0
  130. data/lib/pharmaobservatory/models/condition_trials_response.rb +478 -0
  131. data/lib/pharmaobservatory/models/condition_trials_row.rb +443 -0
  132. data/lib/pharmaobservatory/models/conditions_record.rb +385 -0
  133. data/lib/pharmaobservatory/models/conditions_record_attributes.rb +229 -0
  134. data/lib/pharmaobservatory/models/conditions_response.rb +478 -0
  135. data/lib/pharmaobservatory/models/conditions_row.rb +304 -0
  136. data/lib/pharmaobservatory/models/drug_patent_cliff_row.rb +1 -1
  137. data/lib/pharmaobservatory/models/institutional_holdings_row.rb +13 -2
  138. data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
  139. data/lib/pharmaobservatory/models/ownership_positions_response.rb +478 -0
  140. data/lib/pharmaobservatory/models/ownership_positions_row.rb +674 -0
  141. data/lib/pharmaobservatory/models/pdufa_dates_row.rb +2 -2
  142. data/lib/pharmaobservatory/models/site_cro_trials_row.rb +1 -1
  143. data/lib/pharmaobservatory/models/site_trial_conditions_row.rb +1 -1
  144. data/lib/pharmaobservatory/models/site_trial_drugs_row.rb +1 -1
  145. data/lib/pharmaobservatory/models/site_trials_row.rb +1 -1
  146. data/lib/pharmaobservatory/models/sponsor_recruitment_by_phase_row.rb +2 -2
  147. data/lib/pharmaobservatory/models/sponsor_recruitment_duration_row.rb +1 -1
  148. data/lib/pharmaobservatory/models/sponsor_trials_row.rb +2 -2
  149. data/lib/pharmaobservatory/models/trial_adverse_events_response.rb +478 -0
  150. data/lib/pharmaobservatory/models/trial_adverse_events_row.rb +278 -0
  151. data/lib/pharmaobservatory/models/trial_changes_response.rb +478 -0
  152. data/lib/pharmaobservatory/models/trial_changes_row.rb +328 -0
  153. data/lib/pharmaobservatory/models/trial_delivery_response.rb +478 -0
  154. data/lib/pharmaobservatory/models/trial_delivery_row.rb +476 -0
  155. data/lib/pharmaobservatory/models/trial_demographics_response.rb +478 -0
  156. data/lib/pharmaobservatory/models/trial_demographics_row.rb +300 -0
  157. data/lib/pharmaobservatory/models/trial_drugs_response.rb +478 -0
  158. data/lib/pharmaobservatory/models/trial_drugs_row.rb +291 -0
  159. data/lib/pharmaobservatory/models/trial_enrollment_history_response.rb +478 -0
  160. data/lib/pharmaobservatory/models/trial_enrollment_history_row.rb +322 -0
  161. data/lib/pharmaobservatory/models/trial_enrollment_rate_response.rb +478 -0
  162. data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +443 -0
  163. data/lib/pharmaobservatory/models/trial_extracted_endpoints_response.rb +478 -0
  164. data/lib/pharmaobservatory/models/trial_extracted_endpoints_row.rb +346 -0
  165. data/lib/pharmaobservatory/models/trial_outcome_measures_response.rb +478 -0
  166. data/lib/pharmaobservatory/models/trial_outcome_measures_row.rb +278 -0
  167. data/lib/pharmaobservatory/models/trial_sites_response.rb +478 -0
  168. data/lib/pharmaobservatory/models/trial_sites_row.rb +377 -0
  169. data/lib/pharmaobservatory/models/trials_record.rb +385 -0
  170. data/lib/pharmaobservatory/models/trials_record_attributes.rb +247 -0
  171. data/lib/pharmaobservatory/models/trials_response.rb +478 -0
  172. data/lib/pharmaobservatory/models/trials_row.rb +784 -0
  173. data/lib/pharmaobservatory/version.rb +1 -1
  174. data/lib/pharmaobservatory.rb +63 -0
  175. metadata +127 -1
@@ -0,0 +1,509 @@
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_validation dataset: one row per evidence assertion on a gene. A grouped request returns the group columns and the measures instead, as additional properties.
18
+ class BiomarkerValidationRow
19
+ # The evidence assertion id.
20
+ attr_accessor :biomarker_validation_id
21
+
22
+ # The biomarker's route key, the entry key for the biomarkers object type; for a gene it is the gene symbol.
23
+ attr_accessor :route_key
24
+
25
+ # The gene symbol (HGNC, the HUGO Gene Nomenclature Committee).
26
+ attr_accessor :gene_symbol
27
+
28
+ # The biomarker key.
29
+ attr_accessor :biomarker_id
30
+
31
+ # The biomarker's display name.
32
+ attr_accessor :biomarker_display_name
33
+
34
+ # The kind of biomarker the evidence is filed against.
35
+ attr_accessor :biomarker_kind
36
+
37
+ # The organization that can supply the evidence, as the source names it (null when the source names none that resolved).
38
+ attr_accessor :organization_name
39
+
40
+ # Legal-entity level: the organization record (null when unresolved).
41
+ attr_accessor :organization_org_id
42
+
43
+ # Company level: the organization's company (null when unresolved).
44
+ attr_accessor :organization_company_id
45
+
46
+ # Display name of the organization's company.
47
+ attr_accessor :organization_company_name
48
+
49
+ # Group level: the organization's current ultimate parent; a root's group is itself.
50
+ attr_accessor :organization_group_id
51
+
52
+ # Display name of the organization's group.
53
+ attr_accessor :organization_group_name
54
+
55
+ # What the organization is to the evidence: lead_sponsor, collaborator, contract_vendor, assay_manufacturer, qualification_submitter, testing_lab or publishing_org.
56
+ attr_accessor :organization_role
57
+
58
+ # How the organization name matched an organization record.
59
+ attr_accessor :organization_match_tier
60
+
61
+ # The rung on the validation ladder, 1 to 4. A rung is a kind of evidence, never a score: rows are not ranked across organizations or evidence types.
62
+ attr_accessor :tier
63
+
64
+ # The rung's name, for example fda_authorized_companion_diagnostic or named_in_inclusion_criteria.
65
+ attr_accessor :tier_label
66
+
67
+ # The evidence lane: fda_bqp_qualification, fda_cdx_authorization, aact_endpoint_role, aact_eligibility_section, aact_biospecimen, trial_mention or clinvar_clinical_testing.
68
+ attr_accessor :evidence_type
69
+
70
+ # Sibling rows sharing this biomarker, organization and role. Not the number of source records behind a ClinVar row (clinvar_scv_count).
71
+ attr_accessor :evidence_count
72
+
73
+ # The source reference the row cites.
74
+ attr_accessor :evidence_ref
75
+
76
+ # What kind of reference evidence_ref is.
77
+ attr_accessor :evidence_ref_kind
78
+
79
+ # The trial key (an NCT id) when the evidence is a trial; null otherwise.
80
+ attr_accessor :trial_id
81
+
82
+ # A link to the cited record.
83
+ attr_accessor :citation_url
84
+
85
+ # False for the FDA Biomarker Qualification Program arm, whose captured links are known to go stale; true otherwise. A link marked false may not resolve.
86
+ attr_accessor :citation_verified
87
+
88
+ # The text span the evidence rests on, where the source gives one.
89
+ attr_accessor :evidence_snippet
90
+
91
+ # The biomarker's role in the evidence, where the source states it.
92
+ attr_accessor :biomarker_role
93
+
94
+ # True when the evidence is a claim that the biomarker is a surrogate endpoint.
95
+ attr_accessor :is_surrogate_endpoint_claim
96
+
97
+ # For a ClinVar row, the number of ClinVar submission records the row collapses; null otherwise.
98
+ attr_accessor :clinvar_scv_count
99
+
100
+ # Attribute mapping from ruby-style variable name to JSON key.
101
+ def self.attribute_map
102
+ {
103
+ :'biomarker_validation_id' => :'biomarker_validation_id',
104
+ :'route_key' => :'route_key',
105
+ :'gene_symbol' => :'gene_symbol',
106
+ :'biomarker_id' => :'biomarker_id',
107
+ :'biomarker_display_name' => :'biomarker_display_name',
108
+ :'biomarker_kind' => :'biomarker_kind',
109
+ :'organization_name' => :'organization_name',
110
+ :'organization_org_id' => :'organization_org_id',
111
+ :'organization_company_id' => :'organization_company_id',
112
+ :'organization_company_name' => :'organization_company_name',
113
+ :'organization_group_id' => :'organization_group_id',
114
+ :'organization_group_name' => :'organization_group_name',
115
+ :'organization_role' => :'organization_role',
116
+ :'organization_match_tier' => :'organization_match_tier',
117
+ :'tier' => :'tier',
118
+ :'tier_label' => :'tier_label',
119
+ :'evidence_type' => :'evidence_type',
120
+ :'evidence_count' => :'evidence_count',
121
+ :'evidence_ref' => :'evidence_ref',
122
+ :'evidence_ref_kind' => :'evidence_ref_kind',
123
+ :'trial_id' => :'trial_id',
124
+ :'citation_url' => :'citation_url',
125
+ :'citation_verified' => :'citation_verified',
126
+ :'evidence_snippet' => :'evidence_snippet',
127
+ :'biomarker_role' => :'biomarker_role',
128
+ :'is_surrogate_endpoint_claim' => :'is_surrogate_endpoint_claim',
129
+ :'clinvar_scv_count' => :'clinvar_scv_count'
130
+ }
131
+ end
132
+
133
+ # Returns attribute mapping this model knows about
134
+ def self.acceptable_attribute_map
135
+ attribute_map
136
+ end
137
+
138
+ # Returns all the JSON keys this model knows about
139
+ def self.acceptable_attributes
140
+ acceptable_attribute_map.values
141
+ end
142
+
143
+ # Attribute type mapping.
144
+ def self.openapi_types
145
+ {
146
+ :'biomarker_validation_id' => :'String',
147
+ :'route_key' => :'String',
148
+ :'gene_symbol' => :'String',
149
+ :'biomarker_id' => :'String',
150
+ :'biomarker_display_name' => :'String',
151
+ :'biomarker_kind' => :'String',
152
+ :'organization_name' => :'String',
153
+ :'organization_org_id' => :'String',
154
+ :'organization_company_id' => :'String',
155
+ :'organization_company_name' => :'String',
156
+ :'organization_group_id' => :'String',
157
+ :'organization_group_name' => :'String',
158
+ :'organization_role' => :'String',
159
+ :'organization_match_tier' => :'String',
160
+ :'tier' => :'Integer',
161
+ :'tier_label' => :'String',
162
+ :'evidence_type' => :'String',
163
+ :'evidence_count' => :'Integer',
164
+ :'evidence_ref' => :'String',
165
+ :'evidence_ref_kind' => :'String',
166
+ :'trial_id' => :'String',
167
+ :'citation_url' => :'String',
168
+ :'citation_verified' => :'Boolean',
169
+ :'evidence_snippet' => :'String',
170
+ :'biomarker_role' => :'String',
171
+ :'is_surrogate_endpoint_claim' => :'Boolean',
172
+ :'clinvar_scv_count' => :'Integer'
173
+ }
174
+ end
175
+
176
+ # List of attributes with nullable: true
177
+ def self.openapi_nullable
178
+ Set.new([
179
+ :'biomarker_validation_id',
180
+ :'route_key',
181
+ :'gene_symbol',
182
+ :'biomarker_id',
183
+ :'biomarker_display_name',
184
+ :'biomarker_kind',
185
+ :'organization_name',
186
+ :'organization_org_id',
187
+ :'organization_company_id',
188
+ :'organization_company_name',
189
+ :'organization_group_id',
190
+ :'organization_group_name',
191
+ :'organization_role',
192
+ :'organization_match_tier',
193
+ :'tier',
194
+ :'tier_label',
195
+ :'evidence_type',
196
+ :'evidence_count',
197
+ :'evidence_ref',
198
+ :'evidence_ref_kind',
199
+ :'trial_id',
200
+ :'citation_url',
201
+ :'citation_verified',
202
+ :'evidence_snippet',
203
+ :'biomarker_role',
204
+ :'is_surrogate_endpoint_claim',
205
+ :'clinvar_scv_count'
206
+ ])
207
+ end
208
+
209
+ # Initializes the object
210
+ # @param [Hash] attributes Model attributes in the form of hash
211
+ def initialize(attributes = {})
212
+ if (!attributes.is_a?(Hash))
213
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::BiomarkerValidationRow` initialize method"
214
+ end
215
+
216
+ # check to see if the attribute exists and convert string to symbol for hash key
217
+ acceptable_attribute_map = self.class.acceptable_attribute_map
218
+ attributes = attributes.each_with_object({}) { |(k, v), h|
219
+ if (!acceptable_attribute_map.key?(k.to_sym))
220
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::BiomarkerValidationRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
221
+ end
222
+ h[k.to_sym] = v
223
+ }
224
+
225
+ if attributes.key?(:'biomarker_validation_id')
226
+ self.biomarker_validation_id = attributes[:'biomarker_validation_id']
227
+ end
228
+
229
+ if attributes.key?(:'route_key')
230
+ self.route_key = attributes[:'route_key']
231
+ end
232
+
233
+ if attributes.key?(:'gene_symbol')
234
+ self.gene_symbol = attributes[:'gene_symbol']
235
+ end
236
+
237
+ if attributes.key?(:'biomarker_id')
238
+ self.biomarker_id = attributes[:'biomarker_id']
239
+ end
240
+
241
+ if attributes.key?(:'biomarker_display_name')
242
+ self.biomarker_display_name = attributes[:'biomarker_display_name']
243
+ end
244
+
245
+ if attributes.key?(:'biomarker_kind')
246
+ self.biomarker_kind = attributes[:'biomarker_kind']
247
+ end
248
+
249
+ if attributes.key?(:'organization_name')
250
+ self.organization_name = attributes[:'organization_name']
251
+ end
252
+
253
+ if attributes.key?(:'organization_org_id')
254
+ self.organization_org_id = attributes[:'organization_org_id']
255
+ end
256
+
257
+ if attributes.key?(:'organization_company_id')
258
+ self.organization_company_id = attributes[:'organization_company_id']
259
+ end
260
+
261
+ if attributes.key?(:'organization_company_name')
262
+ self.organization_company_name = attributes[:'organization_company_name']
263
+ end
264
+
265
+ if attributes.key?(:'organization_group_id')
266
+ self.organization_group_id = attributes[:'organization_group_id']
267
+ end
268
+
269
+ if attributes.key?(:'organization_group_name')
270
+ self.organization_group_name = attributes[:'organization_group_name']
271
+ end
272
+
273
+ if attributes.key?(:'organization_role')
274
+ self.organization_role = attributes[:'organization_role']
275
+ end
276
+
277
+ if attributes.key?(:'organization_match_tier')
278
+ self.organization_match_tier = attributes[:'organization_match_tier']
279
+ end
280
+
281
+ if attributes.key?(:'tier')
282
+ self.tier = attributes[:'tier']
283
+ end
284
+
285
+ if attributes.key?(:'tier_label')
286
+ self.tier_label = attributes[:'tier_label']
287
+ end
288
+
289
+ if attributes.key?(:'evidence_type')
290
+ self.evidence_type = attributes[:'evidence_type']
291
+ end
292
+
293
+ if attributes.key?(:'evidence_count')
294
+ self.evidence_count = attributes[:'evidence_count']
295
+ end
296
+
297
+ if attributes.key?(:'evidence_ref')
298
+ self.evidence_ref = attributes[:'evidence_ref']
299
+ end
300
+
301
+ if attributes.key?(:'evidence_ref_kind')
302
+ self.evidence_ref_kind = attributes[:'evidence_ref_kind']
303
+ end
304
+
305
+ if attributes.key?(:'trial_id')
306
+ self.trial_id = attributes[:'trial_id']
307
+ end
308
+
309
+ if attributes.key?(:'citation_url')
310
+ self.citation_url = attributes[:'citation_url']
311
+ end
312
+
313
+ if attributes.key?(:'citation_verified')
314
+ self.citation_verified = attributes[:'citation_verified']
315
+ end
316
+
317
+ if attributes.key?(:'evidence_snippet')
318
+ self.evidence_snippet = attributes[:'evidence_snippet']
319
+ end
320
+
321
+ if attributes.key?(:'biomarker_role')
322
+ self.biomarker_role = attributes[:'biomarker_role']
323
+ end
324
+
325
+ if attributes.key?(:'is_surrogate_endpoint_claim')
326
+ self.is_surrogate_endpoint_claim = attributes[:'is_surrogate_endpoint_claim']
327
+ end
328
+
329
+ if attributes.key?(:'clinvar_scv_count')
330
+ self.clinvar_scv_count = attributes[:'clinvar_scv_count']
331
+ end
332
+ end
333
+
334
+ # Show invalid properties with the reasons. Usually used together with valid?
335
+ # @return Array for valid properties with the reasons
336
+ def list_invalid_properties
337
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
338
+ invalid_properties = Array.new
339
+ invalid_properties
340
+ end
341
+
342
+ # Check to see if the all the properties in the model are valid
343
+ # @return true if the model is valid
344
+ def valid?
345
+ warn '[DEPRECATED] the `valid?` method is obsolete'
346
+ true
347
+ end
348
+
349
+ # Checks equality by comparing each attribute.
350
+ # @param [Object] Object to be compared
351
+ def ==(o)
352
+ return true if self.equal?(o)
353
+ self.class == o.class &&
354
+ biomarker_validation_id == o.biomarker_validation_id &&
355
+ route_key == o.route_key &&
356
+ gene_symbol == o.gene_symbol &&
357
+ biomarker_id == o.biomarker_id &&
358
+ biomarker_display_name == o.biomarker_display_name &&
359
+ biomarker_kind == o.biomarker_kind &&
360
+ organization_name == o.organization_name &&
361
+ organization_org_id == o.organization_org_id &&
362
+ organization_company_id == o.organization_company_id &&
363
+ organization_company_name == o.organization_company_name &&
364
+ organization_group_id == o.organization_group_id &&
365
+ organization_group_name == o.organization_group_name &&
366
+ organization_role == o.organization_role &&
367
+ organization_match_tier == o.organization_match_tier &&
368
+ tier == o.tier &&
369
+ tier_label == o.tier_label &&
370
+ evidence_type == o.evidence_type &&
371
+ evidence_count == o.evidence_count &&
372
+ evidence_ref == o.evidence_ref &&
373
+ evidence_ref_kind == o.evidence_ref_kind &&
374
+ trial_id == o.trial_id &&
375
+ citation_url == o.citation_url &&
376
+ citation_verified == o.citation_verified &&
377
+ evidence_snippet == o.evidence_snippet &&
378
+ biomarker_role == o.biomarker_role &&
379
+ is_surrogate_endpoint_claim == o.is_surrogate_endpoint_claim &&
380
+ clinvar_scv_count == o.clinvar_scv_count
381
+ end
382
+
383
+ # @see the `==` method
384
+ # @param [Object] Object to be compared
385
+ def eql?(o)
386
+ self == o
387
+ end
388
+
389
+ # Calculates hash code according to all attributes.
390
+ # @return [Integer] Hash code
391
+ def hash
392
+ [biomarker_validation_id, route_key, gene_symbol, biomarker_id, biomarker_display_name, biomarker_kind, organization_name, organization_org_id, organization_company_id, organization_company_name, organization_group_id, organization_group_name, organization_role, organization_match_tier, tier, tier_label, evidence_type, evidence_count, evidence_ref, evidence_ref_kind, trial_id, citation_url, citation_verified, evidence_snippet, biomarker_role, is_surrogate_endpoint_claim, clinvar_scv_count].hash
393
+ end
394
+
395
+ # Builds the object from hash
396
+ # @param [Hash] attributes Model attributes in the form of hash
397
+ # @return [Object] Returns the model itself
398
+ def self.build_from_hash(attributes)
399
+ return nil unless attributes.is_a?(Hash)
400
+ attributes = attributes.transform_keys(&:to_sym)
401
+ transformed_hash = {}
402
+ openapi_types.each_pair do |key, type|
403
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
404
+ transformed_hash["#{key}"] = nil
405
+ elsif type =~ /\AArray<(.*)>/i
406
+ # check to ensure the input is an array given that the attribute
407
+ # is documented as an array but the input is not
408
+ if attributes[attribute_map[key]].is_a?(Array)
409
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
410
+ end
411
+ elsif !attributes[attribute_map[key]].nil?
412
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
413
+ end
414
+ end
415
+ new(transformed_hash)
416
+ end
417
+
418
+ # Deserializes the data based on type
419
+ # @param string type Data type
420
+ # @param string value Value to be deserialized
421
+ # @return [Object] Deserialized data
422
+ def self._deserialize(type, value)
423
+ case type.to_sym
424
+ when :Time
425
+ Time.parse(value)
426
+ when :Date
427
+ Date.parse(value)
428
+ when :String
429
+ value.to_s
430
+ when :Integer
431
+ value.to_i
432
+ when :Float
433
+ value.to_f
434
+ when :Boolean
435
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
436
+ true
437
+ else
438
+ false
439
+ end
440
+ when :Object
441
+ # generic object (usually a Hash), return directly
442
+ value
443
+ when /\AArray<(?<inner_type>.+)>\z/
444
+ inner_type = Regexp.last_match[:inner_type]
445
+ value.map { |v| _deserialize(inner_type, v) }
446
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
447
+ k_type = Regexp.last_match[:k_type]
448
+ v_type = Regexp.last_match[:v_type]
449
+ {}.tap do |hash|
450
+ value.each do |k, v|
451
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
452
+ end
453
+ end
454
+ else # model
455
+ # models (e.g. Pet) or oneOf
456
+ klass = PharmaObservatory.const_get(type)
457
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
458
+ end
459
+ end
460
+
461
+ # Returns the string representation of the object
462
+ # @return [String] String presentation of the object
463
+ def to_s
464
+ to_hash.to_s
465
+ end
466
+
467
+ # to_body is an alias to to_hash (backward compatibility)
468
+ # @return [Hash] Returns the object in the form of hash
469
+ def to_body
470
+ to_hash
471
+ end
472
+
473
+ # Returns the object in the form of hash
474
+ # @return [Hash] Returns the object in the form of hash
475
+ def to_hash
476
+ hash = {}
477
+ self.class.attribute_map.each_pair do |attr, param|
478
+ value = self.send(attr)
479
+ if value.nil?
480
+ is_nullable = self.class.openapi_nullable.include?(attr)
481
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
482
+ end
483
+
484
+ hash[param] = _to_hash(value)
485
+ end
486
+ hash
487
+ end
488
+
489
+ # Outputs non-array value in the form of hash
490
+ # For object, use to_hash. Otherwise, just return the value
491
+ # @param [Object] value Any valid value
492
+ # @return [Hash] Returns the value in the form of hash
493
+ def _to_hash(value)
494
+ if value.is_a?(Array)
495
+ value.compact.map { |v| _to_hash(v) }
496
+ elsif value.is_a?(Hash)
497
+ {}.tap do |hash|
498
+ value.each { |k, v| hash[k] = _to_hash(v) }
499
+ end
500
+ elsif value.respond_to? :to_hash
501
+ value.to_hash
502
+ else
503
+ value
504
+ end
505
+ end
506
+
507
+ end
508
+
509
+ end
@@ -43,7 +43,7 @@ module PharmaObservatory
43
43
  # The target's Ensembl gene id.
44
44
  attr_accessor :target_id
45
45
 
46
- # The HGNC gene id.
46
+ # The HUGO Gene Nomenclature Committee (HGNC) gene id.
47
47
  attr_accessor :hgnc_id
48
48
 
49
49
  # The UniProt accession.
@@ -55,7 +55,7 @@ module PharmaObservatory
55
55
  # Feature type for a non-gene feature.
56
56
  attr_accessor :feature_type
57
57
 
58
- # Strongest evidence tier: 1 FDA companion diagnostic through 6 no evidence.
58
+ # Strongest evidence tier: 1 companion diagnostic of the US Food and Drug Administration (FDA) through 6 no evidence.
59
59
  attr_accessor :evidence_tier
60
60
 
61
61
  # The tier's name.
@@ -67,7 +67,7 @@ module PharmaObservatory
67
67
  # The Cellosaurus comment, for a problematic line.
68
68
  attr_accessor :problematic_comment
69
69
 
70
- # ICLAC registration ids.
70
+ # International Cell Line Authentication Committee (ICLAC) registration ids.
71
71
  attr_accessor :iclac_registration_ids
72
72
 
73
73
  # The Cellosaurus release the check ran against.
@@ -70,7 +70,7 @@ module PharmaObservatory
70
70
  :'object_type' => :'String',
71
71
  :'id' => :'String',
72
72
  :'record' => :'CompaniesRow',
73
- :'attributes' => :'Object',
73
+ :'attributes' => :'CompaniesRecordAttributes',
74
74
  :'datasets' => :'Array<DatasetListing>',
75
75
  :'attribution' => :'Array<DatasetAttribution>',
76
76
  :'source_credit' => :'String',