primary_connect_client 1.15.0 → 1.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 917199ef80a660b3a10b02a7af8c9f4dd9bc8b6a5715ba73c648d22999099fed
4
- data.tar.gz: 53f252fbe25bcdef8cb78782225e6ce8affd5b840b3f4b997192496040b35276
3
+ metadata.gz: e98c0838815d73fe79458fba786957348c69dbd32e5417c1682e8c35fceeeee7
4
+ data.tar.gz: f7263f0ba81dd3e74cfbd0b6b56b8edbf85a33c6c9681173bf5e62950def5279
5
5
  SHA512:
6
- metadata.gz: dbccc49e41d6629117776013c2dd0a0a7ae1fb50311b2c3519ea8540e7e114a2dc64de762b4c12768d3c075836b869d5b54ce68ed8eb256b07c53e0c53218e1f
7
- data.tar.gz: '02808bcb2a977311cc4a36448ceed0337155e98a7401f3ff4cc8558450722b61497cf13200194da78c438e25020e3ba917db549d8989d0b0ee909f7cec9260d4'
6
+ metadata.gz: 2687143d224b9989fec08b090d2d86c26674c41b9cd775e538beb862a620ae3e8d0d34c1de7d23b82aa6b0dfd563f73be0a2f6f872c62e7638040de2233f266d
7
+ data.tar.gz: 17e781b9fb835b97e3aa11e2a6838dba18315131c7cfb50e5db2dc45daa7f7f61d467aa5950a23629fa3282d3f8147636175dff5bd54b5072929647004d53de8
data/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
1
  # Change Log
2
+
3
+ ## 1.16.0
4
+
5
+ - Added `assigning_authority` to `Identifier` (the CX-4 assigning authority for identifiers parsed from HL7)
6
+ - Documented `Identifier#id_type` as the CX-5 type code (e.g. `MR`, `SR`, `PI`) for identifiers parsed from HL7
7
+
8
+ ## 1.15.0
9
+
10
+ - Added `warnings` to `OrderWithEventErrors`
11
+
12
+ ## 1.13.0
13
+
14
+ - Added Queries API
15
+
16
+ ## 1.12.0
17
+
18
+ - Updated dependency on `primary_connect_proto` 0.24.0
19
+
2
20
  ## 1.11.0
3
21
 
4
22
  - Updated dependency on `primary_connect_proto` 0.23.0
data/README.md CHANGED
@@ -7,7 +7,7 @@ Client Library to interface with Primary Connect
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.15.0
10
+ - Package version: 1.16.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build primary_connect_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./primary_connect_client-1.15.0.gem
26
+ gem install ./primary_connect_client-1.16.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./primary_connect_client-1.15.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./primary_connect_client-1.16.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'primary_connect_client', '~> 1.15.0'
35
+ gem 'primary_connect_client', '~> 1.16.0'
36
36
 
37
37
  ### Install from Git
38
38
 
data/docs/Identifier.md CHANGED
@@ -5,7 +5,8 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | | [optional] |
8
- | **id_type** | **String** | E.g. MRN, EPI, EHRI, NIST, NPI, Payor ID | [optional] |
8
+ | **id_type** | **String** | The identifier type. For identifiers parsed from HL7 (e.g. IIS query responses), the CX-5 type code from HL7 table 0203, such as MR, SR or PI. Elsewhere, a label such as MRN, EPI, EHRI, NIST, NPI or Payor ID. | [optional] |
9
+ | **assigning_authority** | **String** | The CX-4 assigning authority namespace for identifiers parsed from HL7, such as CAA or NMSIIS. Empty when the sender omits it. | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'primary_connect_client'
14
15
 
15
16
  instance = PrimaryConnectClient::Identifier.new(
16
17
  id: null,
17
- id_type: 1234567
18
+ id_type: SR,
19
+ assigning_authority: NMSIIS
18
20
  )
19
21
  ```
20
22
 
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Immunizations
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **immunizations** | [**Array<MedicationAdministration>**](MedicationAdministration.md) | List of Immunizations | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Immunizations.new(
15
+ immunizations: null
16
+ )
17
+ ```
18
+
@@ -17,14 +17,18 @@ module PrimaryConnectClient
17
17
  class Identifier
18
18
  attr_accessor :id
19
19
 
20
- # E.g. MRN, EPI, EHRI, NIST, NPI, Payor ID
20
+ # The identifier type. For identifiers parsed from HL7 (e.g. IIS query responses), the CX-5 type code from HL7 table 0203, such as MR, SR or PI. Elsewhere, a label such as MRN, EPI, EHRI, NIST, NPI or Payor ID.
21
21
  attr_accessor :id_type
22
22
 
23
+ # The CX-4 assigning authority namespace for identifiers parsed from HL7, such as CAA or NMSIIS. Empty when the sender omits it.
24
+ attr_accessor :assigning_authority
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
  :'id' => :'id',
27
- :'id_type' => :'idType'
30
+ :'id_type' => :'idType',
31
+ :'assigning_authority' => :'assigningAuthority'
28
32
  }
29
33
  end
30
34
 
@@ -37,7 +41,8 @@ module PrimaryConnectClient
37
41
  def self.openapi_types
38
42
  {
39
43
  :'id' => :'String',
40
- :'id_type' => :'String'
44
+ :'id_type' => :'String',
45
+ :'assigning_authority' => :'String'
41
46
  }
42
47
  end
43
48
 
@@ -69,6 +74,10 @@ module PrimaryConnectClient
69
74
  if attributes.key?(:'id_type')
70
75
  self.id_type = attributes[:'id_type']
71
76
  end
77
+
78
+ if attributes.key?(:'assigning_authority')
79
+ self.assigning_authority = attributes[:'assigning_authority']
80
+ end
72
81
  end
73
82
 
74
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,7 +99,8 @@ module PrimaryConnectClient
90
99
  return true if self.equal?(o)
91
100
  self.class == o.class &&
92
101
  id == o.id &&
93
- id_type == o.id_type
102
+ id_type == o.id_type &&
103
+ assigning_authority == o.assigning_authority
94
104
  end
95
105
 
96
106
  # @see the `==` method
@@ -102,7 +112,7 @@ module PrimaryConnectClient
102
112
  # Calculates hash code according to all attributes.
103
113
  # @return [Integer] Hash code
104
114
  def hash
105
- [id, id_type].hash
115
+ [id, id_type, assigning_authority].hash
106
116
  end
107
117
 
108
118
  # Builds the object from hash
@@ -0,0 +1,221 @@
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 Immunizations
18
+ # List of Immunizations
19
+ attr_accessor :immunizations
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'immunizations' => :'immunizations'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'immunizations' => :'Array<MedicationAdministration>'
37
+ }
38
+ end
39
+
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ if (!attributes.is_a?(Hash))
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PrimaryConnectClient::Immunizations` initialize method"
51
+ end
52
+
53
+ # check to see if the attribute exists and convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h|
55
+ if (!self.class.attribute_map.key?(k.to_sym))
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PrimaryConnectClient::Immunizations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ end
58
+ h[k.to_sym] = v
59
+ }
60
+
61
+ if attributes.key?(:'immunizations')
62
+ if (value = attributes[:'immunizations']).is_a?(Array)
63
+ self.immunizations = value
64
+ end
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ true
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ immunizations == o.immunizations
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [immunizations].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
+ self.send("#{key}=", nil)
116
+ elsif type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :Time
137
+ Time.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :Boolean
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ # models (e.g. Pet) or oneOf
168
+ klass = PrimaryConnectClient.const_get(type)
169
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module PrimaryConnectClient
14
- VERSION = '1.15.0'
14
+ VERSION = '1.16.0'
15
15
  end
@@ -37,4 +37,10 @@ describe PrimaryConnectClient::Identifier do
37
37
  end
38
38
  end
39
39
 
40
+ describe 'test attribute "assigning_authority"' 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
+
40
46
  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::Immunizations
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe PrimaryConnectClient::Immunizations do
21
+ let(:instance) { PrimaryConnectClient::Immunizations.new }
22
+
23
+ describe 'test an instance of Immunizations' do
24
+ it 'should create an instance of Immunizations' do
25
+ expect(instance).to be_instance_of(PrimaryConnectClient::Immunizations)
26
+ end
27
+ end
28
+ describe 'test attribute "immunizations"' 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
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primary_connect_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-04-21 00:00:00.000000000 Z
10
+ date: 2026-11-17 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: typhoeus
@@ -77,6 +76,7 @@ files:
77
76
  - docs/Identifier.md
78
77
  - docs/Ids.md
79
78
  - docs/ImmunizationQueryResponse.md
79
+ - docs/Immunizations.md
80
80
  - docs/Location.md
81
81
  - docs/Measurement.md
82
82
  - docs/Medication.md
@@ -148,6 +148,7 @@ files:
148
148
  - lib/primary_connect_client/models/identifier.rb
149
149
  - lib/primary_connect_client/models/ids.rb
150
150
  - lib/primary_connect_client/models/immunization_query_response.rb
151
+ - lib/primary_connect_client/models/immunizations.rb
151
152
  - lib/primary_connect_client/models/location.rb
152
153
  - lib/primary_connect_client/models/measurement.rb
153
154
  - lib/primary_connect_client/models/medication.rb
@@ -195,8 +196,6 @@ files:
195
196
  - lib/primary_connect_client/models/visit_insured.rb
196
197
  - lib/primary_connect_client/models/visit_plan.rb
197
198
  - lib/primary_connect_client/version.rb
198
- - primary_connect_client-1.11.0.gem
199
- - primary_connect_client-1.12.0.gem
200
199
  - primary_connect_client.gemspec
201
200
  - spec/api/default_api_spec.rb
202
201
  - spec/api_client_spec.rb
@@ -215,6 +214,7 @@ files:
215
214
  - spec/models/identifier_spec.rb
216
215
  - spec/models/ids_spec.rb
217
216
  - spec/models/immunization_query_response_spec.rb
217
+ - spec/models/immunizations_spec.rb
218
218
  - spec/models/location_spec.rb
219
219
  - spec/models/measurement_spec.rb
220
220
  - spec/models/medication_administration_spec.rb
@@ -272,7 +272,6 @@ homepage: https://openapi-generator.tech
272
272
  licenses:
273
273
  - Unlicense
274
274
  metadata: {}
275
- post_install_message:
276
275
  rdoc_options: []
277
276
  require_paths:
278
277
  - lib
@@ -287,8 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
286
  - !ruby/object:Gem::Version
288
287
  version: '0'
289
288
  requirements: []
290
- rubygems_version: 3.2.15
291
- signing_key:
289
+ rubygems_version: 3.6.5
292
290
  specification_version: 4
293
291
  summary: Primary Connect API V1 Ruby Gem
294
292
  test_files:
@@ -301,6 +299,7 @@ test_files:
301
299
  - spec/models/meta_transmission_spec.rb
302
300
  - spec/models/results_spec.rb
303
301
  - spec/models/v2_device_spec.rb
302
+ - spec/models/immunizations_spec.rb
304
303
  - spec/models/meta_provenances_spec.rb
305
304
  - spec/models/result_ids_spec.rb
306
305
  - spec/models/meta_destination_spec.rb
Binary file
Binary file