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,663 @@
|
|
|
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 rwd_us_network_memberships dataset: one row per network, institution, supplier and match method (an unmatched member is one row). A grouped request returns the group columns and the measures instead, as additional properties.
|
|
18
|
+
class RwdUsNetworkMembershipsRow
|
|
19
|
+
# The assertion id: a hash of the network, institution, provider uuid and match method.
|
|
20
|
+
attr_accessor :membership_assertion_id
|
|
21
|
+
|
|
22
|
+
# The source the member rows come from.
|
|
23
|
+
attr_accessor :network_source
|
|
24
|
+
|
|
25
|
+
# The network key, the entry key of the rwd_us_networks object type.
|
|
26
|
+
attr_accessor :network_key
|
|
27
|
+
|
|
28
|
+
# The network's name.
|
|
29
|
+
attr_accessor :network_name
|
|
30
|
+
|
|
31
|
+
# The operating body.
|
|
32
|
+
attr_accessor :network_operator
|
|
33
|
+
|
|
34
|
+
# The strongest agreement the institution holds. membership_kind is the strongest agreement the institution holds (dta_signatory, else dua_signatory, else lhba_signatory), never data contributor.
|
|
35
|
+
attr_accessor :membership_kind
|
|
36
|
+
|
|
37
|
+
# The institution holds at least one published DTA (Data Transfer Agreement) row.
|
|
38
|
+
attr_accessor :has_dta
|
|
39
|
+
|
|
40
|
+
# The institution holds at least one published DUA (Data Use Agreement) row.
|
|
41
|
+
attr_accessor :has_dua
|
|
42
|
+
|
|
43
|
+
# The institution holds at least one agreement published with the type code LHBA, which N3C does not expand.
|
|
44
|
+
attr_accessor :has_lhba
|
|
45
|
+
|
|
46
|
+
# A DTA row's published term end is on or after the retrieval date.
|
|
47
|
+
attr_accessor :has_current_dta
|
|
48
|
+
|
|
49
|
+
# A DUA row is within its published term.
|
|
50
|
+
attr_accessor :has_current_dua
|
|
51
|
+
|
|
52
|
+
# An LHBA row is within its published term.
|
|
53
|
+
attr_accessor :has_current_lhba
|
|
54
|
+
|
|
55
|
+
# The earliest published execution date over the institution's agreement rows.
|
|
56
|
+
attr_accessor :first_executed_on
|
|
57
|
+
|
|
58
|
+
# The latest published term end over the institution's rows.
|
|
59
|
+
attr_accessor :latest_term_ends_on
|
|
60
|
+
|
|
61
|
+
# Published agreement rows folded into this member.
|
|
62
|
+
attr_accessor :agreement_count
|
|
63
|
+
|
|
64
|
+
# The institution as N3C publishes it (the ROR name).
|
|
65
|
+
attr_accessor :institution_name
|
|
66
|
+
|
|
67
|
+
# The normalized name key, the join key to other name-keyed datasets.
|
|
68
|
+
attr_accessor :institution_name_key
|
|
69
|
+
|
|
70
|
+
# The bare ROR id (Research Organization Registry) N3C published; null when it published a domain instead.
|
|
71
|
+
attr_accessor :ror_id
|
|
72
|
+
|
|
73
|
+
# The organization's email domain as published, an organization domain and not a personal address.
|
|
74
|
+
attr_accessor :institution_domain
|
|
75
|
+
|
|
76
|
+
# Null for N3C, which has no lead concept; false would be a false No.
|
|
77
|
+
attr_accessor :is_lead
|
|
78
|
+
|
|
79
|
+
# The retrieval date of the agreement snapshot.
|
|
80
|
+
attr_accessor :as_of
|
|
81
|
+
|
|
82
|
+
# The API endpoint the agreements came from.
|
|
83
|
+
attr_accessor :source_url
|
|
84
|
+
|
|
85
|
+
# When the snapshot was retrieved, in UTC.
|
|
86
|
+
attr_accessor :retrieved_at
|
|
87
|
+
|
|
88
|
+
# The organization spine id the member resolved to, or null. Carried, never minted.
|
|
89
|
+
attr_accessor :org_id
|
|
90
|
+
|
|
91
|
+
# The spine organization's name.
|
|
92
|
+
attr_accessor :org_name
|
|
93
|
+
|
|
94
|
+
# How the member reached the organization: ror_exact (the source's own ROR id), xref, match_keys, ambiguous or unresolved.
|
|
95
|
+
attr_accessor :org_match_rung
|
|
96
|
+
|
|
97
|
+
# The tier of the organization match (ror_exact is high, stated as the source's own identifier).
|
|
98
|
+
attr_accessor :org_match_tier
|
|
99
|
+
|
|
100
|
+
# The organization match confidence (0.95 on ror_exact).
|
|
101
|
+
attr_accessor :org_match_confidence
|
|
102
|
+
|
|
103
|
+
# The RX supplier id as text, the entry key of the suppliers object type. Null on an unmatched row.
|
|
104
|
+
attr_accessor :provider_id
|
|
105
|
+
|
|
106
|
+
# The Scientist.com public provider uuid. Null on an unmatched row.
|
|
107
|
+
attr_accessor :provider_uuid
|
|
108
|
+
|
|
109
|
+
# The supplier's marketplace slug.
|
|
110
|
+
attr_accessor :provider_slug
|
|
111
|
+
|
|
112
|
+
# The supplier's name.
|
|
113
|
+
attr_accessor :provider_name
|
|
114
|
+
|
|
115
|
+
# How the supplier was matched: org_member_exact (through the resolved organization), rx_name_key_exact (an exact name match, not a verified identity) or unmatched (no provider).
|
|
116
|
+
attr_accessor :match_method
|
|
117
|
+
|
|
118
|
+
# True on an org_member_exact row whose provider also matches by name; null on an unmatched row.
|
|
119
|
+
attr_accessor :also_matched_by_name
|
|
120
|
+
|
|
121
|
+
# The organization match confidence passed through on org_member_exact; null on rx_name_key_exact and unmatched.
|
|
122
|
+
attr_accessor :match_confidence
|
|
123
|
+
|
|
124
|
+
# Members of the network, the register-wide denominator printed beside any count.
|
|
125
|
+
attr_accessor :member_total
|
|
126
|
+
|
|
127
|
+
# Network members with a DTA within its published term.
|
|
128
|
+
attr_accessor :members_with_current_dta
|
|
129
|
+
|
|
130
|
+
# Network members with a DUA within its published term.
|
|
131
|
+
attr_accessor :members_with_current_dua
|
|
132
|
+
|
|
133
|
+
# Network members resolved to an organization.
|
|
134
|
+
attr_accessor :members_resolved_org
|
|
135
|
+
|
|
136
|
+
# Network members matched to at least one RX provider.
|
|
137
|
+
attr_accessor :members_matched_rx
|
|
138
|
+
|
|
139
|
+
# The credit line every surface carrying this data prints.
|
|
140
|
+
attr_accessor :attribution
|
|
141
|
+
|
|
142
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
143
|
+
def self.attribute_map
|
|
144
|
+
{
|
|
145
|
+
:'membership_assertion_id' => :'membership_assertion_id',
|
|
146
|
+
:'network_source' => :'network_source',
|
|
147
|
+
:'network_key' => :'network_key',
|
|
148
|
+
:'network_name' => :'network_name',
|
|
149
|
+
:'network_operator' => :'network_operator',
|
|
150
|
+
:'membership_kind' => :'membership_kind',
|
|
151
|
+
:'has_dta' => :'has_dta',
|
|
152
|
+
:'has_dua' => :'has_dua',
|
|
153
|
+
:'has_lhba' => :'has_lhba',
|
|
154
|
+
:'has_current_dta' => :'has_current_dta',
|
|
155
|
+
:'has_current_dua' => :'has_current_dua',
|
|
156
|
+
:'has_current_lhba' => :'has_current_lhba',
|
|
157
|
+
:'first_executed_on' => :'first_executed_on',
|
|
158
|
+
:'latest_term_ends_on' => :'latest_term_ends_on',
|
|
159
|
+
:'agreement_count' => :'agreement_count',
|
|
160
|
+
:'institution_name' => :'institution_name',
|
|
161
|
+
:'institution_name_key' => :'institution_name_key',
|
|
162
|
+
:'ror_id' => :'ror_id',
|
|
163
|
+
:'institution_domain' => :'institution_domain',
|
|
164
|
+
:'is_lead' => :'is_lead',
|
|
165
|
+
:'as_of' => :'as_of',
|
|
166
|
+
:'source_url' => :'source_url',
|
|
167
|
+
:'retrieved_at' => :'retrieved_at',
|
|
168
|
+
:'org_id' => :'org_id',
|
|
169
|
+
:'org_name' => :'org_name',
|
|
170
|
+
:'org_match_rung' => :'org_match_rung',
|
|
171
|
+
:'org_match_tier' => :'org_match_tier',
|
|
172
|
+
:'org_match_confidence' => :'org_match_confidence',
|
|
173
|
+
:'provider_id' => :'provider_id',
|
|
174
|
+
:'provider_uuid' => :'provider_uuid',
|
|
175
|
+
:'provider_slug' => :'provider_slug',
|
|
176
|
+
:'provider_name' => :'provider_name',
|
|
177
|
+
:'match_method' => :'match_method',
|
|
178
|
+
:'also_matched_by_name' => :'also_matched_by_name',
|
|
179
|
+
:'match_confidence' => :'match_confidence',
|
|
180
|
+
:'member_total' => :'member_total',
|
|
181
|
+
:'members_with_current_dta' => :'members_with_current_dta',
|
|
182
|
+
:'members_with_current_dua' => :'members_with_current_dua',
|
|
183
|
+
:'members_resolved_org' => :'members_resolved_org',
|
|
184
|
+
:'members_matched_rx' => :'members_matched_rx',
|
|
185
|
+
:'attribution' => :'attribution'
|
|
186
|
+
}
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Returns attribute mapping this model knows about
|
|
190
|
+
def self.acceptable_attribute_map
|
|
191
|
+
attribute_map
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns all the JSON keys this model knows about
|
|
195
|
+
def self.acceptable_attributes
|
|
196
|
+
acceptable_attribute_map.values
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Attribute type mapping.
|
|
200
|
+
def self.openapi_types
|
|
201
|
+
{
|
|
202
|
+
:'membership_assertion_id' => :'String',
|
|
203
|
+
:'network_source' => :'String',
|
|
204
|
+
:'network_key' => :'String',
|
|
205
|
+
:'network_name' => :'String',
|
|
206
|
+
:'network_operator' => :'String',
|
|
207
|
+
:'membership_kind' => :'String',
|
|
208
|
+
:'has_dta' => :'Boolean',
|
|
209
|
+
:'has_dua' => :'Boolean',
|
|
210
|
+
:'has_lhba' => :'Boolean',
|
|
211
|
+
:'has_current_dta' => :'Boolean',
|
|
212
|
+
:'has_current_dua' => :'Boolean',
|
|
213
|
+
:'has_current_lhba' => :'Boolean',
|
|
214
|
+
:'first_executed_on' => :'Date',
|
|
215
|
+
:'latest_term_ends_on' => :'Date',
|
|
216
|
+
:'agreement_count' => :'Integer',
|
|
217
|
+
:'institution_name' => :'String',
|
|
218
|
+
:'institution_name_key' => :'String',
|
|
219
|
+
:'ror_id' => :'String',
|
|
220
|
+
:'institution_domain' => :'String',
|
|
221
|
+
:'is_lead' => :'Boolean',
|
|
222
|
+
:'as_of' => :'Date',
|
|
223
|
+
:'source_url' => :'String',
|
|
224
|
+
:'retrieved_at' => :'Time',
|
|
225
|
+
:'org_id' => :'String',
|
|
226
|
+
:'org_name' => :'String',
|
|
227
|
+
:'org_match_rung' => :'String',
|
|
228
|
+
:'org_match_tier' => :'String',
|
|
229
|
+
:'org_match_confidence' => :'Float',
|
|
230
|
+
:'provider_id' => :'String',
|
|
231
|
+
:'provider_uuid' => :'String',
|
|
232
|
+
:'provider_slug' => :'String',
|
|
233
|
+
:'provider_name' => :'String',
|
|
234
|
+
:'match_method' => :'String',
|
|
235
|
+
:'also_matched_by_name' => :'Boolean',
|
|
236
|
+
:'match_confidence' => :'Float',
|
|
237
|
+
:'member_total' => :'Integer',
|
|
238
|
+
:'members_with_current_dta' => :'Integer',
|
|
239
|
+
:'members_with_current_dua' => :'Integer',
|
|
240
|
+
:'members_resolved_org' => :'Integer',
|
|
241
|
+
:'members_matched_rx' => :'Integer',
|
|
242
|
+
:'attribution' => :'String'
|
|
243
|
+
}
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# List of attributes with nullable: true
|
|
247
|
+
def self.openapi_nullable
|
|
248
|
+
Set.new([
|
|
249
|
+
:'membership_assertion_id',
|
|
250
|
+
:'network_source',
|
|
251
|
+
:'network_key',
|
|
252
|
+
:'network_name',
|
|
253
|
+
:'network_operator',
|
|
254
|
+
:'membership_kind',
|
|
255
|
+
:'has_dta',
|
|
256
|
+
:'has_dua',
|
|
257
|
+
:'has_lhba',
|
|
258
|
+
:'has_current_dta',
|
|
259
|
+
:'has_current_dua',
|
|
260
|
+
:'has_current_lhba',
|
|
261
|
+
:'first_executed_on',
|
|
262
|
+
:'latest_term_ends_on',
|
|
263
|
+
:'agreement_count',
|
|
264
|
+
:'institution_name',
|
|
265
|
+
:'institution_name_key',
|
|
266
|
+
:'ror_id',
|
|
267
|
+
:'institution_domain',
|
|
268
|
+
:'is_lead',
|
|
269
|
+
:'as_of',
|
|
270
|
+
:'source_url',
|
|
271
|
+
:'retrieved_at',
|
|
272
|
+
:'org_id',
|
|
273
|
+
:'org_name',
|
|
274
|
+
:'org_match_rung',
|
|
275
|
+
:'org_match_tier',
|
|
276
|
+
:'org_match_confidence',
|
|
277
|
+
:'provider_id',
|
|
278
|
+
:'provider_uuid',
|
|
279
|
+
:'provider_slug',
|
|
280
|
+
:'provider_name',
|
|
281
|
+
:'match_method',
|
|
282
|
+
:'also_matched_by_name',
|
|
283
|
+
:'match_confidence',
|
|
284
|
+
:'member_total',
|
|
285
|
+
:'members_with_current_dta',
|
|
286
|
+
:'members_with_current_dua',
|
|
287
|
+
:'members_resolved_org',
|
|
288
|
+
:'members_matched_rx',
|
|
289
|
+
:'attribution'
|
|
290
|
+
])
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Initializes the object
|
|
294
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
295
|
+
def initialize(attributes = {})
|
|
296
|
+
if (!attributes.is_a?(Hash))
|
|
297
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::RwdUsNetworkMembershipsRow` initialize method"
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
301
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
302
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
303
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
304
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::RwdUsNetworkMembershipsRow`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
305
|
+
end
|
|
306
|
+
h[k.to_sym] = v
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if attributes.key?(:'membership_assertion_id')
|
|
310
|
+
self.membership_assertion_id = attributes[:'membership_assertion_id']
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
if attributes.key?(:'network_source')
|
|
314
|
+
self.network_source = attributes[:'network_source']
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
if attributes.key?(:'network_key')
|
|
318
|
+
self.network_key = attributes[:'network_key']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'network_name')
|
|
322
|
+
self.network_name = attributes[:'network_name']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'network_operator')
|
|
326
|
+
self.network_operator = attributes[:'network_operator']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'membership_kind')
|
|
330
|
+
self.membership_kind = attributes[:'membership_kind']
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'has_dta')
|
|
334
|
+
self.has_dta = attributes[:'has_dta']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'has_dua')
|
|
338
|
+
self.has_dua = attributes[:'has_dua']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'has_lhba')
|
|
342
|
+
self.has_lhba = attributes[:'has_lhba']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'has_current_dta')
|
|
346
|
+
self.has_current_dta = attributes[:'has_current_dta']
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
if attributes.key?(:'has_current_dua')
|
|
350
|
+
self.has_current_dua = attributes[:'has_current_dua']
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
if attributes.key?(:'has_current_lhba')
|
|
354
|
+
self.has_current_lhba = attributes[:'has_current_lhba']
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'first_executed_on')
|
|
358
|
+
self.first_executed_on = attributes[:'first_executed_on']
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
if attributes.key?(:'latest_term_ends_on')
|
|
362
|
+
self.latest_term_ends_on = attributes[:'latest_term_ends_on']
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
if attributes.key?(:'agreement_count')
|
|
366
|
+
self.agreement_count = attributes[:'agreement_count']
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if attributes.key?(:'institution_name')
|
|
370
|
+
self.institution_name = attributes[:'institution_name']
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if attributes.key?(:'institution_name_key')
|
|
374
|
+
self.institution_name_key = attributes[:'institution_name_key']
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if attributes.key?(:'ror_id')
|
|
378
|
+
self.ror_id = attributes[:'ror_id']
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if attributes.key?(:'institution_domain')
|
|
382
|
+
self.institution_domain = attributes[:'institution_domain']
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
if attributes.key?(:'is_lead')
|
|
386
|
+
self.is_lead = attributes[:'is_lead']
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'as_of')
|
|
390
|
+
self.as_of = attributes[:'as_of']
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
if attributes.key?(:'source_url')
|
|
394
|
+
self.source_url = attributes[:'source_url']
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if attributes.key?(:'retrieved_at')
|
|
398
|
+
self.retrieved_at = attributes[:'retrieved_at']
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'org_id')
|
|
402
|
+
self.org_id = attributes[:'org_id']
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
if attributes.key?(:'org_name')
|
|
406
|
+
self.org_name = attributes[:'org_name']
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
if attributes.key?(:'org_match_rung')
|
|
410
|
+
self.org_match_rung = attributes[:'org_match_rung']
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
if attributes.key?(:'org_match_tier')
|
|
414
|
+
self.org_match_tier = attributes[:'org_match_tier']
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
if attributes.key?(:'org_match_confidence')
|
|
418
|
+
self.org_match_confidence = attributes[:'org_match_confidence']
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
if attributes.key?(:'provider_id')
|
|
422
|
+
self.provider_id = attributes[:'provider_id']
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
if attributes.key?(:'provider_uuid')
|
|
426
|
+
self.provider_uuid = attributes[:'provider_uuid']
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
if attributes.key?(:'provider_slug')
|
|
430
|
+
self.provider_slug = attributes[:'provider_slug']
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
if attributes.key?(:'provider_name')
|
|
434
|
+
self.provider_name = attributes[:'provider_name']
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
if attributes.key?(:'match_method')
|
|
438
|
+
self.match_method = attributes[:'match_method']
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
if attributes.key?(:'also_matched_by_name')
|
|
442
|
+
self.also_matched_by_name = attributes[:'also_matched_by_name']
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
if attributes.key?(:'match_confidence')
|
|
446
|
+
self.match_confidence = attributes[:'match_confidence']
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
if attributes.key?(:'member_total')
|
|
450
|
+
self.member_total = attributes[:'member_total']
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
if attributes.key?(:'members_with_current_dta')
|
|
454
|
+
self.members_with_current_dta = attributes[:'members_with_current_dta']
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
if attributes.key?(:'members_with_current_dua')
|
|
458
|
+
self.members_with_current_dua = attributes[:'members_with_current_dua']
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
if attributes.key?(:'members_resolved_org')
|
|
462
|
+
self.members_resolved_org = attributes[:'members_resolved_org']
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
if attributes.key?(:'members_matched_rx')
|
|
466
|
+
self.members_matched_rx = attributes[:'members_matched_rx']
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
if attributes.key?(:'attribution')
|
|
470
|
+
self.attribution = attributes[:'attribution']
|
|
471
|
+
end
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
475
|
+
# @return Array for valid properties with the reasons
|
|
476
|
+
def list_invalid_properties
|
|
477
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
478
|
+
invalid_properties = Array.new
|
|
479
|
+
invalid_properties
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# Check to see if the all the properties in the model are valid
|
|
483
|
+
# @return true if the model is valid
|
|
484
|
+
def valid?
|
|
485
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
486
|
+
true
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Checks equality by comparing each attribute.
|
|
490
|
+
# @param [Object] Object to be compared
|
|
491
|
+
def ==(o)
|
|
492
|
+
return true if self.equal?(o)
|
|
493
|
+
self.class == o.class &&
|
|
494
|
+
membership_assertion_id == o.membership_assertion_id &&
|
|
495
|
+
network_source == o.network_source &&
|
|
496
|
+
network_key == o.network_key &&
|
|
497
|
+
network_name == o.network_name &&
|
|
498
|
+
network_operator == o.network_operator &&
|
|
499
|
+
membership_kind == o.membership_kind &&
|
|
500
|
+
has_dta == o.has_dta &&
|
|
501
|
+
has_dua == o.has_dua &&
|
|
502
|
+
has_lhba == o.has_lhba &&
|
|
503
|
+
has_current_dta == o.has_current_dta &&
|
|
504
|
+
has_current_dua == o.has_current_dua &&
|
|
505
|
+
has_current_lhba == o.has_current_lhba &&
|
|
506
|
+
first_executed_on == o.first_executed_on &&
|
|
507
|
+
latest_term_ends_on == o.latest_term_ends_on &&
|
|
508
|
+
agreement_count == o.agreement_count &&
|
|
509
|
+
institution_name == o.institution_name &&
|
|
510
|
+
institution_name_key == o.institution_name_key &&
|
|
511
|
+
ror_id == o.ror_id &&
|
|
512
|
+
institution_domain == o.institution_domain &&
|
|
513
|
+
is_lead == o.is_lead &&
|
|
514
|
+
as_of == o.as_of &&
|
|
515
|
+
source_url == o.source_url &&
|
|
516
|
+
retrieved_at == o.retrieved_at &&
|
|
517
|
+
org_id == o.org_id &&
|
|
518
|
+
org_name == o.org_name &&
|
|
519
|
+
org_match_rung == o.org_match_rung &&
|
|
520
|
+
org_match_tier == o.org_match_tier &&
|
|
521
|
+
org_match_confidence == o.org_match_confidence &&
|
|
522
|
+
provider_id == o.provider_id &&
|
|
523
|
+
provider_uuid == o.provider_uuid &&
|
|
524
|
+
provider_slug == o.provider_slug &&
|
|
525
|
+
provider_name == o.provider_name &&
|
|
526
|
+
match_method == o.match_method &&
|
|
527
|
+
also_matched_by_name == o.also_matched_by_name &&
|
|
528
|
+
match_confidence == o.match_confidence &&
|
|
529
|
+
member_total == o.member_total &&
|
|
530
|
+
members_with_current_dta == o.members_with_current_dta &&
|
|
531
|
+
members_with_current_dua == o.members_with_current_dua &&
|
|
532
|
+
members_resolved_org == o.members_resolved_org &&
|
|
533
|
+
members_matched_rx == o.members_matched_rx &&
|
|
534
|
+
attribution == o.attribution
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
# @see the `==` method
|
|
538
|
+
# @param [Object] Object to be compared
|
|
539
|
+
def eql?(o)
|
|
540
|
+
self == o
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Calculates hash code according to all attributes.
|
|
544
|
+
# @return [Integer] Hash code
|
|
545
|
+
def hash
|
|
546
|
+
[membership_assertion_id, network_source, network_key, network_name, network_operator, membership_kind, has_dta, has_dua, has_lhba, has_current_dta, has_current_dua, has_current_lhba, first_executed_on, latest_term_ends_on, agreement_count, institution_name, institution_name_key, ror_id, institution_domain, is_lead, as_of, source_url, retrieved_at, org_id, org_name, org_match_rung, org_match_tier, org_match_confidence, provider_id, provider_uuid, provider_slug, provider_name, match_method, also_matched_by_name, match_confidence, member_total, members_with_current_dta, members_with_current_dua, members_resolved_org, members_matched_rx, attribution].hash
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
# Builds the object from hash
|
|
550
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
551
|
+
# @return [Object] Returns the model itself
|
|
552
|
+
def self.build_from_hash(attributes)
|
|
553
|
+
return nil unless attributes.is_a?(Hash)
|
|
554
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
555
|
+
transformed_hash = {}
|
|
556
|
+
openapi_types.each_pair do |key, type|
|
|
557
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
558
|
+
transformed_hash["#{key}"] = nil
|
|
559
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
560
|
+
# check to ensure the input is an array given that the attribute
|
|
561
|
+
# is documented as an array but the input is not
|
|
562
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
563
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
564
|
+
end
|
|
565
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
566
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
new(transformed_hash)
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Deserializes the data based on type
|
|
573
|
+
# @param string type Data type
|
|
574
|
+
# @param string value Value to be deserialized
|
|
575
|
+
# @return [Object] Deserialized data
|
|
576
|
+
def self._deserialize(type, value)
|
|
577
|
+
case type.to_sym
|
|
578
|
+
when :Time
|
|
579
|
+
Time.parse(value)
|
|
580
|
+
when :Date
|
|
581
|
+
Date.parse(value)
|
|
582
|
+
when :String
|
|
583
|
+
value.to_s
|
|
584
|
+
when :Integer
|
|
585
|
+
value.to_i
|
|
586
|
+
when :Float
|
|
587
|
+
value.to_f
|
|
588
|
+
when :Boolean
|
|
589
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
590
|
+
true
|
|
591
|
+
else
|
|
592
|
+
false
|
|
593
|
+
end
|
|
594
|
+
when :Object
|
|
595
|
+
# generic object (usually a Hash), return directly
|
|
596
|
+
value
|
|
597
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
598
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
599
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
600
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
601
|
+
k_type = Regexp.last_match[:k_type]
|
|
602
|
+
v_type = Regexp.last_match[:v_type]
|
|
603
|
+
{}.tap do |hash|
|
|
604
|
+
value.each do |k, v|
|
|
605
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
606
|
+
end
|
|
607
|
+
end
|
|
608
|
+
else # model
|
|
609
|
+
# models (e.g. Pet) or oneOf
|
|
610
|
+
klass = PharmaObservatory.const_get(type)
|
|
611
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
612
|
+
end
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
# Returns the string representation of the object
|
|
616
|
+
# @return [String] String presentation of the object
|
|
617
|
+
def to_s
|
|
618
|
+
to_hash.to_s
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
622
|
+
# @return [Hash] Returns the object in the form of hash
|
|
623
|
+
def to_body
|
|
624
|
+
to_hash
|
|
625
|
+
end
|
|
626
|
+
|
|
627
|
+
# Returns the object in the form of hash
|
|
628
|
+
# @return [Hash] Returns the object in the form of hash
|
|
629
|
+
def to_hash
|
|
630
|
+
hash = {}
|
|
631
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
632
|
+
value = self.send(attr)
|
|
633
|
+
if value.nil?
|
|
634
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
635
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
hash[param] = _to_hash(value)
|
|
639
|
+
end
|
|
640
|
+
hash
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
# Outputs non-array value in the form of hash
|
|
644
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
645
|
+
# @param [Object] value Any valid value
|
|
646
|
+
# @return [Hash] Returns the value in the form of hash
|
|
647
|
+
def _to_hash(value)
|
|
648
|
+
if value.is_a?(Array)
|
|
649
|
+
value.compact.map { |v| _to_hash(v) }
|
|
650
|
+
elsif value.is_a?(Hash)
|
|
651
|
+
{}.tap do |hash|
|
|
652
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
653
|
+
end
|
|
654
|
+
elsif value.respond_to? :to_hash
|
|
655
|
+
value.to_hash
|
|
656
|
+
else
|
|
657
|
+
value
|
|
658
|
+
end
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
end
|