primary_connect_client 1.3.0 → 1.4.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.
@@ -15,8 +15,8 @@ require 'time'
15
15
 
16
16
  module PrimaryConnectClient
17
17
  class V2Device
18
- # Identifier used to identify the device
19
- attr_accessor :device_id
18
+ # List of IDs and types that identify the device
19
+ attr_accessor :identifiers
20
20
 
21
21
  attr_accessor :manufacturer
22
22
 
@@ -31,16 +31,19 @@ module PrimaryConnectClient
31
31
  # Arbitrary key/value pairs for Device specific use
32
32
  attr_accessor :config
33
33
 
34
+ attr_accessor :model_name
35
+
34
36
  # Attribute mapping from ruby-style variable name to JSON key.
35
37
  def self.attribute_map
36
38
  {
37
- :'device_id' => :'device_id',
39
+ :'identifiers' => :'identifiers',
38
40
  :'manufacturer' => :'manufacturer',
39
41
  :'model_number' => :'model_number',
40
42
  :'serial_number' => :'serial_number',
41
43
  :'address' => :'address',
42
44
  :'location' => :'location',
43
- :'config' => :'config'
45
+ :'config' => :'config',
46
+ :'model_name' => :'model_name'
44
47
  }
45
48
  end
46
49
 
@@ -52,13 +55,14 @@ module PrimaryConnectClient
52
55
  # Attribute type mapping.
53
56
  def self.openapi_types
54
57
  {
55
- :'device_id' => :'Array<Identifier>',
58
+ :'identifiers' => :'Array<Identifier>',
56
59
  :'manufacturer' => :'String',
57
60
  :'model_number' => :'String',
58
61
  :'serial_number' => :'String',
59
62
  :'address' => :'Address',
60
63
  :'location' => :'Location',
61
- :'config' => :'Object'
64
+ :'config' => :'Object',
65
+ :'model_name' => :'String'
62
66
  }
63
67
  end
64
68
 
@@ -83,9 +87,9 @@ module PrimaryConnectClient
83
87
  h[k.to_sym] = v
84
88
  }
85
89
 
86
- if attributes.key?(:'device_id')
87
- if (value = attributes[:'device_id']).is_a?(Array)
88
- self.device_id = value
90
+ if attributes.key?(:'identifiers')
91
+ if (value = attributes[:'identifiers']).is_a?(Array)
92
+ self.identifiers = value
89
93
  end
90
94
  end
91
95
 
@@ -112,6 +116,10 @@ module PrimaryConnectClient
112
116
  if attributes.key?(:'config')
113
117
  self.config = attributes[:'config']
114
118
  end
119
+
120
+ if attributes.key?(:'model_name')
121
+ self.model_name = attributes[:'model_name']
122
+ end
115
123
  end
116
124
 
117
125
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -132,13 +140,14 @@ module PrimaryConnectClient
132
140
  def ==(o)
133
141
  return true if self.equal?(o)
134
142
  self.class == o.class &&
135
- device_id == o.device_id &&
143
+ identifiers == o.identifiers &&
136
144
  manufacturer == o.manufacturer &&
137
145
  model_number == o.model_number &&
138
146
  serial_number == o.serial_number &&
139
147
  address == o.address &&
140
148
  location == o.location &&
141
- config == o.config
149
+ config == o.config &&
150
+ model_name == o.model_name
142
151
  end
143
152
 
144
153
  # @see the `==` method
@@ -150,7 +159,7 @@ module PrimaryConnectClient
150
159
  # Calculates hash code according to all attributes.
151
160
  # @return [Integer] Hash code
152
161
  def hash
153
- [device_id, manufacturer, model_number, serial_number, address, location, config].hash
162
+ [identifiers, manufacturer, model_number, serial_number, address, location, config, model_name].hash
154
163
  end
155
164
 
156
165
  # 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.3.0'
14
+ VERSION = '1.4.0'
15
15
  end
@@ -17,6 +17,8 @@ require 'primary_connect_client/version'
17
17
  require 'primary_connect_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'primary_connect_client/models/accession'
21
+ require 'primary_connect_client/models/accession_order'
20
22
  require 'primary_connect_client/models/address'
21
23
  require 'primary_connect_client/models/coded_value'
22
24
  require 'primary_connect_client/models/demographics'
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
28
28
  s.required_ruby_version = ">= 2.4"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'primary_connect_proto', '~> 0.13.0', '>= 0.13.0'
32
31
 
33
32
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
33
 
@@ -32,6 +32,30 @@ describe 'DefaultApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for accession_order
36
+ # accession order by ULID
37
+ # @param id Order ID
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Accession] :accession
40
+ # @return [nil]
41
+ describe 'accession_order test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for accession_order_by_specimen_id
48
+ # accession order by Specimen ID
49
+ # @param specimen_id Specimen ID
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [Accession] :accession
52
+ # @return [nil]
53
+ describe 'accession_order_by_specimen_id test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
35
59
  # unit tests for cancel_order
36
60
  # cancel order
37
61
  # @param id Order ID
@@ -0,0 +1,34 @@
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::AccessionOrder
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PrimaryConnectClient::AccessionOrder do
21
+ let(:instance) { PrimaryConnectClient::AccessionOrder.new }
22
+
23
+ describe 'test an instance of AccessionOrder' do
24
+ it 'should create an instance of AccessionOrder' do
25
+ expect(instance).to be_instance_of(PrimaryConnectClient::AccessionOrder)
26
+ end
27
+ end
28
+ describe 'test attribute "accession_date_time"' 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
+ end
@@ -0,0 +1,34 @@
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::Accession
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PrimaryConnectClient::Accession do
21
+ let(:instance) { PrimaryConnectClient::Accession.new }
22
+
23
+ describe 'test an instance of Accession' do
24
+ it 'should create an instance of Accession' do
25
+ expect(instance).to be_instance_of(PrimaryConnectClient::Accession)
26
+ end
27
+ end
28
+ describe 'test attribute "order"' 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
+ end
@@ -56,7 +56,7 @@ describe PrimaryConnectClient::Demographics do
56
56
  describe 'test attribute "gender"' do
57
57
  it 'should work' do
58
58
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["GENDER_UNKNOWN", "GENDER_FEMALE", "GENDER_MALE", "GENDER_OTHER", "GENDER_NON_BINARY", "GENDER_TRANSGENDER_MALE", "GENDER_TRANSGENDER_FEMALE", "GENDER_PREFER_NOT_TO_DISCLOSE"])
59
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["GENDER_UNKNOWN", "GENDER_FEMALE", "GENDER_MALE", "GENDER_OTHER", "GENDER_NON_BINARY", "GENDER_TRANSGENDER_MALE", "GENDER_TRANSGENDER_FEMALE", "GENDER_PREFER_NOT_TO_DISCLOSE", "GENDER_INTERSEX"])
60
60
  # validator.allowable_values.each do |value|
61
61
  # expect { instance.gender = value }.not_to raise_error
62
62
  # end
@@ -25,7 +25,7 @@ describe PrimaryConnectClient::Device do
25
25
  expect(instance).to be_instance_of(PrimaryConnectClient::Device)
26
26
  end
27
27
  end
28
- describe 'test attribute "device_id"' do
28
+ describe 'test attribute "identifiers"' do
29
29
  it 'should work' do
30
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
31
  end
@@ -67,4 +67,10 @@ describe PrimaryConnectClient::Device do
67
67
  end
68
68
  end
69
69
 
70
+ describe 'test attribute "model_name"' 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
+
70
76
  end
@@ -71,6 +71,12 @@ describe PrimaryConnectClient::OrderOrder do
71
71
  end
72
72
  end
73
73
 
74
+ describe 'test attribute "accession_date_time"' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
74
80
  describe 'test attribute "expiration_date"' do
75
81
  it 'should work' do
76
82
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -145,4 +145,10 @@ describe PrimaryConnectClient::Result do
145
145
  end
146
146
  end
147
147
 
148
+ describe 'test attribute "resulting_device"' do
149
+ it 'should work' do
150
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
151
+ end
152
+ end
153
+
148
154
  end
@@ -25,7 +25,7 @@ describe PrimaryConnectClient::V2Device do
25
25
  expect(instance).to be_instance_of(PrimaryConnectClient::V2Device)
26
26
  end
27
27
  end
28
- describe 'test attribute "device_id"' do
28
+ describe 'test attribute "identifiers"' do
29
29
  it 'should work' do
30
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
31
  end
@@ -67,4 +67,10 @@ describe PrimaryConnectClient::V2Device do
67
67
  end
68
68
  end
69
69
 
70
+ describe 'test attribute "model_name"' 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
+
70
76
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primary_connect_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -31,45 +31,25 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
33
  - !ruby/object:Gem::Dependency
34
- name: primary_connect_proto
34
+ name: rspec
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: 0.13.0
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
- version: 0.13.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: 0.13.0
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 0.13.0
53
- - !ruby/object:Gem::Dependency
54
- name: rspec
55
- requirement: !ruby/object:Gem::Requirement
56
- requirements:
39
+ version: 3.6.0
57
40
  - - "~>"
58
41
  - !ruby/object:Gem::Version
59
42
  version: '3.6'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 3.6.0
63
43
  type: :development
64
44
  prerelease: false
65
45
  version_requirements: !ruby/object:Gem::Requirement
66
46
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.6'
70
47
  - - ">="
71
48
  - !ruby/object:Gem::Version
72
49
  version: 3.6.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '3.6'
73
53
  description: Client Library to interface with Primary Connect
74
54
  email:
75
55
  - ''
@@ -81,6 +61,8 @@ files:
81
61
  - Gemfile
82
62
  - README.md
83
63
  - Rakefile
64
+ - docs/Accession.md
65
+ - docs/AccessionOrder.md
84
66
  - docs/Address.md
85
67
  - docs/CodedValue.md
86
68
  - docs/DefaultApi.md
@@ -142,6 +124,8 @@ files:
142
124
  - lib/primary_connect_client/api_client.rb
143
125
  - lib/primary_connect_client/api_error.rb
144
126
  - lib/primary_connect_client/configuration.rb
127
+ - lib/primary_connect_client/models/accession.rb
128
+ - lib/primary_connect_client/models/accession_order.rb
145
129
  - lib/primary_connect_client/models/address.rb
146
130
  - lib/primary_connect_client/models/coded_value.rb
147
131
  - lib/primary_connect_client/models/demographics.rb
@@ -201,6 +185,8 @@ files:
201
185
  - spec/api/default_api_spec.rb
202
186
  - spec/api_client_spec.rb
203
187
  - spec/configuration_spec.rb
188
+ - spec/models/accession_order_spec.rb
189
+ - spec/models/accession_spec.rb
204
190
  - spec/models/address_spec.rb
205
191
  - spec/models/coded_value_spec.rb
206
192
  - spec/models/demographics_spec.rb
@@ -261,7 +247,7 @@ homepage: https://openapi-generator.tech
261
247
  licenses:
262
248
  - Unlicense
263
249
  metadata: {}
264
- post_install_message:
250
+ post_install_message:
265
251
  rdoc_options: []
266
252
  require_paths:
267
253
  - lib
@@ -276,8 +262,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
262
  - !ruby/object:Gem::Version
277
263
  version: '0'
278
264
  requirements: []
279
- rubygems_version: 3.2.15
280
- signing_key:
265
+ rubygems_version: 3.0.3.1
266
+ signing_key:
281
267
  specification_version: 4
282
268
  summary: Primary Connect API V1 Ruby Gem
283
269
  test_files:
@@ -294,6 +280,7 @@ test_files:
294
280
  - spec/models/patient_demographics_spec.rb
295
281
  - spec/models/dosage_spec.rb
296
282
  - spec/models/orders_orders_spec.rb
283
+ - spec/models/accession_order_spec.rb
297
284
  - spec/models/subject_one_of_spec.rb
298
285
  - spec/models/identifier_spec.rb
299
286
  - spec/models/patient_contacts_spec.rb
@@ -332,6 +319,7 @@ test_files:
332
319
  - spec/models/order_order_clinical_info_spec.rb
333
320
  - spec/models/v2_medication_administration_spec.rb
334
321
  - spec/models/visit_insurances_spec.rb
322
+ - spec/models/accession_spec.rb
335
323
  - spec/models/order_order_diagnoses_spec.rb
336
324
  - spec/models/order_order_ordering_facility_spec.rb
337
325
  - spec/models/events_spec.rb