primary_connect_client 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/README.md +15 -4
- data/docs/DefaultApi.md +5 -3
- data/docs/Device.md +30 -0
- data/docs/Dosage.md +30 -0
- data/docs/Location.md +3 -1
- data/docs/Medication.md +22 -0
- data/docs/MedicationAdministration.md +32 -0
- data/docs/Meta.md +1 -1
- data/docs/Order.md +2 -0
- data/docs/OrderOrder.md +7 -3
- data/docs/OrderOrderDiagnoses.md +1 -1
- data/docs/Result.md +1 -1
- data/docs/Subject.md +49 -0
- data/docs/SubjectOneOf.md +18 -0
- data/docs/SubjectOneOf1.md +18 -0
- data/docs/V2Device.md +30 -0
- data/docs/V2Dosage.md +30 -0
- data/docs/V2Medication.md +22 -0
- data/docs/V2MedicationAdministration.md +32 -0
- data/docs/Visit.md +1 -1
- data/lib/primary_connect_client/api/default_api.rb +6 -3
- data/lib/primary_connect_client/models/device.rb +276 -0
- data/lib/primary_connect_client/models/dosage.rb +275 -0
- data/lib/primary_connect_client/models/location.rb +13 -4
- data/lib/primary_connect_client/models/medication.rb +238 -0
- data/lib/primary_connect_client/models/medication_administration.rb +286 -0
- data/lib/primary_connect_client/models/meta.rb +1 -0
- data/lib/primary_connect_client/models/order.rb +11 -1
- data/lib/primary_connect_client/models/order_order.rb +28 -6
- data/lib/primary_connect_client/models/order_order_diagnoses.rb +1 -1
- data/lib/primary_connect_client/models/result.rb +1 -1
- data/lib/primary_connect_client/models/subject.rb +105 -0
- data/lib/primary_connect_client/models/subject_one_of.rb +218 -0
- data/lib/primary_connect_client/models/subject_one_of1.rb +218 -0
- data/lib/primary_connect_client/models/v2_device.rb +276 -0
- data/lib/primary_connect_client/models/v2_dosage.rb +275 -0
- data/lib/primary_connect_client/models/v2_medication.rb +238 -0
- data/lib/primary_connect_client/models/v2_medication_administration.rb +286 -0
- data/lib/primary_connect_client/models/visit.rb +1 -1
- data/lib/primary_connect_client/version.rb +1 -1
- data/lib/primary_connect_client.rb +11 -0
- data/primary_connect_client.gemspec +1 -0
- data/spec/api/default_api_spec.rb +2 -1
- data/spec/models/device_spec.rb +70 -0
- data/spec/models/dosage_spec.rb +70 -0
- data/spec/models/location_spec.rb +6 -0
- data/spec/models/medication_administration_spec.rb +76 -0
- data/spec/models/medication_spec.rb +46 -0
- data/spec/models/order_order_spec.rb +13 -1
- data/spec/models/order_spec.rb +6 -0
- data/spec/models/subject_one_of1_spec.rb +34 -0
- data/spec/models/subject_one_of_spec.rb +34 -0
- data/spec/models/subject_spec.rb +31 -0
- data/spec/models/v2_device_spec.rb +70 -0
- data/spec/models/v2_dosage_spec.rb +70 -0
- data/spec/models/v2_medication_administration_spec.rb +76 -0
- data/spec/models/v2_medication_spec.rb +46 -0
- metadata +67 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87215c1bba59cc60aff1c1838ea092541fc494b5625fc9bdee05c8636b5b1574
|
4
|
+
data.tar.gz: a91593b598df16d40d875466ccda08c2dd6eb26b0ba155a3ccdf74fbd6fc2c74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d9361eac5551d6b08d3b8e5d6623f7d378e858402f5d7badc63c9236a657582557e2064fefd898307eace4588154f143704e639bf990af54545f6bab402bf9b
|
7
|
+
data.tar.gz: 0c5fb396166240dfa70dd950863e6e25408272d27bd3dfac2db71829c8811d86498f99ad6a1dbc7f679db3d6940266e6dc296f0b5b3f369c7e67552c556d9fb2
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 1.3.0
|
4
|
+
|
5
|
+
- Updated dependency on `primary_connect_proto` 0.13.0
|
6
|
+
|
7
|
+
## 1.2.0
|
8
|
+
|
9
|
+
- Updated models with `primary_connect_proto` 0.12.0
|
10
|
+
- Restored strict dependency on `primary_connect_proto` due to
|
11
|
+
models having to match the proto definition
|
12
|
+
|
3
13
|
## 1.1.0
|
4
14
|
|
5
|
-
- Added cancel_order
|
15
|
+
- Added `cancel_order`
|
6
16
|
|
7
17
|
## 1.0.1
|
8
18
|
|
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.
|
10
|
+
- Package version: 1.3.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.
|
26
|
+
gem install ./primary_connect_client-1.3.0.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./primary_connect_client-1.
|
29
|
+
(for development, run `gem install --dev ./primary_connect_client-1.3.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.
|
35
|
+
gem 'primary_connect_client', '~> 1.3.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
|
-
|
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
|
-
| **
|
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
|
|
data/docs/Medication.md
ADDED
@@ -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 (ISO-8601) | [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 (ISO-8601) | [optional] |
|
10
|
+
| **administration_end_time** | **Time** | Administration end date of medication (ISO-8601) | [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/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** |
|
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<MetaDestinations>**](MetaDestinations.md) | | [optional] |
|
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
@@ -7,11 +7,13 @@
|
|
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
|
-
| **
|
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] |
|
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/OrderOrderDiagnoses.md
CHANGED
@@ -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
|
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<String>** | Notes about the result component/observation | [optional] |
|
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<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::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: {"key1":"value1","key2":"value2"}
|
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 (ISO-8601) | [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<CodedValue>**](CodedValue.md) | Codes for the medication administration | [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
|
+
| **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
|
+
|
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
|
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] |
|
@@ -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 [
|
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 [
|
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[:'
|
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] || {}
|