primary_connect_client 0.8.0 → 1.0.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.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +61 -16
  4. data/docs/Address.md +32 -0
  5. data/docs/CodedValue.md +22 -0
  6. data/docs/DefaultApi.md +568 -0
  7. data/docs/Demographics.md +52 -0
  8. data/docs/Error.md +18 -0
  9. data/docs/Event.md +26 -0
  10. data/docs/Events.md +18 -0
  11. data/docs/Identifier.md +20 -0
  12. data/docs/Location.md +26 -0
  13. data/docs/Meta.md +34 -0
  14. data/docs/MetaDestinations.md +22 -0
  15. data/docs/MetaMessage.md +20 -0
  16. data/docs/MetaSource.md +20 -0
  17. data/docs/MetaTransmission.md +18 -0
  18. data/docs/Name.md +22 -0
  19. data/docs/Order.md +24 -0
  20. data/docs/OrderIds.md +18 -0
  21. data/docs/OrderOrder.md +58 -0
  22. data/docs/OrderOrderClinicalInfo.md +26 -0
  23. data/docs/OrderOrderDiagnoses.md +22 -0
  24. data/docs/OrderOrderOrderingFacility.md +22 -0
  25. data/docs/OrderOrderSpecimen.md +22 -0
  26. data/docs/OrderWithEventErrors.md +20 -0
  27. data/docs/Orders.md +18 -0
  28. data/docs/OrdersOrders.md +22 -0
  29. data/docs/Patient.md +24 -0
  30. data/docs/PatientContacts.md +28 -0
  31. data/docs/PatientDemographics.md +52 -0
  32. data/docs/PhoneNumber.md +20 -0
  33. data/docs/Provider.md +32 -0
  34. data/docs/Result.md +52 -0
  35. data/docs/ResultIds.md +18 -0
  36. data/docs/ResultReferenceRange.md +22 -0
  37. data/docs/ResultReport.md +22 -0
  38. data/docs/ResultSpecimen.md +22 -0
  39. data/docs/Results.md +20 -0
  40. data/docs/Specimen.md +22 -0
  41. data/docs/Visit.md +36 -0
  42. data/docs/VisitCompany.md +24 -0
  43. data/docs/VisitGuarantor.md +40 -0
  44. data/docs/VisitGuarantorEmployer.md +22 -0
  45. data/docs/VisitInsurances.md +40 -0
  46. data/docs/VisitInsured.md +30 -0
  47. data/docs/VisitPlan.md +22 -0
  48. data/git_push.sh +5 -6
  49. data/lib/primary_connect_client/api/default_api.rb +143 -67
  50. data/lib/primary_connect_client/api_client.rb +5 -6
  51. data/lib/primary_connect_client/api_error.rb +1 -1
  52. data/lib/primary_connect_client/configuration.rb +3 -2
  53. data/lib/primary_connect_client/models/address.rb +281 -0
  54. data/lib/primary_connect_client/models/coded_value.rb +238 -0
  55. data/lib/primary_connect_client/models/demographics.rb +466 -0
  56. data/lib/primary_connect_client/models/error.rb +218 -0
  57. data/lib/primary_connect_client/models/event.rb +254 -0
  58. data/lib/primary_connect_client/models/events.rb +221 -0
  59. data/lib/primary_connect_client/models/identifier.rb +228 -0
  60. data/lib/primary_connect_client/models/location.rb +255 -0
  61. data/lib/primary_connect_client/models/meta.rb +327 -0
  62. data/lib/primary_connect_client/models/meta_destinations.rb +242 -0
  63. data/lib/primary_connect_client/models/meta_message.rb +227 -0
  64. data/lib/primary_connect_client/models/meta_source.rb +227 -0
  65. data/lib/primary_connect_client/models/meta_transmission.rb +218 -0
  66. data/lib/primary_connect_client/models/name.rb +237 -0
  67. data/lib/primary_connect_client/models/order.rb +245 -0
  68. data/lib/primary_connect_client/models/order_ids.rb +221 -0
  69. data/lib/primary_connect_client/models/order_order.rb +496 -0
  70. data/lib/primary_connect_client/models/order_order_clinical_info.rb +260 -0
  71. data/lib/primary_connect_client/models/order_order_diagnoses.rb +272 -0
  72. data/lib/primary_connect_client/models/order_order_ordering_facility.rb +239 -0
  73. data/lib/primary_connect_client/models/order_order_specimen.rb +239 -0
  74. data/lib/primary_connect_client/models/order_with_event_errors.rb +229 -0
  75. data/lib/primary_connect_client/models/orders.rb +221 -0
  76. data/lib/primary_connect_client/models/orders_orders.rb +236 -0
  77. data/lib/primary_connect_client/models/patient.rb +253 -0
  78. data/lib/primary_connect_client/models/patient_contacts.rb +305 -0
  79. data/lib/primary_connect_client/models/patient_demographics.rb +466 -0
  80. data/lib/primary_connect_client/models/phone_number.rb +262 -0
  81. data/lib/primary_connect_client/models/provider.rb +288 -0
  82. data/lib/primary_connect_client/models/result.rb +443 -0
  83. data/lib/primary_connect_client/models/result_ids.rb +221 -0
  84. data/lib/primary_connect_client/models/result_reference_range.rb +240 -0
  85. data/lib/primary_connect_client/models/result_report.rb +240 -0
  86. data/lib/primary_connect_client/models/result_specimen.rb +239 -0
  87. data/lib/primary_connect_client/models/results.rb +230 -0
  88. data/lib/primary_connect_client/models/specimen.rb +239 -0
  89. data/lib/primary_connect_client/models/visit.rb +306 -0
  90. data/lib/primary_connect_client/models/visit_company.rb +248 -0
  91. data/lib/primary_connect_client/models/visit_guarantor.rb +358 -0
  92. data/lib/primary_connect_client/models/visit_guarantor_employer.rb +238 -0
  93. data/lib/primary_connect_client/models/visit_insurances.rb +386 -0
  94. data/lib/primary_connect_client/models/visit_insured.rb +322 -0
  95. data/lib/primary_connect_client/models/visit_plan.rb +238 -0
  96. data/lib/primary_connect_client/version.rb +12 -2
  97. data/lib/primary_connect_client.rb +45 -3
  98. data/primary_connect_client.gemspec +7 -5
  99. data/spec/api/default_api_spec.rb +44 -41
  100. data/spec/api_client_spec.rb +3 -3
  101. data/spec/configuration_spec.rb +1 -1
  102. data/spec/models/address_spec.rb +76 -0
  103. data/spec/models/coded_value_spec.rb +46 -0
  104. data/spec/models/demographics_spec.rb +168 -0
  105. data/spec/models/error_spec.rb +34 -0
  106. data/spec/models/event_spec.rb +58 -0
  107. data/spec/models/events_spec.rb +34 -0
  108. data/spec/models/identifier_spec.rb +40 -0
  109. data/spec/models/location_spec.rb +58 -0
  110. data/spec/models/meta_destinations_spec.rb +46 -0
  111. data/spec/models/meta_message_spec.rb +40 -0
  112. data/spec/models/meta_source_spec.rb +40 -0
  113. data/spec/models/meta_spec.rb +86 -0
  114. data/spec/models/meta_transmission_spec.rb +34 -0
  115. data/spec/models/name_spec.rb +46 -0
  116. data/spec/models/order_ids_spec.rb +34 -0
  117. data/spec/models/order_order_clinical_info_spec.rb +58 -0
  118. data/spec/models/order_order_diagnoses_spec.rb +50 -0
  119. data/spec/models/order_order_ordering_facility_spec.rb +46 -0
  120. data/spec/models/order_order_spec.rb +170 -0
  121. data/spec/models/order_order_specimen_spec.rb +46 -0
  122. data/spec/models/order_spec.rb +52 -0
  123. data/spec/models/order_with_event_errors_spec.rb +40 -0
  124. data/spec/models/orders_orders_spec.rb +46 -0
  125. data/spec/models/orders_spec.rb +34 -0
  126. data/spec/models/patient_contacts_spec.rb +68 -0
  127. data/spec/models/patient_demographics_spec.rb +168 -0
  128. data/spec/models/patient_spec.rb +52 -0
  129. data/spec/models/phone_number_spec.rb +44 -0
  130. data/spec/models/provider_spec.rb +76 -0
  131. data/spec/models/result_ids_spec.rb +34 -0
  132. data/spec/models/result_reference_range_spec.rb +46 -0
  133. data/spec/models/result_report_spec.rb +46 -0
  134. data/spec/models/result_spec.rb +148 -0
  135. data/spec/models/result_specimen_spec.rb +46 -0
  136. data/spec/models/results_spec.rb +40 -0
  137. data/spec/models/specimen_spec.rb +46 -0
  138. data/spec/models/visit_company_spec.rb +52 -0
  139. data/spec/models/visit_guarantor_employer_spec.rb +46 -0
  140. data/spec/models/visit_guarantor_spec.rb +104 -0
  141. data/spec/models/visit_insurances_spec.rb +112 -0
  142. data/spec/models/visit_insured_spec.rb +78 -0
  143. data/spec/models/visit_plan_spec.rb +46 -0
  144. data/spec/models/visit_spec.rb +88 -0
  145. data/spec/spec_helper.rb +1 -1
  146. metadata +177 -20
  147. data/Gemfile.lock +0 -74
@@ -0,0 +1,568 @@
1
+ # PrimaryConnectClient::DefaultApi
2
+
3
+ All URIs are relative to *https://connect.primary.health*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_order**](DefaultApi.md#create_order) | **POST** /api/v1/orders | create order |
8
+ | [**create_result**](DefaultApi.md#create_result) | **POST** /api/v1/orders/{order_id}/results | create result |
9
+ | [**get_lab_report**](DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report |
10
+ | [**get_order**](DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order |
11
+ | [**list_events**](DefaultApi.md#list_events) | **GET** /api/v1/events | list events |
12
+ | [**list_orders**](DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders |
13
+ | [**list_results**](DefaultApi.md#list_results) | **GET** /api/v1/orders/{order_id}/results | list results |
14
+ | [**update_order**](DefaultApi.md#update_order) | **PUT** /api/v1/orders/{id} | update order |
15
+
16
+
17
+ ## create_order
18
+
19
+ > <OrderIds> create_order(opts)
20
+
21
+ create order
22
+
23
+ ### Examples
24
+
25
+ ```ruby
26
+ require 'time'
27
+ require 'primary_connect_client'
28
+ # setup authorization
29
+ PrimaryConnectClient.configure do |config|
30
+ # Configure Bearer authorization: bearer_auth
31
+ config.access_token = 'YOUR_BEARER_TOKEN'
32
+ end
33
+
34
+ api_instance = PrimaryConnectClient::DefaultApi.new
35
+ opts = {
36
+ order: PrimaryConnectClient::Order.new # Order |
37
+ }
38
+
39
+ begin
40
+ # create order
41
+ result = api_instance.create_order(opts)
42
+ p result
43
+ rescue PrimaryConnectClient::ApiError => e
44
+ puts "Error when calling DefaultApi->create_order: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the create_order_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<OrderIds>, Integer, Hash)> create_order_with_http_info(opts)
53
+
54
+ ```ruby
55
+ begin
56
+ # create order
57
+ data, status_code, headers = api_instance.create_order_with_http_info(opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <OrderIds>
61
+ rescue PrimaryConnectClient::ApiError => e
62
+ puts "Error when calling DefaultApi->create_order_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **order** | [**Order**](Order.md) | | [optional] |
71
+
72
+ ### Return type
73
+
74
+ [**OrderIds**](OrderIds.md)
75
+
76
+ ### Authorization
77
+
78
+ [bearer_auth](../README.md#bearer_auth)
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: application/json
83
+ - **Accept**: application/json
84
+
85
+
86
+ ## create_result
87
+
88
+ > <ResultIds> create_result(order_id, opts)
89
+
90
+ create result
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'primary_connect_client'
97
+ # setup authorization
98
+ PrimaryConnectClient.configure do |config|
99
+ # Configure Bearer authorization: bearer_auth
100
+ config.access_token = 'YOUR_BEARER_TOKEN'
101
+ end
102
+
103
+ api_instance = PrimaryConnectClient::DefaultApi.new
104
+ order_id = '01FGD44Q6MVCG2VNSMCVX5ZCT6' # String | Order id
105
+ opts = {
106
+ result: PrimaryConnectClient::Result.new # Result |
107
+ }
108
+
109
+ begin
110
+ # create result
111
+ result = api_instance.create_result(order_id, opts)
112
+ p result
113
+ rescue PrimaryConnectClient::ApiError => e
114
+ puts "Error when calling DefaultApi->create_result: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the create_result_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(<ResultIds>, Integer, Hash)> create_result_with_http_info(order_id, opts)
123
+
124
+ ```ruby
125
+ begin
126
+ # create result
127
+ data, status_code, headers = api_instance.create_result_with_http_info(order_id, opts)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <ResultIds>
131
+ rescue PrimaryConnectClient::ApiError => e
132
+ puts "Error when calling DefaultApi->create_result_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **order_id** | **String** | Order id | |
141
+ | **result** | [**Result**](Result.md) | | [optional] |
142
+
143
+ ### Return type
144
+
145
+ [**ResultIds**](ResultIds.md)
146
+
147
+ ### Authorization
148
+
149
+ [bearer_auth](../README.md#bearer_auth)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: application/json
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## get_lab_report
158
+
159
+ > get_lab_report(result_id)
160
+
161
+ show lab report
162
+
163
+ ### Examples
164
+
165
+ ```ruby
166
+ require 'time'
167
+ require 'primary_connect_client'
168
+ # setup authorization
169
+ PrimaryConnectClient.configure do |config|
170
+ # Configure Bearer authorization: bearer_auth
171
+ config.access_token = 'YOUR_BEARER_TOKEN'
172
+ end
173
+
174
+ api_instance = PrimaryConnectClient::DefaultApi.new
175
+ result_id = '01FGD44Q6MVCG2VNSMC4ZMOTQM' # String | Result id
176
+
177
+ begin
178
+ # show lab report
179
+ api_instance.get_lab_report(result_id)
180
+ rescue PrimaryConnectClient::ApiError => e
181
+ puts "Error when calling DefaultApi->get_lab_report: #{e}"
182
+ end
183
+ ```
184
+
185
+ #### Using the get_lab_report_with_http_info variant
186
+
187
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
188
+
189
+ > <Array(nil, Integer, Hash)> get_lab_report_with_http_info(result_id)
190
+
191
+ ```ruby
192
+ begin
193
+ # show lab report
194
+ data, status_code, headers = api_instance.get_lab_report_with_http_info(result_id)
195
+ p status_code # => 2xx
196
+ p headers # => { ... }
197
+ p data # => nil
198
+ rescue PrimaryConnectClient::ApiError => e
199
+ puts "Error when calling DefaultApi->get_lab_report_with_http_info: #{e}"
200
+ end
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ | Name | Type | Description | Notes |
206
+ | ---- | ---- | ----------- | ----- |
207
+ | **result_id** | **String** | Result id | |
208
+
209
+ ### Return type
210
+
211
+ nil (empty response body)
212
+
213
+ ### Authorization
214
+
215
+ [bearer_auth](../README.md#bearer_auth)
216
+
217
+ ### HTTP request headers
218
+
219
+ - **Content-Type**: Not defined
220
+ - **Accept**: application/json
221
+
222
+
223
+ ## get_order
224
+
225
+ > <OrderWithEventErrors> get_order(id)
226
+
227
+ show order
228
+
229
+ ### Examples
230
+
231
+ ```ruby
232
+ require 'time'
233
+ require 'primary_connect_client'
234
+ # setup authorization
235
+ PrimaryConnectClient.configure do |config|
236
+ # Configure Bearer authorization: bearer_auth
237
+ config.access_token = 'YOUR_BEARER_TOKEN'
238
+ end
239
+
240
+ api_instance = PrimaryConnectClient::DefaultApi.new
241
+ id = 'id_example' # String | id
242
+
243
+ begin
244
+ # show order
245
+ result = api_instance.get_order(id)
246
+ p result
247
+ rescue PrimaryConnectClient::ApiError => e
248
+ puts "Error when calling DefaultApi->get_order: #{e}"
249
+ end
250
+ ```
251
+
252
+ #### Using the get_order_with_http_info variant
253
+
254
+ This returns an Array which contains the response data, status code and headers.
255
+
256
+ > <Array(<OrderWithEventErrors>, Integer, Hash)> get_order_with_http_info(id)
257
+
258
+ ```ruby
259
+ begin
260
+ # show order
261
+ data, status_code, headers = api_instance.get_order_with_http_info(id)
262
+ p status_code # => 2xx
263
+ p headers # => { ... }
264
+ p data # => <OrderWithEventErrors>
265
+ rescue PrimaryConnectClient::ApiError => e
266
+ puts "Error when calling DefaultApi->get_order_with_http_info: #{e}"
267
+ end
268
+ ```
269
+
270
+ ### Parameters
271
+
272
+ | Name | Type | Description | Notes |
273
+ | ---- | ---- | ----------- | ----- |
274
+ | **id** | **String** | id | |
275
+
276
+ ### Return type
277
+
278
+ [**OrderWithEventErrors**](OrderWithEventErrors.md)
279
+
280
+ ### Authorization
281
+
282
+ [bearer_auth](../README.md#bearer_auth)
283
+
284
+ ### HTTP request headers
285
+
286
+ - **Content-Type**: Not defined
287
+ - **Accept**: application/json
288
+
289
+
290
+ ## list_events
291
+
292
+ > <Events> list_events(opts)
293
+
294
+ list events
295
+
296
+ ### Examples
297
+
298
+ ```ruby
299
+ require 'time'
300
+ require 'primary_connect_client'
301
+ # setup authorization
302
+ PrimaryConnectClient.configure do |config|
303
+ # Configure Bearer authorization: bearer_auth
304
+ config.access_token = 'YOUR_BEARER_TOKEN'
305
+ end
306
+
307
+ api_instance = PrimaryConnectClient::DefaultApi.new
308
+ opts = {
309
+ last_event_id: '01FGD30NTPNNZE9MKGMWZGHGTZ', # String | Paginate events with event id. 26 character, sortable id.
310
+ event_types: 'OrderCreated,OrderComplete' # String | Filter event_types, comma delimited. [OrderComplete, OrderCreated, OrderError, OrderResulted, OrderUpdated, ResultError, SpecimenReceived]
311
+ }
312
+
313
+ begin
314
+ # list events
315
+ result = api_instance.list_events(opts)
316
+ p result
317
+ rescue PrimaryConnectClient::ApiError => e
318
+ puts "Error when calling DefaultApi->list_events: #{e}"
319
+ end
320
+ ```
321
+
322
+ #### Using the list_events_with_http_info variant
323
+
324
+ This returns an Array which contains the response data, status code and headers.
325
+
326
+ > <Array(<Events>, Integer, Hash)> list_events_with_http_info(opts)
327
+
328
+ ```ruby
329
+ begin
330
+ # list events
331
+ data, status_code, headers = api_instance.list_events_with_http_info(opts)
332
+ p status_code # => 2xx
333
+ p headers # => { ... }
334
+ p data # => <Events>
335
+ rescue PrimaryConnectClient::ApiError => e
336
+ puts "Error when calling DefaultApi->list_events_with_http_info: #{e}"
337
+ end
338
+ ```
339
+
340
+ ### Parameters
341
+
342
+ | Name | Type | Description | Notes |
343
+ | ---- | ---- | ----------- | ----- |
344
+ | **last_event_id** | **String** | Paginate events with event id. 26 character, sortable id. | [optional] |
345
+ | **event_types** | **String** | Filter event_types, comma delimited. [OrderComplete, OrderCreated, OrderError, OrderResulted, OrderUpdated, ResultError, SpecimenReceived] | [optional] |
346
+
347
+ ### Return type
348
+
349
+ [**Events**](Events.md)
350
+
351
+ ### Authorization
352
+
353
+ [bearer_auth](../README.md#bearer_auth)
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: Not defined
358
+ - **Accept**: application/json
359
+
360
+
361
+ ## list_orders
362
+
363
+ > <Orders> list_orders(opts)
364
+
365
+ list orders
366
+
367
+ ### Examples
368
+
369
+ ```ruby
370
+ require 'time'
371
+ require 'primary_connect_client'
372
+ # setup authorization
373
+ PrimaryConnectClient.configure do |config|
374
+ # Configure Bearer authorization: bearer_auth
375
+ config.access_token = 'YOUR_BEARER_TOKEN'
376
+ end
377
+
378
+ api_instance = PrimaryConnectClient::DefaultApi.new
379
+ opts = {
380
+ last_order_id: '01FGD30NTPNNZE9MKGMWZGHGTZ', # String | Paginate orders with order id. 26 character, sortable id.
381
+ state: 'new,resulted' # String | Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
382
+ }
383
+
384
+ begin
385
+ # list orders
386
+ result = api_instance.list_orders(opts)
387
+ p result
388
+ rescue PrimaryConnectClient::ApiError => e
389
+ puts "Error when calling DefaultApi->list_orders: #{e}"
390
+ end
391
+ ```
392
+
393
+ #### Using the list_orders_with_http_info variant
394
+
395
+ This returns an Array which contains the response data, status code and headers.
396
+
397
+ > <Array(<Orders>, Integer, Hash)> list_orders_with_http_info(opts)
398
+
399
+ ```ruby
400
+ begin
401
+ # list orders
402
+ data, status_code, headers = api_instance.list_orders_with_http_info(opts)
403
+ p status_code # => 2xx
404
+ p headers # => { ... }
405
+ p data # => <Orders>
406
+ rescue PrimaryConnectClient::ApiError => e
407
+ puts "Error when calling DefaultApi->list_orders_with_http_info: #{e}"
408
+ end
409
+ ```
410
+
411
+ ### Parameters
412
+
413
+ | Name | Type | Description | Notes |
414
+ | ---- | ---- | ----------- | ----- |
415
+ | **last_order_id** | **String** | Paginate orders with order id. 26 character, sortable id. | [optional] |
416
+ | **state** | **String** | Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable] | [optional] |
417
+
418
+ ### Return type
419
+
420
+ [**Orders**](Orders.md)
421
+
422
+ ### Authorization
423
+
424
+ [bearer_auth](../README.md#bearer_auth)
425
+
426
+ ### HTTP request headers
427
+
428
+ - **Content-Type**: Not defined
429
+ - **Accept**: application/json
430
+
431
+
432
+ ## list_results
433
+
434
+ > <Results> list_results(order_id)
435
+
436
+ list results
437
+
438
+ ### Examples
439
+
440
+ ```ruby
441
+ require 'time'
442
+ require 'primary_connect_client'
443
+ # setup authorization
444
+ PrimaryConnectClient.configure do |config|
445
+ # Configure Bearer authorization: bearer_auth
446
+ config.access_token = 'YOUR_BEARER_TOKEN'
447
+ end
448
+
449
+ api_instance = PrimaryConnectClient::DefaultApi.new
450
+ order_id = '01FGD44Q6MVCG2VNSMCVX5ZCT6' # String | Order id
451
+
452
+ begin
453
+ # list results
454
+ result = api_instance.list_results(order_id)
455
+ p result
456
+ rescue PrimaryConnectClient::ApiError => e
457
+ puts "Error when calling DefaultApi->list_results: #{e}"
458
+ end
459
+ ```
460
+
461
+ #### Using the list_results_with_http_info variant
462
+
463
+ This returns an Array which contains the response data, status code and headers.
464
+
465
+ > <Array(<Results>, Integer, Hash)> list_results_with_http_info(order_id)
466
+
467
+ ```ruby
468
+ begin
469
+ # list results
470
+ data, status_code, headers = api_instance.list_results_with_http_info(order_id)
471
+ p status_code # => 2xx
472
+ p headers # => { ... }
473
+ p data # => <Results>
474
+ rescue PrimaryConnectClient::ApiError => e
475
+ puts "Error when calling DefaultApi->list_results_with_http_info: #{e}"
476
+ end
477
+ ```
478
+
479
+ ### Parameters
480
+
481
+ | Name | Type | Description | Notes |
482
+ | ---- | ---- | ----------- | ----- |
483
+ | **order_id** | **String** | Order id | |
484
+
485
+ ### Return type
486
+
487
+ [**Results**](Results.md)
488
+
489
+ ### Authorization
490
+
491
+ [bearer_auth](../README.md#bearer_auth)
492
+
493
+ ### HTTP request headers
494
+
495
+ - **Content-Type**: Not defined
496
+ - **Accept**: application/json
497
+
498
+
499
+ ## update_order
500
+
501
+ > <OrderIds> update_order(id, opts)
502
+
503
+ update order
504
+
505
+ ### Examples
506
+
507
+ ```ruby
508
+ require 'time'
509
+ require 'primary_connect_client'
510
+ # setup authorization
511
+ PrimaryConnectClient.configure do |config|
512
+ # Configure Bearer authorization: bearer_auth
513
+ config.access_token = 'YOUR_BEARER_TOKEN'
514
+ end
515
+
516
+ api_instance = PrimaryConnectClient::DefaultApi.new
517
+ id = 'id_example' # String | id
518
+ opts = {
519
+ order: PrimaryConnectClient::Order.new # Order |
520
+ }
521
+
522
+ begin
523
+ # update order
524
+ result = api_instance.update_order(id, opts)
525
+ p result
526
+ rescue PrimaryConnectClient::ApiError => e
527
+ puts "Error when calling DefaultApi->update_order: #{e}"
528
+ end
529
+ ```
530
+
531
+ #### Using the update_order_with_http_info variant
532
+
533
+ This returns an Array which contains the response data, status code and headers.
534
+
535
+ > <Array(<OrderIds>, Integer, Hash)> update_order_with_http_info(id, opts)
536
+
537
+ ```ruby
538
+ begin
539
+ # update order
540
+ data, status_code, headers = api_instance.update_order_with_http_info(id, opts)
541
+ p status_code # => 2xx
542
+ p headers # => { ... }
543
+ p data # => <OrderIds>
544
+ rescue PrimaryConnectClient::ApiError => e
545
+ puts "Error when calling DefaultApi->update_order_with_http_info: #{e}"
546
+ end
547
+ ```
548
+
549
+ ### Parameters
550
+
551
+ | Name | Type | Description | Notes |
552
+ | ---- | ---- | ----------- | ----- |
553
+ | **id** | **String** | id | |
554
+ | **order** | [**Order**](Order.md) | | [optional] |
555
+
556
+ ### Return type
557
+
558
+ [**OrderIds**](OrderIds.md)
559
+
560
+ ### Authorization
561
+
562
+ [bearer_auth](../README.md#bearer_auth)
563
+
564
+ ### HTTP request headers
565
+
566
+ - **Content-Type**: application/json
567
+ - **Accept**: application/json
568
+
@@ -0,0 +1,52 @@
1
+ # PrimaryConnectClient::Demographics
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | [**Name**](Name.md) | | [optional] |
8
+ | **dob** | **String** | | [optional] |
9
+ | **ssn** | **String** | | [optional] |
10
+ | **sex** | **String** | | [optional] |
11
+ | **gender** | **String** | | [optional] |
12
+ | **sexual_orientation** | **String** | | [optional] |
13
+ | **races** | **Array&lt;String&gt;** | | [optional] |
14
+ | **race_details** | **Array&lt;String&gt;** | | [optional] |
15
+ | **ethnicity** | **String** | | [optional] |
16
+ | **ethnicity_detail** | **Array&lt;String&gt;** | | [optional] |
17
+ | **marital_status** | **String** | | [optional] |
18
+ | **is_deceased** | **Boolean** | | [optional] |
19
+ | **death_date_time** | **Time** | ISO 8601 | [optional] |
20
+ | **phone_numbers** | [**Array&lt;PhoneNumber&gt;**](PhoneNumber.md) | | [optional] |
21
+ | **email_addresses** | **Array&lt;String&gt;** | | [optional] |
22
+ | **language_code** | **String** | | [optional] |
23
+ | **citizenships** | **Array&lt;String&gt;** | | [optional] |
24
+ | **address** | [**Address**](Address.md) | | [optional] |
25
+
26
+ ## Example
27
+
28
+ ```ruby
29
+ require 'primary_connect_client'
30
+
31
+ instance = PrimaryConnectClient::Demographics.new(
32
+ name: null,
33
+ dob: 1992-07-23,
34
+ ssn: null,
35
+ sex: null,
36
+ gender: null,
37
+ sexual_orientation: null,
38
+ races: null,
39
+ race_details: null,
40
+ ethnicity: null,
41
+ ethnicity_detail: null,
42
+ marital_status: null,
43
+ is_deceased: null,
44
+ death_date_time: null,
45
+ phone_numbers: null,
46
+ email_addresses: null,
47
+ language_code: en,
48
+ citizenships: null,
49
+ address: null
50
+ )
51
+ ```
52
+
data/docs/Error.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Error
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Error.new(
15
+ error: null
16
+ )
17
+ ```
18
+
data/docs/Event.md ADDED
@@ -0,0 +1,26 @@
1
+ # PrimaryConnectClient::Event
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional] |
8
+ | **eventable_type** | **String** | | [optional] |
9
+ | **created_at** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+ | **eventable_id** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'primary_connect_client'
17
+
18
+ instance = PrimaryConnectClient::Event.new(
19
+ type: null,
20
+ eventable_type: null,
21
+ created_at: null,
22
+ id: null,
23
+ eventable_id: null
24
+ )
25
+ ```
26
+
data/docs/Events.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Events
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **events** | [**Array&lt;Event&gt;**](Event.md) | List of events (max 25) | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Events.new(
15
+ events: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # PrimaryConnectClient::Identifier
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **id_type** | **String** | E.g. MRN, EPI, EHRI, NIST, NPI, Payor ID | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'primary_connect_client'
14
+
15
+ instance = PrimaryConnectClient::Identifier.new(
16
+ id: null,
17
+ id_type: 1234567
18
+ )
19
+ ```
20
+