primary_connect_client 0.8.0 → 1.0.1

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.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +61 -16
  4. data/docs/Address.md +32 -0
  5. data/docs/CodedValue.md +22 -0
  6. data/docs/DefaultApi.md +568 -0
  7. data/docs/Demographics.md +52 -0
  8. data/docs/Error.md +18 -0
  9. data/docs/Event.md +26 -0
  10. data/docs/Events.md +18 -0
  11. data/docs/Identifier.md +20 -0
  12. data/docs/Location.md +26 -0
  13. data/docs/Meta.md +34 -0
  14. data/docs/MetaDestinations.md +22 -0
  15. data/docs/MetaMessage.md +20 -0
  16. data/docs/MetaSource.md +20 -0
  17. data/docs/MetaTransmission.md +18 -0
  18. data/docs/Name.md +22 -0
  19. data/docs/Order.md +24 -0
  20. data/docs/OrderIds.md +18 -0
  21. data/docs/OrderOrder.md +58 -0
  22. data/docs/OrderOrderClinicalInfo.md +26 -0
  23. data/docs/OrderOrderDiagnoses.md +22 -0
  24. data/docs/OrderOrderOrderingFacility.md +22 -0
  25. data/docs/OrderOrderSpecimen.md +22 -0
  26. data/docs/OrderWithEventErrors.md +20 -0
  27. data/docs/Orders.md +18 -0
  28. data/docs/OrdersOrders.md +22 -0
  29. data/docs/Patient.md +24 -0
  30. data/docs/PatientContacts.md +28 -0
  31. data/docs/PatientDemographics.md +52 -0
  32. data/docs/PhoneNumber.md +20 -0
  33. data/docs/Provider.md +32 -0
  34. data/docs/Result.md +52 -0
  35. data/docs/ResultIds.md +18 -0
  36. data/docs/ResultReferenceRange.md +22 -0
  37. data/docs/ResultReport.md +22 -0
  38. data/docs/ResultSpecimen.md +22 -0
  39. data/docs/Results.md +20 -0
  40. data/docs/Specimen.md +22 -0
  41. data/docs/Visit.md +36 -0
  42. data/docs/VisitCompany.md +24 -0
  43. data/docs/VisitGuarantor.md +40 -0
  44. data/docs/VisitGuarantorEmployer.md +22 -0
  45. data/docs/VisitInsurances.md +40 -0
  46. data/docs/VisitInsured.md +30 -0
  47. data/docs/VisitPlan.md +22 -0
  48. data/git_push.sh +5 -6
  49. data/lib/primary_connect_client/api/default_api.rb +143 -67
  50. data/lib/primary_connect_client/api_client.rb +5 -6
  51. data/lib/primary_connect_client/api_error.rb +1 -1
  52. data/lib/primary_connect_client/configuration.rb +3 -2
  53. data/lib/primary_connect_client/models/address.rb +281 -0
  54. data/lib/primary_connect_client/models/coded_value.rb +238 -0
  55. data/lib/primary_connect_client/models/demographics.rb +466 -0
  56. data/lib/primary_connect_client/models/error.rb +218 -0
  57. data/lib/primary_connect_client/models/event.rb +254 -0
  58. data/lib/primary_connect_client/models/events.rb +221 -0
  59. data/lib/primary_connect_client/models/identifier.rb +228 -0
  60. data/lib/primary_connect_client/models/location.rb +255 -0
  61. data/lib/primary_connect_client/models/meta.rb +327 -0
  62. data/lib/primary_connect_client/models/meta_destinations.rb +242 -0
  63. data/lib/primary_connect_client/models/meta_message.rb +227 -0
  64. data/lib/primary_connect_client/models/meta_source.rb +227 -0
  65. data/lib/primary_connect_client/models/meta_transmission.rb +218 -0
  66. data/lib/primary_connect_client/models/name.rb +237 -0
  67. data/lib/primary_connect_client/models/order.rb +245 -0
  68. data/lib/primary_connect_client/models/order_ids.rb +221 -0
  69. data/lib/primary_connect_client/models/order_order.rb +496 -0
  70. data/lib/primary_connect_client/models/order_order_clinical_info.rb +260 -0
  71. data/lib/primary_connect_client/models/order_order_diagnoses.rb +272 -0
  72. data/lib/primary_connect_client/models/order_order_ordering_facility.rb +239 -0
  73. data/lib/primary_connect_client/models/order_order_specimen.rb +239 -0
  74. data/lib/primary_connect_client/models/order_with_event_errors.rb +229 -0
  75. data/lib/primary_connect_client/models/orders.rb +221 -0
  76. data/lib/primary_connect_client/models/orders_orders.rb +236 -0
  77. data/lib/primary_connect_client/models/patient.rb +253 -0
  78. data/lib/primary_connect_client/models/patient_contacts.rb +305 -0
  79. data/lib/primary_connect_client/models/patient_demographics.rb +466 -0
  80. data/lib/primary_connect_client/models/phone_number.rb +262 -0
  81. data/lib/primary_connect_client/models/provider.rb +288 -0
  82. data/lib/primary_connect_client/models/result.rb +443 -0
  83. data/lib/primary_connect_client/models/result_ids.rb +221 -0
  84. data/lib/primary_connect_client/models/result_reference_range.rb +240 -0
  85. data/lib/primary_connect_client/models/result_report.rb +240 -0
  86. data/lib/primary_connect_client/models/result_specimen.rb +239 -0
  87. data/lib/primary_connect_client/models/results.rb +230 -0
  88. data/lib/primary_connect_client/models/specimen.rb +239 -0
  89. data/lib/primary_connect_client/models/visit.rb +306 -0
  90. data/lib/primary_connect_client/models/visit_company.rb +248 -0
  91. data/lib/primary_connect_client/models/visit_guarantor.rb +358 -0
  92. data/lib/primary_connect_client/models/visit_guarantor_employer.rb +238 -0
  93. data/lib/primary_connect_client/models/visit_insurances.rb +386 -0
  94. data/lib/primary_connect_client/models/visit_insured.rb +322 -0
  95. data/lib/primary_connect_client/models/visit_plan.rb +238 -0
  96. data/lib/primary_connect_client/version.rb +12 -2
  97. data/lib/primary_connect_client.rb +45 -3
  98. data/primary_connect_client.gemspec +7 -5
  99. data/spec/api/default_api_spec.rb +44 -41
  100. data/spec/api_client_spec.rb +3 -3
  101. data/spec/configuration_spec.rb +1 -1
  102. data/spec/models/address_spec.rb +76 -0
  103. data/spec/models/coded_value_spec.rb +46 -0
  104. data/spec/models/demographics_spec.rb +168 -0
  105. data/spec/models/error_spec.rb +34 -0
  106. data/spec/models/event_spec.rb +58 -0
  107. data/spec/models/events_spec.rb +34 -0
  108. data/spec/models/identifier_spec.rb +40 -0
  109. data/spec/models/location_spec.rb +58 -0
  110. data/spec/models/meta_destinations_spec.rb +46 -0
  111. data/spec/models/meta_message_spec.rb +40 -0
  112. data/spec/models/meta_source_spec.rb +40 -0
  113. data/spec/models/meta_spec.rb +86 -0
  114. data/spec/models/meta_transmission_spec.rb +34 -0
  115. data/spec/models/name_spec.rb +46 -0
  116. data/spec/models/order_ids_spec.rb +34 -0
  117. data/spec/models/order_order_clinical_info_spec.rb +58 -0
  118. data/spec/models/order_order_diagnoses_spec.rb +50 -0
  119. data/spec/models/order_order_ordering_facility_spec.rb +46 -0
  120. data/spec/models/order_order_spec.rb +170 -0
  121. data/spec/models/order_order_specimen_spec.rb +46 -0
  122. data/spec/models/order_spec.rb +52 -0
  123. data/spec/models/order_with_event_errors_spec.rb +40 -0
  124. data/spec/models/orders_orders_spec.rb +46 -0
  125. data/spec/models/orders_spec.rb +34 -0
  126. data/spec/models/patient_contacts_spec.rb +68 -0
  127. data/spec/models/patient_demographics_spec.rb +168 -0
  128. data/spec/models/patient_spec.rb +52 -0
  129. data/spec/models/phone_number_spec.rb +44 -0
  130. data/spec/models/provider_spec.rb +76 -0
  131. data/spec/models/result_ids_spec.rb +34 -0
  132. data/spec/models/result_reference_range_spec.rb +46 -0
  133. data/spec/models/result_report_spec.rb +46 -0
  134. data/spec/models/result_spec.rb +148 -0
  135. data/spec/models/result_specimen_spec.rb +46 -0
  136. data/spec/models/results_spec.rb +40 -0
  137. data/spec/models/specimen_spec.rb +46 -0
  138. data/spec/models/visit_company_spec.rb +52 -0
  139. data/spec/models/visit_guarantor_employer_spec.rb +46 -0
  140. data/spec/models/visit_guarantor_spec.rb +104 -0
  141. data/spec/models/visit_insurances_spec.rb +112 -0
  142. data/spec/models/visit_insured_spec.rb +78 -0
  143. data/spec/models/visit_plan_spec.rb +46 -0
  144. data/spec/models/visit_spec.rb +88 -0
  145. data/spec/spec_helper.rb +1 -1
  146. metadata +177 -20
  147. 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
- # frozen_string_literal: true
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 = '0.8.0'
14
+ VERSION = '1.0.1'
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.9.0'
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", "lib/protobuf/build"]
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
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
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.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -32,90 +32,93 @@ describe 'DefaultApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for api_v1_events_get
36
- # list events
35
+ # unit tests for create_order
36
+ # create order
37
37
  # @param [Hash] opts the optional parameters
38
- # @option opts [String] :last_event_id
39
- # @option opts [String] :event_types
40
- # @return [nil]
41
- describe 'api_v1_events_get test' do
38
+ # @option opts [Order] :order
39
+ # @return [OrderIds]
40
+ describe 'create_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 api_v1_messages_get
48
- # list messages
46
+ # unit tests for create_result
47
+ # create result
48
+ # @param order_id Order id
49
49
  # @param [Hash] opts the optional parameters
50
- # @return [Array<Message>]
51
- describe 'api_v1_messages_get test' do
50
+ # @option opts [Result] :result
51
+ # @return [ResultIds]
52
+ describe 'create_result test' do
52
53
  it 'should work' do
53
54
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
55
  end
55
56
  end
56
57
 
57
- # unit tests for api_v1_orders_get
58
- # list orders
58
+ # unit tests for get_lab_report
59
+ # show lab report
60
+ # @param result_id Result id
59
61
  # @param [Hash] opts the optional parameters
60
62
  # @return [nil]
61
- describe 'api_v1_orders_get test' do
63
+ describe 'get_lab_report 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 api_v1_orders_id_get
69
+ # unit tests for get_order
68
70
  # show order
69
71
  # @param id id
70
72
  # @param [Hash] opts the optional parameters
71
- # @return [nil]
72
- describe 'api_v1_orders_id_get test' do
73
+ # @return [OrderWithEventErrors]
74
+ describe 'get_order 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 api_v1_orders_order_id_results_get
79
- # list results
80
- # @param order_id Order id
80
+ # unit tests for list_events
81
+ # list events
81
82
  # @param [Hash] opts the optional parameters
82
- # @return [nil]
83
- describe 'api_v1_orders_order_id_results_get test' do
83
+ # @option opts [String] :last_event_id Paginate events with event id. 26 character, sortable id.
84
+ # @option opts [String] :event_types Filter event_types, comma delimited. [OrderComplete, OrderCreated, OrderError, OrderResulted, OrderUpdated, ResultError, SpecimenReceived]
85
+ # @return [Events]
86
+ describe 'list_events test' do
84
87
  it 'should work' do
85
88
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
89
  end
87
90
  end
88
91
 
89
- # unit tests for api_v1_orders_order_id_results_id_get
90
- # show result
91
- # @param order_id Order id
92
- # @param id id
92
+ # unit tests for list_orders
93
+ # list orders
93
94
  # @param [Hash] opts the optional parameters
94
- # @return [nil]
95
- describe 'api_v1_orders_order_id_results_id_get test' do
95
+ # @option opts [String] :last_order_id Paginate orders with order id. 26 character, sortable id.
96
+ # @option opts [String] :state Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
97
+ # @return [Orders]
98
+ describe 'list_orders test' do
96
99
  it 'should work' do
97
100
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
101
  end
99
102
  end
100
103
 
101
- # unit tests for api_v1_orders_post
102
- # create order
104
+ # unit tests for list_results
105
+ # list results
106
+ # @param order_id Order id
103
107
  # @param [Hash] opts the optional parameters
104
- # @option opts [Order] :order
105
- # @return [nil]
106
- describe 'api_v1_orders_post test' do
108
+ # @return [Results]
109
+ describe 'list_results 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 api_v1_lab_report_get
113
- # show result
114
- # @param order_id Order id
115
- # @param result_id Result id
115
+ # unit tests for update_order
116
+ # update order
117
+ # @param id id
116
118
  # @param [Hash] opts the optional parameters
117
- # @return [nil]
118
- describe 'api_v1_lab_report_get test' do
119
+ # @option opts [Order] :order
120
+ # @return [OrderIds]
121
+ describe 'update_order test' do
119
122
  it 'should work' do
120
123
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
124
  end
@@ -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.2.1-SNAPSHOT
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 eq('application/json')
201
- expect(api_client.select_header_content_type([])).to eq('application/json')
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')
@@ -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.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -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