primary_connect_client 0.5.0 → 0.8.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: 2f123a90f95e91d2480bb38356a6c09474cf131712c0b7dde91e3414a697c47b
4
- data.tar.gz: c92a9b74b240dc0f3123951b5869a76ad12d241e4a765dfa2360f445a2a62ac7
3
+ metadata.gz: a91dea2d177e1278b957ae505bed77165755599364b3cdf369131ee3f82661fe
4
+ data.tar.gz: 6a3957ce502fbb64a1c8f533f3c38fd90544640858c693ebc895ffbc34289098
5
5
  SHA512:
6
- metadata.gz: aed5dd083c0ce18b6b957ae54446d0e711020c1336dd18d7549edf0ddc1734b2c92d3c30c8e29c707ea1d77f1b9c02399b295d012733c0ac765e76f3a48866f9
7
- data.tar.gz: 8f964c95b9ac8e6ebceb31ec2089ec66fd3e42bfb5b373cf4ad93c1fbb45f1775a95d8972b291489956ee8335eec9ab2f7acb4c9106ada30d0010097e0ea8445
6
+ metadata.gz: bbd000f47461f49a701ec5af08f88b5e2e31cf01a05701dda41377869d55e9346ecb7284dc1a55055bd4eb5f4f7fa63f4cbaaf393dd77bf4405ddb76dcd617c9
7
+ data.tar.gz: 64796c0e7b17bfdadbd9dfeabe3806714c804fb5e197c7afc734a3317a908ae57c9d2ae057e4b115e88d95f2417c4b2de76f52ad6cc5e70d6a268572c3b106f5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.8.0
4
+
5
+ - Bumped `primary_connect_proto` to `0.9.0`
6
+
7
+ ## 0.7.0
8
+
9
+ - Added lab report endpoint
10
+
11
+ ## 0.6.0
12
+
13
+ - Bumped `primary_connect_proto` to `0.7.3`
14
+
3
15
  ## 0.5.0
4
16
 
5
17
  - Bumped `primary_connect_proto` to `0.7.2`
data/README.md CHANGED
@@ -84,6 +84,7 @@ All URIs are relative to *https://connect.primary.health*
84
84
  | ---------------------------------- | --------------------------------------------------- | ---------------------------------------------- | ------------ |
85
85
  | _PrimaryConnectClient::DefaultApi_ | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order |
86
86
  | _PrimaryConnectClient::DefaultApi_ | [**get_order**](docs/DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order |
87
+ | _PrimaryConnectClient::DefaultApi_ | [**get_lab_report**](docs/DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report |
87
88
  | _PrimaryConnectClient::DefaultApi_ | [**get_result**](docs/DefaultApi.md#get_result) | **GET** /api/v1/orders/{order_id}/results/{id} | show result |
88
89
  | _PrimaryConnectClient::DefaultApi_ | [**list_events**](docs/DefaultApi.md#list_events) | **GET** /api/v1/events | list events |
89
90
  | _PrimaryConnectClient::DefaultApi_ | [**list_orders**](docs/DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders |
@@ -139,6 +139,65 @@ module PrimaryConnectClient
139
139
  return data, status_code, headers
140
140
  end
141
141
 
142
+ # show lab report
143
+ # @param result_id [String] Result id
144
+ # @param [Hash] opts the optional parameters
145
+ # @return report SS: previously generated as nil
146
+ def get_lab_report(result_id, opts = {})
147
+ get_lab_report_with_http_info(result_id, opts)
148
+ end
149
+
150
+ # show lab report
151
+ # @param result_id [String] Result id
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
154
+ def get_lab_report_with_http_info(result_id, opts = {})
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_lab_report ...'
157
+ end
158
+ # verify the required parameter 'result_id' is set
159
+ if @api_client.config.client_side_validation && result_id.nil?
160
+ fail ArgumentError, "Missing the required parameter 'result_id' when calling DefaultApi.get_lab_report"
161
+ end
162
+ # resource path
163
+ local_var_path = '/api/v1/results/{result_id}/lab_report'.sub('{' + 'result_id' + '}', CGI.escape(result_id.to_s))
164
+
165
+ # query parameters
166
+ query_params = opts[:query_params] || {}
167
+
168
+ # header parameters
169
+ header_params = opts[:header_params] || {}
170
+
171
+ # form parameters
172
+ form_params = opts[:form_params] || {}
173
+
174
+ # http body (model)
175
+ post_body = opts[:debug_body]
176
+
177
+ # return_type
178
+ return_type = opts[:debug_return_type] || 'String' # SS: set lab report return type as String
179
+
180
+ # auth_names
181
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
182
+
183
+ new_options = opts.merge(
184
+ :operation => :"DefaultApi.get_lab_report",
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => return_type
191
+ )
192
+
193
+ # SS: Previously generated as nil so nothing was returned. Added below to get the lab report
194
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
195
+ if @api_client.config.debugging
196
+ @api_client.config.logger.debug "API called: DefaultApi#get_lab_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
197
+ end
198
+ return data
199
+ end
200
+
142
201
  # show result
143
202
  # @param order_id [String] Order id
144
203
  # @param id [String] Result id
@@ -109,7 +109,8 @@ module PrimaryConnectClient
109
109
  :ssl_verifyhost => _verify_ssl_host,
110
110
  :sslcert => @config.cert_file,
111
111
  :sslkey => @config.key_file,
112
- :verbose => @config.debugging
112
+ :verbose => @config.debugging,
113
+ :followlocation => true # SS: Added to follow redirects
113
114
  }
114
115
 
115
116
  # set custom cert, if provided
@@ -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.3.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrimaryConnectClient
4
- VERSION = '0.5.0'
4
+ VERSION = '0.8.0'
5
5
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.required_ruby_version = ">= 2.4"
26
26
 
27
27
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
28
- s.add_runtime_dependency 'primary_connect_proto', '~> 0.7.2'
28
+ s.add_runtime_dependency 'primary_connect_proto', '~> 0.9.0'
29
29
 
30
30
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
31
31
 
@@ -109,4 +109,16 @@ describe 'DefaultApi' do
109
109
  end
110
110
  end
111
111
 
112
+ # unit tests for api_v1_lab_report_get
113
+ # show result
114
+ # @param order_id Order id
115
+ # @param result_id Result id
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [nil]
118
+ describe 'api_v1_lab_report_get test' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
+ end
122
+ end
123
+
112
124
  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: 0.5.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-17 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.7.2
39
+ version: 0.9.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.7.2
46
+ version: 0.9.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement