pharmaobservatory 0.1.4 → 0.1.5

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/ApiV1WhoamiGet200Response.md +13 -1
  4. data/docs/ApiV1WhoamiGet200ResponseLimits.md +32 -0
  5. data/docs/ApiV1WhoamiGet200ResponseQuota.md +20 -0
  6. data/docs/ApiV1WhoamiGet200ResponseQuotaBuckets.md +28 -0
  7. data/docs/ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute.md +28 -0
  8. data/docs/CompaniesRow.md +1 -1
  9. data/docs/ConditionTrialsRow.md +4 -2
  10. data/docs/LegalEntitiesRow.md +1 -1
  11. data/docs/SiteTrialsRow.md +3 -1
  12. data/docs/SponsorTrialsRow.md +4 -2
  13. data/docs/TrialDeliveryRow.md +7 -5
  14. data/docs/TrialEnrollmentRateRow.md +5 -3
  15. data/docs/TrialsRow.md +3 -3
  16. data/lib/pharmaobservatory/models/api_v1_whoami_get200_response.rb +62 -4
  17. data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_limits.rb +419 -0
  18. data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota.rb +263 -0
  19. data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets.rb +367 -0
  20. data/lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets_requests_per_minute.rb +367 -0
  21. data/lib/pharmaobservatory/models/companies_row.rb +1 -1
  22. data/lib/pharmaobservatory/models/condition_trials_row.rb +14 -3
  23. data/lib/pharmaobservatory/models/legal_entities_row.rb +1 -1
  24. data/lib/pharmaobservatory/models/site_trials_row.rb +13 -2
  25. data/lib/pharmaobservatory/models/sponsor_trials_row.rb +14 -3
  26. data/lib/pharmaobservatory/models/trial_delivery_row.rb +22 -11
  27. data/lib/pharmaobservatory/models/trial_enrollment_rate_row.rb +15 -4
  28. data/lib/pharmaobservatory/models/trials_row.rb +3 -3
  29. data/lib/pharmaobservatory/version.rb +1 -1
  30. data/lib/pharmaobservatory.rb +4 -0
  31. metadata +10 -2
@@ -28,9 +28,12 @@ module PharmaObservatory
28
28
  # INTERVENTIONAL, OBSERVATIONAL or EXPANDED_ACCESS.
29
29
  attr_accessor :study_type
30
30
 
31
- # The registry's phase code.
31
+ # The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
32
32
  attr_accessor :phase
33
33
 
34
+ # The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code.
35
+ attr_accessor :phase_label
36
+
34
37
  # Planned enrollment from the earliest snapshot typed ESTIMATED.
35
38
  attr_accessor :planned_enrollment
36
39
 
@@ -50,7 +53,7 @@ module PharmaObservatory
50
53
  attr_accessor :enrollment_met
51
54
 
52
55
  # Whether a planned and an actual enrollment are both recorded.
53
- attr_accessor :has_enrollment_delta
56
+ attr_accessor :enrollment_delta_known
54
57
 
55
58
  # Where the planned enrollment came from: history_earliest_estimated, type_estimated_current or none.
56
59
  attr_accessor :planned_basis
@@ -70,10 +73,10 @@ module PharmaObservatory
70
73
  # Completion date once typed ACTUAL.
71
74
  attr_accessor :actual_completion_date
72
75
 
73
- # Type of the current primary completion date (ACTUAL or ESTIMATED).
76
+ # ACTUAL (a date that has occurred) or ESTIMATED (a planned date). The registry's older ANTICIPATED is published as ESTIMATED.
74
77
  attr_accessor :primary_completion_date_type
75
78
 
76
- # Type of the current completion date (ACTUAL or ESTIMATED).
79
+ # ACTUAL (a date that has occurred) or ESTIMATED (a planned date). The registry's older ANTICIPATED is published as ESTIMATED.
77
80
  attr_accessor :completion_date_type
78
81
 
79
82
  # Actual minus planned primary completion date; positive is later than planned (null without both).
@@ -96,13 +99,14 @@ module PharmaObservatory
96
99
  :'overall_status_summary' => :'overall_status_summary',
97
100
  :'study_type' => :'study_type',
98
101
  :'phase' => :'phase',
102
+ :'phase_label' => :'phase_label',
99
103
  :'planned_enrollment' => :'planned_enrollment',
100
104
  :'actual_enrollment' => :'actual_enrollment',
101
105
  :'enrollment_type' => :'enrollment_type',
102
106
  :'enrollment_delta' => :'enrollment_delta',
103
107
  :'enrollment_attainment_pct' => :'enrollment_attainment_pct',
104
108
  :'enrollment_met' => :'enrollment_met',
105
- :'has_enrollment_delta' => :'has_enrollment_delta',
109
+ :'enrollment_delta_known' => :'enrollment_delta_known',
106
110
  :'planned_basis' => :'planned_basis',
107
111
  :'actual_basis' => :'actual_basis',
108
112
  :'planned_primary_completion_date' => :'planned_primary_completion_date',
@@ -136,13 +140,14 @@ module PharmaObservatory
136
140
  :'overall_status_summary' => :'String',
137
141
  :'study_type' => :'String',
138
142
  :'phase' => :'String',
143
+ :'phase_label' => :'String',
139
144
  :'planned_enrollment' => :'Integer',
140
145
  :'actual_enrollment' => :'Integer',
141
146
  :'enrollment_type' => :'String',
142
147
  :'enrollment_delta' => :'Integer',
143
148
  :'enrollment_attainment_pct' => :'Float',
144
149
  :'enrollment_met' => :'Boolean',
145
- :'has_enrollment_delta' => :'Boolean',
150
+ :'enrollment_delta_known' => :'Boolean',
146
151
  :'planned_basis' => :'String',
147
152
  :'actual_basis' => :'String',
148
153
  :'planned_primary_completion_date' => :'Date',
@@ -166,13 +171,14 @@ module PharmaObservatory
166
171
  :'overall_status_summary',
167
172
  :'study_type',
168
173
  :'phase',
174
+ :'phase_label',
169
175
  :'planned_enrollment',
170
176
  :'actual_enrollment',
171
177
  :'enrollment_type',
172
178
  :'enrollment_delta',
173
179
  :'enrollment_attainment_pct',
174
180
  :'enrollment_met',
175
- :'has_enrollment_delta',
181
+ :'enrollment_delta_known',
176
182
  :'planned_basis',
177
183
  :'actual_basis',
178
184
  :'planned_primary_completion_date',
@@ -224,6 +230,10 @@ module PharmaObservatory
224
230
  self.phase = attributes[:'phase']
225
231
  end
226
232
 
233
+ if attributes.key?(:'phase_label')
234
+ self.phase_label = attributes[:'phase_label']
235
+ end
236
+
227
237
  if attributes.key?(:'planned_enrollment')
228
238
  self.planned_enrollment = attributes[:'planned_enrollment']
229
239
  end
@@ -248,8 +258,8 @@ module PharmaObservatory
248
258
  self.enrollment_met = attributes[:'enrollment_met']
249
259
  end
250
260
 
251
- if attributes.key?(:'has_enrollment_delta')
252
- self.has_enrollment_delta = attributes[:'has_enrollment_delta']
261
+ if attributes.key?(:'enrollment_delta_known')
262
+ self.enrollment_delta_known = attributes[:'enrollment_delta_known']
253
263
  end
254
264
 
255
265
  if attributes.key?(:'planned_basis')
@@ -326,13 +336,14 @@ module PharmaObservatory
326
336
  overall_status_summary == o.overall_status_summary &&
327
337
  study_type == o.study_type &&
328
338
  phase == o.phase &&
339
+ phase_label == o.phase_label &&
329
340
  planned_enrollment == o.planned_enrollment &&
330
341
  actual_enrollment == o.actual_enrollment &&
331
342
  enrollment_type == o.enrollment_type &&
332
343
  enrollment_delta == o.enrollment_delta &&
333
344
  enrollment_attainment_pct == o.enrollment_attainment_pct &&
334
345
  enrollment_met == o.enrollment_met &&
335
- has_enrollment_delta == o.has_enrollment_delta &&
346
+ enrollment_delta_known == o.enrollment_delta_known &&
336
347
  planned_basis == o.planned_basis &&
337
348
  actual_basis == o.actual_basis &&
338
349
  planned_primary_completion_date == o.planned_primary_completion_date &&
@@ -356,7 +367,7 @@ module PharmaObservatory
356
367
  # Calculates hash code according to all attributes.
357
368
  # @return [Integer] Hash code
358
369
  def hash
359
- [trial_id, lead_sponsor_name, overall_status_summary, study_type, phase, planned_enrollment, actual_enrollment, enrollment_type, enrollment_delta, enrollment_attainment_pct, enrollment_met, has_enrollment_delta, planned_basis, actual_basis, planned_primary_completion_date, actual_primary_completion_date, planned_completion_date, actual_completion_date, primary_completion_date_type, completion_date_type, primary_completion_slip_days, completion_slip_days, completion_slipped, has_completion_delta].hash
370
+ [trial_id, lead_sponsor_name, overall_status_summary, study_type, phase, phase_label, planned_enrollment, actual_enrollment, enrollment_type, enrollment_delta, enrollment_attainment_pct, enrollment_met, enrollment_delta_known, planned_basis, actual_basis, planned_primary_completion_date, actual_primary_completion_date, planned_completion_date, actual_completion_date, primary_completion_date_type, completion_date_type, primary_completion_slip_days, completion_slip_days, completion_slipped, has_completion_delta].hash
360
371
  end
361
372
 
362
373
  # Builds the object from hash
@@ -19,9 +19,12 @@ module PharmaObservatory
19
19
  # The trial's ClinicalTrials.gov registry id (NCT, National Clinical Trial, number).
20
20
  attr_accessor :trial_id
21
21
 
22
- # The registry's phase code.
22
+ # The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
23
23
  attr_accessor :phase
24
24
 
25
+ # The trial phase as a display label (Phase 2, Phase 3, Observational, Not applicable, Expanded access, Unknown). The same trial's phase column holds the registry code.
26
+ attr_accessor :phase_label
27
+
25
28
  # The lead sponsor name as filed.
26
29
  attr_accessor :lead_sponsor_name
27
30
 
@@ -55,10 +58,10 @@ module PharmaObservatory
55
58
  # Completion date.
56
59
  attr_accessor :completion_date
57
60
 
58
- # ACTUAL or ESTIMATED.
61
+ # ACTUAL (a date that has occurred) or ESTIMATED (a planned date). The registry's older ANTICIPATED is published as ESTIMATED.
59
62
  attr_accessor :primary_completion_date_type
60
63
 
61
- # ACTUAL or ESTIMATED.
64
+ # ACTUAL (a date that has occurred) or ESTIMATED (a planned date). The registry's older ANTICIPATED is published as ESTIMATED.
62
65
  attr_accessor :completion_date_type
63
66
 
64
67
  # Whether the inputs support a rate.
@@ -84,6 +87,7 @@ module PharmaObservatory
84
87
  {
85
88
  :'trial_id' => :'trial_id',
86
89
  :'phase' => :'phase',
90
+ :'phase_label' => :'phase_label',
87
91
  :'lead_sponsor_name' => :'lead_sponsor_name',
88
92
  :'overall_status_summary' => :'overall_status_summary',
89
93
  :'actual_enrollment' => :'actual_enrollment',
@@ -121,6 +125,7 @@ module PharmaObservatory
121
125
  {
122
126
  :'trial_id' => :'String',
123
127
  :'phase' => :'String',
128
+ :'phase_label' => :'String',
124
129
  :'lead_sponsor_name' => :'String',
125
130
  :'overall_status_summary' => :'String',
126
131
  :'actual_enrollment' => :'Integer',
@@ -148,6 +153,7 @@ module PharmaObservatory
148
153
  Set.new([
149
154
  :'trial_id',
150
155
  :'phase',
156
+ :'phase_label',
151
157
  :'lead_sponsor_name',
152
158
  :'overall_status_summary',
153
159
  :'actual_enrollment',
@@ -194,6 +200,10 @@ module PharmaObservatory
194
200
  self.phase = attributes[:'phase']
195
201
  end
196
202
 
203
+ if attributes.key?(:'phase_label')
204
+ self.phase_label = attributes[:'phase_label']
205
+ end
206
+
197
207
  if attributes.key?(:'lead_sponsor_name')
198
208
  self.lead_sponsor_name = attributes[:'lead_sponsor_name']
199
209
  end
@@ -293,6 +303,7 @@ module PharmaObservatory
293
303
  self.class == o.class &&
294
304
  trial_id == o.trial_id &&
295
305
  phase == o.phase &&
306
+ phase_label == o.phase_label &&
296
307
  lead_sponsor_name == o.lead_sponsor_name &&
297
308
  overall_status_summary == o.overall_status_summary &&
298
309
  actual_enrollment == o.actual_enrollment &&
@@ -323,7 +334,7 @@ module PharmaObservatory
323
334
  # Calculates hash code according to all attributes.
324
335
  # @return [Integer] Hash code
325
336
  def hash
326
- [trial_id, phase, lead_sponsor_name, overall_status_summary, actual_enrollment, enrollment_type, enrollment_is_plausible, active_sites, facility_country_count, has_us_facility, start_date, primary_completion_date, completion_date, primary_completion_date_type, completion_date_type, is_rate_computable, rate_flag_reason, duration_months, duration_months_overall, pts_per_month, pts_per_site_month].hash
337
+ [trial_id, phase, phase_label, lead_sponsor_name, overall_status_summary, actual_enrollment, enrollment_type, enrollment_is_plausible, active_sites, facility_country_count, has_us_facility, start_date, primary_completion_date, completion_date, primary_completion_date_type, completion_date_type, is_rate_computable, rate_flag_reason, duration_months, duration_months_overall, pts_per_month, pts_per_site_month].hash
327
338
  end
328
339
 
329
340
  # Builds the object from hash
@@ -34,7 +34,7 @@ module PharmaObservatory
34
34
  # A coarse status label derived from the overall status (Recruiting, Completed, Discontinued and so on).
35
35
  attr_accessor :overall_status_summary
36
36
 
37
- # The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA).
37
+ # The registry's phase code (PHASE1, PHASE2, PHASE2/PHASE3, NA and so on). Null when the registry gives no phase (observational and expanded-access trials); phase_label carries the display label for those.
38
38
  attr_accessor :phase
39
39
 
40
40
  # The trial phase as a label (Phase 2, Phase 3, Observational, Not applicable).
@@ -64,13 +64,13 @@ module PharmaObservatory
64
64
  # Primary completion date.
65
65
  attr_accessor :primary_completion_date
66
66
 
67
- # ACTUAL (a date that has occurred) or ESTIMATED (a planned date).
67
+ # ACTUAL (a date that has occurred) or ESTIMATED (a planned date). The registry's older ANTICIPATED is published as ESTIMATED.
68
68
  attr_accessor :primary_completion_date_type
69
69
 
70
70
  # Completion date.
71
71
  attr_accessor :completion_date
72
72
 
73
- # ACTUAL (a date that has occurred) or ESTIMATED (a planned date).
73
+ # ACTUAL (a date that has occurred) or ESTIMATED (a planned date). The registry's older ANTICIPATED is published as ESTIMATED.
74
74
  attr_accessor :completion_date_type
75
75
 
76
76
  # Date the study was first posted to the registry.
@@ -11,5 +11,5 @@ Generator version: 7.13.0
11
11
  =end
12
12
 
13
13
  module PharmaObservatory
14
- VERSION = '0.1.4'
14
+ VERSION = '0.1.5'
15
15
  end
@@ -18,6 +18,10 @@ require 'pharmaobservatory/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pharmaobservatory/models/api_v1_whoami_get200_response'
21
+ require 'pharmaobservatory/models/api_v1_whoami_get200_response_limits'
22
+ require 'pharmaobservatory/models/api_v1_whoami_get200_response_quota'
23
+ require 'pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets'
24
+ require 'pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets_requests_per_minute'
21
25
  require 'pharmaobservatory/models/auth_error'
22
26
  require 'pharmaobservatory/models/biomarker_bqp_assertions_response'
23
27
  require 'pharmaobservatory/models/biomarker_bqp_assertions_row'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pharmaobservatory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scientist.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-19 00:00:00.000000000 Z
11
+ date: 2026-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -89,6 +89,10 @@ files:
89
89
  - README.md
90
90
  - docs/ApiV1BaseApi.md
91
91
  - docs/ApiV1WhoamiGet200Response.md
92
+ - docs/ApiV1WhoamiGet200ResponseLimits.md
93
+ - docs/ApiV1WhoamiGet200ResponseQuota.md
94
+ - docs/ApiV1WhoamiGet200ResponseQuotaBuckets.md
95
+ - docs/ApiV1WhoamiGet200ResponseQuotaBucketsRequestsPerMinute.md
92
96
  - docs/AuthError.md
93
97
  - docs/BiomarkerBqpAssertionsResponse.md
94
98
  - docs/BiomarkerBqpAssertionsRow.md
@@ -252,6 +256,10 @@ files:
252
256
  - lib/pharmaobservatory/api_error.rb
253
257
  - lib/pharmaobservatory/configuration.rb
254
258
  - lib/pharmaobservatory/models/api_v1_whoami_get200_response.rb
259
+ - lib/pharmaobservatory/models/api_v1_whoami_get200_response_limits.rb
260
+ - lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota.rb
261
+ - lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets.rb
262
+ - lib/pharmaobservatory/models/api_v1_whoami_get200_response_quota_buckets_requests_per_minute.rb
255
263
  - lib/pharmaobservatory/models/auth_error.rb
256
264
  - lib/pharmaobservatory/models/biomarker_bqp_assertions_response.rb
257
265
  - lib/pharmaobservatory/models/biomarker_bqp_assertions_row.rb