pharmaobservatory 0.1.21 → 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.
- checksums.yaml +4 -4
- data/README.md +40 -4
- data/docs/BiomarkersApi.md +80 -0
- data/docs/InvestigatorsApi.md +80 -0
- data/docs/ProviderBiomarkerCapabilityRow.md +9 -9
- data/docs/ProviderBiomarkerCapabilitySummaryResponse.md +58 -0
- data/docs/ProviderBiomarkerCapabilitySummaryRow.md +70 -0
- data/docs/ProviderCliaLicensureRow.md +1 -1
- data/docs/ProviderRwdDeliveryResponse.md +58 -0
- data/docs/ProviderRwdDeliveryRow.md +76 -0
- data/docs/ProviderRwdDeliveryStudyResponse.md +58 -0
- data/docs/ProviderRwdDeliveryStudyRow.md +60 -0
- data/docs/ProviderRwdFootprintResponse.md +58 -0
- data/docs/ProviderRwdFootprintRow.md +74 -0
- data/docs/RwdConductorsApi.md +160 -0
- data/docs/RwdInstitutionsApi.md +80 -0
- data/docs/RwdSourcesRow.md +1 -1
- data/docs/RwdStudiesApi.md +80 -0
- data/docs/RwdUsNetworkMembershipsResponse.md +58 -0
- data/docs/RwdUsNetworkMembershipsRow.md +98 -0
- data/docs/RwdUsNetworkProjectsResponse.md +58 -0
- data/docs/RwdUsNetworkProjectsRow.md +80 -0
- data/docs/RwdUsNetworksApi.md +313 -0
- data/docs/RwdUsNetworksRecord.md +38 -0
- data/docs/RwdUsNetworksResponse.md +58 -0
- data/docs/RwdUsNetworksRow.md +60 -0
- data/docs/SupplierRwdDeclarationsResponse.md +58 -0
- data/docs/SupplierRwdDeclarationsRow.md +74 -0
- data/docs/SuppliersApi.md +480 -0
- data/docs/TrialPublicationsResponse.md +58 -0
- data/docs/TrialPublicationsRow.md +34 -0
- data/docs/TrialsApi.md +80 -0
- data/lib/pharmaobservatory/api/biomarkers_api.rb +84 -0
- data/lib/pharmaobservatory/api/investigators_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_conductors_api.rb +168 -0
- data/lib/pharmaobservatory/api/rwd_institutions_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_studies_api.rb +84 -0
- data/lib/pharmaobservatory/api/rwd_us_networks_api.rb +329 -0
- data/lib/pharmaobservatory/api/suppliers_api.rb +504 -0
- data/lib/pharmaobservatory/api/trials_api.rb +84 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_row.rb +9 -9
- data/lib/pharmaobservatory/models/provider_biomarker_capability_summary_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_biomarker_capability_summary_row.rb +509 -0
- data/lib/pharmaobservatory/models/provider_clia_licensure_row.rb +1 -1
- data/lib/pharmaobservatory/models/provider_rwd_delivery_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_row.rb +546 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_study_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_rwd_delivery_study_row.rb +454 -0
- data/lib/pharmaobservatory/models/provider_rwd_footprint_response.rb +478 -0
- data/lib/pharmaobservatory/models/provider_rwd_footprint_row.rb +539 -0
- data/lib/pharmaobservatory/models/rwd_sources_row.rb +1 -1
- data/lib/pharmaobservatory/models/rwd_us_network_memberships_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_network_memberships_row.rb +663 -0
- data/lib/pharmaobservatory/models/rwd_us_network_projects_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_network_projects_row.rb +564 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_record.rb +385 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_response.rb +478 -0
- data/lib/pharmaobservatory/models/rwd_us_networks_row.rb +454 -0
- data/lib/pharmaobservatory/models/supplier_rwd_declarations_response.rb +478 -0
- data/lib/pharmaobservatory/models/supplier_rwd_declarations_row.rb +539 -0
- data/lib/pharmaobservatory/models/trial_publications_response.rb +478 -0
- data/lib/pharmaobservatory/models/trial_publications_row.rb +313 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +20 -0
- metadata +42 -2
|
@@ -0,0 +1,539 @@
|
|
|
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 provider_rwd_footprint dataset: one row per register assertion joined to an RX provider. A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class ProviderRwdFootprintRow
|
|
19
|
+
# The assertion id: a hash of the provider uuid, role, register entity kind and id, match method and institution.
|
|
20
|
+
attr_accessor :provider_rwd_footprint_id
|
|
21
|
+
|
|
22
|
+
# The supplier id: the Scientist.com provider id as text, the entry key of the suppliers object type. A supplier is not a company.
|
|
23
|
+
attr_accessor :provider_id
|
|
24
|
+
|
|
25
|
+
# The Scientist.com public provider uuid, the join key to the RX marketplace. Present on every row, including providers the marketplace does not publish.
|
|
26
|
+
attr_accessor :provider_uuid
|
|
27
|
+
|
|
28
|
+
# The supplier's marketplace slug.
|
|
29
|
+
attr_accessor :provider_slug
|
|
30
|
+
|
|
31
|
+
# The supplier's name.
|
|
32
|
+
attr_accessor :provider_name
|
|
33
|
+
|
|
34
|
+
# The register institution the provider was matched THROUGH. The entry key of the rwd_institutions object type.
|
|
35
|
+
attr_accessor :institution_id
|
|
36
|
+
|
|
37
|
+
# The register's own name for that institution.
|
|
38
|
+
attr_accessor :institution_name
|
|
39
|
+
|
|
40
|
+
# What the register entity is to the institution: conductor or additional_institution (a study), custodian (a data source's holder) or network_member (a network's member institution).
|
|
41
|
+
attr_accessor :role
|
|
42
|
+
|
|
43
|
+
# Which register entity evidence_ref names: rwd_study_id, rwd_data_source_id or rwd_network_id.
|
|
44
|
+
attr_accessor :evidence_ref_kind
|
|
45
|
+
|
|
46
|
+
# The register id of the study, data source or network, per evidence_ref_kind. Ids of different kinds can coincide; read it with evidence_ref_kind.
|
|
47
|
+
attr_accessor :evidence_ref
|
|
48
|
+
|
|
49
|
+
# The register Study ID when evidence_ref_kind is rwd_study_id, otherwise null. The entry key of the rwd_studies object type: a study route returns the providers asserted against that study.
|
|
50
|
+
attr_accessor :study_id
|
|
51
|
+
|
|
52
|
+
# The register's own entity name (study title, data source name or network name), never prose.
|
|
53
|
+
attr_accessor :evidence_label
|
|
54
|
+
|
|
55
|
+
# The address of the register entity on the HMA-EMA catalogue site.
|
|
56
|
+
attr_accessor :catalogue_url
|
|
57
|
+
|
|
58
|
+
# Study rows only: the registered actual start date; null otherwise and where the study has none.
|
|
59
|
+
attr_accessor :study_start_actual_on
|
|
60
|
+
|
|
61
|
+
# Study rows only: the study's registered status.
|
|
62
|
+
attr_accessor :study_status
|
|
63
|
+
|
|
64
|
+
# Study rows only: mandated, voluntary or unknown.
|
|
65
|
+
attr_accessor :mandate_stratum
|
|
66
|
+
|
|
67
|
+
# Study rows only: whether the study is a DARWIN EU (the EMA's Data Analysis and Real World Interrogation Network) study.
|
|
68
|
+
attr_accessor :is_darwin_eu_study
|
|
69
|
+
|
|
70
|
+
# Study rows only: the register data source ids the study names (the names that match a registered source).
|
|
71
|
+
attr_accessor :data_source_ids
|
|
72
|
+
|
|
73
|
+
# Study rows only: the data source names the study gives that match no registered source.
|
|
74
|
+
attr_accessor :data_source_names_unmatched
|
|
75
|
+
|
|
76
|
+
# Study rows only: the countries the study names.
|
|
77
|
+
attr_accessor :study_country_names
|
|
78
|
+
|
|
79
|
+
# Data source rows only: the data source type(s) the holder ticked, as the register exports them.
|
|
80
|
+
attr_accessor :data_source_type
|
|
81
|
+
|
|
82
|
+
# Data source rows only: the countries the source covers.
|
|
83
|
+
attr_accessor :country_names
|
|
84
|
+
|
|
85
|
+
# How the provider was tied to the institution: org_member_exact (through the supplier's resolved organization), rx_name_key_exact (an exact name match, not a verified identity) or org_unit_of_entry (the register entry's own statement of its parent organization).
|
|
86
|
+
attr_accessor :match_method
|
|
87
|
+
|
|
88
|
+
# Whether the same provider and institution were also tied by an exact name match.
|
|
89
|
+
attr_accessor :also_matched_by_name
|
|
90
|
+
|
|
91
|
+
# The upstream bridge's confidence figure, passed through unchanged; null on rx_name_key_exact rows.
|
|
92
|
+
attr_accessor :match_confidence
|
|
93
|
+
|
|
94
|
+
# The label of the catalogue snapshot the row was read from (a date).
|
|
95
|
+
attr_accessor :snapshot_label
|
|
96
|
+
|
|
97
|
+
# The month and year the catalogue was accessed (YYYY-MM), which EMA's site asks to be cited with its URL.
|
|
98
|
+
attr_accessor :accessed_month
|
|
99
|
+
|
|
100
|
+
# The license restriction tier of the row's source. Every row of this dataset is licensable (PROVISIONAL, legal read pending).
|
|
101
|
+
attr_accessor :restriction_tier
|
|
102
|
+
|
|
103
|
+
# The attribution line EMA requires, including the catalogue URL and the access month; quote it with any figure taken from the row.
|
|
104
|
+
attr_accessor :attribution
|
|
105
|
+
|
|
106
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
107
|
+
def self.attribute_map
|
|
108
|
+
{
|
|
109
|
+
:'provider_rwd_footprint_id' => :'provider_rwd_footprint_id',
|
|
110
|
+
:'provider_id' => :'provider_id',
|
|
111
|
+
:'provider_uuid' => :'provider_uuid',
|
|
112
|
+
:'provider_slug' => :'provider_slug',
|
|
113
|
+
:'provider_name' => :'provider_name',
|
|
114
|
+
:'institution_id' => :'institution_id',
|
|
115
|
+
:'institution_name' => :'institution_name',
|
|
116
|
+
:'role' => :'role',
|
|
117
|
+
:'evidence_ref_kind' => :'evidence_ref_kind',
|
|
118
|
+
:'evidence_ref' => :'evidence_ref',
|
|
119
|
+
:'study_id' => :'study_id',
|
|
120
|
+
:'evidence_label' => :'evidence_label',
|
|
121
|
+
:'catalogue_url' => :'catalogue_url',
|
|
122
|
+
:'study_start_actual_on' => :'study_start_actual_on',
|
|
123
|
+
:'study_status' => :'study_status',
|
|
124
|
+
:'mandate_stratum' => :'mandate_stratum',
|
|
125
|
+
:'is_darwin_eu_study' => :'is_darwin_eu_study',
|
|
126
|
+
:'data_source_ids' => :'data_source_ids',
|
|
127
|
+
:'data_source_names_unmatched' => :'data_source_names_unmatched',
|
|
128
|
+
:'study_country_names' => :'study_country_names',
|
|
129
|
+
:'data_source_type' => :'data_source_type',
|
|
130
|
+
:'country_names' => :'country_names',
|
|
131
|
+
:'match_method' => :'match_method',
|
|
132
|
+
:'also_matched_by_name' => :'also_matched_by_name',
|
|
133
|
+
:'match_confidence' => :'match_confidence',
|
|
134
|
+
:'snapshot_label' => :'snapshot_label',
|
|
135
|
+
:'accessed_month' => :'accessed_month',
|
|
136
|
+
:'restriction_tier' => :'restriction_tier',
|
|
137
|
+
:'attribution' => :'attribution'
|
|
138
|
+
}
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# Returns attribute mapping this model knows about
|
|
142
|
+
def self.acceptable_attribute_map
|
|
143
|
+
attribute_map
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Returns all the JSON keys this model knows about
|
|
147
|
+
def self.acceptable_attributes
|
|
148
|
+
acceptable_attribute_map.values
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Attribute type mapping.
|
|
152
|
+
def self.openapi_types
|
|
153
|
+
{
|
|
154
|
+
:'provider_rwd_footprint_id' => :'String',
|
|
155
|
+
:'provider_id' => :'String',
|
|
156
|
+
:'provider_uuid' => :'String',
|
|
157
|
+
:'provider_slug' => :'String',
|
|
158
|
+
:'provider_name' => :'String',
|
|
159
|
+
:'institution_id' => :'String',
|
|
160
|
+
:'institution_name' => :'String',
|
|
161
|
+
:'role' => :'String',
|
|
162
|
+
:'evidence_ref_kind' => :'String',
|
|
163
|
+
:'evidence_ref' => :'String',
|
|
164
|
+
:'study_id' => :'String',
|
|
165
|
+
:'evidence_label' => :'String',
|
|
166
|
+
:'catalogue_url' => :'String',
|
|
167
|
+
:'study_start_actual_on' => :'Date',
|
|
168
|
+
:'study_status' => :'String',
|
|
169
|
+
:'mandate_stratum' => :'String',
|
|
170
|
+
:'is_darwin_eu_study' => :'Boolean',
|
|
171
|
+
:'data_source_ids' => :'Array<String>',
|
|
172
|
+
:'data_source_names_unmatched' => :'Array<String>',
|
|
173
|
+
:'study_country_names' => :'Array<String>',
|
|
174
|
+
:'data_source_type' => :'String',
|
|
175
|
+
:'country_names' => :'Array<String>',
|
|
176
|
+
:'match_method' => :'String',
|
|
177
|
+
:'also_matched_by_name' => :'Boolean',
|
|
178
|
+
:'match_confidence' => :'Float',
|
|
179
|
+
:'snapshot_label' => :'String',
|
|
180
|
+
:'accessed_month' => :'String',
|
|
181
|
+
:'restriction_tier' => :'String',
|
|
182
|
+
:'attribution' => :'String'
|
|
183
|
+
}
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# List of attributes with nullable: true
|
|
187
|
+
def self.openapi_nullable
|
|
188
|
+
Set.new([
|
|
189
|
+
:'provider_rwd_footprint_id',
|
|
190
|
+
:'provider_id',
|
|
191
|
+
:'provider_uuid',
|
|
192
|
+
:'provider_slug',
|
|
193
|
+
:'provider_name',
|
|
194
|
+
:'institution_id',
|
|
195
|
+
:'institution_name',
|
|
196
|
+
:'role',
|
|
197
|
+
:'evidence_ref_kind',
|
|
198
|
+
:'evidence_ref',
|
|
199
|
+
:'study_id',
|
|
200
|
+
:'evidence_label',
|
|
201
|
+
:'catalogue_url',
|
|
202
|
+
:'study_start_actual_on',
|
|
203
|
+
:'study_status',
|
|
204
|
+
:'mandate_stratum',
|
|
205
|
+
:'is_darwin_eu_study',
|
|
206
|
+
:'data_source_ids',
|
|
207
|
+
:'data_source_names_unmatched',
|
|
208
|
+
:'study_country_names',
|
|
209
|
+
:'data_source_type',
|
|
210
|
+
:'country_names',
|
|
211
|
+
:'match_method',
|
|
212
|
+
:'also_matched_by_name',
|
|
213
|
+
:'match_confidence',
|
|
214
|
+
:'snapshot_label',
|
|
215
|
+
:'accessed_month',
|
|
216
|
+
:'restriction_tier',
|
|
217
|
+
:'attribution'
|
|
218
|
+
])
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Initializes the object
|
|
222
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
223
|
+
def initialize(attributes = {})
|
|
224
|
+
if (!attributes.is_a?(Hash))
|
|
225
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::ProviderRwdFootprintRow` initialize method"
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
229
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
230
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
231
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
232
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::ProviderRwdFootprintRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
233
|
+
end
|
|
234
|
+
h[k.to_sym] = v
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'provider_rwd_footprint_id')
|
|
238
|
+
self.provider_rwd_footprint_id = attributes[:'provider_rwd_footprint_id']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'provider_id')
|
|
242
|
+
self.provider_id = attributes[:'provider_id']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'provider_uuid')
|
|
246
|
+
self.provider_uuid = attributes[:'provider_uuid']
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if attributes.key?(:'provider_slug')
|
|
250
|
+
self.provider_slug = attributes[:'provider_slug']
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if attributes.key?(:'provider_name')
|
|
254
|
+
self.provider_name = attributes[:'provider_name']
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if attributes.key?(:'institution_id')
|
|
258
|
+
self.institution_id = attributes[:'institution_id']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'institution_name')
|
|
262
|
+
self.institution_name = attributes[:'institution_name']
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
if attributes.key?(:'role')
|
|
266
|
+
self.role = attributes[:'role']
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
if attributes.key?(:'evidence_ref_kind')
|
|
270
|
+
self.evidence_ref_kind = attributes[:'evidence_ref_kind']
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
if attributes.key?(:'evidence_ref')
|
|
274
|
+
self.evidence_ref = attributes[:'evidence_ref']
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
if attributes.key?(:'study_id')
|
|
278
|
+
self.study_id = attributes[:'study_id']
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
if attributes.key?(:'evidence_label')
|
|
282
|
+
self.evidence_label = attributes[:'evidence_label']
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'catalogue_url')
|
|
286
|
+
self.catalogue_url = attributes[:'catalogue_url']
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
if attributes.key?(:'study_start_actual_on')
|
|
290
|
+
self.study_start_actual_on = attributes[:'study_start_actual_on']
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
if attributes.key?(:'study_status')
|
|
294
|
+
self.study_status = attributes[:'study_status']
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'mandate_stratum')
|
|
298
|
+
self.mandate_stratum = attributes[:'mandate_stratum']
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if attributes.key?(:'is_darwin_eu_study')
|
|
302
|
+
self.is_darwin_eu_study = attributes[:'is_darwin_eu_study']
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
if attributes.key?(:'data_source_ids')
|
|
306
|
+
if (value = attributes[:'data_source_ids']).is_a?(Array)
|
|
307
|
+
self.data_source_ids = value
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.key?(:'data_source_names_unmatched')
|
|
312
|
+
if (value = attributes[:'data_source_names_unmatched']).is_a?(Array)
|
|
313
|
+
self.data_source_names_unmatched = value
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'study_country_names')
|
|
318
|
+
if (value = attributes[:'study_country_names']).is_a?(Array)
|
|
319
|
+
self.study_country_names = value
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.key?(:'data_source_type')
|
|
324
|
+
self.data_source_type = attributes[:'data_source_type']
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.key?(:'country_names')
|
|
328
|
+
if (value = attributes[:'country_names']).is_a?(Array)
|
|
329
|
+
self.country_names = value
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'match_method')
|
|
334
|
+
self.match_method = attributes[:'match_method']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'also_matched_by_name')
|
|
338
|
+
self.also_matched_by_name = attributes[:'also_matched_by_name']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'match_confidence')
|
|
342
|
+
self.match_confidence = attributes[:'match_confidence']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'snapshot_label')
|
|
346
|
+
self.snapshot_label = attributes[:'snapshot_label']
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if attributes.key?(:'accessed_month')
|
|
350
|
+
self.accessed_month = attributes[:'accessed_month']
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'restriction_tier')
|
|
354
|
+
self.restriction_tier = attributes[:'restriction_tier']
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'attribution')
|
|
358
|
+
self.attribution = attributes[:'attribution']
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
363
|
+
# @return Array for valid properties with the reasons
|
|
364
|
+
def list_invalid_properties
|
|
365
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
366
|
+
invalid_properties = Array.new
|
|
367
|
+
invalid_properties
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Check to see if the all the properties in the model are valid
|
|
371
|
+
# @return true if the model is valid
|
|
372
|
+
def valid?
|
|
373
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
374
|
+
true
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Checks equality by comparing each attribute.
|
|
378
|
+
# @param [Object] Object to be compared
|
|
379
|
+
def ==(o)
|
|
380
|
+
return true if self.equal?(o)
|
|
381
|
+
self.class == o.class &&
|
|
382
|
+
provider_rwd_footprint_id == o.provider_rwd_footprint_id &&
|
|
383
|
+
provider_id == o.provider_id &&
|
|
384
|
+
provider_uuid == o.provider_uuid &&
|
|
385
|
+
provider_slug == o.provider_slug &&
|
|
386
|
+
provider_name == o.provider_name &&
|
|
387
|
+
institution_id == o.institution_id &&
|
|
388
|
+
institution_name == o.institution_name &&
|
|
389
|
+
role == o.role &&
|
|
390
|
+
evidence_ref_kind == o.evidence_ref_kind &&
|
|
391
|
+
evidence_ref == o.evidence_ref &&
|
|
392
|
+
study_id == o.study_id &&
|
|
393
|
+
evidence_label == o.evidence_label &&
|
|
394
|
+
catalogue_url == o.catalogue_url &&
|
|
395
|
+
study_start_actual_on == o.study_start_actual_on &&
|
|
396
|
+
study_status == o.study_status &&
|
|
397
|
+
mandate_stratum == o.mandate_stratum &&
|
|
398
|
+
is_darwin_eu_study == o.is_darwin_eu_study &&
|
|
399
|
+
data_source_ids == o.data_source_ids &&
|
|
400
|
+
data_source_names_unmatched == o.data_source_names_unmatched &&
|
|
401
|
+
study_country_names == o.study_country_names &&
|
|
402
|
+
data_source_type == o.data_source_type &&
|
|
403
|
+
country_names == o.country_names &&
|
|
404
|
+
match_method == o.match_method &&
|
|
405
|
+
also_matched_by_name == o.also_matched_by_name &&
|
|
406
|
+
match_confidence == o.match_confidence &&
|
|
407
|
+
snapshot_label == o.snapshot_label &&
|
|
408
|
+
accessed_month == o.accessed_month &&
|
|
409
|
+
restriction_tier == o.restriction_tier &&
|
|
410
|
+
attribution == o.attribution
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# @see the `==` method
|
|
414
|
+
# @param [Object] Object to be compared
|
|
415
|
+
def eql?(o)
|
|
416
|
+
self == o
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Calculates hash code according to all attributes.
|
|
420
|
+
# @return [Integer] Hash code
|
|
421
|
+
def hash
|
|
422
|
+
[provider_rwd_footprint_id, provider_id, provider_uuid, provider_slug, provider_name, institution_id, institution_name, role, evidence_ref_kind, evidence_ref, study_id, evidence_label, catalogue_url, study_start_actual_on, study_status, mandate_stratum, is_darwin_eu_study, data_source_ids, data_source_names_unmatched, study_country_names, data_source_type, country_names, match_method, also_matched_by_name, match_confidence, snapshot_label, accessed_month, restriction_tier, attribution].hash
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Builds the object from hash
|
|
426
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
427
|
+
# @return [Object] Returns the model itself
|
|
428
|
+
def self.build_from_hash(attributes)
|
|
429
|
+
return nil unless attributes.is_a?(Hash)
|
|
430
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
431
|
+
transformed_hash = {}
|
|
432
|
+
openapi_types.each_pair do |key, type|
|
|
433
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
434
|
+
transformed_hash["#{key}"] = nil
|
|
435
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
436
|
+
# check to ensure the input is an array given that the attribute
|
|
437
|
+
# is documented as an array but the input is not
|
|
438
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
439
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
440
|
+
end
|
|
441
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
442
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
443
|
+
end
|
|
444
|
+
end
|
|
445
|
+
new(transformed_hash)
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# Deserializes the data based on type
|
|
449
|
+
# @param string type Data type
|
|
450
|
+
# @param string value Value to be deserialized
|
|
451
|
+
# @return [Object] Deserialized data
|
|
452
|
+
def self._deserialize(type, value)
|
|
453
|
+
case type.to_sym
|
|
454
|
+
when :Time
|
|
455
|
+
Time.parse(value)
|
|
456
|
+
when :Date
|
|
457
|
+
Date.parse(value)
|
|
458
|
+
when :String
|
|
459
|
+
value.to_s
|
|
460
|
+
when :Integer
|
|
461
|
+
value.to_i
|
|
462
|
+
when :Float
|
|
463
|
+
value.to_f
|
|
464
|
+
when :Boolean
|
|
465
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
466
|
+
true
|
|
467
|
+
else
|
|
468
|
+
false
|
|
469
|
+
end
|
|
470
|
+
when :Object
|
|
471
|
+
# generic object (usually a Hash), return directly
|
|
472
|
+
value
|
|
473
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
474
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
475
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
476
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
477
|
+
k_type = Regexp.last_match[:k_type]
|
|
478
|
+
v_type = Regexp.last_match[:v_type]
|
|
479
|
+
{}.tap do |hash|
|
|
480
|
+
value.each do |k, v|
|
|
481
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
482
|
+
end
|
|
483
|
+
end
|
|
484
|
+
else # model
|
|
485
|
+
# models (e.g. Pet) or oneOf
|
|
486
|
+
klass = PharmaObservatory.const_get(type)
|
|
487
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
488
|
+
end
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Returns the string representation of the object
|
|
492
|
+
# @return [String] String presentation of the object
|
|
493
|
+
def to_s
|
|
494
|
+
to_hash.to_s
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
498
|
+
# @return [Hash] Returns the object in the form of hash
|
|
499
|
+
def to_body
|
|
500
|
+
to_hash
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# Returns the object in the form of hash
|
|
504
|
+
# @return [Hash] Returns the object in the form of hash
|
|
505
|
+
def to_hash
|
|
506
|
+
hash = {}
|
|
507
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
508
|
+
value = self.send(attr)
|
|
509
|
+
if value.nil?
|
|
510
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
511
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
hash[param] = _to_hash(value)
|
|
515
|
+
end
|
|
516
|
+
hash
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Outputs non-array value in the form of hash
|
|
520
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
521
|
+
# @param [Object] value Any valid value
|
|
522
|
+
# @return [Hash] Returns the value in the form of hash
|
|
523
|
+
def _to_hash(value)
|
|
524
|
+
if value.is_a?(Array)
|
|
525
|
+
value.compact.map { |v| _to_hash(v) }
|
|
526
|
+
elsif value.is_a?(Hash)
|
|
527
|
+
{}.tap do |hash|
|
|
528
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
529
|
+
end
|
|
530
|
+
elsif value.respond_to? :to_hash
|
|
531
|
+
value.to_hash
|
|
532
|
+
else
|
|
533
|
+
value
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
end
|
|
@@ -382,7 +382,7 @@ module PharmaObservatory
|
|
|
382
382
|
# A link to the source's governance details, as the holder registered it.
|
|
383
383
|
attr_accessor :governance_details_link
|
|
384
384
|
|
|
385
|
-
# How many of the 35 capability and governance questions the
|
|
385
|
+
# How many of the 35 capability and governance questions carry a Yes or No in the register export (a count of non-blank form fields, not a measure of the data held). The export cannot tell a No from an unanswered question, so this sits at or near 35 and does not measure how many questions the holder actually answered.
|
|
386
386
|
attr_accessor :declared_capability_count
|
|
387
387
|
|
|
388
388
|
# How many such questions the form offers (35); the denominator of declared_capability_count.
|