primary_connect_client 1.1.0 → 1.2.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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -1
  3. data/README.md +15 -4
  4. data/docs/DefaultApi.md +5 -3
  5. data/docs/Device.md +30 -0
  6. data/docs/Dosage.md +30 -0
  7. data/docs/Location.md +3 -1
  8. data/docs/Medication.md +22 -0
  9. data/docs/MedicationAdministration.md +32 -0
  10. data/docs/Order.md +2 -0
  11. data/docs/OrderOrder.md +4 -0
  12. data/docs/Subject.md +49 -0
  13. data/docs/SubjectOneOf.md +18 -0
  14. data/docs/SubjectOneOf1.md +18 -0
  15. data/docs/V2Device.md +30 -0
  16. data/docs/V2Dosage.md +30 -0
  17. data/docs/V2Medication.md +22 -0
  18. data/docs/V2MedicationAdministration.md +32 -0
  19. data/lib/primary_connect_client/api/default_api.rb +6 -3
  20. data/lib/primary_connect_client/models/device.rb +276 -0
  21. data/lib/primary_connect_client/models/dosage.rb +275 -0
  22. data/lib/primary_connect_client/models/location.rb +13 -4
  23. data/lib/primary_connect_client/models/medication.rb +238 -0
  24. data/lib/primary_connect_client/models/medication_administration.rb +286 -0
  25. data/lib/primary_connect_client/models/order.rb +11 -1
  26. data/lib/primary_connect_client/models/order_order.rb +25 -3
  27. data/lib/primary_connect_client/models/subject.rb +105 -0
  28. data/lib/primary_connect_client/models/subject_one_of.rb +218 -0
  29. data/lib/primary_connect_client/models/subject_one_of1.rb +218 -0
  30. data/lib/primary_connect_client/models/v2_device.rb +276 -0
  31. data/lib/primary_connect_client/models/v2_dosage.rb +275 -0
  32. data/lib/primary_connect_client/models/v2_medication.rb +238 -0
  33. data/lib/primary_connect_client/models/v2_medication_administration.rb +286 -0
  34. data/lib/primary_connect_client/version.rb +1 -1
  35. data/lib/primary_connect_client.rb +11 -0
  36. data/primary_connect_client.gemspec +1 -0
  37. data/spec/api/default_api_spec.rb +2 -1
  38. data/spec/models/device_spec.rb +70 -0
  39. data/spec/models/dosage_spec.rb +70 -0
  40. data/spec/models/location_spec.rb +6 -0
  41. data/spec/models/medication_administration_spec.rb +76 -0
  42. data/spec/models/medication_spec.rb +46 -0
  43. data/spec/models/order_order_spec.rb +13 -1
  44. data/spec/models/order_spec.rb +6 -0
  45. data/spec/models/subject_one_of1_spec.rb +34 -0
  46. data/spec/models/subject_one_of_spec.rb +34 -0
  47. data/spec/models/subject_spec.rb +31 -0
  48. data/spec/models/v2_device_spec.rb +70 -0
  49. data/spec/models/v2_dosage_spec.rb +70 -0
  50. data/spec/models/v2_medication_administration_spec.rb +76 -0
  51. data/spec/models/v2_medication_spec.rb +46 -0
  52. metadata +67 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e0055d5e48142beffc8ab7495ddc20d455c2f9c4b0dbccb34ba3e71abd7c752
4
- data.tar.gz: 496b7bc07a672a590c32e7ef4f54ffe545ebf4a300d557a264fd217ccfbdce78
3
+ metadata.gz: 6e97230d501669e4f2fdc73dc7a4193eac7f984816b2d7b577e55119b97543e2
4
+ data.tar.gz: 92e1d11353a0250b67597a84209faf38154b71f613e2ef647ac294ab6e130297
5
5
  SHA512:
6
- metadata.gz: b4e3c8339be5d814559b62ed300dd503b6ae7503334b86bf3dbf57399679b3c45193fc3745413f7c93e8a8f82150f7608e180206decd9dfafe42f230a4465dc0
7
- data.tar.gz: 588ccf17788e6ead3147345242a419f066f96634e43756cba7dabbc305f2d44088231f8f1e9b2cc5cdbb56cee124ff12a7ff4f31d7638d119f8c9c33929296a8
6
+ metadata.gz: 702a5b8d2d4e29c106f8333ce0472619f86e02b6936bea117bf37fe97f9725f0b46287f29df739953c28997d5f8a3c070d89e981295b29026a47e1579d09b50e
7
+ data.tar.gz: 732f778977db83a9bb8e90e36eee74831b17096923cb94a3192fa2c70255e7f2f70c4c4f3873a9c8f9b336e421eb5caf554c0176fe718a471cf97de9d1b46b39
data/CHANGELOG.md CHANGED
@@ -1,8 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.2.0
4
+
5
+ - Updated models with `primary_connect_proto` 0.12.0
6
+ - Restored strict dependency on `primary_connect_proto` due to
7
+ models having to match the proto definition
8
+
3
9
  ## 1.1.0
4
10
 
5
- - Added cancel_order
11
+ - Added `cancel_order`
6
12
 
7
13
  ## 1.0.1
8
14
 
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.1.0
10
+ - Package version: 1.2.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.1.0.gem
26
+ gem install ./primary_connect_client-1.2.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./primary_connect_client-1.1.0.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./primary_connect_client-1.2.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.1.0'
35
+ gem 'primary_connect_client', '~> 1.2.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -96,11 +96,15 @@ Class | Method | HTTP request | Description
96
96
  - [PrimaryConnectClient::Address](docs/Address.md)
97
97
  - [PrimaryConnectClient::CodedValue](docs/CodedValue.md)
98
98
  - [PrimaryConnectClient::Demographics](docs/Demographics.md)
99
+ - [PrimaryConnectClient::Device](docs/Device.md)
100
+ - [PrimaryConnectClient::Dosage](docs/Dosage.md)
99
101
  - [PrimaryConnectClient::Error](docs/Error.md)
100
102
  - [PrimaryConnectClient::Event](docs/Event.md)
101
103
  - [PrimaryConnectClient::Events](docs/Events.md)
102
104
  - [PrimaryConnectClient::Identifier](docs/Identifier.md)
103
105
  - [PrimaryConnectClient::Location](docs/Location.md)
106
+ - [PrimaryConnectClient::Medication](docs/Medication.md)
107
+ - [PrimaryConnectClient::MedicationAdministration](docs/MedicationAdministration.md)
104
108
  - [PrimaryConnectClient::Meta](docs/Meta.md)
105
109
  - [PrimaryConnectClient::MetaDestinations](docs/MetaDestinations.md)
106
110
  - [PrimaryConnectClient::MetaMessage](docs/MetaMessage.md)
@@ -126,6 +130,13 @@ Class | Method | HTTP request | Description
126
130
  - [PrimaryConnectClient::ResultReport](docs/ResultReport.md)
127
131
  - [PrimaryConnectClient::Results](docs/Results.md)
128
132
  - [PrimaryConnectClient::Specimen](docs/Specimen.md)
133
+ - [PrimaryConnectClient::Subject](docs/Subject.md)
134
+ - [PrimaryConnectClient::SubjectOneOf](docs/SubjectOneOf.md)
135
+ - [PrimaryConnectClient::SubjectOneOf1](docs/SubjectOneOf1.md)
136
+ - [PrimaryConnectClient::V2Device](docs/V2Device.md)
137
+ - [PrimaryConnectClient::V2Dosage](docs/V2Dosage.md)
138
+ - [PrimaryConnectClient::V2Medication](docs/V2Medication.md)
139
+ - [PrimaryConnectClient::V2MedicationAdministration](docs/V2MedicationAdministration.md)
129
140
  - [PrimaryConnectClient::Visit](docs/Visit.md)
130
141
  - [PrimaryConnectClient::VisitCompany](docs/VisitCompany.md)
131
142
  - [PrimaryConnectClient::VisitGuarantor](docs/VisitGuarantor.md)
data/docs/DefaultApi.md CHANGED
@@ -170,7 +170,7 @@ end
170
170
  api_instance = PrimaryConnectClient::DefaultApi.new
171
171
  order_id = '01FGD44Q6MVCG2VNSMCVX5ZCT6' # String | Order id
172
172
  opts = {
173
- result: PrimaryConnectClient::Result.new # Result |
173
+ results: PrimaryConnectClient::Results.new # Results |
174
174
  }
175
175
 
176
176
  begin
@@ -205,7 +205,7 @@ end
205
205
  | Name | Type | Description | Notes |
206
206
  | ---- | ---- | ----------- | ----- |
207
207
  | **order_id** | **String** | Order id | |
208
- | **result** | [**Result**](Result.md) | | [optional] |
208
+ | **results** | [**Results**](Results.md) | | [optional] |
209
209
 
210
210
  ### Return type
211
211
 
@@ -445,7 +445,8 @@ end
445
445
  api_instance = PrimaryConnectClient::DefaultApi.new
446
446
  opts = {
447
447
  last_order_id: '01FGD30NTPNNZE9MKGMWZGHGTZ', # String | Paginate orders with order id. 26 character, sortable id.
448
- state: 'new,resulted' # String | Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
448
+ state: 'new,resulted', # String | Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
449
+ specimen_id: 'PB1234567' # String | Find an order by specimen/accession id. If found, will redirect to show order endpoint.
449
450
  }
450
451
 
451
452
  begin
@@ -481,6 +482,7 @@ end
481
482
  | ---- | ---- | ----------- | ----- |
482
483
  | **last_order_id** | **String** | Paginate orders with order id. 26 character, sortable id. | [optional] |
483
484
  | **state** | **String** | Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable] | [optional] |
485
+ | **specimen_id** | **String** | Find an order by specimen/accession id. If found, will redirect to show order endpoint. | [optional] |
484
486
 
485
487
  ### Return type
486
488
 
data/docs/Device.md ADDED
@@ -0,0 +1,30 @@
1
+ # PrimaryConnectClient::Device
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **device_id** | [**Array<Identifier>**](Identifier.md) | Identifier used to identify the device | [optional] |
8
+ | **manufacturer** | **String** | | [optional] |
9
+ | **model_number** | **String** | | [optional] |
10
+ | **serial_number** | **String** | | [optional] |
11
+ | **address** | [**Address**](Address.md) | | [optional] |
12
+ | **location** | [**Location**](Location.md) | | [optional] |
13
+ | **config** | **Object** | Arbitrary key/value pairs for Device specific use | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'primary_connect_client'
19
+
20
+ instance = PrimaryConnectClient::Device.new(
21
+ device_id: null,
22
+ manufacturer: null,
23
+ model_number: null,
24
+ serial_number: null,
25
+ address: null,
26
+ location: null,
27
+ config: {"key1":"value1","key2":"value2"}
28
+ )
29
+ ```
30
+
data/docs/Dosage.md ADDED
@@ -0,0 +1,30 @@
1
+ # PrimaryConnectClient::Dosage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **site** | [**CodedValue**](CodedValue.md) | | [optional] |
8
+ | **route** | [**CodedValue**](CodedValue.md) | | [optional] |
9
+ | **method** | [**CodedValue**](CodedValue.md) | | [optional] |
10
+ | **dose** | **String** | Amount of medication per dose | [optional] |
11
+ | **units** | [**CodedValue**](CodedValue.md) | | [optional] |
12
+ | **series_number** | **String** | Dose number administered within series_recommended | [optional] |
13
+ | **series_recommended** | **String** | Number of recommended doses in a prescribed series | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'primary_connect_client'
19
+
20
+ instance = PrimaryConnectClient::Dosage.new(
21
+ site: null,
22
+ route: null,
23
+ method: null,
24
+ dose: null,
25
+ units: null,
26
+ series_number: null,
27
+ series_recommended: null
28
+ )
29
+ ```
30
+
data/docs/Location.md CHANGED
@@ -9,6 +9,7 @@
9
9
  | **department** | **String** | | [optional] |
10
10
  | **room** | **String** | | [optional] |
11
11
  | **bed** | **String** | | [optional] |
12
+ | **floor** | **String** | | [optional] |
12
13
 
13
14
  ## Example
14
15
 
@@ -20,7 +21,8 @@ instance = PrimaryConnectClient::Location.new(
20
21
  facility: Community Hospital,
21
22
  department: null,
22
23
  room: 136,
23
- bed: B
24
+ bed: B,
25
+ floor: 10
24
26
  )
25
27
  ```
26
28
 
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::Medication
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **lot_number** | **String** | Lot number product component | [optional] |
8
+ | **expiration_date** | **Time** | Product expiration date | [optional] |
9
+ | **manufacturer** | [**CodedValue**](CodedValue.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::Medication.new(
17
+ lot_number: null,
18
+ expiration_date: 2021-07-10T12:35:45-07:00,
19
+ manufacturer: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,32 @@
1
+ # PrimaryConnectClient::MedicationAdministration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **identifier** | [**Identifier**](Identifier.md) | | [optional] |
8
+ | **administration_codes** | [**Array<CodedValue>**](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] |
11
+ | **medication** | [**Medication**](Medication.md) | | [optional] |
12
+ | **dosage** | [**Dosage**](Dosage.md) | | [optional] |
13
+ | **refusal_reason** | [**CodedValue**](CodedValue.md) | | [optional] |
14
+ | **administering_provider** | [**Provider**](Provider.md) | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'primary_connect_client'
20
+
21
+ instance = PrimaryConnectClient::MedicationAdministration.new(
22
+ identifier: null,
23
+ administration_codes: null,
24
+ administration_start_time: 2021-07-10T12:35:45-07:00,
25
+ administration_end_time: 2021-07-10T12:35:45-07:00,
26
+ medication: null,
27
+ dosage: null,
28
+ refusal_reason: null,
29
+ administering_provider: null
30
+ )
31
+ ```
32
+
data/docs/Order.md CHANGED
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **patient** | [**Patient**](Patient.md) | | [optional] |
8
+ | **subject** | [**Subject**](Subject.md) | | [optional] |
8
9
  | **visit** | [**Visit**](Visit.md) | | [optional] |
9
10
  | **meta** | [**Meta**](Meta.md) | | [optional] |
10
11
  | **order** | [**OrderOrder**](OrderOrder.md) | | [optional] |
@@ -16,6 +17,7 @@ require 'primary_connect_client'
16
17
 
17
18
  instance = PrimaryConnectClient::Order.new(
18
19
  patient: null,
20
+ subject: null,
19
21
  visit: null,
20
22
  meta: null,
21
23
  order: null
data/docs/OrderOrder.md CHANGED
@@ -9,9 +9,11 @@
9
9
  | **status** | **String** | The status of an order. | [optional] |
10
10
  | **transaction_date_time** | **Time** | Timestamp when the order was placed | [optional] |
11
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] |
12
13
  | **completion_date_time** | **Time** | Timestamp when the results were composed into a report and released. | [optional] |
13
14
  | **expiration_date** | **String** | YYYY-MM-DD, Date when the order becomes invalid | [optional] |
14
15
  | **specimen** | [**Specimen**](Specimen.md) | | [optional] |
16
+ | **medication_administrations** | [**Array<MedicationAdministration>**](MedicationAdministration.md) | Array of medications administered to the subject | [optional] |
15
17
  | **procedure** | [**CodedValue**](CodedValue.md) | | [optional] |
16
18
  | **ordering_provider** | [**Provider**](Provider.md) | | [optional] |
17
19
  | **result_copy_providers** | [**Array<Provider>**](Provider.md) | Array of providers to be copied on the results | [optional] |
@@ -37,9 +39,11 @@ instance = PrimaryConnectClient::OrderOrder.new(
37
39
  status: null,
38
40
  transaction_date_time: 2021-07-10T12:35:45-07:00,
39
41
  collection_date_time: 2021-07-10T12:35:45-07:00,
42
+ collection_start_date_time: 2021-07-10T12:35:45-07:00,
40
43
  completion_date_time: 2021-07-10T12:35:45-07:00,
41
44
  expiration_date: 2022-05-23,
42
45
  specimen: null,
46
+ medication_administrations: null,
43
47
  procedure: null,
44
48
  ordering_provider: null,
45
49
  result_copy_providers: null,
data/docs/Subject.md ADDED
@@ -0,0 +1,49 @@
1
+ # PrimaryConnectClient::Subject
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ PrimaryConnectClient::Subject.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'SubjectOneOf',
18
+ # :'SubjectOneOf1'
19
+ # ]
20
+ ```
21
+
22
+ ### build
23
+
24
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
25
+
26
+ #### Example
27
+
28
+ ```ruby
29
+ require 'primary_connect_client'
30
+
31
+ PrimaryConnectClient::Subject.build(data)
32
+ # => #<SubjectOneOf:0x00007fdd4aab02a0>
33
+
34
+ PrimaryConnectClient::Subject.build(data_that_doesnt_match)
35
+ # => nil
36
+ ```
37
+
38
+ #### Parameters
39
+
40
+ | Name | Type | Description |
41
+ | ---- | ---- | ----------- |
42
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
43
+
44
+ #### Return type
45
+
46
+ - `SubjectOneOf`
47
+ - `SubjectOneOf1`
48
+ - `nil` (if no type matches)
49
+
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::SubjectOneOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **patient** | [**Patient**](Patient.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::SubjectOneOf.new(
15
+ patient: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::SubjectOneOf1
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **device** | [**Device**](Device.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::SubjectOneOf1.new(
15
+ device: null
16
+ )
17
+ ```
18
+
data/docs/V2Device.md ADDED
@@ -0,0 +1,30 @@
1
+ # PrimaryConnectClient::V2Device
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **device_id** | [**Array&lt;Identifier&gt;**](Identifier.md) | Identifier used to identify the device | [optional] |
8
+ | **manufacturer** | **String** | | [optional] |
9
+ | **model_number** | **String** | | [optional] |
10
+ | **serial_number** | **String** | | [optional] |
11
+ | **address** | [**Address**](Address.md) | | [optional] |
12
+ | **location** | [**Location**](Location.md) | | [optional] |
13
+ | **config** | **Object** | Arbitrary key/value pairs for Device specific use | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'primary_connect_client'
19
+
20
+ instance = PrimaryConnectClient::V2Device.new(
21
+ device_id: null,
22
+ manufacturer: null,
23
+ model_number: null,
24
+ serial_number: null,
25
+ address: null,
26
+ location: null,
27
+ config: {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;}
28
+ )
29
+ ```
30
+
data/docs/V2Dosage.md ADDED
@@ -0,0 +1,30 @@
1
+ # PrimaryConnectClient::V2Dosage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **site** | [**CodedValue**](CodedValue.md) | | [optional] |
8
+ | **route** | [**CodedValue**](CodedValue.md) | | [optional] |
9
+ | **method** | [**CodedValue**](CodedValue.md) | | [optional] |
10
+ | **dose** | **String** | Amount of medication per dose | [optional] |
11
+ | **units** | [**CodedValue**](CodedValue.md) | | [optional] |
12
+ | **series_number** | **String** | Dose number administered within series_recommended | [optional] |
13
+ | **series_recommended** | **String** | Number of recommended doses in a prescribed series | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'primary_connect_client'
19
+
20
+ instance = PrimaryConnectClient::V2Dosage.new(
21
+ site: null,
22
+ route: null,
23
+ method: null,
24
+ dose: null,
25
+ units: null,
26
+ series_number: null,
27
+ series_recommended: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::V2Medication
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **lot_number** | **String** | Lot number product component | [optional] |
8
+ | **expiration_date** | **Time** | Product expiration date | [optional] |
9
+ | **manufacturer** | [**CodedValue**](CodedValue.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::V2Medication.new(
17
+ lot_number: null,
18
+ expiration_date: 2021-07-10T12:35:45-07:00,
19
+ manufacturer: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,32 @@
1
+ # PrimaryConnectClient::V2MedicationAdministration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **identifier** | [**Identifier**](Identifier.md) | | [optional] |
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] |
11
+ | **medication** | [**Medication**](Medication.md) | | [optional] |
12
+ | **dosage** | [**Dosage**](Dosage.md) | | [optional] |
13
+ | **refusal_reason** | [**CodedValue**](CodedValue.md) | | [optional] |
14
+ | **administering_provider** | [**Provider**](Provider.md) | | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'primary_connect_client'
20
+
21
+ instance = PrimaryConnectClient::V2MedicationAdministration.new(
22
+ identifier: null,
23
+ administration_codes: null,
24
+ administration_start_time: 2021-07-10T12:35:45-07:00,
25
+ administration_end_time: 2021-07-10T12:35:45-07:00,
26
+ medication: null,
27
+ dosage: null,
28
+ refusal_reason: null,
29
+ administering_provider: null
30
+ )
31
+ ```
32
+
@@ -145,7 +145,7 @@ module PrimaryConnectClient
145
145
  # create result
146
146
  # @param order_id [String] Order id
147
147
  # @param [Hash] opts the optional parameters
148
- # @option opts [Result] :result
148
+ # @option opts [Results] :results
149
149
  # @return [ResultIds]
150
150
  def create_result(order_id, opts = {})
151
151
  data, _status_code, _headers = create_result_with_http_info(order_id, opts)
@@ -155,7 +155,7 @@ module PrimaryConnectClient
155
155
  # create result
156
156
  # @param order_id [String] Order id
157
157
  # @param [Hash] opts the optional parameters
158
- # @option opts [Result] :result
158
+ # @option opts [Results] :results
159
159
  # @return [Array<(ResultIds, Integer, Hash)>] ResultIds data, response status code and response headers
160
160
  def create_result_with_http_info(order_id, opts = {})
161
161
  if @api_client.config.debugging
@@ -185,7 +185,7 @@ module PrimaryConnectClient
185
185
  form_params = opts[:form_params] || {}
186
186
 
187
187
  # http body (model)
188
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'result'])
188
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'results'])
189
189
 
190
190
  # return_type
191
191
  return_type = opts[:debug_return_type] || 'ResultIds'
@@ -397,6 +397,7 @@ module PrimaryConnectClient
397
397
  # @param [Hash] opts the optional parameters
398
398
  # @option opts [String] :last_order_id Paginate orders with order id. 26 character, sortable id.
399
399
  # @option opts [String] :state Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
400
+ # @option opts [String] :specimen_id Find an order by specimen/accession id. If found, will redirect to show order endpoint.
400
401
  # @return [Orders]
401
402
  def list_orders(opts = {})
402
403
  data, _status_code, _headers = list_orders_with_http_info(opts)
@@ -407,6 +408,7 @@ module PrimaryConnectClient
407
408
  # @param [Hash] opts the optional parameters
408
409
  # @option opts [String] :last_order_id Paginate orders with order id. 26 character, sortable id.
409
410
  # @option opts [String] :state Filter orders by state, comma delimited.[new, updated, delivered, processing, resulted, errored, canceled, unprocessable]
411
+ # @option opts [String] :specimen_id Find an order by specimen/accession id. If found, will redirect to show order endpoint.
410
412
  # @return [Array<(Orders, Integer, Hash)>] Orders data, response status code and response headers
411
413
  def list_orders_with_http_info(opts = {})
412
414
  if @api_client.config.debugging
@@ -419,6 +421,7 @@ module PrimaryConnectClient
419
421
  query_params = opts[:query_params] || {}
420
422
  query_params[:'last_order_id'] = opts[:'last_order_id'] if !opts[:'last_order_id'].nil?
421
423
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
424
+ query_params[:'specimen_id'] = opts[:'specimen_id'] if !opts[:'specimen_id'].nil?
422
425
 
423
426
  # header parameters
424
427
  header_params = opts[:header_params] || {}