primary_connect_client 1.3.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +18 -7
  4. data/docs/Accession.md +18 -0
  5. data/docs/AccessionOrder.md +18 -0
  6. data/docs/DefaultApi.md +275 -0
  7. data/docs/Device.md +5 -3
  8. data/docs/Ids.md +18 -0
  9. data/docs/Measurement.md +22 -0
  10. data/docs/OrderOrder.md +4 -0
  11. data/docs/Result.md +3 -1
  12. data/docs/V2Device.md +5 -3
  13. data/lib/primary_connect_client/api/default_api.rb +249 -0
  14. data/lib/primary_connect_client/models/accession.rb +218 -0
  15. data/lib/primary_connect_client/models/accession_order.rb +219 -0
  16. data/lib/primary_connect_client/models/demographics.rb +2 -2
  17. data/lib/primary_connect_client/models/device.rb +21 -12
  18. data/lib/primary_connect_client/models/ids.rb +221 -0
  19. data/lib/primary_connect_client/models/measurement.rb +240 -0
  20. data/lib/primary_connect_client/models/order_order.rb +23 -1
  21. data/lib/primary_connect_client/models/result.rb +13 -4
  22. data/lib/primary_connect_client/models/v2_device.rb +21 -12
  23. data/lib/primary_connect_client/version.rb +1 -1
  24. data/lib/primary_connect_client.rb +4 -0
  25. data/primary_connect_client.gemspec +1 -1
  26. data/spec/api/default_api_spec.rb +45 -0
  27. data/spec/models/accession_order_spec.rb +34 -0
  28. data/spec/models/accession_spec.rb +34 -0
  29. data/spec/models/demographics_spec.rb +1 -1
  30. data/spec/models/device_spec.rb +7 -1
  31. data/spec/models/ids_spec.rb +34 -0
  32. data/spec/models/measurement_spec.rb +46 -0
  33. data/spec/models/order_order_spec.rb +12 -0
  34. data/spec/models/result_spec.rb +6 -0
  35. data/spec/models/v2_device_spec.rb +7 -1
  36. metadata +22 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87215c1bba59cc60aff1c1838ea092541fc494b5625fc9bdee05c8636b5b1574
4
- data.tar.gz: a91593b598df16d40d875466ccda08c2dd6eb26b0ba155a3ccdf74fbd6fc2c74
3
+ metadata.gz: 2fba2c726308c0fd123e99a5d2ceca4efc2f9dc09d9b572809e7a44480efd46a
4
+ data.tar.gz: 162b1b9fad3431aaa2d20cc0610aac70982cb781c9a1527fceb8cfd686e07ded
5
5
  SHA512:
6
- metadata.gz: 3d9361eac5551d6b08d3b8e5d6623f7d378e858402f5d7badc63c9236a657582557e2064fefd898307eace4588154f143704e639bf990af54545f6bab402bf9b
7
- data.tar.gz: 0c5fb396166240dfa70dd950863e6e25408272d27bd3dfac2db71829c8811d86498f99ad6a1dbc7f679db3d6940266e6dc296f0b5b3f369c7e67552c556d9fb2
6
+ metadata.gz: 925c18ed682db7211dec940a87cff4ece2f31ac66e91f3e74ef00acd8223fcba7e04c69378d6a8ebb6c59e10b2f6dfd74943d9c5b3e9ef7e3b32fd323f4794da
7
+ data.tar.gz: bdeb83007e34eac9b0fa1c72f9ece5b9b1f550e5040feaf28bb7e0944cd2b4ca3e4936477bcb9e5002679dcb479d85022ef1f04bb2d141df286b8afae2095faf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.5.0
4
+
5
+ - Updated dependency on `primary_connect_proto` 0.17.0
6
+ - Added Measurement API
7
+ - Added Order.Procedures
8
+
9
+ ## 1.4.0
10
+
11
+ - Updated dependency on `primary_connect_proto` 0.15.0
12
+
3
13
  ## 1.3.0
4
14
 
5
15
  - Updated dependency on `primary_connect_proto` 0.13.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.3.0
10
+ - Package version: 1.5.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.3.0.gem
26
+ gem install ./primary_connect_client-1.5.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./primary_connect_client-1.3.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./primary_connect_client-1.5.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.3.0'
35
+ gem 'primary_connect_client', '~> 1.5.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -64,12 +64,15 @@ end
64
64
 
65
65
  api_instance = PrimaryConnectClient::DefaultApi.new
66
66
  id = '01FGD44Q6MVCG2VNSMC4ZMOTQM' # String | Order ID
67
+ opts = {
68
+ accession: PrimaryConnectClient::Accession.new # Accession |
69
+ }
67
70
 
68
71
  begin
69
- #cancel order
70
- api_instance.cancel_order(id)
72
+ #accession order by ULID
73
+ api_instance.accession_order(id, opts)
71
74
  rescue PrimaryConnectClient::ApiError => e
72
- puts "Exception when calling DefaultApi->cancel_order: #{e}"
75
+ puts "Exception when calling DefaultApi->accession_order: #{e}"
73
76
  end
74
77
 
75
78
  ```
@@ -80,10 +83,14 @@ All URIs are relative to *https://connect.primary.health*
80
83
 
81
84
  Class | Method | HTTP request | Description
82
85
  ------------ | ------------- | ------------- | -------------
86
+ *PrimaryConnectClient::DefaultApi* | [**accession_order**](docs/DefaultApi.md#accession_order) | **PUT** /api/v1/orders/{id}/accession | accession order by ULID
87
+ *PrimaryConnectClient::DefaultApi* | [**accession_order_by_specimen_id**](docs/DefaultApi.md#accession_order_by_specimen_id) | **PUT** /api/v1/orders/accession | accession order by Specimen ID
83
88
  *PrimaryConnectClient::DefaultApi* | [**cancel_order**](docs/DefaultApi.md#cancel_order) | **DELETE** /api/v1/orders/{id} | cancel order
89
+ *PrimaryConnectClient::DefaultApi* | [**create_measurement**](docs/DefaultApi.md#create_measurement) | **POST** /api/v1/measurements | create Measurement
84
90
  *PrimaryConnectClient::DefaultApi* | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order
85
91
  *PrimaryConnectClient::DefaultApi* | [**create_result**](docs/DefaultApi.md#create_result) | **POST** /api/v1/orders/{order_id}/results | create result
86
92
  *PrimaryConnectClient::DefaultApi* | [**get_lab_report**](docs/DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report
93
+ *PrimaryConnectClient::DefaultApi* | [**get_measurement**](docs/DefaultApi.md#get_measurement) | **GET** /api/v1/measurements/{id} | show measurement
87
94
  *PrimaryConnectClient::DefaultApi* | [**get_order**](docs/DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order
88
95
  *PrimaryConnectClient::DefaultApi* | [**list_events**](docs/DefaultApi.md#list_events) | **GET** /api/v1/events | list events
89
96
  *PrimaryConnectClient::DefaultApi* | [**list_orders**](docs/DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders
@@ -93,6 +100,8 @@ Class | Method | HTTP request | Description
93
100
 
94
101
  ## Documentation for Models
95
102
 
103
+ - [PrimaryConnectClient::Accession](docs/Accession.md)
104
+ - [PrimaryConnectClient::AccessionOrder](docs/AccessionOrder.md)
96
105
  - [PrimaryConnectClient::Address](docs/Address.md)
97
106
  - [PrimaryConnectClient::CodedValue](docs/CodedValue.md)
98
107
  - [PrimaryConnectClient::Demographics](docs/Demographics.md)
@@ -102,7 +111,9 @@ Class | Method | HTTP request | Description
102
111
  - [PrimaryConnectClient::Event](docs/Event.md)
103
112
  - [PrimaryConnectClient::Events](docs/Events.md)
104
113
  - [PrimaryConnectClient::Identifier](docs/Identifier.md)
114
+ - [PrimaryConnectClient::Ids](docs/Ids.md)
105
115
  - [PrimaryConnectClient::Location](docs/Location.md)
116
+ - [PrimaryConnectClient::Measurement](docs/Measurement.md)
106
117
  - [PrimaryConnectClient::Medication](docs/Medication.md)
107
118
  - [PrimaryConnectClient::MedicationAdministration](docs/MedicationAdministration.md)
108
119
  - [PrimaryConnectClient::Meta](docs/Meta.md)
data/docs/Accession.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Accession
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **order** | [**AccessionOrder**](AccessionOrder.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Accession.new(
15
+ order: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::AccessionOrder
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **accession_date_time** | **Time** | Timestamp when the specimen was received by the destination. (ISO-8601) | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::AccessionOrder.new(
15
+ accession_date_time: 2021-07-10T12:35:45-07:00
16
+ )
17
+ ```
18
+
data/docs/DefaultApi.md CHANGED
@@ -4,10 +4,14 @@ All URIs are relative to *https://connect.primary.health*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**accession_order**](DefaultApi.md#accession_order) | **PUT** /api/v1/orders/{id}/accession | accession order by ULID |
8
+ | [**accession_order_by_specimen_id**](DefaultApi.md#accession_order_by_specimen_id) | **PUT** /api/v1/orders/accession | accession order by Specimen ID |
7
9
  | [**cancel_order**](DefaultApi.md#cancel_order) | **DELETE** /api/v1/orders/{id} | cancel order |
10
+ | [**create_measurement**](DefaultApi.md#create_measurement) | **POST** /api/v1/measurements | create Measurement |
8
11
  | [**create_order**](DefaultApi.md#create_order) | **POST** /api/v1/orders | create order |
9
12
  | [**create_result**](DefaultApi.md#create_result) | **POST** /api/v1/orders/{order_id}/results | create result |
10
13
  | [**get_lab_report**](DefaultApi.md#get_lab_report) | **GET** /api/v1/results/{result_id}/lab_report | show lab report |
14
+ | [**get_measurement**](DefaultApi.md#get_measurement) | **GET** /api/v1/measurements/{id} | show measurement |
11
15
  | [**get_order**](DefaultApi.md#get_order) | **GET** /api/v1/orders/{id} | show order |
12
16
  | [**list_events**](DefaultApi.md#list_events) | **GET** /api/v1/events | list events |
13
17
  | [**list_orders**](DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders |
@@ -15,6 +19,146 @@ All URIs are relative to *https://connect.primary.health*
15
19
  | [**update_order**](DefaultApi.md#update_order) | **PUT** /api/v1/orders/{id} | update order |
16
20
 
17
21
 
22
+ ## accession_order
23
+
24
+ > accession_order(id, opts)
25
+
26
+ accession order by ULID
27
+
28
+ ### Examples
29
+
30
+ ```ruby
31
+ require 'time'
32
+ require 'primary_connect_client'
33
+ # setup authorization
34
+ PrimaryConnectClient.configure do |config|
35
+ # Configure Bearer authorization: bearer_auth
36
+ config.access_token = 'YOUR_BEARER_TOKEN'
37
+ end
38
+
39
+ api_instance = PrimaryConnectClient::DefaultApi.new
40
+ id = '01FGD44Q6MVCG2VNSMC4ZMOTQM' # String | Order ID
41
+ opts = {
42
+ accession: PrimaryConnectClient::Accession.new # Accession |
43
+ }
44
+
45
+ begin
46
+ # accession order by ULID
47
+ api_instance.accession_order(id, opts)
48
+ rescue PrimaryConnectClient::ApiError => e
49
+ puts "Error when calling DefaultApi->accession_order: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the accession_order_with_http_info variant
54
+
55
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
56
+
57
+ > <Array(nil, Integer, Hash)> accession_order_with_http_info(id, opts)
58
+
59
+ ```ruby
60
+ begin
61
+ # accession order by ULID
62
+ data, status_code, headers = api_instance.accession_order_with_http_info(id, opts)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => nil
66
+ rescue PrimaryConnectClient::ApiError => e
67
+ puts "Error when calling DefaultApi->accession_order_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **id** | **String** | Order ID | |
76
+ | **accession** | [**Accession**](Accession.md) | | [optional] |
77
+
78
+ ### Return type
79
+
80
+ nil (empty response body)
81
+
82
+ ### Authorization
83
+
84
+ [bearer_auth](../README.md#bearer_auth)
85
+
86
+ ### HTTP request headers
87
+
88
+ - **Content-Type**: application/json
89
+ - **Accept**: Not defined
90
+
91
+
92
+ ## accession_order_by_specimen_id
93
+
94
+ > accession_order_by_specimen_id(specimen_id, opts)
95
+
96
+ accession order by Specimen ID
97
+
98
+ ### Examples
99
+
100
+ ```ruby
101
+ require 'time'
102
+ require 'primary_connect_client'
103
+ # setup authorization
104
+ PrimaryConnectClient.configure do |config|
105
+ # Configure Bearer authorization: bearer_auth
106
+ config.access_token = 'YOUR_BEARER_TOKEN'
107
+ end
108
+
109
+ api_instance = PrimaryConnectClient::DefaultApi.new
110
+ specimen_id = 'PB123456' # String | Specimen ID
111
+ opts = {
112
+ accession: PrimaryConnectClient::Accession.new # Accession |
113
+ }
114
+
115
+ begin
116
+ # accession order by Specimen ID
117
+ api_instance.accession_order_by_specimen_id(specimen_id, opts)
118
+ rescue PrimaryConnectClient::ApiError => e
119
+ puts "Error when calling DefaultApi->accession_order_by_specimen_id: #{e}"
120
+ end
121
+ ```
122
+
123
+ #### Using the accession_order_by_specimen_id_with_http_info variant
124
+
125
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
126
+
127
+ > <Array(nil, Integer, Hash)> accession_order_by_specimen_id_with_http_info(specimen_id, opts)
128
+
129
+ ```ruby
130
+ begin
131
+ # accession order by Specimen ID
132
+ data, status_code, headers = api_instance.accession_order_by_specimen_id_with_http_info(specimen_id, opts)
133
+ p status_code # => 2xx
134
+ p headers # => { ... }
135
+ p data # => nil
136
+ rescue PrimaryConnectClient::ApiError => e
137
+ puts "Error when calling DefaultApi->accession_order_by_specimen_id_with_http_info: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Name | Type | Description | Notes |
144
+ | ---- | ---- | ----------- | ----- |
145
+ | **specimen_id** | **String** | Specimen ID | |
146
+ | **accession** | [**Accession**](Accession.md) | | [optional] |
147
+
148
+ ### Return type
149
+
150
+ nil (empty response body)
151
+
152
+ ### Authorization
153
+
154
+ [bearer_auth](../README.md#bearer_auth)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: application/json
159
+ - **Accept**: Not defined
160
+
161
+
18
162
  ## cancel_order
19
163
 
20
164
  > cancel_order(id)
@@ -81,6 +225,70 @@ nil (empty response body)
81
225
  - **Accept**: application/json
82
226
 
83
227
 
228
+ ## create_measurement
229
+
230
+ > <Ids> create_measurement
231
+
232
+ create Measurement
233
+
234
+ ### Examples
235
+
236
+ ```ruby
237
+ require 'time'
238
+ require 'primary_connect_client'
239
+ # setup authorization
240
+ PrimaryConnectClient.configure do |config|
241
+ # Configure Bearer authorization: bearer_auth
242
+ config.access_token = 'YOUR_BEARER_TOKEN'
243
+ end
244
+
245
+ api_instance = PrimaryConnectClient::DefaultApi.new
246
+
247
+ begin
248
+ # create Measurement
249
+ result = api_instance.create_measurement
250
+ p result
251
+ rescue PrimaryConnectClient::ApiError => e
252
+ puts "Error when calling DefaultApi->create_measurement: #{e}"
253
+ end
254
+ ```
255
+
256
+ #### Using the create_measurement_with_http_info variant
257
+
258
+ This returns an Array which contains the response data, status code and headers.
259
+
260
+ > <Array(<Ids>, Integer, Hash)> create_measurement_with_http_info
261
+
262
+ ```ruby
263
+ begin
264
+ # create Measurement
265
+ data, status_code, headers = api_instance.create_measurement_with_http_info
266
+ p status_code # => 2xx
267
+ p headers # => { ... }
268
+ p data # => <Ids>
269
+ rescue PrimaryConnectClient::ApiError => e
270
+ puts "Error when calling DefaultApi->create_measurement_with_http_info: #{e}"
271
+ end
272
+ ```
273
+
274
+ ### Parameters
275
+
276
+ This endpoint does not need any parameter.
277
+
278
+ ### Return type
279
+
280
+ [**Ids**](Ids.md)
281
+
282
+ ### Authorization
283
+
284
+ [bearer_auth](../README.md#bearer_auth)
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: Not defined
289
+ - **Accept**: application/json
290
+
291
+
84
292
  ## create_order
85
293
 
86
294
  > <OrderIds> create_order(opts)
@@ -287,6 +495,73 @@ nil (empty response body)
287
495
  - **Accept**: application/json
288
496
 
289
497
 
498
+ ## get_measurement
499
+
500
+ > <Measurement> get_measurement(id)
501
+
502
+ show measurement
503
+
504
+ ### Examples
505
+
506
+ ```ruby
507
+ require 'time'
508
+ require 'primary_connect_client'
509
+ # setup authorization
510
+ PrimaryConnectClient.configure do |config|
511
+ # Configure Bearer authorization: bearer_auth
512
+ config.access_token = 'YOUR_BEARER_TOKEN'
513
+ end
514
+
515
+ api_instance = PrimaryConnectClient::DefaultApi.new
516
+ id = '01FGD44Q6MVCG2VNSMC4ZMOTQM' # String | Measurement ID
517
+
518
+ begin
519
+ # show measurement
520
+ result = api_instance.get_measurement(id)
521
+ p result
522
+ rescue PrimaryConnectClient::ApiError => e
523
+ puts "Error when calling DefaultApi->get_measurement: #{e}"
524
+ end
525
+ ```
526
+
527
+ #### Using the get_measurement_with_http_info variant
528
+
529
+ This returns an Array which contains the response data, status code and headers.
530
+
531
+ > <Array(<Measurement>, Integer, Hash)> get_measurement_with_http_info(id)
532
+
533
+ ```ruby
534
+ begin
535
+ # show measurement
536
+ data, status_code, headers = api_instance.get_measurement_with_http_info(id)
537
+ p status_code # => 2xx
538
+ p headers # => { ... }
539
+ p data # => <Measurement>
540
+ rescue PrimaryConnectClient::ApiError => e
541
+ puts "Error when calling DefaultApi->get_measurement_with_http_info: #{e}"
542
+ end
543
+ ```
544
+
545
+ ### Parameters
546
+
547
+ | Name | Type | Description | Notes |
548
+ | ---- | ---- | ----------- | ----- |
549
+ | **id** | **String** | Measurement ID | |
550
+
551
+ ### Return type
552
+
553
+ [**Measurement**](Measurement.md)
554
+
555
+ ### Authorization
556
+
557
+ [bearer_auth](../README.md#bearer_auth)
558
+
559
+ ### HTTP request headers
560
+
561
+ - **Content-Type**: Not defined
562
+ - **Accept**: application/json
563
+
564
+
290
565
  ## get_order
291
566
 
292
567
  > <OrderWithEventErrors> get_order(id)
data/docs/Device.md CHANGED
@@ -4,13 +4,14 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **device_id** | [**Array&lt;Identifier&gt;**](Identifier.md) | Identifier used to identify the device | [optional] |
7
+ | **identifiers** | [**Array&lt;Identifier&gt;**](Identifier.md) | List of IDs and types that identify the device | [optional] |
8
8
  | **manufacturer** | **String** | | [optional] |
9
9
  | **model_number** | **String** | | [optional] |
10
10
  | **serial_number** | **String** | | [optional] |
11
11
  | **address** | [**Address**](Address.md) | | [optional] |
12
12
  | **location** | [**Location**](Location.md) | | [optional] |
13
13
  | **config** | **Object** | Arbitrary key/value pairs for Device specific use | [optional] |
14
+ | **model_name** | **String** | | [optional] |
14
15
 
15
16
  ## Example
16
17
 
@@ -18,13 +19,14 @@
18
19
  require 'primary_connect_client'
19
20
 
20
21
  instance = PrimaryConnectClient::Device.new(
21
- device_id: null,
22
+ identifiers: null,
22
23
  manufacturer: null,
23
24
  model_number: null,
24
25
  serial_number: null,
25
26
  address: null,
26
27
  location: null,
27
- config: {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;}
28
+ config: {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;},
29
+ model_name: null
28
30
  )
29
31
  ```
30
32
 
data/docs/Ids.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Ids
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **ids** | **Array&lt;String&gt;** | List of IDs | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Ids.new(
15
+ ids: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::Measurement
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **meta** | [**Meta**](Meta.md) | | [optional] |
8
+ | **subject** | [**Subject**](Subject.md) | | [optional] |
9
+ | **metrics** | [**Array&lt;Result&gt;**](Result.md) | List of result components | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::Measurement.new(
17
+ meta: null,
18
+ subject: null,
19
+ metrics: null
20
+ )
21
+ ```
22
+
data/docs/OrderOrder.md CHANGED
@@ -11,10 +11,12 @@
11
11
  | **collection_date_time** | **Time** | Timestamp when the specimen was collected (ISO-8601) | [optional] |
12
12
  | **collection_start_date_time** | **Time** | Timestamp when the specimen was collected (ISO-8601) | [optional] |
13
13
  | **completion_date_time** | **Time** | Timestamp when the results were composed into a report and released. (ISO-8601) | [optional] |
14
+ | **accession_date_time** | **Time** | Timestamp when the specimen was received by the destination. (ISO-8601) | [optional] |
14
15
  | **expiration_date** | **String** | YYYY-MM-DD, Date when the order becomes invalid | [optional] |
15
16
  | **specimen** | [**Specimen**](Specimen.md) | | [optional] |
16
17
  | **medication_administrations** | [**Array&lt;MedicationAdministration&gt;**](MedicationAdministration.md) | Array of medications administered to the subject | [optional] |
17
18
  | **procedure** | [**CodedValue**](CodedValue.md) | | [optional] |
19
+ | **procedures** | [**Array&lt;CodedValues&gt;**](CodedValues.md) | Array of Procedures ordered | [optional] |
18
20
  | **ordering_provider** | [**Provider**](Provider.md) | | [optional] |
19
21
  | **result_copy_providers** | [**Array&lt;Provider&gt;**](Provider.md) | Array of providers to be copied on the results | [optional] |
20
22
  | **ordering_facility** | [**OrderOrderOrderingFacility**](OrderOrderOrderingFacility.md) | | [optional] |
@@ -41,10 +43,12 @@ instance = PrimaryConnectClient::OrderOrder.new(
41
43
  collection_date_time: 2021-07-10T12:35:45-07:00,
42
44
  collection_start_date_time: 2021-07-10T12:35:45-07:00,
43
45
  completion_date_time: 2021-07-10T12:35:45-07:00,
46
+ accession_date_time: 2021-07-10T12:35:45-07:00,
44
47
  expiration_date: 2022-05-23,
45
48
  specimen: null,
46
49
  medication_administrations: null,
47
50
  procedure: null,
51
+ procedures: null,
48
52
  ordering_provider: null,
49
53
  result_copy_providers: null,
50
54
  ordering_facility: null,
data/docs/Result.md CHANGED
@@ -22,6 +22,7 @@
22
22
  | **observation_method** | [**CodedValue**](CodedValue.md) | | [optional] |
23
23
  | **producer_order_id** | **String** | Unique ID generated by resulting entity | [optional] |
24
24
  | **finding_value** | [**CodedValue**](CodedValue.md) | | [optional] |
25
+ | **resulting_device** | [**Device**](Device.md) | | [optional] |
25
26
 
26
27
  ## Example
27
28
 
@@ -46,7 +47,8 @@ instance = PrimaryConnectClient::Result.new(
46
47
  reference_range: null,
47
48
  observation_method: null,
48
49
  producer_order_id: 12345678,
49
- finding_value: null
50
+ finding_value: null,
51
+ resulting_device: null
50
52
  )
51
53
  ```
52
54
 
data/docs/V2Device.md CHANGED
@@ -4,13 +4,14 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **device_id** | [**Array&lt;Identifier&gt;**](Identifier.md) | Identifier used to identify the device | [optional] |
7
+ | **identifiers** | [**Array&lt;Identifier&gt;**](Identifier.md) | List of IDs and types that identify the device | [optional] |
8
8
  | **manufacturer** | **String** | | [optional] |
9
9
  | **model_number** | **String** | | [optional] |
10
10
  | **serial_number** | **String** | | [optional] |
11
11
  | **address** | [**Address**](Address.md) | | [optional] |
12
12
  | **location** | [**Location**](Location.md) | | [optional] |
13
13
  | **config** | **Object** | Arbitrary key/value pairs for Device specific use | [optional] |
14
+ | **model_name** | **String** | | [optional] |
14
15
 
15
16
  ## Example
16
17
 
@@ -18,13 +19,14 @@
18
19
  require 'primary_connect_client'
19
20
 
20
21
  instance = PrimaryConnectClient::V2Device.new(
21
- device_id: null,
22
+ identifiers: null,
22
23
  manufacturer: null,
23
24
  model_number: null,
24
25
  serial_number: null,
25
26
  address: null,
26
27
  location: null,
27
- config: {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;}
28
+ config: {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;},
29
+ model_name: null
28
30
  )
29
31
  ```
30
32