primary_connect_client 1.8.0 → 1.10.0
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/.openapi-generator/FILES +12 -3
- data/CHANGELOG.md +8 -0
- data/README.md +8 -5
- data/docs/Meta.md +3 -1
- data/docs/MetaDestination.md +22 -0
- data/docs/MetaProvenances.md +22 -0
- data/docs/Order.md +1 -1
- data/docs/OrderPatient.md +24 -0
- data/docs/OrderPatientContacts.md +28 -0
- data/docs/Patient.md +1 -1
- data/docs/Result.md +3 -1
- data/lib/primary_connect_client/models/meta.rb +15 -4
- data/lib/primary_connect_client/models/meta_destination.rb +237 -0
- data/lib/primary_connect_client/models/meta_provenances.rb +237 -0
- data/lib/primary_connect_client/models/order.rb +1 -1
- data/lib/primary_connect_client/models/order_patient.rb +254 -0
- data/lib/primary_connect_client/models/order_patient_contacts.rb +305 -0
- data/lib/primary_connect_client/models/patient.rb +1 -1
- data/lib/primary_connect_client/models/result.rb +13 -4
- data/lib/primary_connect_client/version.rb +1 -1
- data/lib/primary_connect_client.rb +4 -1
- data/spec/models/meta_destination_spec.rb +46 -0
- data/spec/models/meta_provenances_spec.rb +46 -0
- data/spec/models/meta_spec.rb +6 -0
- data/spec/models/order_patient_contacts_spec.rb +68 -0
- data/spec/models/order_patient_spec.rb +52 -0
- data/spec/models/result_spec.rb +6 -0
- metadata +23 -7
@@ -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
|
@@ -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
|
@@ -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,46 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PrimaryConnectClient::MetaDestination
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PrimaryConnectClient::MetaDestination do
|
21
|
+
let(:instance) { PrimaryConnectClient::MetaDestination.new }
|
22
|
+
|
23
|
+
describe 'test an instance of MetaDestination' do
|
24
|
+
it 'should create an instance of MetaDestination' do
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::MetaDestination)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "name"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "config"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PrimaryConnectClient::MetaProvenances
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PrimaryConnectClient::MetaProvenances do
|
21
|
+
let(:instance) { PrimaryConnectClient::MetaProvenances.new }
|
22
|
+
|
23
|
+
describe 'test an instance of MetaProvenances' do
|
24
|
+
it 'should create an instance of MetaProvenances' do
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::MetaProvenances)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "destination"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "placer_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "rerouted_at"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
data/spec/models/meta_spec.rb
CHANGED
@@ -0,0 +1,68 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PrimaryConnectClient::OrderPatientContacts
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PrimaryConnectClient::OrderPatientContacts do
|
21
|
+
let(:instance) { PrimaryConnectClient::OrderPatientContacts.new }
|
22
|
+
|
23
|
+
describe 'test an instance of OrderPatientContacts' do
|
24
|
+
it 'should create an instance of OrderPatientContacts' do
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::OrderPatientContacts)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "name"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "address"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "phone_numbers"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "relation_to_patient"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
# validator = Petstore::EnumTest::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"])
|
50
|
+
# validator.allowable_values.each do |value|
|
51
|
+
# expect { instance.relation_to_patient = value }.not_to raise_error
|
52
|
+
# end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "email_addresses"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "roles"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,52 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PrimaryConnectClient::OrderPatient
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PrimaryConnectClient::OrderPatient do
|
21
|
+
let(:instance) { PrimaryConnectClient::OrderPatient.new }
|
22
|
+
|
23
|
+
describe 'test an instance of OrderPatient' do
|
24
|
+
it 'should create an instance of OrderPatient' do
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::OrderPatient)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "identifiers"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "demographics"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "notes"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "contacts"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
data/spec/models/result_spec.rb
CHANGED
@@ -151,4 +151,10 @@ describe PrimaryConnectClient::Result do
|
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
|
+
describe 'test attribute "procedure"' do
|
155
|
+
it 'should work' do
|
156
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
154
160
|
end
|