primary_connect_client 0.7.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/README.md +63 -20
- data/docs/Address.md +32 -0
- data/docs/CodedValue.md +22 -0
- data/docs/DefaultApi.md +635 -0
- data/docs/Demographics.md +52 -0
- data/docs/Error.md +18 -0
- data/docs/Event.md +26 -0
- data/docs/Events.md +18 -0
- data/docs/Identifier.md +20 -0
- data/docs/Location.md +26 -0
- data/docs/Meta.md +34 -0
- data/docs/MetaDestinations.md +22 -0
- data/docs/MetaMessage.md +20 -0
- data/docs/MetaSource.md +20 -0
- data/docs/MetaTransmission.md +18 -0
- data/docs/Name.md +22 -0
- data/docs/Order.md +24 -0
- data/docs/OrderIds.md +18 -0
- data/docs/OrderOrder.md +58 -0
- data/docs/OrderOrderClinicalInfo.md +26 -0
- data/docs/OrderOrderDiagnoses.md +22 -0
- data/docs/OrderOrderOrderingFacility.md +22 -0
- data/docs/OrderOrderSpecimen.md +22 -0
- data/docs/OrderWithEventErrors.md +20 -0
- data/docs/Orders.md +18 -0
- data/docs/OrdersOrders.md +22 -0
- data/docs/Patient.md +24 -0
- data/docs/PatientContacts.md +28 -0
- data/docs/PatientDemographics.md +52 -0
- data/docs/PhoneNumber.md +20 -0
- data/docs/Provider.md +32 -0
- data/docs/Result.md +52 -0
- data/docs/ResultIds.md +18 -0
- data/docs/ResultReferenceRange.md +22 -0
- data/docs/ResultReport.md +22 -0
- data/docs/ResultSpecimen.md +22 -0
- data/docs/Results.md +20 -0
- data/docs/Specimen.md +22 -0
- data/docs/Visit.md +36 -0
- data/docs/VisitCompany.md +24 -0
- data/docs/VisitGuarantor.md +40 -0
- data/docs/VisitGuarantorEmployer.md +22 -0
- data/docs/VisitInsurances.md +40 -0
- data/docs/VisitInsured.md +30 -0
- data/docs/VisitPlan.md +22 -0
- data/git_push.sh +5 -6
- data/lib/primary_connect_client/api/default_api.rb +204 -66
- data/lib/primary_connect_client/api_client.rb +5 -6
- data/lib/primary_connect_client/api_error.rb +1 -1
- data/lib/primary_connect_client/configuration.rb +4 -3
- data/lib/primary_connect_client/models/address.rb +281 -0
- data/lib/primary_connect_client/models/coded_value.rb +238 -0
- data/lib/primary_connect_client/models/demographics.rb +466 -0
- data/lib/primary_connect_client/models/error.rb +218 -0
- data/lib/primary_connect_client/models/event.rb +254 -0
- data/lib/primary_connect_client/models/events.rb +221 -0
- data/lib/primary_connect_client/models/identifier.rb +228 -0
- data/lib/primary_connect_client/models/location.rb +255 -0
- data/lib/primary_connect_client/models/meta.rb +327 -0
- data/lib/primary_connect_client/models/meta_destinations.rb +242 -0
- data/lib/primary_connect_client/models/meta_message.rb +227 -0
- data/lib/primary_connect_client/models/meta_source.rb +227 -0
- data/lib/primary_connect_client/models/meta_transmission.rb +218 -0
- data/lib/primary_connect_client/models/name.rb +237 -0
- data/lib/primary_connect_client/models/order.rb +245 -0
- data/lib/primary_connect_client/models/order_ids.rb +221 -0
- data/lib/primary_connect_client/models/order_order.rb +496 -0
- data/lib/primary_connect_client/models/order_order_clinical_info.rb +260 -0
- data/lib/primary_connect_client/models/order_order_diagnoses.rb +272 -0
- data/lib/primary_connect_client/models/order_order_ordering_facility.rb +239 -0
- data/lib/primary_connect_client/models/order_order_specimen.rb +239 -0
- data/lib/primary_connect_client/models/order_with_event_errors.rb +229 -0
- data/lib/primary_connect_client/models/orders.rb +221 -0
- data/lib/primary_connect_client/models/orders_orders.rb +236 -0
- data/lib/primary_connect_client/models/patient.rb +253 -0
- data/lib/primary_connect_client/models/patient_contacts.rb +305 -0
- data/lib/primary_connect_client/models/patient_demographics.rb +466 -0
- data/lib/primary_connect_client/models/phone_number.rb +262 -0
- data/lib/primary_connect_client/models/provider.rb +288 -0
- data/lib/primary_connect_client/models/result.rb +443 -0
- data/lib/primary_connect_client/models/result_ids.rb +221 -0
- data/lib/primary_connect_client/models/result_reference_range.rb +240 -0
- data/lib/primary_connect_client/models/result_report.rb +240 -0
- data/lib/primary_connect_client/models/result_specimen.rb +239 -0
- data/lib/primary_connect_client/models/results.rb +230 -0
- data/lib/primary_connect_client/models/specimen.rb +239 -0
- data/lib/primary_connect_client/models/visit.rb +306 -0
- data/lib/primary_connect_client/models/visit_company.rb +248 -0
- data/lib/primary_connect_client/models/visit_guarantor.rb +358 -0
- data/lib/primary_connect_client/models/visit_guarantor_employer.rb +238 -0
- data/lib/primary_connect_client/models/visit_insurances.rb +386 -0
- data/lib/primary_connect_client/models/visit_insured.rb +322 -0
- data/lib/primary_connect_client/models/visit_plan.rb +238 -0
- data/lib/primary_connect_client/version.rb +12 -2
- data/lib/primary_connect_client.rb +45 -3
- data/primary_connect_client.gemspec +7 -5
- data/spec/api/default_api_spec.rb +55 -41
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/address_spec.rb +76 -0
- data/spec/models/coded_value_spec.rb +46 -0
- data/spec/models/demographics_spec.rb +168 -0
- data/spec/models/error_spec.rb +34 -0
- data/spec/models/event_spec.rb +58 -0
- data/spec/models/events_spec.rb +34 -0
- data/spec/models/identifier_spec.rb +40 -0
- data/spec/models/location_spec.rb +58 -0
- data/spec/models/meta_destinations_spec.rb +46 -0
- data/spec/models/meta_message_spec.rb +40 -0
- data/spec/models/meta_source_spec.rb +40 -0
- data/spec/models/meta_spec.rb +86 -0
- data/spec/models/meta_transmission_spec.rb +34 -0
- data/spec/models/name_spec.rb +46 -0
- data/spec/models/order_ids_spec.rb +34 -0
- data/spec/models/order_order_clinical_info_spec.rb +58 -0
- data/spec/models/order_order_diagnoses_spec.rb +50 -0
- data/spec/models/order_order_ordering_facility_spec.rb +46 -0
- data/spec/models/order_order_spec.rb +170 -0
- data/spec/models/order_order_specimen_spec.rb +46 -0
- data/spec/models/order_spec.rb +52 -0
- data/spec/models/order_with_event_errors_spec.rb +40 -0
- data/spec/models/orders_orders_spec.rb +46 -0
- data/spec/models/orders_spec.rb +34 -0
- data/spec/models/patient_contacts_spec.rb +68 -0
- data/spec/models/patient_demographics_spec.rb +168 -0
- data/spec/models/patient_spec.rb +52 -0
- data/spec/models/phone_number_spec.rb +44 -0
- data/spec/models/provider_spec.rb +76 -0
- data/spec/models/result_ids_spec.rb +34 -0
- data/spec/models/result_reference_range_spec.rb +46 -0
- data/spec/models/result_report_spec.rb +46 -0
- data/spec/models/result_spec.rb +148 -0
- data/spec/models/result_specimen_spec.rb +46 -0
- data/spec/models/results_spec.rb +40 -0
- data/spec/models/specimen_spec.rb +46 -0
- data/spec/models/visit_company_spec.rb +52 -0
- data/spec/models/visit_guarantor_employer_spec.rb +46 -0
- data/spec/models/visit_guarantor_spec.rb +104 -0
- data/spec/models/visit_insurances_spec.rb +112 -0
- data/spec/models/visit_insured_spec.rb +78 -0
- data/spec/models/visit_plan_spec.rb +46 -0
- data/spec/models/visit_spec.rb +88 -0
- data/spec/spec_helper.rb +1 -1
- metadata +177 -20
- data/Gemfile.lock +0 -74
@@ -0,0 +1,238 @@
|
|
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 VisitPlan
|
18
|
+
attr_accessor :identifier
|
19
|
+
|
20
|
+
# Name of insurance plan
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# Type of insurance plan
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'identifier' => :'identifier',
|
30
|
+
:'name' => :'name',
|
31
|
+
:'type' => :'type'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Returns all the JSON keys this model knows about
|
36
|
+
def self.acceptable_attributes
|
37
|
+
attribute_map.values
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'identifier' => :'Identifier',
|
44
|
+
:'name' => :'String',
|
45
|
+
:'type' => :'String'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# List of attributes with nullable: true
|
50
|
+
def self.openapi_nullable
|
51
|
+
Set.new([
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
if (!attributes.is_a?(Hash))
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PrimaryConnectClient::VisitPlan` initialize method"
|
60
|
+
end
|
61
|
+
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PrimaryConnectClient::VisitPlan`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
|
+
end
|
67
|
+
h[k.to_sym] = v
|
68
|
+
}
|
69
|
+
|
70
|
+
if attributes.key?(:'identifier')
|
71
|
+
self.identifier = attributes[:'identifier']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.key?(:'name')
|
75
|
+
self.name = attributes[:'name']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'type')
|
79
|
+
self.type = attributes[:'type']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def ==(o)
|
99
|
+
return true if self.equal?(o)
|
100
|
+
self.class == o.class &&
|
101
|
+
identifier == o.identifier &&
|
102
|
+
name == o.name &&
|
103
|
+
type == o.type
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Integer] Hash code
|
114
|
+
def hash
|
115
|
+
[identifier, name, type].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def self.build_from_hash(attributes)
|
122
|
+
new.build_from_hash(attributes)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def build_from_hash(attributes)
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
130
|
+
self.class.openapi_types.each_pair do |key, type|
|
131
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
132
|
+
self.send("#{key}=", nil)
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
134
|
+
# check to ensure the input is an array given that the attribute
|
135
|
+
# is documented as an array but the input is not
|
136
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
138
|
+
end
|
139
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
self
|
145
|
+
end
|
146
|
+
|
147
|
+
# Deserializes the data based on type
|
148
|
+
# @param string type Data type
|
149
|
+
# @param string value Value to be deserialized
|
150
|
+
# @return [Object] Deserialized data
|
151
|
+
def _deserialize(type, value)
|
152
|
+
case type.to_sym
|
153
|
+
when :Time
|
154
|
+
Time.parse(value)
|
155
|
+
when :Date
|
156
|
+
Date.parse(value)
|
157
|
+
when :String
|
158
|
+
value.to_s
|
159
|
+
when :Integer
|
160
|
+
value.to_i
|
161
|
+
when :Float
|
162
|
+
value.to_f
|
163
|
+
when :Boolean
|
164
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
165
|
+
true
|
166
|
+
else
|
167
|
+
false
|
168
|
+
end
|
169
|
+
when :Object
|
170
|
+
# generic object (usually a Hash), return directly
|
171
|
+
value
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
175
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
178
|
+
{}.tap do |hash|
|
179
|
+
value.each do |k, v|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
else # model
|
184
|
+
# models (e.g. Pet) or oneOf
|
185
|
+
klass = PrimaryConnectClient.const_get(type)
|
186
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the string representation of the object
|
191
|
+
# @return [String] String presentation of the object
|
192
|
+
def to_s
|
193
|
+
to_hash.to_s
|
194
|
+
end
|
195
|
+
|
196
|
+
# to_body is an alias to to_hash (backward compatibility)
|
197
|
+
# @return [Hash] Returns the object in the form of hash
|
198
|
+
def to_body
|
199
|
+
to_hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Returns the object in the form of hash
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_hash
|
205
|
+
hash = {}
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
207
|
+
value = self.send(attr)
|
208
|
+
if value.nil?
|
209
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
210
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
211
|
+
end
|
212
|
+
|
213
|
+
hash[param] = _to_hash(value)
|
214
|
+
end
|
215
|
+
hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# Outputs non-array value in the form of hash
|
219
|
+
# For object, use to_hash. Otherwise, just return the value
|
220
|
+
# @param [Object] value Any valid value
|
221
|
+
# @return [Hash] Returns the value in the form of hash
|
222
|
+
def _to_hash(value)
|
223
|
+
if value.is_a?(Array)
|
224
|
+
value.compact.map { |v| _to_hash(v) }
|
225
|
+
elsif value.is_a?(Hash)
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
228
|
+
end
|
229
|
+
elsif value.respond_to? :to_hash
|
230
|
+
value.to_hash
|
231
|
+
else
|
232
|
+
value
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
end
|
237
|
+
|
238
|
+
end
|
@@ -1,5 +1,15 @@
|
|
1
|
-
|
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
|
2
12
|
|
3
13
|
module PrimaryConnectClient
|
4
|
-
VERSION = '
|
14
|
+
VERSION = '1.1.0'
|
5
15
|
end
|
@@ -5,6 +5,9 @@
|
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
|
+
|
8
11
|
=end
|
9
12
|
|
10
13
|
# Common files
|
@@ -13,12 +16,51 @@ require 'primary_connect_client/api_error'
|
|
13
16
|
require 'primary_connect_client/version'
|
14
17
|
require 'primary_connect_client/configuration'
|
15
18
|
|
19
|
+
# Models
|
20
|
+
require 'primary_connect_client/models/address'
|
21
|
+
require 'primary_connect_client/models/coded_value'
|
22
|
+
require 'primary_connect_client/models/demographics'
|
23
|
+
require 'primary_connect_client/models/error'
|
24
|
+
require 'primary_connect_client/models/event'
|
25
|
+
require 'primary_connect_client/models/events'
|
26
|
+
require 'primary_connect_client/models/identifier'
|
27
|
+
require 'primary_connect_client/models/location'
|
28
|
+
require 'primary_connect_client/models/meta'
|
29
|
+
require 'primary_connect_client/models/meta_destinations'
|
30
|
+
require 'primary_connect_client/models/meta_message'
|
31
|
+
require 'primary_connect_client/models/meta_source'
|
32
|
+
require 'primary_connect_client/models/meta_transmission'
|
33
|
+
require 'primary_connect_client/models/name'
|
34
|
+
require 'primary_connect_client/models/order'
|
35
|
+
require 'primary_connect_client/models/order_ids'
|
36
|
+
require 'primary_connect_client/models/order_order'
|
37
|
+
require 'primary_connect_client/models/order_order_clinical_info'
|
38
|
+
require 'primary_connect_client/models/order_order_diagnoses'
|
39
|
+
require 'primary_connect_client/models/order_order_ordering_facility'
|
40
|
+
require 'primary_connect_client/models/order_with_event_errors'
|
41
|
+
require 'primary_connect_client/models/orders'
|
42
|
+
require 'primary_connect_client/models/orders_orders'
|
43
|
+
require 'primary_connect_client/models/patient'
|
44
|
+
require 'primary_connect_client/models/patient_contacts'
|
45
|
+
require 'primary_connect_client/models/phone_number'
|
46
|
+
require 'primary_connect_client/models/provider'
|
47
|
+
require 'primary_connect_client/models/result'
|
48
|
+
require 'primary_connect_client/models/result_ids'
|
49
|
+
require 'primary_connect_client/models/result_reference_range'
|
50
|
+
require 'primary_connect_client/models/result_report'
|
51
|
+
require 'primary_connect_client/models/results'
|
52
|
+
require 'primary_connect_client/models/specimen'
|
53
|
+
require 'primary_connect_client/models/visit'
|
54
|
+
require 'primary_connect_client/models/visit_company'
|
55
|
+
require 'primary_connect_client/models/visit_guarantor'
|
56
|
+
require 'primary_connect_client/models/visit_guarantor_employer'
|
57
|
+
require 'primary_connect_client/models/visit_insurances'
|
58
|
+
require 'primary_connect_client/models/visit_insured'
|
59
|
+
require 'primary_connect_client/models/visit_plan'
|
60
|
+
|
16
61
|
# APIs
|
17
62
|
require 'primary_connect_client/api/default_api'
|
18
63
|
|
19
|
-
# Protobufs
|
20
|
-
require 'primary_connect_proto'
|
21
|
-
|
22
64
|
module PrimaryConnectClient
|
23
65
|
class << self
|
24
66
|
# Customize default settings for the SDK using block.
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
# -*- encoding: utf-8 -*-
|
4
2
|
|
5
3
|
=begin
|
@@ -7,6 +5,11 @@
|
|
7
5
|
|
8
6
|
#Client Library to interface with Primary Connect
|
9
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
|
+
|
10
13
|
=end
|
11
14
|
|
12
15
|
$:.push File.expand_path("../lib", __FILE__)
|
@@ -16,7 +19,7 @@ Gem::Specification.new do |s|
|
|
16
19
|
s.name = "primary_connect_client"
|
17
20
|
s.version = PrimaryConnectClient::VERSION
|
18
21
|
s.platform = Gem::Platform::RUBY
|
19
|
-
s.authors = [""]
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
20
23
|
s.email = [""]
|
21
24
|
s.homepage = "https://openapi-generator.tech"
|
22
25
|
s.summary = "Primary Connect API V1 Ruby Gem"
|
@@ -25,12 +28,11 @@ Gem::Specification.new do |s|
|
|
25
28
|
s.required_ruby_version = ">= 2.4"
|
26
29
|
|
27
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
28
|
-
s.add_runtime_dependency 'primary_connect_proto', '~> 0.7.3'
|
29
31
|
|
30
32
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
31
33
|
|
32
34
|
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
33
35
|
s.test_files = `find spec/*`.split("\n")
|
34
36
|
s.executables = []
|
35
|
-
s.require_paths = ["lib"
|
37
|
+
s.require_paths = ["lib"]
|
36
38
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#API V1
|
2
|
+
#Primary Connect API V1
|
3
3
|
|
4
|
-
#
|
4
|
+
#Client Library to interface with Primary Connect
|
5
5
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,90 +32,104 @@ describe 'DefaultApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
#
|
35
|
+
# unit tests for cancel_order
|
36
|
+
# cancel order
|
37
|
+
# @param id Order ID
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :last_event_id
|
39
|
-
# @option opts [String] :event_types
|
40
39
|
# @return [nil]
|
41
|
-
describe '
|
40
|
+
describe 'cancel_order test' do
|
42
41
|
it 'should work' do
|
43
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
47
|
-
# unit tests for
|
48
|
-
#
|
46
|
+
# unit tests for create_order
|
47
|
+
# create order
|
49
48
|
# @param [Hash] opts the optional parameters
|
50
|
-
# @
|
51
|
-
|
49
|
+
# @option opts [Order] :order
|
50
|
+
# @return [OrderIds]
|
51
|
+
describe 'create_order test' do
|
52
52
|
it 'should work' do
|
53
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
# unit tests for
|
58
|
-
#
|
57
|
+
# unit tests for create_result
|
58
|
+
# create result
|
59
|
+
# @param order_id Order id
|
59
60
|
# @param [Hash] opts the optional parameters
|
60
|
-
# @
|
61
|
-
|
61
|
+
# @option opts [Result] :result
|
62
|
+
# @return [ResultIds]
|
63
|
+
describe 'create_result test' do
|
62
64
|
it 'should work' do
|
63
65
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
66
|
end
|
65
67
|
end
|
66
68
|
|
67
|
-
# unit tests for
|
68
|
-
# show
|
69
|
-
# @param
|
69
|
+
# unit tests for get_lab_report
|
70
|
+
# show lab report
|
71
|
+
# @param result_id Result id
|
70
72
|
# @param [Hash] opts the optional parameters
|
71
73
|
# @return [nil]
|
72
|
-
describe '
|
74
|
+
describe 'get_lab_report test' do
|
73
75
|
it 'should work' do
|
74
76
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
77
|
end
|
76
78
|
end
|
77
79
|
|
78
|
-
# unit tests for
|
79
|
-
#
|
80
|
-
# @param
|
80
|
+
# unit tests for get_order
|
81
|
+
# show order
|
82
|
+
# @param id Order ID
|
81
83
|
# @param [Hash] opts the optional parameters
|
82
|
-
# @return [
|
83
|
-
describe '
|
84
|
+
# @return [OrderWithEventErrors]
|
85
|
+
describe 'get_order test' do
|
84
86
|
it 'should work' do
|
85
87
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
88
|
end
|
87
89
|
end
|
88
90
|
|
89
|
-
# unit tests for
|
90
|
-
#
|
91
|
-
# @param order_id Order id
|
92
|
-
# @param id id
|
91
|
+
# unit tests for list_events
|
92
|
+
# list events
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
|
-
# @
|
95
|
-
|
94
|
+
# @option opts [String] :last_event_id Paginate events with event id. 26 character, sortable id.
|
95
|
+
# @option opts [String] :event_types Filter event_types, comma delimited. [OrderComplete, OrderCreated, OrderError, OrderResulted, OrderUpdated, ResultError, SpecimenReceived]
|
96
|
+
# @return [Events]
|
97
|
+
describe 'list_events test' do
|
96
98
|
it 'should work' do
|
97
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
100
|
end
|
99
101
|
end
|
100
102
|
|
101
|
-
# unit tests for
|
102
|
-
#
|
103
|
+
# unit tests for list_orders
|
104
|
+
# list orders
|
103
105
|
# @param [Hash] opts the optional parameters
|
104
|
-
# @option opts [
|
105
|
-
# @
|
106
|
-
|
106
|
+
# @option opts [String] :last_order_id Paginate orders with order id. 26 character, sortable id.
|
107
|
+
# @option opts [String] :state Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
|
108
|
+
# @return [Orders]
|
109
|
+
describe 'list_orders test' do
|
107
110
|
it 'should work' do
|
108
111
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
112
|
end
|
110
113
|
end
|
111
114
|
|
112
|
-
# unit tests for
|
113
|
-
#
|
115
|
+
# unit tests for list_results
|
116
|
+
# list results
|
114
117
|
# @param order_id Order id
|
115
|
-
# @param result_id Result id
|
116
118
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @return [
|
118
|
-
describe '
|
119
|
+
# @return [Results]
|
120
|
+
describe 'list_results test' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# unit tests for update_order
|
127
|
+
# update order
|
128
|
+
# @param id Order ID
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [Order] :order
|
131
|
+
# @return [OrderIds]
|
132
|
+
describe 'update_order test' do
|
119
133
|
it 'should work' do
|
120
134
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
135
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -197,8 +197,8 @@ describe PrimaryConnectClient::ApiClient do
|
|
197
197
|
let(:api_client) { PrimaryConnectClient::ApiClient.new }
|
198
198
|
|
199
199
|
it 'works' do
|
200
|
-
expect(api_client.select_header_content_type(nil)).to
|
201
|
-
expect(api_client.select_header_content_type([])).to
|
200
|
+
expect(api_client.select_header_content_type(nil)).to be_nil
|
201
|
+
expect(api_client.select_header_content_type([])).to be_nil
|
202
202
|
|
203
203
|
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
204
204
|
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
data/spec/configuration_spec.rb
CHANGED
@@ -0,0 +1,76 @@
|
|
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::Address
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PrimaryConnectClient::Address do
|
21
|
+
let(:instance) { PrimaryConnectClient::Address.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Address' do
|
24
|
+
it 'should create an instance of Address' do
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::Address)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "street_address1"' 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 "street_address2"' 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 "city"' 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 "state_code"' 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
|
+
describe 'test attribute "zip"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "county"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "country_code"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "time_zone"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
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::CodedValue
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PrimaryConnectClient::CodedValue do
|
21
|
+
let(:instance) { PrimaryConnectClient::CodedValue.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CodedValue' do
|
24
|
+
it 'should create an instance of CodedValue' do
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::CodedValue)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "value"' 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 "code_set"' 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 "description"' 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
|