pharmaobservatory 0.1.22 → 0.1.23

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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -4
  3. data/docs/InvestigatorsApi.md +80 -0
  4. data/docs/ProviderRwdDeliveryRow.md +2 -0
  5. data/docs/ProviderRwdDeliveryStudyRow.md +2 -0
  6. data/docs/ProviderRwdFootprintRow.md +2 -0
  7. data/docs/RwdConductorsApi.md +160 -0
  8. data/docs/RwdSourcesRow.md +1 -1
  9. data/docs/RwdStudiesApi.md +80 -0
  10. data/docs/RwdUsNetworkMembershipsResponse.md +58 -0
  11. data/docs/RwdUsNetworkMembershipsRow.md +98 -0
  12. data/docs/RwdUsNetworkProjectsResponse.md +58 -0
  13. data/docs/RwdUsNetworkProjectsRow.md +80 -0
  14. data/docs/RwdUsNetworksApi.md +313 -0
  15. data/docs/RwdUsNetworksRecord.md +38 -0
  16. data/docs/RwdUsNetworksResponse.md +58 -0
  17. data/docs/RwdUsNetworksRow.md +60 -0
  18. data/docs/SupplierRwdDeclarationsResponse.md +58 -0
  19. data/docs/SupplierRwdDeclarationsRow.md +74 -0
  20. data/docs/SuppliersApi.md +160 -0
  21. data/docs/TrialPublicationsResponse.md +58 -0
  22. data/docs/TrialPublicationsRow.md +34 -0
  23. data/docs/TrialsApi.md +80 -0
  24. data/lib/pharmaobservatory/api/investigators_api.rb +84 -0
  25. data/lib/pharmaobservatory/api/rwd_conductors_api.rb +168 -0
  26. data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
  27. data/lib/pharmaobservatory/api/rwd_us_networks_api.rb +329 -0
  28. data/lib/pharmaobservatory/api/suppliers_api.rb +168 -0
  29. data/lib/pharmaobservatory/api/trials_api.rb +84 -0
  30. data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +12 -1
  31. data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +12 -1
  32. data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +12 -1
  33. data/lib/pharmaobservatory/models/rwd_sources_row.rb +1 -1
  34. data/lib/pharmaobservatory/models/rwd_us_network_memberships_response.rb +478 -0
  35. data/lib/pharmaobservatory/models/rwd_us_network_memberships_row.rb +663 -0
  36. data/lib/pharmaobservatory/models/rwd_us_network_projects_response.rb +478 -0
  37. data/lib/pharmaobservatory/models/rwd_us_network_projects_row.rb +564 -0
  38. data/lib/pharmaobservatory/models/rwd_us_networks_record.rb +385 -0
  39. data/lib/pharmaobservatory/models/rwd_us_networks_response.rb +478 -0
  40. data/lib/pharmaobservatory/models/rwd_us_networks_row.rb +454 -0
  41. data/lib/pharmaobservatory/models/supplier_rwd_declarations_response.rb +478 -0
  42. data/lib/pharmaobservatory/models/supplier_rwd_declarations_row.rb +539 -0
  43. data/lib/pharmaobservatory/models/trial_publications_response.rb +478 -0
  44. data/lib/pharmaobservatory/models/trial_publications_row.rb +313 -0
  45. data/lib/pharmaobservatory/version.rb +1 -1
  46. data/lib/pharmaobservatory.rb +12 -0
  47. metadata +26 -2
@@ -0,0 +1,313 @@
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 trial_publications dataset: one row per trial and PubMed id. A grouped request returns the group columns and the measures instead, as additional properties.
18
+ class TrialPublicationsRow
19
+ # The trial's ClinicalTrials.gov registry id (NCT, National Clinical Trial, number).
20
+ attr_accessor :trial_id
21
+
22
+ # The PubMed id of the paper.
23
+ attr_accessor :pmid
24
+
25
+ # The paper's title.
26
+ attr_accessor :title
27
+
28
+ # The journal's title (null when the paper's journal is not in the journal table).
29
+ attr_accessor :journal_title
30
+
31
+ # The publication year (null when undated).
32
+ attr_accessor :pub_year
33
+
34
+ # The paper's study-design label, one normalized publication type by study-design priority; the page's design column.
35
+ attr_accessor :evidence_type
36
+
37
+ # The citation for the paper: one citation per paper, the longest among the trials that cite the PubMed id.
38
+ attr_accessor :citation
39
+
40
+ # Every reference kind the registry filed for this paper on this trial, lower-cased (background, result, derived).
41
+ attr_accessor :reference_types
42
+
43
+ # True when any reference kind of the row is a results reference; the page's Results label.
44
+ attr_accessor :results
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'trial_id' => :'trial_id',
50
+ :'pmid' => :'pmid',
51
+ :'title' => :'title',
52
+ :'journal_title' => :'journal_title',
53
+ :'pub_year' => :'pub_year',
54
+ :'evidence_type' => :'evidence_type',
55
+ :'citation' => :'citation',
56
+ :'reference_types' => :'reference_types',
57
+ :'results' => :'results'
58
+ }
59
+ end
60
+
61
+ # Returns attribute mapping this model knows about
62
+ def self.acceptable_attribute_map
63
+ attribute_map
64
+ end
65
+
66
+ # Returns all the JSON keys this model knows about
67
+ def self.acceptable_attributes
68
+ acceptable_attribute_map.values
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'trial_id' => :'String',
75
+ :'pmid' => :'String',
76
+ :'title' => :'String',
77
+ :'journal_title' => :'String',
78
+ :'pub_year' => :'Integer',
79
+ :'evidence_type' => :'String',
80
+ :'citation' => :'String',
81
+ :'reference_types' => :'Array<String>',
82
+ :'results' => :'Boolean'
83
+ }
84
+ end
85
+
86
+ # List of attributes with nullable: true
87
+ def self.openapi_nullable
88
+ Set.new([
89
+ :'trial_id',
90
+ :'pmid',
91
+ :'title',
92
+ :'journal_title',
93
+ :'pub_year',
94
+ :'evidence_type',
95
+ :'citation',
96
+ :'reference_types',
97
+ :'results'
98
+ ])
99
+ end
100
+
101
+ # Initializes the object
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ def initialize(attributes = {})
104
+ if (!attributes.is_a?(Hash))
105
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::TrialPublicationsRow` initialize method"
106
+ end
107
+
108
+ # check to see if the attribute exists and convert string to symbol for hash key
109
+ acceptable_attribute_map = self.class.acceptable_attribute_map
110
+ attributes = attributes.each_with_object({}) { |(k, v), h|
111
+ if (!acceptable_attribute_map.key?(k.to_sym))
112
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::TrialPublicationsRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
113
+ end
114
+ h[k.to_sym] = v
115
+ }
116
+
117
+ if attributes.key?(:'trial_id')
118
+ self.trial_id = attributes[:'trial_id']
119
+ end
120
+
121
+ if attributes.key?(:'pmid')
122
+ self.pmid = attributes[:'pmid']
123
+ end
124
+
125
+ if attributes.key?(:'title')
126
+ self.title = attributes[:'title']
127
+ end
128
+
129
+ if attributes.key?(:'journal_title')
130
+ self.journal_title = attributes[:'journal_title']
131
+ end
132
+
133
+ if attributes.key?(:'pub_year')
134
+ self.pub_year = attributes[:'pub_year']
135
+ end
136
+
137
+ if attributes.key?(:'evidence_type')
138
+ self.evidence_type = attributes[:'evidence_type']
139
+ end
140
+
141
+ if attributes.key?(:'citation')
142
+ self.citation = attributes[:'citation']
143
+ end
144
+
145
+ if attributes.key?(:'reference_types')
146
+ if (value = attributes[:'reference_types']).is_a?(Array)
147
+ self.reference_types = value
148
+ end
149
+ end
150
+
151
+ if attributes.key?(:'results')
152
+ self.results = attributes[:'results']
153
+ end
154
+ end
155
+
156
+ # Show invalid properties with the reasons. Usually used together with valid?
157
+ # @return Array for valid properties with the reasons
158
+ def list_invalid_properties
159
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
160
+ invalid_properties = Array.new
161
+ invalid_properties
162
+ end
163
+
164
+ # Check to see if the all the properties in the model are valid
165
+ # @return true if the model is valid
166
+ def valid?
167
+ warn '[DEPRECATED] the `valid?` method is obsolete'
168
+ true
169
+ end
170
+
171
+ # Checks equality by comparing each attribute.
172
+ # @param [Object] Object to be compared
173
+ def ==(o)
174
+ return true if self.equal?(o)
175
+ self.class == o.class &&
176
+ trial_id == o.trial_id &&
177
+ pmid == o.pmid &&
178
+ title == o.title &&
179
+ journal_title == o.journal_title &&
180
+ pub_year == o.pub_year &&
181
+ evidence_type == o.evidence_type &&
182
+ citation == o.citation &&
183
+ reference_types == o.reference_types &&
184
+ results == o.results
185
+ end
186
+
187
+ # @see the `==` method
188
+ # @param [Object] Object to be compared
189
+ def eql?(o)
190
+ self == o
191
+ end
192
+
193
+ # Calculates hash code according to all attributes.
194
+ # @return [Integer] Hash code
195
+ def hash
196
+ [trial_id, pmid, title, journal_title, pub_year, evidence_type, citation, reference_types, results].hash
197
+ end
198
+
199
+ # Builds the object from hash
200
+ # @param [Hash] attributes Model attributes in the form of hash
201
+ # @return [Object] Returns the model itself
202
+ def self.build_from_hash(attributes)
203
+ return nil unless attributes.is_a?(Hash)
204
+ attributes = attributes.transform_keys(&:to_sym)
205
+ transformed_hash = {}
206
+ openapi_types.each_pair do |key, type|
207
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
208
+ transformed_hash["#{key}"] = nil
209
+ elsif type =~ /\AArray<(.*)>/i
210
+ # check to ensure the input is an array given that the attribute
211
+ # is documented as an array but the input is not
212
+ if attributes[attribute_map[key]].is_a?(Array)
213
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
214
+ end
215
+ elsif !attributes[attribute_map[key]].nil?
216
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
217
+ end
218
+ end
219
+ new(transformed_hash)
220
+ end
221
+
222
+ # Deserializes the data based on type
223
+ # @param string type Data type
224
+ # @param string value Value to be deserialized
225
+ # @return [Object] Deserialized data
226
+ def self._deserialize(type, value)
227
+ case type.to_sym
228
+ when :Time
229
+ Time.parse(value)
230
+ when :Date
231
+ Date.parse(value)
232
+ when :String
233
+ value.to_s
234
+ when :Integer
235
+ value.to_i
236
+ when :Float
237
+ value.to_f
238
+ when :Boolean
239
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
240
+ true
241
+ else
242
+ false
243
+ end
244
+ when :Object
245
+ # generic object (usually a Hash), return directly
246
+ value
247
+ when /\AArray<(?<inner_type>.+)>\z/
248
+ inner_type = Regexp.last_match[:inner_type]
249
+ value.map { |v| _deserialize(inner_type, v) }
250
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
251
+ k_type = Regexp.last_match[:k_type]
252
+ v_type = Regexp.last_match[:v_type]
253
+ {}.tap do |hash|
254
+ value.each do |k, v|
255
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
256
+ end
257
+ end
258
+ else # model
259
+ # models (e.g. Pet) or oneOf
260
+ klass = PharmaObservatory.const_get(type)
261
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
262
+ end
263
+ end
264
+
265
+ # Returns the string representation of the object
266
+ # @return [String] String presentation of the object
267
+ def to_s
268
+ to_hash.to_s
269
+ end
270
+
271
+ # to_body is an alias to to_hash (backward compatibility)
272
+ # @return [Hash] Returns the object in the form of hash
273
+ def to_body
274
+ to_hash
275
+ end
276
+
277
+ # Returns the object in the form of hash
278
+ # @return [Hash] Returns the object in the form of hash
279
+ def to_hash
280
+ hash = {}
281
+ self.class.attribute_map.each_pair do |attr, param|
282
+ value = self.send(attr)
283
+ if value.nil?
284
+ is_nullable = self.class.openapi_nullable.include?(attr)
285
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
286
+ end
287
+
288
+ hash[param] = _to_hash(value)
289
+ end
290
+ hash
291
+ end
292
+
293
+ # Outputs non-array value in the form of hash
294
+ # For object, use to_hash. Otherwise, just return the value
295
+ # @param [Object] value Any valid value
296
+ # @return [Hash] Returns the value in the form of hash
297
+ def _to_hash(value)
298
+ if value.is_a?(Array)
299
+ value.compact.map { |v| _to_hash(v) }
300
+ elsif value.is_a?(Hash)
301
+ {}.tap do |hash|
302
+ value.each { |k, v| hash[k] = _to_hash(v) }
303
+ end
304
+ elsif value.respond_to? :to_hash
305
+ value.to_hash
306
+ else
307
+ value
308
+ end
309
+ end
310
+
311
+ end
312
+
313
+ end
@@ -11,5 +11,5 @@ Generator version: 7.13.0
11
11
  =end
12
12
 
13
13
  module PharmaObservatory
14
- VERSION = '0.1.22'
14
+ VERSION = '0.1.23'
15
15
  end
@@ -389,6 +389,13 @@ require 'pharmaobservatory/models/rwd_study_drugs_response'
389
389
  require 'pharmaobservatory/models/rwd_study_drugs_row'
390
390
  require 'pharmaobservatory/models/rwd_study_milestones_response'
391
391
  require 'pharmaobservatory/models/rwd_study_milestones_row'
392
+ require 'pharmaobservatory/models/rwd_us_network_memberships_response'
393
+ require 'pharmaobservatory/models/rwd_us_network_memberships_row'
394
+ require 'pharmaobservatory/models/rwd_us_network_projects_response'
395
+ require 'pharmaobservatory/models/rwd_us_network_projects_row'
396
+ require 'pharmaobservatory/models/rwd_us_networks_record'
397
+ require 'pharmaobservatory/models/rwd_us_networks_response'
398
+ require 'pharmaobservatory/models/rwd_us_networks_row'
392
399
  require 'pharmaobservatory/models/rwd_withheld_fields_response'
393
400
  require 'pharmaobservatory/models/rwd_withheld_fields_row'
394
401
  require 'pharmaobservatory/models/sbti_crosscheck_response'
@@ -442,6 +449,8 @@ require 'pharmaobservatory/models/subscriptions_list200_response_subscriptions_i
442
449
  require 'pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters'
443
450
  require 'pharmaobservatory/models/supplier_capability_esg_response'
444
451
  require 'pharmaobservatory/models/supplier_capability_esg_row'
452
+ require 'pharmaobservatory/models/supplier_rwd_declarations_response'
453
+ require 'pharmaobservatory/models/supplier_rwd_declarations_row'
445
454
  require 'pharmaobservatory/models/supplier_services_response'
446
455
  require 'pharmaobservatory/models/supplier_services_row'
447
456
  require 'pharmaobservatory/models/supplier_sites_response'
@@ -494,6 +503,8 @@ require 'pharmaobservatory/models/trial_kols_response'
494
503
  require 'pharmaobservatory/models/trial_kols_row'
495
504
  require 'pharmaobservatory/models/trial_outcome_measures_response'
496
505
  require 'pharmaobservatory/models/trial_outcome_measures_row'
506
+ require 'pharmaobservatory/models/trial_publications_response'
507
+ require 'pharmaobservatory/models/trial_publications_row'
497
508
  require 'pharmaobservatory/models/trial_research_payments_response'
498
509
  require 'pharmaobservatory/models/trial_research_payments_row'
499
510
  require 'pharmaobservatory/models/trial_site_history_response'
@@ -532,6 +543,7 @@ require 'pharmaobservatory/api/rwd_networks_api'
532
543
  require 'pharmaobservatory/api/rwd_registers_api'
533
544
  require 'pharmaobservatory/api/rwd_sources_api'
534
545
  require 'pharmaobservatory/api/rwd_studies_api'
546
+ require 'pharmaobservatory/api/rwd_us_networks_api'
535
547
  require 'pharmaobservatory/api/sites_api'
536
548
  require 'pharmaobservatory/api/subscriptions_api'
537
549
  require 'pharmaobservatory/api/suppliers_api'
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.22
4
+ version: 0.1.23
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-11-20 00:00:00.000000000 Z
11
+ date: 2026-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -479,6 +479,14 @@ files:
479
479
  - docs/RwdStudyDrugsRow.md
480
480
  - docs/RwdStudyMilestonesResponse.md
481
481
  - docs/RwdStudyMilestonesRow.md
482
+ - docs/RwdUsNetworkMembershipsResponse.md
483
+ - docs/RwdUsNetworkMembershipsRow.md
484
+ - docs/RwdUsNetworkProjectsResponse.md
485
+ - docs/RwdUsNetworkProjectsRow.md
486
+ - docs/RwdUsNetworksApi.md
487
+ - docs/RwdUsNetworksRecord.md
488
+ - docs/RwdUsNetworksResponse.md
489
+ - docs/RwdUsNetworksRow.md
482
490
  - docs/RwdWithheldFieldsResponse.md
483
491
  - docs/RwdWithheldFieldsRow.md
484
492
  - docs/SbtiCrosscheckResponse.md
@@ -534,6 +542,8 @@ files:
534
542
  - docs/SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md
535
543
  - docs/SupplierCapabilityEsgResponse.md
536
544
  - docs/SupplierCapabilityEsgRow.md
545
+ - docs/SupplierRwdDeclarationsResponse.md
546
+ - docs/SupplierRwdDeclarationsRow.md
537
547
  - docs/SupplierServicesResponse.md
538
548
  - docs/SupplierServicesRow.md
539
549
  - docs/SupplierSitesResponse.md
@@ -588,6 +598,8 @@ files:
588
598
  - docs/TrialKolsRow.md
589
599
  - docs/TrialOutcomeMeasuresResponse.md
590
600
  - docs/TrialOutcomeMeasuresRow.md
601
+ - docs/TrialPublicationsResponse.md
602
+ - docs/TrialPublicationsRow.md
591
603
  - docs/TrialResearchPaymentsResponse.md
592
604
  - docs/TrialResearchPaymentsRow.md
593
605
  - docs/TrialSiteHistoryResponse.md
@@ -626,6 +638,7 @@ files:
626
638
  - lib/pharmaobservatory/api/rwd_registers_api.rb
627
639
  - lib/pharmaobservatory/api/rwd_sources_api.rb
628
640
  - lib/pharmaobservatory/api/rwd_studies_api.rb
641
+ - lib/pharmaobservatory/api/rwd_us_networks_api.rb
629
642
  - lib/pharmaobservatory/api/sites_api.rb
630
643
  - lib/pharmaobservatory/api/subscriptions_api.rb
631
644
  - lib/pharmaobservatory/api/suppliers_api.rb
@@ -1006,6 +1019,13 @@ files:
1006
1019
  - lib/pharmaobservatory/models/rwd_study_drugs_row.rb
1007
1020
  - lib/pharmaobservatory/models/rwd_study_milestones_response.rb
1008
1021
  - lib/pharmaobservatory/models/rwd_study_milestones_row.rb
1022
+ - lib/pharmaobservatory/models/rwd_us_network_memberships_response.rb
1023
+ - lib/pharmaobservatory/models/rwd_us_network_memberships_row.rb
1024
+ - lib/pharmaobservatory/models/rwd_us_network_projects_response.rb
1025
+ - lib/pharmaobservatory/models/rwd_us_network_projects_row.rb
1026
+ - lib/pharmaobservatory/models/rwd_us_networks_record.rb
1027
+ - lib/pharmaobservatory/models/rwd_us_networks_response.rb
1028
+ - lib/pharmaobservatory/models/rwd_us_networks_row.rb
1009
1029
  - lib/pharmaobservatory/models/rwd_withheld_fields_response.rb
1010
1030
  - lib/pharmaobservatory/models/rwd_withheld_fields_row.rb
1011
1031
  - lib/pharmaobservatory/models/sbti_crosscheck_response.rb
@@ -1059,6 +1079,8 @@ files:
1059
1079
  - lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters.rb
1060
1080
  - lib/pharmaobservatory/models/supplier_capability_esg_response.rb
1061
1081
  - lib/pharmaobservatory/models/supplier_capability_esg_row.rb
1082
+ - lib/pharmaobservatory/models/supplier_rwd_declarations_response.rb
1083
+ - lib/pharmaobservatory/models/supplier_rwd_declarations_row.rb
1062
1084
  - lib/pharmaobservatory/models/supplier_services_response.rb
1063
1085
  - lib/pharmaobservatory/models/supplier_services_row.rb
1064
1086
  - lib/pharmaobservatory/models/supplier_sites_response.rb
@@ -1111,6 +1133,8 @@ files:
1111
1133
  - lib/pharmaobservatory/models/trial_kols_row.rb
1112
1134
  - lib/pharmaobservatory/models/trial_outcome_measures_response.rb
1113
1135
  - lib/pharmaobservatory/models/trial_outcome_measures_row.rb
1136
+ - lib/pharmaobservatory/models/trial_publications_response.rb
1137
+ - lib/pharmaobservatory/models/trial_publications_row.rb
1114
1138
  - lib/pharmaobservatory/models/trial_research_payments_response.rb
1115
1139
  - lib/pharmaobservatory/models/trial_research_payments_row.rb
1116
1140
  - lib/pharmaobservatory/models/trial_site_history_response.rb