primary_connect_client 1.13.0 → 1.14.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.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/Candidates.md +2 -0
- data/docs/DefaultApi.md +4 -4
- data/docs/ImmunizationQueryResponse.md +22 -0
- data/lib/primary_connect_client/api/default_api.rb +3 -3
- data/lib/primary_connect_client/models/candidates.rb +11 -1
- data/lib/primary_connect_client/models/immunization_query_response.rb +239 -0
- data/lib/primary_connect_client/models/order_order.rb +2 -2
- data/lib/primary_connect_client/version.rb +1 -1
- data/lib/primary_connect_client.rb +1 -1
- data/primary_connect_client-1.13.0.gem +0 -0
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/models/candidates_spec.rb +6 -0
- data/spec/models/immunization_query_response_spec.rb +46 -0
- data/spec/models/order_order_spec.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ac8c79a1b82a66cc8e2004217a1194816b4124a372304ba5f517f99a7f0e77b
|
|
4
|
+
data.tar.gz: b9a5122bbfab84f0d2839778847d31ce8b8db00ed536ff227911157a82a9e6bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b0d99743c0a4b2571903164882c5405edb676e4b0b083c57d06c8ef319e39e230b77267c0d31506a901a115d97404b0448025d8058dd7825078852adefcf887
|
|
7
|
+
data.tar.gz: 00b93cb1ba1255291ad43a5a6b0179f1bc53ab1129fd2ed6f938af2fdc62b7ff1c32478d140bff4a0322c86ac5d70d09c5a52082d382ebd9f076bd59ce2a6860
|
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.
|
|
10
|
+
- Package version: 1.14.1
|
|
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.
|
|
26
|
+
gem install ./primary_connect_client-1.14.1.gem
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
(for development, run `gem install --dev ./primary_connect_client-1.
|
|
29
|
+
(for development, run `gem install --dev ./primary_connect_client-1.14.1.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.
|
|
35
|
+
gem 'primary_connect_client', '~> 1.14.1'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -116,7 +116,7 @@ Class | Method | HTTP request | Description
|
|
|
116
116
|
- [PrimaryConnectClient::Events](docs/Events.md)
|
|
117
117
|
- [PrimaryConnectClient::Identifier](docs/Identifier.md)
|
|
118
118
|
- [PrimaryConnectClient::Ids](docs/Ids.md)
|
|
119
|
-
- [PrimaryConnectClient::
|
|
119
|
+
- [PrimaryConnectClient::ImmunizationQueryResponse](docs/ImmunizationQueryResponse.md)
|
|
120
120
|
- [PrimaryConnectClient::Location](docs/Location.md)
|
|
121
121
|
- [PrimaryConnectClient::Measurement](docs/Measurement.md)
|
|
122
122
|
- [PrimaryConnectClient::Medication](docs/Medication.md)
|
data/docs/Candidates.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | **String** | Error message | [optional] |
|
|
7
8
|
| **candidates** | [**Array<Patient>**](Patient.md) | List of possible matches for the query | [optional] |
|
|
8
9
|
|
|
9
10
|
## Example
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
require 'primary_connect_client'
|
|
13
14
|
|
|
14
15
|
instance = PrimaryConnectClient::Candidates.new(
|
|
16
|
+
error: null,
|
|
15
17
|
candidates: null
|
|
16
18
|
)
|
|
17
19
|
```
|
data/docs/DefaultApi.md
CHANGED
|
@@ -989,7 +989,7 @@ nil (empty response body)
|
|
|
989
989
|
|
|
990
990
|
## send_query
|
|
991
991
|
|
|
992
|
-
> <
|
|
992
|
+
> <ImmunizationQueryResponse> send_query(opts)
|
|
993
993
|
|
|
994
994
|
send query
|
|
995
995
|
|
|
@@ -1022,7 +1022,7 @@ end
|
|
|
1022
1022
|
|
|
1023
1023
|
This returns an Array which contains the response data, status code and headers.
|
|
1024
1024
|
|
|
1025
|
-
> <Array(<
|
|
1025
|
+
> <Array(<ImmunizationQueryResponse>, Integer, Hash)> send_query_with_http_info(opts)
|
|
1026
1026
|
|
|
1027
1027
|
```ruby
|
|
1028
1028
|
begin
|
|
@@ -1030,7 +1030,7 @@ begin
|
|
|
1030
1030
|
data, status_code, headers = api_instance.send_query_with_http_info(opts)
|
|
1031
1031
|
p status_code # => 2xx
|
|
1032
1032
|
p headers # => { ... }
|
|
1033
|
-
p data # => <
|
|
1033
|
+
p data # => <ImmunizationQueryResponse>
|
|
1034
1034
|
rescue PrimaryConnectClient::ApiError => e
|
|
1035
1035
|
puts "Error when calling DefaultApi->send_query_with_http_info: #{e}"
|
|
1036
1036
|
end
|
|
@@ -1044,7 +1044,7 @@ end
|
|
|
1044
1044
|
|
|
1045
1045
|
### Return type
|
|
1046
1046
|
|
|
1047
|
-
[**
|
|
1047
|
+
[**ImmunizationQueryResponse**](ImmunizationQueryResponse.md)
|
|
1048
1048
|
|
|
1049
1049
|
### Authorization
|
|
1050
1050
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PrimaryConnectClient::ImmunizationQueryResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
|
8
|
+
| **patient** | [**Patient**](Patient.md) | | [optional] |
|
|
9
|
+
| **medication_administrations** | [**Array<MedicationAdministration>**](MedicationAdministration.md) | List of Medication Administrations | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'primary_connect_client'
|
|
15
|
+
|
|
16
|
+
instance = PrimaryConnectClient::ImmunizationQueryResponse.new(
|
|
17
|
+
meta: null,
|
|
18
|
+
patient: null,
|
|
19
|
+
medication_administrations: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -905,7 +905,7 @@ module PrimaryConnectClient
|
|
|
905
905
|
# send query
|
|
906
906
|
# @param [Hash] opts the optional parameters
|
|
907
907
|
# @option opts [Query] :query
|
|
908
|
-
# @return [
|
|
908
|
+
# @return [ImmunizationQueryResponse]
|
|
909
909
|
def send_query(opts = {})
|
|
910
910
|
data, _status_code, _headers = send_query_with_http_info(opts)
|
|
911
911
|
data
|
|
@@ -914,7 +914,7 @@ module PrimaryConnectClient
|
|
|
914
914
|
# send query
|
|
915
915
|
# @param [Hash] opts the optional parameters
|
|
916
916
|
# @option opts [Query] :query
|
|
917
|
-
# @return [Array<(
|
|
917
|
+
# @return [Array<(ImmunizationQueryResponse, Integer, Hash)>] ImmunizationQueryResponse data, response status code and response headers
|
|
918
918
|
def send_query_with_http_info(opts = {})
|
|
919
919
|
if @api_client.config.debugging
|
|
920
920
|
@api_client.config.logger.debug 'Calling API: DefaultApi.send_query ...'
|
|
@@ -942,7 +942,7 @@ module PrimaryConnectClient
|
|
|
942
942
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'query'])
|
|
943
943
|
|
|
944
944
|
# return_type
|
|
945
|
-
return_type = opts[:debug_return_type] || '
|
|
945
|
+
return_type = opts[:debug_return_type] || 'ImmunizationQueryResponse'
|
|
946
946
|
|
|
947
947
|
# auth_names
|
|
948
948
|
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
|
@@ -15,12 +15,16 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module PrimaryConnectClient
|
|
17
17
|
class Candidates
|
|
18
|
+
# Error message
|
|
19
|
+
attr_accessor :error
|
|
20
|
+
|
|
18
21
|
# List of possible matches for the query
|
|
19
22
|
attr_accessor :candidates
|
|
20
23
|
|
|
21
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
25
|
def self.attribute_map
|
|
23
26
|
{
|
|
27
|
+
:'error' => :'error',
|
|
24
28
|
:'candidates' => :'candidates'
|
|
25
29
|
}
|
|
26
30
|
end
|
|
@@ -33,6 +37,7 @@ module PrimaryConnectClient
|
|
|
33
37
|
# Attribute type mapping.
|
|
34
38
|
def self.openapi_types
|
|
35
39
|
{
|
|
40
|
+
:'error' => :'String',
|
|
36
41
|
:'candidates' => :'Array<Patient>'
|
|
37
42
|
}
|
|
38
43
|
end
|
|
@@ -58,6 +63,10 @@ module PrimaryConnectClient
|
|
|
58
63
|
h[k.to_sym] = v
|
|
59
64
|
}
|
|
60
65
|
|
|
66
|
+
if attributes.key?(:'error')
|
|
67
|
+
self.error = attributes[:'error']
|
|
68
|
+
end
|
|
69
|
+
|
|
61
70
|
if attributes.key?(:'candidates')
|
|
62
71
|
if (value = attributes[:'candidates']).is_a?(Array)
|
|
63
72
|
self.candidates = value
|
|
@@ -83,6 +92,7 @@ module PrimaryConnectClient
|
|
|
83
92
|
def ==(o)
|
|
84
93
|
return true if self.equal?(o)
|
|
85
94
|
self.class == o.class &&
|
|
95
|
+
error == o.error &&
|
|
86
96
|
candidates == o.candidates
|
|
87
97
|
end
|
|
88
98
|
|
|
@@ -95,7 +105,7 @@ module PrimaryConnectClient
|
|
|
95
105
|
# Calculates hash code according to all attributes.
|
|
96
106
|
# @return [Integer] Hash code
|
|
97
107
|
def hash
|
|
98
|
-
[candidates].hash
|
|
108
|
+
[error, candidates].hash
|
|
99
109
|
end
|
|
100
110
|
|
|
101
111
|
# Builds the object from hash
|
|
@@ -0,0 +1,239 @@
|
|
|
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 ImmunizationQueryResponse
|
|
18
|
+
attr_accessor :meta
|
|
19
|
+
|
|
20
|
+
attr_accessor :patient
|
|
21
|
+
|
|
22
|
+
# List of Medication Administrations
|
|
23
|
+
attr_accessor :medication_administrations
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'meta' => :'meta',
|
|
29
|
+
:'patient' => :'patient',
|
|
30
|
+
:'medication_administrations' => :'medicationAdministrations'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns all the JSON keys this model knows about
|
|
35
|
+
def self.acceptable_attributes
|
|
36
|
+
attribute_map.values
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.openapi_types
|
|
41
|
+
{
|
|
42
|
+
:'meta' => :'Meta',
|
|
43
|
+
:'patient' => :'Patient',
|
|
44
|
+
:'medication_administrations' => :'Array<MedicationAdministration>'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PrimaryConnectClient::ImmunizationQueryResponse` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PrimaryConnectClient::ImmunizationQueryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'meta')
|
|
70
|
+
self.meta = attributes[:'meta']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'patient')
|
|
74
|
+
self.patient = attributes[:'patient']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'medication_administrations')
|
|
78
|
+
if (value = attributes[:'medication_administrations']).is_a?(Array)
|
|
79
|
+
self.medication_administrations = value
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def ==(o)
|
|
100
|
+
return true if self.equal?(o)
|
|
101
|
+
self.class == o.class &&
|
|
102
|
+
meta == o.meta &&
|
|
103
|
+
patient == o.patient &&
|
|
104
|
+
medication_administrations == o.medication_administrations
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# @see the `==` method
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def eql?(o)
|
|
110
|
+
self == o
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Calculates hash code according to all attributes.
|
|
114
|
+
# @return [Integer] Hash code
|
|
115
|
+
def hash
|
|
116
|
+
[meta, patient, medication_administrations].hash
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Builds the object from hash
|
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
121
|
+
# @return [Object] Returns the model itself
|
|
122
|
+
def self.build_from_hash(attributes)
|
|
123
|
+
new.build_from_hash(attributes)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
132
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
133
|
+
self.send("#{key}=", nil)
|
|
134
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
135
|
+
# check to ensure the input is an array given that the attribute
|
|
136
|
+
# is documented as an array but the input is not
|
|
137
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
138
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
139
|
+
end
|
|
140
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
141
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
self
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Deserializes the data based on type
|
|
149
|
+
# @param string type Data type
|
|
150
|
+
# @param string value Value to be deserialized
|
|
151
|
+
# @return [Object] Deserialized data
|
|
152
|
+
def _deserialize(type, value)
|
|
153
|
+
case type.to_sym
|
|
154
|
+
when :Time
|
|
155
|
+
Time.parse(value)
|
|
156
|
+
when :Date
|
|
157
|
+
Date.parse(value)
|
|
158
|
+
when :String
|
|
159
|
+
value.to_s
|
|
160
|
+
when :Integer
|
|
161
|
+
value.to_i
|
|
162
|
+
when :Float
|
|
163
|
+
value.to_f
|
|
164
|
+
when :Boolean
|
|
165
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
166
|
+
true
|
|
167
|
+
else
|
|
168
|
+
false
|
|
169
|
+
end
|
|
170
|
+
when :Object
|
|
171
|
+
# generic object (usually a Hash), return directly
|
|
172
|
+
value
|
|
173
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
174
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
175
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
176
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
177
|
+
k_type = Regexp.last_match[:k_type]
|
|
178
|
+
v_type = Regexp.last_match[:v_type]
|
|
179
|
+
{}.tap do |hash|
|
|
180
|
+
value.each do |k, v|
|
|
181
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
else # model
|
|
185
|
+
# models (e.g. Pet) or oneOf
|
|
186
|
+
klass = PrimaryConnectClient.const_get(type)
|
|
187
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Returns the string representation of the object
|
|
192
|
+
# @return [String] String presentation of the object
|
|
193
|
+
def to_s
|
|
194
|
+
to_hash.to_s
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
198
|
+
# @return [Hash] Returns the object in the form of hash
|
|
199
|
+
def to_body
|
|
200
|
+
to_hash
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Returns the object in the form of hash
|
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
|
205
|
+
def to_hash
|
|
206
|
+
hash = {}
|
|
207
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
208
|
+
value = self.send(attr)
|
|
209
|
+
if value.nil?
|
|
210
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
211
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
hash[param] = _to_hash(value)
|
|
215
|
+
end
|
|
216
|
+
hash
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Outputs non-array value in the form of hash
|
|
220
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
221
|
+
# @param [Object] value Any valid value
|
|
222
|
+
# @return [Hash] Returns the value in the form of hash
|
|
223
|
+
def _to_hash(value)
|
|
224
|
+
if value.is_a?(Array)
|
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
|
226
|
+
elsif value.is_a?(Hash)
|
|
227
|
+
{}.tap do |hash|
|
|
228
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
229
|
+
end
|
|
230
|
+
elsif value.respond_to? :to_hash
|
|
231
|
+
value.to_hash
|
|
232
|
+
else
|
|
233
|
+
value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
end
|
|
@@ -322,7 +322,7 @@ module PrimaryConnectClient
|
|
|
322
322
|
# Check to see if the all the properties in the model are valid
|
|
323
323
|
# @return true if the model is valid
|
|
324
324
|
def valid?
|
|
325
|
-
status_validator = EnumAttributeValidator.new('String', ["STATUS_UNKNOWN", "STATUS_UPDATE", "STATUS_CANCEL", "STATUS_RESULTED", "STATUS_NEW", "STATUS_REPORTED", "STATUS_SHIPPED"])
|
|
325
|
+
status_validator = EnumAttributeValidator.new('String', ["STATUS_UNKNOWN", "STATUS_UPDATE", "STATUS_CANCEL", "STATUS_RESULTED", "STATUS_NEW", "STATUS_REPORTED", "STATUS_SHIPPED", "STATUS_NOT_REPORTED"])
|
|
326
326
|
return false unless status_validator.valid?(@status)
|
|
327
327
|
priority_validator = EnumAttributeValidator.new('String', ["PRIORITY_UNKNOWN", "PRIORITY_ASAP", "PRIORITY_ROUTINE", "PRIORITY_PREOPERATIVE", "PRIORITY_TIMING_CRITICAL", "PRIORITY_STAT"])
|
|
328
328
|
return false unless priority_validator.valid?(@priority)
|
|
@@ -336,7 +336,7 @@ module PrimaryConnectClient
|
|
|
336
336
|
# Custom attribute writer method checking allowed values (enum).
|
|
337
337
|
# @param [Object] status Object to be assigned
|
|
338
338
|
def status=(status)
|
|
339
|
-
validator = EnumAttributeValidator.new('String', ["STATUS_UNKNOWN", "STATUS_UPDATE", "STATUS_CANCEL", "STATUS_RESULTED", "STATUS_NEW", "STATUS_REPORTED", "STATUS_SHIPPED"])
|
|
339
|
+
validator = EnumAttributeValidator.new('String', ["STATUS_UNKNOWN", "STATUS_UPDATE", "STATUS_CANCEL", "STATUS_RESULTED", "STATUS_NEW", "STATUS_REPORTED", "STATUS_SHIPPED", "STATUS_NOT_REPORTED"])
|
|
340
340
|
unless validator.valid?(status)
|
|
341
341
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
342
342
|
end
|
|
@@ -30,7 +30,7 @@ require 'primary_connect_client/models/event'
|
|
|
30
30
|
require 'primary_connect_client/models/events'
|
|
31
31
|
require 'primary_connect_client/models/identifier'
|
|
32
32
|
require 'primary_connect_client/models/ids'
|
|
33
|
-
require 'primary_connect_client/models/
|
|
33
|
+
require 'primary_connect_client/models/immunization_query_response'
|
|
34
34
|
require 'primary_connect_client/models/location'
|
|
35
35
|
require 'primary_connect_client/models/measurement'
|
|
36
36
|
require 'primary_connect_client/models/medication'
|
|
Binary file
|
|
@@ -199,7 +199,7 @@ describe 'DefaultApi' do
|
|
|
199
199
|
# send query
|
|
200
200
|
# @param [Hash] opts the optional parameters
|
|
201
201
|
# @option opts [Query] :query
|
|
202
|
-
# @return [
|
|
202
|
+
# @return [ImmunizationQueryResponse]
|
|
203
203
|
describe 'send_query test' do
|
|
204
204
|
it 'should work' do
|
|
205
205
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -25,6 +25,12 @@ describe PrimaryConnectClient::Candidates do
|
|
|
25
25
|
expect(instance).to be_instance_of(PrimaryConnectClient::Candidates)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
+
describe 'test attribute "error"' 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
|
+
|
|
28
34
|
describe 'test attribute "candidates"' do
|
|
29
35
|
it 'should work' do
|
|
30
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -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::ImmunizationQueryResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe PrimaryConnectClient::ImmunizationQueryResponse do
|
|
21
|
+
let(:instance) { PrimaryConnectClient::ImmunizationQueryResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ImmunizationQueryResponse' do
|
|
24
|
+
it 'should create an instance of ImmunizationQueryResponse' do
|
|
25
|
+
expect(instance).to be_instance_of(PrimaryConnectClient::ImmunizationQueryResponse)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "meta"' 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 "patient"' 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 "medication_administrations"' 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
|
|
@@ -40,7 +40,7 @@ describe PrimaryConnectClient::OrderOrder do
|
|
|
40
40
|
describe 'test attribute "status"' do
|
|
41
41
|
it 'should work' do
|
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["STATUS_UNKNOWN", "STATUS_UPDATE", "STATUS_CANCEL", "STATUS_RESULTED", "STATUS_NEW", "STATUS_REPORTED", "STATUS_SHIPPED"])
|
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["STATUS_UNKNOWN", "STATUS_UPDATE", "STATUS_CANCEL", "STATUS_RESULTED", "STATUS_NEW", "STATUS_REPORTED", "STATUS_SHIPPED", "STATUS_NOT_REPORTED"])
|
|
44
44
|
# validator.allowable_values.each do |value|
|
|
45
45
|
# expect { instance.status = value }.not_to raise_error
|
|
46
46
|
# end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: primary_connect_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.14.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-02-
|
|
10
|
+
date: 2026-02-19 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: typhoeus
|
|
@@ -75,6 +75,7 @@ files:
|
|
|
75
75
|
- docs/Events.md
|
|
76
76
|
- docs/Identifier.md
|
|
77
77
|
- docs/Ids.md
|
|
78
|
+
- docs/ImmunizationQueryResponse.md
|
|
78
79
|
- docs/Immunizations.md
|
|
79
80
|
- docs/Location.md
|
|
80
81
|
- docs/Measurement.md
|
|
@@ -146,6 +147,7 @@ files:
|
|
|
146
147
|
- lib/primary_connect_client/models/events.rb
|
|
147
148
|
- lib/primary_connect_client/models/identifier.rb
|
|
148
149
|
- lib/primary_connect_client/models/ids.rb
|
|
150
|
+
- lib/primary_connect_client/models/immunization_query_response.rb
|
|
149
151
|
- lib/primary_connect_client/models/immunizations.rb
|
|
150
152
|
- lib/primary_connect_client/models/location.rb
|
|
151
153
|
- lib/primary_connect_client/models/measurement.rb
|
|
@@ -194,6 +196,7 @@ files:
|
|
|
194
196
|
- lib/primary_connect_client/models/visit_insured.rb
|
|
195
197
|
- lib/primary_connect_client/models/visit_plan.rb
|
|
196
198
|
- lib/primary_connect_client/version.rb
|
|
199
|
+
- primary_connect_client-1.13.0.gem
|
|
197
200
|
- primary_connect_client.gemspec
|
|
198
201
|
- spec/api/default_api_spec.rb
|
|
199
202
|
- spec/api_client_spec.rb
|
|
@@ -211,6 +214,7 @@ files:
|
|
|
211
214
|
- spec/models/events_spec.rb
|
|
212
215
|
- spec/models/identifier_spec.rb
|
|
213
216
|
- spec/models/ids_spec.rb
|
|
217
|
+
- spec/models/immunization_query_response_spec.rb
|
|
214
218
|
- spec/models/immunizations_spec.rb
|
|
215
219
|
- spec/models/location_spec.rb
|
|
216
220
|
- spec/models/measurement_spec.rb
|
|
@@ -324,6 +328,7 @@ test_files:
|
|
|
324
328
|
- spec/models/measurement_spec.rb
|
|
325
329
|
- spec/models/medication_spec.rb
|
|
326
330
|
- spec/models/order_patient_contacts_spec.rb
|
|
331
|
+
- spec/models/immunization_query_response_spec.rb
|
|
327
332
|
- spec/models/visit_plan_spec.rb
|
|
328
333
|
- spec/models/phone_number_spec.rb
|
|
329
334
|
- spec/models/order_order_specimen_spec.rb
|