primary_connect_client 0.6.0 → 0.7.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: 3eaf08f3c61ca545edcffee7aa58e92b496bf9412863db65ed4c636e7e34f801
4
- data.tar.gz: e75ae205ae03e46c024b20b34101e92ac0db2719b1bb6d7c2da79951f83a3002
3
+ metadata.gz: ba82e52a3d18bd2b24337335cbfbea864f8903f6dd68d2b09f8cca576fab6cf1
4
+ data.tar.gz: eae26b56c08d55907f49301e7fecb8c0ea79bae26144bc4a000b5b7a814a9690
5
5
  SHA512:
6
- metadata.gz: 87d1994bb9f6ecbf5af100d632847407d2a621b16e265e6606d8e0dc1be3f3962d4a912db6288c2716956af8a7bd1177bbee01da924f9ea2b4f190f040483dd0
7
- data.tar.gz: 8ba8570d081176fd27a9f9ade9808a445bfae789386e5b9d2a40b604f68aa607c3be106ae03f5126137eacfe408dc499e846cdb9521d9780d456a055ce778053
6
+ metadata.gz: 6aa8f80b8bf0b301013b638b6d53621f5c83a56d0ac3b1fd7422bd5af3ccdfec97b960355bfe13739069df2d44469a84978add44c8f4bef0bc53fd71f3a692aa
7
+ data.tar.gz: ef62ede457c62613f0424a3927042cebe420b0cef1517c4023b79f477bd7ffd108032eb6d8087fa9064f9d74e5fe0e78f011c44937afcd6d2733ff4e73402eed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.7.0
4
+
5
+ - Added lab report endpoint
6
+
3
7
  ## 0.6.0
4
8
 
5
9
  - Bumped `primary_connect_proto` to `0.7.3`
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,64 @@ 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
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'
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
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug "API called: DefaultApi#get_lab_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
196
+ end
197
+ return data
198
+ end
199
+
142
200
  # show result
143
201
  # @param order_id [String] Order id
144
202
  # @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
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
 
@@ -154,7 +154,7 @@ module PrimaryConnectClient
154
154
  @params_encoding = nil
155
155
  @cert_file = nil
156
156
  @key_file = nil
157
- @debugging = false
157
+ @debugging = true
158
158
  @inject_format = false
159
159
  @force_ending_format = false
160
160
  @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrimaryConnectClient
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0'
5
5
  end
@@ -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.6.0
4
+ version: 0.7.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-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus