primary_connect_client 1.2.0 → 1.4.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +14 -7
  4. data/docs/Accession.md +18 -0
  5. data/docs/AccessionOrder.md +18 -0
  6. data/docs/DefaultApi.md +142 -0
  7. data/docs/Device.md +5 -3
  8. data/docs/Medication.md +1 -1
  9. data/docs/MedicationAdministration.md +2 -2
  10. data/docs/Meta.md +1 -1
  11. data/docs/OrderOrder.md +6 -4
  12. data/docs/OrderOrderDiagnoses.md +1 -1
  13. data/docs/Result.md +4 -2
  14. data/docs/V2Device.md +5 -3
  15. data/docs/V2Medication.md +1 -1
  16. data/docs/V2MedicationAdministration.md +2 -2
  17. data/docs/Visit.md +1 -1
  18. data/lib/primary_connect_client/api/default_api.rb +133 -0
  19. data/lib/primary_connect_client/models/accession.rb +218 -0
  20. data/lib/primary_connect_client/models/accession_order.rb +219 -0
  21. data/lib/primary_connect_client/models/demographics.rb +2 -2
  22. data/lib/primary_connect_client/models/device.rb +21 -12
  23. data/lib/primary_connect_client/models/medication.rb +1 -1
  24. data/lib/primary_connect_client/models/medication_administration.rb +2 -2
  25. data/lib/primary_connect_client/models/meta.rb +1 -0
  26. data/lib/primary_connect_client/models/order_order.rb +15 -5
  27. data/lib/primary_connect_client/models/order_order_diagnoses.rb +1 -1
  28. data/lib/primary_connect_client/models/result.rb +14 -5
  29. data/lib/primary_connect_client/models/v2_device.rb +21 -12
  30. data/lib/primary_connect_client/models/v2_medication.rb +1 -1
  31. data/lib/primary_connect_client/models/v2_medication_administration.rb +2 -2
  32. data/lib/primary_connect_client/models/visit.rb +1 -1
  33. data/lib/primary_connect_client/version.rb +1 -1
  34. data/lib/primary_connect_client.rb +2 -0
  35. data/primary_connect_client.gemspec +0 -1
  36. data/spec/api/default_api_spec.rb +24 -0
  37. data/spec/models/accession_order_spec.rb +34 -0
  38. data/spec/models/accession_spec.rb +34 -0
  39. data/spec/models/demographics_spec.rb +1 -1
  40. data/spec/models/device_spec.rb +7 -1
  41. data/spec/models/order_order_spec.rb +6 -0
  42. data/spec/models/result_spec.rb +6 -0
  43. data/spec/models/v2_device_spec.rb +7 -1
  44. metadata +19 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e97230d501669e4f2fdc73dc7a4193eac7f984816b2d7b577e55119b97543e2
4
- data.tar.gz: 92e1d11353a0250b67597a84209faf38154b71f613e2ef647ac294ab6e130297
3
+ metadata.gz: b3e08de0928a34d0409f7dd65334cb637d77eb9e4001cb459b235ee0d5be9a5e
4
+ data.tar.gz: ac8fe08f4b83126981effb4f5653f98ed321d55a68181ba67d65fcfe761920cd
5
5
  SHA512:
6
- metadata.gz: 702a5b8d2d4e29c106f8333ce0472619f86e02b6936bea117bf37fe97f9725f0b46287f29df739953c28997d5f8a3c070d89e981295b29026a47e1579d09b50e
7
- data.tar.gz: 732f778977db83a9bb8e90e36eee74831b17096923cb94a3192fa2c70255e7f2f70c4c4f3873a9c8f9b336e421eb5caf554c0176fe718a471cf97de9d1b46b39
6
+ metadata.gz: ef2fad30534aaef48ede26a3b6560e076450013fcee2de08d0aff70ba97ab386c66b12c834bc88272e816921c2078e03d32508ee9db98395469e99495b4d96a8
7
+ data.tar.gz: 258a04180cc8dfc4bf465436fc226044636b27ce7148c2ca1e127822293d47bf235ceed27f3dce82d91eb7f010d321cc23cca9223b19d5e8a89d4bd600e0f0e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.0
4
+
5
+ - Updated dependency on `primary_connect_proto` 0.15.0
6
+
7
+ ## 1.3.0
8
+
9
+ - Updated dependency on `primary_connect_proto` 0.13.0
10
+
3
11
  ## 1.2.0
4
12
 
5
13
  - Updated models with `primary_connect_proto` 0.12.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.2.0
10
+ - Package version: 1.4.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.2.0.gem
26
+ gem install ./primary_connect_client-1.4.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./primary_connect_client-1.2.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./primary_connect_client-1.4.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.2.0'
35
+ gem 'primary_connect_client', '~> 1.4.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,6 +83,8 @@ 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
84
89
  *PrimaryConnectClient::DefaultApi* | [**create_order**](docs/DefaultApi.md#create_order) | **POST** /api/v1/orders | create order
85
90
  *PrimaryConnectClient::DefaultApi* | [**create_result**](docs/DefaultApi.md#create_result) | **POST** /api/v1/orders/{order_id}/results | create result
@@ -93,6 +98,8 @@ Class | Method | HTTP request | Description
93
98
 
94
99
  ## Documentation for Models
95
100
 
101
+ - [PrimaryConnectClient::Accession](docs/Accession.md)
102
+ - [PrimaryConnectClient::AccessionOrder](docs/AccessionOrder.md)
96
103
  - [PrimaryConnectClient::Address](docs/Address.md)
97
104
  - [PrimaryConnectClient::CodedValue](docs/CodedValue.md)
98
105
  - [PrimaryConnectClient::Demographics](docs/Demographics.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,6 +4,8 @@ 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 |
8
10
  | [**create_order**](DefaultApi.md#create_order) | **POST** /api/v1/orders | create order |
9
11
  | [**create_result**](DefaultApi.md#create_result) | **POST** /api/v1/orders/{order_id}/results | create result |
@@ -15,6 +17,146 @@ All URIs are relative to *https://connect.primary.health*
15
17
  | [**update_order**](DefaultApi.md#update_order) | **PUT** /api/v1/orders/{id} | update order |
16
18
 
17
19
 
20
+ ## accession_order
21
+
22
+ > accession_order(id, opts)
23
+
24
+ accession order by ULID
25
+
26
+ ### Examples
27
+
28
+ ```ruby
29
+ require 'time'
30
+ require 'primary_connect_client'
31
+ # setup authorization
32
+ PrimaryConnectClient.configure do |config|
33
+ # Configure Bearer authorization: bearer_auth
34
+ config.access_token = 'YOUR_BEARER_TOKEN'
35
+ end
36
+
37
+ api_instance = PrimaryConnectClient::DefaultApi.new
38
+ id = '01FGD44Q6MVCG2VNSMC4ZMOTQM' # String | Order ID
39
+ opts = {
40
+ accession: PrimaryConnectClient::Accession.new # Accession |
41
+ }
42
+
43
+ begin
44
+ # accession order by ULID
45
+ api_instance.accession_order(id, opts)
46
+ rescue PrimaryConnectClient::ApiError => e
47
+ puts "Error when calling DefaultApi->accession_order: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the accession_order_with_http_info variant
52
+
53
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
54
+
55
+ > <Array(nil, Integer, Hash)> accession_order_with_http_info(id, opts)
56
+
57
+ ```ruby
58
+ begin
59
+ # accession order by ULID
60
+ data, status_code, headers = api_instance.accession_order_with_http_info(id, opts)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => nil
64
+ rescue PrimaryConnectClient::ApiError => e
65
+ puts "Error when calling DefaultApi->accession_order_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **id** | **String** | Order ID | |
74
+ | **accession** | [**Accession**](Accession.md) | | [optional] |
75
+
76
+ ### Return type
77
+
78
+ nil (empty response body)
79
+
80
+ ### Authorization
81
+
82
+ [bearer_auth](../README.md#bearer_auth)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: application/json
87
+ - **Accept**: Not defined
88
+
89
+
90
+ ## accession_order_by_specimen_id
91
+
92
+ > accession_order_by_specimen_id(specimen_id, opts)
93
+
94
+ accession order by Specimen ID
95
+
96
+ ### Examples
97
+
98
+ ```ruby
99
+ require 'time'
100
+ require 'primary_connect_client'
101
+ # setup authorization
102
+ PrimaryConnectClient.configure do |config|
103
+ # Configure Bearer authorization: bearer_auth
104
+ config.access_token = 'YOUR_BEARER_TOKEN'
105
+ end
106
+
107
+ api_instance = PrimaryConnectClient::DefaultApi.new
108
+ specimen_id = 'PB123456' # String | Specimen ID
109
+ opts = {
110
+ accession: PrimaryConnectClient::Accession.new # Accession |
111
+ }
112
+
113
+ begin
114
+ # accession order by Specimen ID
115
+ api_instance.accession_order_by_specimen_id(specimen_id, opts)
116
+ rescue PrimaryConnectClient::ApiError => e
117
+ puts "Error when calling DefaultApi->accession_order_by_specimen_id: #{e}"
118
+ end
119
+ ```
120
+
121
+ #### Using the accession_order_by_specimen_id_with_http_info variant
122
+
123
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
124
+
125
+ > <Array(nil, Integer, Hash)> accession_order_by_specimen_id_with_http_info(specimen_id, opts)
126
+
127
+ ```ruby
128
+ begin
129
+ # accession order by Specimen ID
130
+ data, status_code, headers = api_instance.accession_order_by_specimen_id_with_http_info(specimen_id, opts)
131
+ p status_code # => 2xx
132
+ p headers # => { ... }
133
+ p data # => nil
134
+ rescue PrimaryConnectClient::ApiError => e
135
+ puts "Error when calling DefaultApi->accession_order_by_specimen_id_with_http_info: #{e}"
136
+ end
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ | Name | Type | Description | Notes |
142
+ | ---- | ---- | ----------- | ----- |
143
+ | **specimen_id** | **String** | Specimen ID | |
144
+ | **accession** | [**Accession**](Accession.md) | | [optional] |
145
+
146
+ ### Return type
147
+
148
+ nil (empty response body)
149
+
150
+ ### Authorization
151
+
152
+ [bearer_auth](../README.md#bearer_auth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: application/json
157
+ - **Accept**: Not defined
158
+
159
+
18
160
  ## cancel_order
19
161
 
20
162
  > cancel_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/Medication.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **lot_number** | **String** | Lot number product component | [optional] |
8
- | **expiration_date** | **Time** | Product expiration date | [optional] |
8
+ | **expiration_date** | **Time** | Product expiration date (ISO-8601) | [optional] |
9
9
  | **manufacturer** | [**CodedValue**](CodedValue.md) | | [optional] |
10
10
 
11
11
  ## Example
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **identifier** | [**Identifier**](Identifier.md) | | [optional] |
8
8
  | **administration_codes** | [**Array&lt;CodedValue&gt;**](CodedValue.md) | Codes for the medication administration | [optional] |
9
- | **administration_start_time** | **Time** | Administration start date of medication | [optional] |
10
- | **administration_end_time** | **Time** | Administration end date of medication | [optional] |
9
+ | **administration_start_time** | **Time** | Administration start date of medication (ISO-8601) | [optional] |
10
+ | **administration_end_time** | **Time** | Administration end date of medication (ISO-8601) | [optional] |
11
11
  | **medication** | [**Medication**](Medication.md) | | [optional] |
12
12
  | **dosage** | [**Dosage**](Dosage.md) | | [optional] |
13
13
  | **refusal_reason** | [**CodedValue**](CodedValue.md) | | [optional] |
data/docs/Meta.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **event_type** | **String** | | [optional] |
8
- | **event_date_and_time** | **Time** | | [optional] |
8
+ | **event_date_and_time** | **Time** | ISO-8601 | [optional] |
9
9
  | **test** | **Boolean** | | [optional] |
10
10
  | **source** | [**MetaSource**](MetaSource.md) | | [optional] |
11
11
  | **destinations** | [**Array&lt;MetaDestinations&gt;**](MetaDestinations.md) | | [optional] |
data/docs/OrderOrder.md CHANGED
@@ -7,10 +7,11 @@
7
7
  | **id** | **String** | ID of the order assigned by the placing system | [optional] |
8
8
  | **application_order_id** | **String** | ID assigned by the application fulfilling the order | [optional] |
9
9
  | **status** | **String** | The status of an order. | [optional] |
10
- | **transaction_date_time** | **Time** | Timestamp when the order was placed | [optional] |
11
- | **collection_date_time** | **Time** | Timestamp when the specimen was collected | [optional] |
12
- | **collection_start_date_time** | **Time** | Timestamp when the specimen was collected | [optional] |
13
- | **completion_date_time** | **Time** | Timestamp when the results were composed into a report and released. | [optional] |
10
+ | **transaction_date_time** | **Time** | Timestamp when the order was placed (ISO-8601) | [optional] |
11
+ | **collection_date_time** | **Time** | Timestamp when the specimen was collected (ISO-8601) | [optional] |
12
+ | **collection_start_date_time** | **Time** | Timestamp when the specimen was collected (ISO-8601) | [optional] |
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] |
@@ -41,6 +42,7 @@ instance = PrimaryConnectClient::OrderOrder.new(
41
42
  collection_date_time: 2021-07-10T12:35:45-07:00,
42
43
  collection_start_date_time: 2021-07-10T12:35:45-07:00,
43
44
  completion_date_time: 2021-07-10T12:35:45-07:00,
45
+ accession_date_time: 2021-07-10T12:35:45-07:00,
44
46
  expiration_date: 2022-05-23,
45
47
  specimen: null,
46
48
  medication_administrations: null,
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **code** | [**CodedValue**](CodedValue.md) | | [optional] |
8
8
  | **type** | **String** | Type of the diagnosis | [optional] |
9
- | **documented_date_time** | **Time** | Timestamp of the the diagnosis was documented | [optional] |
9
+ | **documented_date_time** | **Time** | Timestamp of the the diagnosis was documented (ISO-8601) | [optional] |
10
10
 
11
11
  ## Example
12
12
 
data/docs/Result.md CHANGED
@@ -9,7 +9,7 @@
9
9
  | **specimen** | [**Specimen**](Specimen.md) | | [optional] |
10
10
  | **value** | **String** | Value of the result component | [optional] |
11
11
  | **value_type** | **String** | Data type for the result value | [optional] |
12
- | **completion_date_time** | **Time** | Timestamp when the results were composed into a report and released. | [optional] |
12
+ | **completion_date_time** | **Time** | Timestamp when the results were composed into a report and released (ISO-8601) | [optional] |
13
13
  | **report** | [**ResultReport**](ResultReport.md) | | [optional] |
14
14
  | **units** | **String** | Units of the result | [optional] |
15
15
  | **notes** | **Array&lt;String&gt;** | Notes about the result component/observation | [optional] |
@@ -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
 
data/docs/V2Medication.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **lot_number** | **String** | Lot number product component | [optional] |
8
- | **expiration_date** | **Time** | Product expiration date | [optional] |
8
+ | **expiration_date** | **Time** | Product expiration date (ISO-8601) | [optional] |
9
9
  | **manufacturer** | [**CodedValue**](CodedValue.md) | | [optional] |
10
10
 
11
11
  ## Example
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **identifier** | [**Identifier**](Identifier.md) | | [optional] |
8
8
  | **administration_codes** | [**Array&lt;CodedValue&gt;**](CodedValue.md) | Codes for the medication administration | [optional] |
9
- | **administration_start_time** | **Time** | Administration start date of medication | [optional] |
10
- | **administration_end_time** | **Time** | Administration end date of medication | [optional] |
9
+ | **administration_start_time** | **Time** | Administration start date of medication (ISO-8601) | [optional] |
10
+ | **administration_end_time** | **Time** | Administration end date of medication (ISO-8601) | [optional] |
11
11
  | **medication** | [**Medication**](Medication.md) | | [optional] |
12
12
  | **dosage** | [**Dosage**](Dosage.md) | | [optional] |
13
13
  | **refusal_reason** | [**CodedValue**](CodedValue.md) | | [optional] |
data/docs/Visit.md CHANGED
@@ -7,7 +7,7 @@
7
7
  | **visit_number** | **String** | Unique ID of a single visit | [optional] |
8
8
  | **account_number** | **String** | An ID that can span several visits often related to the same issue - pregnancy, surgeries, research study, etc. | [optional] |
9
9
  | **patient_class** | **String** | Patient class is used in many EHRs to determine where to put the patient. E.g. Inpatient, Outpatient, Emergency | [optional] |
10
- | **visit_date_time** | **Time** | Timestamp of visit or the arrival time of the visit or admission. | [optional] |
10
+ | **visit_date_time** | **Time** | Timestamp of visit or the arrival time of the visit or admission (ISO-8601) | [optional] |
11
11
  | **attending_provider** | [**Provider**](Provider.md) | | [optional] |
12
12
  | **consulting_provider** | [**Provider**](Provider.md) | | [optional] |
13
13
  | **referring_provider** | [**Provider**](Provider.md) | | [optional] |
@@ -19,6 +19,139 @@ module PrimaryConnectClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # accession order by ULID
23
+ # @param id [String] Order ID
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Accession] :accession
26
+ # @return [nil]
27
+ def accession_order(id, opts = {})
28
+ accession_order_with_http_info(id, opts)
29
+ nil
30
+ end
31
+
32
+ # accession order by ULID
33
+ # @param id [String] Order ID
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [Accession] :accession
36
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
+ def accession_order_with_http_info(id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DefaultApi.accession_order ...'
40
+ end
41
+ # verify the required parameter 'id' is set
42
+ if @api_client.config.client_side_validation && id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.accession_order"
44
+ end
45
+ # resource path
46
+ local_var_path = '/api/v1/orders/{id}/accession'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Content-Type'
54
+ content_type = @api_client.select_header_content_type(['application/json'])
55
+ if !content_type.nil?
56
+ header_params['Content-Type'] = content_type
57
+ end
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'accession'])
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type]
67
+
68
+ # auth_names
69
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"DefaultApi.accession_order",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: DefaultApi#accession_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # accession order by Specimen ID
89
+ # @param specimen_id [String] Specimen ID
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [Accession] :accession
92
+ # @return [nil]
93
+ def accession_order_by_specimen_id(specimen_id, opts = {})
94
+ accession_order_by_specimen_id_with_http_info(specimen_id, opts)
95
+ nil
96
+ end
97
+
98
+ # accession order by Specimen ID
99
+ # @param specimen_id [String] Specimen ID
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [Accession] :accession
102
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
103
+ def accession_order_by_specimen_id_with_http_info(specimen_id, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: DefaultApi.accession_order_by_specimen_id ...'
106
+ end
107
+ # verify the required parameter 'specimen_id' is set
108
+ if @api_client.config.client_side_validation && specimen_id.nil?
109
+ fail ArgumentError, "Missing the required parameter 'specimen_id' when calling DefaultApi.accession_order_by_specimen_id"
110
+ end
111
+ # resource path
112
+ local_var_path = '/api/v1/orders/accession'
113
+
114
+ # query parameters
115
+ query_params = opts[:query_params] || {}
116
+ query_params[:'specimen_id'] = specimen_id
117
+
118
+ # header parameters
119
+ header_params = opts[:header_params] || {}
120
+ # HTTP header 'Content-Type'
121
+ content_type = @api_client.select_header_content_type(['application/json'])
122
+ if !content_type.nil?
123
+ header_params['Content-Type'] = content_type
124
+ end
125
+
126
+ # form parameters
127
+ form_params = opts[:form_params] || {}
128
+
129
+ # http body (model)
130
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'accession'])
131
+
132
+ # return_type
133
+ return_type = opts[:debug_return_type]
134
+
135
+ # auth_names
136
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
137
+
138
+ new_options = opts.merge(
139
+ :operation => :"DefaultApi.accession_order_by_specimen_id",
140
+ :header_params => header_params,
141
+ :query_params => query_params,
142
+ :form_params => form_params,
143
+ :body => post_body,
144
+ :auth_names => auth_names,
145
+ :return_type => return_type
146
+ )
147
+
148
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "API called: DefaultApi#accession_order_by_specimen_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ end
152
+ return data, status_code, headers
153
+ end
154
+
22
155
  # cancel order
23
156
  # @param id [String] Order ID
24
157
  # @param [Hash] opts the optional parameters