primary_connect_client 1.9.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +10 -5
  4. data/docs/DefaultApi.md +140 -0
  5. data/docs/Meta.md +3 -1
  6. data/docs/MetaDestination.md +22 -0
  7. data/docs/MetaProvenances.md +22 -0
  8. data/docs/Order.md +1 -1
  9. data/docs/OrderPatient.md +24 -0
  10. data/docs/OrderPatientContacts.md +28 -0
  11. data/docs/Patient.md +1 -1
  12. data/docs/Result.md +3 -1
  13. data/lib/primary_connect_client/api/default_api.rb +126 -0
  14. data/lib/primary_connect_client/models/meta.rb +15 -4
  15. data/lib/primary_connect_client/models/meta_destination.rb +237 -0
  16. data/lib/primary_connect_client/models/meta_provenances.rb +237 -0
  17. data/lib/primary_connect_client/models/order.rb +1 -1
  18. data/lib/primary_connect_client/models/order_patient.rb +254 -0
  19. data/lib/primary_connect_client/models/order_patient_contacts.rb +305 -0
  20. data/lib/primary_connect_client/models/patient.rb +1 -1
  21. data/lib/primary_connect_client/models/result.rb +13 -4
  22. data/lib/primary_connect_client/version.rb +1 -1
  23. data/lib/primary_connect_client.rb +4 -1
  24. data/primary_connect_client.gemspec +39 -0
  25. data/spec/api/default_api_spec.rb +23 -0
  26. data/spec/models/demographics_spec.rb +1 -1
  27. data/spec/models/meta_destination_spec.rb +46 -0
  28. data/spec/models/meta_provenances_spec.rb +46 -0
  29. data/spec/models/meta_spec.rb +6 -0
  30. data/spec/models/order_patient_contacts_spec.rb +68 -0
  31. data/spec/models/order_patient_spec.rb +52 -0
  32. data/spec/models/result_spec.rb +6 -0
  33. metadata +23 -11
  34. data/.openapi-generator/FILES +0 -180
  35. data/.openapi-generator/VERSION +0 -1
  36. data/.openapi-generator-ignore +0 -23
  37. data/.rspec +0 -2
  38. data/.rubocop.yml +0 -148
@@ -0,0 +1,254 @@
1
+ =begin
2
+ #Primary Connect API V1
3
+
4
+ #Client Library to interface with Primary Connect
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PrimaryConnectClient
17
+ # Deprecated in favor of `subject.patient`
18
+ class OrderPatient
19
+ # List of IDs and types that identify the patient
20
+ attr_accessor :identifiers
21
+
22
+ attr_accessor :demographics
23
+
24
+ # Patient-level notes
25
+ attr_accessor :notes
26
+
27
+ attr_accessor :contacts
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'identifiers' => :'identifiers',
33
+ :'demographics' => :'demographics',
34
+ :'notes' => :'notes',
35
+ :'contacts' => :'contacts'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'identifiers' => :'Array<Identifier>',
48
+ :'demographics' => :'Demographics',
49
+ :'notes' => :'Array<String>',
50
+ :'contacts' => :'Array<OrderPatientContacts>'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PrimaryConnectClient::OrderPatient` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PrimaryConnectClient::OrderPatient`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'identifiers')
76
+ if (value = attributes[:'identifiers']).is_a?(Array)
77
+ self.identifiers = value
78
+ end
79
+ end
80
+
81
+ if attributes.key?(:'demographics')
82
+ self.demographics = attributes[:'demographics']
83
+ end
84
+
85
+ if attributes.key?(:'notes')
86
+ if (value = attributes[:'notes']).is_a?(Array)
87
+ self.notes = value
88
+ end
89
+ end
90
+
91
+ if attributes.key?(:'contacts')
92
+ if (value = attributes[:'contacts']).is_a?(Array)
93
+ self.contacts = value
94
+ end
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ invalid_properties = Array.new
102
+ invalid_properties
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ def valid?
108
+ true
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ identifiers == o.identifiers &&
117
+ demographics == o.demographics &&
118
+ notes == o.notes &&
119
+ contacts == o.contacts
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [identifiers, demographics, notes, contacts].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ new.build_from_hash(attributes)
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ self.class.openapi_types.each_pair do |key, type|
147
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
148
+ self.send("#{key}=", nil)
149
+ elsif type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the attribute
151
+ # is documented as an array but the input is not
152
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
153
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
+ end
155
+ elsif !attributes[self.class.attribute_map[key]].nil?
156
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
157
+ end
158
+ end
159
+
160
+ self
161
+ end
162
+
163
+ # Deserializes the data based on type
164
+ # @param string type Data type
165
+ # @param string value Value to be deserialized
166
+ # @return [Object] Deserialized data
167
+ def _deserialize(type, value)
168
+ case type.to_sym
169
+ when :Time
170
+ Time.parse(value)
171
+ when :Date
172
+ Date.parse(value)
173
+ when :String
174
+ value.to_s
175
+ when :Integer
176
+ value.to_i
177
+ when :Float
178
+ value.to_f
179
+ when :Boolean
180
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
+ true
182
+ else
183
+ false
184
+ end
185
+ when :Object
186
+ # generic object (usually a Hash), return directly
187
+ value
188
+ when /\AArray<(?<inner_type>.+)>\z/
189
+ inner_type = Regexp.last_match[:inner_type]
190
+ value.map { |v| _deserialize(inner_type, v) }
191
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
+ k_type = Regexp.last_match[:k_type]
193
+ v_type = Regexp.last_match[:v_type]
194
+ {}.tap do |hash|
195
+ value.each do |k, v|
196
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
197
+ end
198
+ end
199
+ else # model
200
+ # models (e.g. Pet) or oneOf
201
+ klass = PrimaryConnectClient.const_get(type)
202
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
203
+ end
204
+ end
205
+
206
+ # Returns the string representation of the object
207
+ # @return [String] String presentation of the object
208
+ def to_s
209
+ to_hash.to_s
210
+ end
211
+
212
+ # to_body is an alias to to_hash (backward compatibility)
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_body
215
+ to_hash
216
+ end
217
+
218
+ # Returns the object in the form of hash
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_hash
221
+ hash = {}
222
+ self.class.attribute_map.each_pair do |attr, param|
223
+ value = self.send(attr)
224
+ if value.nil?
225
+ is_nullable = self.class.openapi_nullable.include?(attr)
226
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
227
+ end
228
+
229
+ hash[param] = _to_hash(value)
230
+ end
231
+ hash
232
+ end
233
+
234
+ # Outputs non-array value in the form of hash
235
+ # For object, use to_hash. Otherwise, just return the value
236
+ # @param [Object] value Any valid value
237
+ # @return [Hash] Returns the value in the form of hash
238
+ def _to_hash(value)
239
+ if value.is_a?(Array)
240
+ value.compact.map { |v| _to_hash(v) }
241
+ elsif value.is_a?(Hash)
242
+ {}.tap do |hash|
243
+ value.each { |k, v| hash[k] = _to_hash(v) }
244
+ end
245
+ elsif value.respond_to? :to_hash
246
+ value.to_hash
247
+ else
248
+ value
249
+ end
250
+ end
251
+
252
+ end
253
+
254
+ end
@@ -0,0 +1,305 @@
1
+ =begin
2
+ #Primary Connect API V1
3
+
4
+ #Client Library to interface with Primary Connect
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module PrimaryConnectClient
17
+ class OrderPatientContacts
18
+ attr_accessor :name
19
+
20
+ attr_accessor :address
21
+
22
+ attr_accessor :phone_numbers
23
+
24
+ # Personal relationship to the patient
25
+ attr_accessor :relation_to_patient
26
+
27
+ attr_accessor :email_addresses
28
+
29
+ # e.g. Employer, Emergency Contact
30
+ attr_accessor :roles
31
+
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
54
+ # Attribute mapping from ruby-style variable name to JSON key.
55
+ def self.attribute_map
56
+ {
57
+ :'name' => :'name',
58
+ :'address' => :'address',
59
+ :'phone_numbers' => :'phoneNumbers',
60
+ :'relation_to_patient' => :'relationToPatient',
61
+ :'email_addresses' => :'emailAddresses',
62
+ :'roles' => :'roles'
63
+ }
64
+ end
65
+
66
+ # Returns all the JSON keys this model knows about
67
+ def self.acceptable_attributes
68
+ attribute_map.values
69
+ end
70
+
71
+ # Attribute type mapping.
72
+ def self.openapi_types
73
+ {
74
+ :'name' => :'Name',
75
+ :'address' => :'Address',
76
+ :'phone_numbers' => :'Array<PhoneNumber>',
77
+ :'relation_to_patient' => :'String',
78
+ :'email_addresses' => :'Array<String>',
79
+ :'roles' => :'Array<String>'
80
+ }
81
+ end
82
+
83
+ # List of attributes with nullable: true
84
+ def self.openapi_nullable
85
+ Set.new([
86
+ ])
87
+ end
88
+
89
+ # Initializes the object
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ def initialize(attributes = {})
92
+ if (!attributes.is_a?(Hash))
93
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PrimaryConnectClient::OrderPatientContacts` initialize method"
94
+ end
95
+
96
+ # check to see if the attribute exists and convert string to symbol for hash key
97
+ attributes = attributes.each_with_object({}) { |(k, v), h|
98
+ if (!self.class.attribute_map.key?(k.to_sym))
99
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PrimaryConnectClient::OrderPatientContacts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
100
+ end
101
+ h[k.to_sym] = v
102
+ }
103
+
104
+ if attributes.key?(:'name')
105
+ self.name = attributes[:'name']
106
+ end
107
+
108
+ if attributes.key?(:'address')
109
+ self.address = attributes[:'address']
110
+ end
111
+
112
+ if attributes.key?(:'phone_numbers')
113
+ if (value = attributes[:'phone_numbers']).is_a?(Array)
114
+ self.phone_numbers = value
115
+ end
116
+ end
117
+
118
+ if attributes.key?(:'relation_to_patient')
119
+ self.relation_to_patient = attributes[:'relation_to_patient']
120
+ end
121
+
122
+ if attributes.key?(:'email_addresses')
123
+ if (value = attributes[:'email_addresses']).is_a?(Array)
124
+ self.email_addresses = value
125
+ end
126
+ end
127
+
128
+ if attributes.key?(:'roles')
129
+ if (value = attributes[:'roles']).is_a?(Array)
130
+ self.roles = value
131
+ end
132
+ end
133
+ end
134
+
135
+ # Show invalid properties with the reasons. Usually used together with valid?
136
+ # @return Array for valid properties with the reasons
137
+ def list_invalid_properties
138
+ invalid_properties = Array.new
139
+ invalid_properties
140
+ end
141
+
142
+ # Check to see if the all the properties in the model are valid
143
+ # @return true if the model is valid
144
+ def valid?
145
+ relation_to_patient_validator = EnumAttributeValidator.new('String', ["RELATIONSHIP_UNKNOWN", "RELATIONSHIP_OTHER", "RELATIONSHIP_SELF", "RELATIONSHIP_SPOUSE", "RELATIONSHIP_LIFE_PARTNER", "RELATIONSHIP_CHILD", "RELATIONSHIP_FATHER", "RELATIONSHIP_MOTHER", "RELATIONSHIP_GUARDIAN", "RELATIONSHIP_PARENT", "RELATIONSHIP_GRANDPARENT", "RELATIONSHIP_GRANDCHILD", "RELATIONSHIP_SIBLING", "RELATIONSHIP_EMPLOYER"])
146
+ return false unless relation_to_patient_validator.valid?(@relation_to_patient)
147
+ true
148
+ end
149
+
150
+ # Custom attribute writer method checking allowed values (enum).
151
+ # @param [Object] relation_to_patient Object to be assigned
152
+ def relation_to_patient=(relation_to_patient)
153
+ validator = EnumAttributeValidator.new('String', ["RELATIONSHIP_UNKNOWN", "RELATIONSHIP_OTHER", "RELATIONSHIP_SELF", "RELATIONSHIP_SPOUSE", "RELATIONSHIP_LIFE_PARTNER", "RELATIONSHIP_CHILD", "RELATIONSHIP_FATHER", "RELATIONSHIP_MOTHER", "RELATIONSHIP_GUARDIAN", "RELATIONSHIP_PARENT", "RELATIONSHIP_GRANDPARENT", "RELATIONSHIP_GRANDCHILD", "RELATIONSHIP_SIBLING", "RELATIONSHIP_EMPLOYER"])
154
+ unless validator.valid?(relation_to_patient)
155
+ fail ArgumentError, "invalid value for \"relation_to_patient\", must be one of #{validator.allowable_values}."
156
+ end
157
+ @relation_to_patient = relation_to_patient
158
+ end
159
+
160
+ # Checks equality by comparing each attribute.
161
+ # @param [Object] Object to be compared
162
+ def ==(o)
163
+ return true if self.equal?(o)
164
+ self.class == o.class &&
165
+ name == o.name &&
166
+ address == o.address &&
167
+ phone_numbers == o.phone_numbers &&
168
+ relation_to_patient == o.relation_to_patient &&
169
+ email_addresses == o.email_addresses &&
170
+ roles == o.roles
171
+ end
172
+
173
+ # @see the `==` method
174
+ # @param [Object] Object to be compared
175
+ def eql?(o)
176
+ self == o
177
+ end
178
+
179
+ # Calculates hash code according to all attributes.
180
+ # @return [Integer] Hash code
181
+ def hash
182
+ [name, address, phone_numbers, relation_to_patient, email_addresses, roles].hash
183
+ end
184
+
185
+ # Builds the object from hash
186
+ # @param [Hash] attributes Model attributes in the form of hash
187
+ # @return [Object] Returns the model itself
188
+ def self.build_from_hash(attributes)
189
+ new.build_from_hash(attributes)
190
+ end
191
+
192
+ # Builds the object from hash
193
+ # @param [Hash] attributes Model attributes in the form of hash
194
+ # @return [Object] Returns the model itself
195
+ def build_from_hash(attributes)
196
+ return nil unless attributes.is_a?(Hash)
197
+ self.class.openapi_types.each_pair do |key, type|
198
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
199
+ self.send("#{key}=", nil)
200
+ elsif type =~ /\AArray<(.*)>/i
201
+ # check to ensure the input is an array given that the attribute
202
+ # is documented as an array but the input is not
203
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
204
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
205
+ end
206
+ elsif !attributes[self.class.attribute_map[key]].nil?
207
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
208
+ end
209
+ end
210
+
211
+ self
212
+ end
213
+
214
+ # Deserializes the data based on type
215
+ # @param string type Data type
216
+ # @param string value Value to be deserialized
217
+ # @return [Object] Deserialized data
218
+ def _deserialize(type, value)
219
+ case type.to_sym
220
+ when :Time
221
+ Time.parse(value)
222
+ when :Date
223
+ Date.parse(value)
224
+ when :String
225
+ value.to_s
226
+ when :Integer
227
+ value.to_i
228
+ when :Float
229
+ value.to_f
230
+ when :Boolean
231
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
232
+ true
233
+ else
234
+ false
235
+ end
236
+ when :Object
237
+ # generic object (usually a Hash), return directly
238
+ value
239
+ when /\AArray<(?<inner_type>.+)>\z/
240
+ inner_type = Regexp.last_match[:inner_type]
241
+ value.map { |v| _deserialize(inner_type, v) }
242
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
243
+ k_type = Regexp.last_match[:k_type]
244
+ v_type = Regexp.last_match[:v_type]
245
+ {}.tap do |hash|
246
+ value.each do |k, v|
247
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
248
+ end
249
+ end
250
+ else # model
251
+ # models (e.g. Pet) or oneOf
252
+ klass = PrimaryConnectClient.const_get(type)
253
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
254
+ end
255
+ end
256
+
257
+ # Returns the string representation of the object
258
+ # @return [String] String presentation of the object
259
+ def to_s
260
+ to_hash.to_s
261
+ end
262
+
263
+ # to_body is an alias to to_hash (backward compatibility)
264
+ # @return [Hash] Returns the object in the form of hash
265
+ def to_body
266
+ to_hash
267
+ end
268
+
269
+ # Returns the object in the form of hash
270
+ # @return [Hash] Returns the object in the form of hash
271
+ def to_hash
272
+ hash = {}
273
+ self.class.attribute_map.each_pair do |attr, param|
274
+ value = self.send(attr)
275
+ if value.nil?
276
+ is_nullable = self.class.openapi_nullable.include?(attr)
277
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
278
+ end
279
+
280
+ hash[param] = _to_hash(value)
281
+ end
282
+ hash
283
+ end
284
+
285
+ # Outputs non-array value in the form of hash
286
+ # For object, use to_hash. Otherwise, just return the value
287
+ # @param [Object] value Any valid value
288
+ # @return [Hash] Returns the value in the form of hash
289
+ def _to_hash(value)
290
+ if value.is_a?(Array)
291
+ value.compact.map { |v| _to_hash(v) }
292
+ elsif value.is_a?(Hash)
293
+ {}.tap do |hash|
294
+ value.each { |k, v| hash[k] = _to_hash(v) }
295
+ end
296
+ elsif value.respond_to? :to_hash
297
+ value.to_hash
298
+ else
299
+ value
300
+ end
301
+ end
302
+
303
+ end
304
+
305
+ end
@@ -46,7 +46,7 @@ module PrimaryConnectClient
46
46
  :'identifiers' => :'Array<Identifier>',
47
47
  :'demographics' => :'Demographics',
48
48
  :'notes' => :'Array<String>',
49
- :'contacts' => :'Array<PatientContacts>'
49
+ :'contacts' => :'Array<OrderPatientContacts>'
50
50
  }
51
51
  end
52
52
 
@@ -62,6 +62,8 @@ module PrimaryConnectClient
62
62
 
63
63
  attr_accessor :resulting_device
64
64
 
65
+ attr_accessor :procedure
66
+
65
67
  class EnumAttributeValidator
66
68
  attr_reader :datatype
67
69
  attr_reader :allowable_values
@@ -105,7 +107,8 @@ module PrimaryConnectClient
105
107
  :'observation_method' => :'observationMethod',
106
108
  :'producer_order_id' => :'producerOrderId',
107
109
  :'finding_value' => :'findingValue',
108
- :'resulting_device' => :'resultingDevice'
110
+ :'resulting_device' => :'resultingDevice',
111
+ :'procedure' => :'procedure'
109
112
  }
110
113
  end
111
114
 
@@ -135,7 +138,8 @@ module PrimaryConnectClient
135
138
  :'observation_method' => :'CodedValue',
136
139
  :'producer_order_id' => :'String',
137
140
  :'finding_value' => :'CodedValue',
138
- :'resulting_device' => :'Device'
141
+ :'resulting_device' => :'Device',
142
+ :'procedure' => :'CodedValue'
139
143
  }
140
144
  end
141
145
 
@@ -240,6 +244,10 @@ module PrimaryConnectClient
240
244
  if attributes.key?(:'resulting_device')
241
245
  self.resulting_device = attributes[:'resulting_device']
242
246
  end
247
+
248
+ if attributes.key?(:'procedure')
249
+ self.procedure = attributes[:'procedure']
250
+ end
243
251
  end
244
252
 
245
253
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -314,7 +322,8 @@ module PrimaryConnectClient
314
322
  observation_method == o.observation_method &&
315
323
  producer_order_id == o.producer_order_id &&
316
324
  finding_value == o.finding_value &&
317
- resulting_device == o.resulting_device
325
+ resulting_device == o.resulting_device &&
326
+ procedure == o.procedure
318
327
  end
319
328
 
320
329
  # @see the `==` method
@@ -326,7 +335,7 @@ module PrimaryConnectClient
326
335
  # Calculates hash code according to all attributes.
327
336
  # @return [Integer] Hash code
328
337
  def hash
329
- [code, related_group_id, specimen, value, value_type, completion_date_time, report, units, notes, abnormal_flag, status, primary_results_interpreter, producer, performer, reference_range, observation_method, producer_order_id, finding_value, resulting_device].hash
338
+ [code, related_group_id, specimen, value, value_type, completion_date_time, report, units, notes, abnormal_flag, status, primary_results_interpreter, producer, performer, reference_range, observation_method, producer_order_id, finding_value, resulting_device, procedure].hash
330
339
  end
331
340
 
332
341
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module PrimaryConnectClient
14
- VERSION = '1.9.0'
14
+ VERSION = '1.11.0'
15
15
  end
@@ -34,8 +34,10 @@ require 'primary_connect_client/models/measurement'
34
34
  require 'primary_connect_client/models/medication'
35
35
  require 'primary_connect_client/models/medication_administration'
36
36
  require 'primary_connect_client/models/meta'
37
+ require 'primary_connect_client/models/meta_destination'
37
38
  require 'primary_connect_client/models/meta_destinations'
38
39
  require 'primary_connect_client/models/meta_message'
40
+ require 'primary_connect_client/models/meta_provenances'
39
41
  require 'primary_connect_client/models/meta_source'
40
42
  require 'primary_connect_client/models/meta_transmission'
41
43
  require 'primary_connect_client/models/name'
@@ -45,11 +47,12 @@ require 'primary_connect_client/models/order_order'
45
47
  require 'primary_connect_client/models/order_order_clinical_info'
46
48
  require 'primary_connect_client/models/order_order_diagnoses'
47
49
  require 'primary_connect_client/models/order_order_ordering_facility'
50
+ require 'primary_connect_client/models/order_patient'
51
+ require 'primary_connect_client/models/order_patient_contacts'
48
52
  require 'primary_connect_client/models/order_with_event_errors'
49
53
  require 'primary_connect_client/models/orders'
50
54
  require 'primary_connect_client/models/orders_orders'
51
55
  require 'primary_connect_client/models/patient'
52
- require 'primary_connect_client/models/patient_contacts'
53
56
  require 'primary_connect_client/models/phone_number'
54
57
  require 'primary_connect_client/models/provider'
55
58
  require 'primary_connect_client/models/result'
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Primary Connect API V1
5
+
6
+ #Client Library to interface with Primary Connect
7
+
8
+ The version of the OpenAPI document: v1
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.3.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "primary_connect_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "primary_connect_client"
20
+ s.version = PrimaryConnectClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = [""]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Primary Connect API V1 Ruby Gem"
26
+ s.description = "Client Library to interface with Primary Connect"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'primary_connect_proto', '~> 0.23.0', '>= 0.23.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end