primary_connect_client 0.8.0 → 1.2.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 +25 -0
- data/README.md +74 -20
- data/docs/Address.md +32 -0
- data/docs/CodedValue.md +22 -0
- data/docs/DefaultApi.md +637 -0
- data/docs/Demographics.md +52 -0
- data/docs/Device.md +30 -0
- data/docs/Dosage.md +30 -0
- data/docs/Error.md +18 -0
- data/docs/Event.md +26 -0
- data/docs/Events.md +18 -0
- data/docs/Identifier.md +20 -0
- data/docs/Location.md +28 -0
- data/docs/Medication.md +22 -0
- data/docs/MedicationAdministration.md +32 -0
- data/docs/Meta.md +34 -0
- data/docs/MetaDestinations.md +22 -0
- data/docs/MetaMessage.md +20 -0
- data/docs/MetaSource.md +20 -0
- data/docs/MetaTransmission.md +18 -0
- data/docs/Name.md +22 -0
- data/docs/Order.md +26 -0
- data/docs/OrderIds.md +18 -0
- data/docs/OrderOrder.md +62 -0
- data/docs/OrderOrderClinicalInfo.md +26 -0
- data/docs/OrderOrderDiagnoses.md +22 -0
- data/docs/OrderOrderOrderingFacility.md +22 -0
- data/docs/OrderOrderSpecimen.md +22 -0
- data/docs/OrderWithEventErrors.md +20 -0
- data/docs/Orders.md +18 -0
- data/docs/OrdersOrders.md +22 -0
- data/docs/Patient.md +24 -0
- data/docs/PatientContacts.md +28 -0
- data/docs/PatientDemographics.md +52 -0
- data/docs/PhoneNumber.md +20 -0
- data/docs/Provider.md +32 -0
- data/docs/Result.md +52 -0
- data/docs/ResultIds.md +18 -0
- data/docs/ResultReferenceRange.md +22 -0
- data/docs/ResultReport.md +22 -0
- data/docs/ResultSpecimen.md +22 -0
- data/docs/Results.md +20 -0
- data/docs/Specimen.md +22 -0
- 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 +36 -0
- data/docs/VisitCompany.md +24 -0
- data/docs/VisitGuarantor.md +40 -0
- data/docs/VisitGuarantorEmployer.md +22 -0
- data/docs/VisitInsurances.md +40 -0
- data/docs/VisitInsured.md +30 -0
- data/docs/VisitPlan.md +22 -0
- data/git_push.sh +5 -6
- data/lib/primary_connect_client/api/default_api.rb +207 -67
- data/lib/primary_connect_client/api_client.rb +5 -6
- data/lib/primary_connect_client/api_error.rb +1 -1
- data/lib/primary_connect_client/configuration.rb +3 -2
- data/lib/primary_connect_client/models/address.rb +281 -0
- data/lib/primary_connect_client/models/coded_value.rb +238 -0
- data/lib/primary_connect_client/models/demographics.rb +466 -0
- 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/error.rb +218 -0
- data/lib/primary_connect_client/models/event.rb +254 -0
- data/lib/primary_connect_client/models/events.rb +221 -0
- data/lib/primary_connect_client/models/identifier.rb +228 -0
- data/lib/primary_connect_client/models/location.rb +264 -0
- 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 +327 -0
- data/lib/primary_connect_client/models/meta_destinations.rb +242 -0
- data/lib/primary_connect_client/models/meta_message.rb +227 -0
- data/lib/primary_connect_client/models/meta_source.rb +227 -0
- data/lib/primary_connect_client/models/meta_transmission.rb +218 -0
- data/lib/primary_connect_client/models/name.rb +237 -0
- data/lib/primary_connect_client/models/order.rb +255 -0
- data/lib/primary_connect_client/models/order_ids.rb +221 -0
- data/lib/primary_connect_client/models/order_order.rb +518 -0
- data/lib/primary_connect_client/models/order_order_clinical_info.rb +260 -0
- data/lib/primary_connect_client/models/order_order_diagnoses.rb +272 -0
- data/lib/primary_connect_client/models/order_order_ordering_facility.rb +239 -0
- data/lib/primary_connect_client/models/order_order_specimen.rb +239 -0
- data/lib/primary_connect_client/models/order_with_event_errors.rb +229 -0
- data/lib/primary_connect_client/models/orders.rb +221 -0
- data/lib/primary_connect_client/models/orders_orders.rb +236 -0
- data/lib/primary_connect_client/models/patient.rb +253 -0
- data/lib/primary_connect_client/models/patient_contacts.rb +305 -0
- data/lib/primary_connect_client/models/patient_demographics.rb +466 -0
- data/lib/primary_connect_client/models/phone_number.rb +262 -0
- data/lib/primary_connect_client/models/provider.rb +288 -0
- data/lib/primary_connect_client/models/result.rb +443 -0
- data/lib/primary_connect_client/models/result_ids.rb +221 -0
- data/lib/primary_connect_client/models/result_reference_range.rb +240 -0
- data/lib/primary_connect_client/models/result_report.rb +240 -0
- data/lib/primary_connect_client/models/result_specimen.rb +239 -0
- data/lib/primary_connect_client/models/results.rb +230 -0
- data/lib/primary_connect_client/models/specimen.rb +239 -0
- 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 +306 -0
- data/lib/primary_connect_client/models/visit_company.rb +248 -0
- data/lib/primary_connect_client/models/visit_guarantor.rb +358 -0
- data/lib/primary_connect_client/models/visit_guarantor_employer.rb +238 -0
- data/lib/primary_connect_client/models/visit_insurances.rb +386 -0
- data/lib/primary_connect_client/models/visit_insured.rb +322 -0
- data/lib/primary_connect_client/models/visit_plan.rb +238 -0
- data/lib/primary_connect_client/version.rb +12 -2
- data/lib/primary_connect_client.rb +56 -3
- data/primary_connect_client.gemspec +8 -5
- data/spec/api/default_api_spec.rb +56 -41
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/address_spec.rb +76 -0
- data/spec/models/coded_value_spec.rb +46 -0
- data/spec/models/demographics_spec.rb +168 -0
- data/spec/models/device_spec.rb +70 -0
- data/spec/models/dosage_spec.rb +70 -0
- data/spec/models/error_spec.rb +34 -0
- data/spec/models/event_spec.rb +58 -0
- data/spec/models/events_spec.rb +34 -0
- data/spec/models/identifier_spec.rb +40 -0
- data/spec/models/location_spec.rb +64 -0
- data/spec/models/medication_administration_spec.rb +76 -0
- data/spec/models/medication_spec.rb +46 -0
- data/spec/models/meta_destinations_spec.rb +46 -0
- data/spec/models/meta_message_spec.rb +40 -0
- data/spec/models/meta_source_spec.rb +40 -0
- data/spec/models/meta_spec.rb +86 -0
- data/spec/models/meta_transmission_spec.rb +34 -0
- data/spec/models/name_spec.rb +46 -0
- data/spec/models/order_ids_spec.rb +34 -0
- data/spec/models/order_order_clinical_info_spec.rb +58 -0
- data/spec/models/order_order_diagnoses_spec.rb +50 -0
- data/spec/models/order_order_ordering_facility_spec.rb +46 -0
- data/spec/models/order_order_spec.rb +182 -0
- data/spec/models/order_order_specimen_spec.rb +46 -0
- data/spec/models/order_spec.rb +58 -0
- data/spec/models/order_with_event_errors_spec.rb +40 -0
- data/spec/models/orders_orders_spec.rb +46 -0
- data/spec/models/orders_spec.rb +34 -0
- data/spec/models/patient_contacts_spec.rb +68 -0
- data/spec/models/patient_demographics_spec.rb +168 -0
- data/spec/models/patient_spec.rb +52 -0
- data/spec/models/phone_number_spec.rb +44 -0
- data/spec/models/provider_spec.rb +76 -0
- data/spec/models/result_ids_spec.rb +34 -0
- data/spec/models/result_reference_range_spec.rb +46 -0
- data/spec/models/result_report_spec.rb +46 -0
- data/spec/models/result_spec.rb +148 -0
- data/spec/models/result_specimen_spec.rb +46 -0
- data/spec/models/results_spec.rb +40 -0
- data/spec/models/specimen_spec.rb +46 -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
- data/spec/models/visit_company_spec.rb +52 -0
- data/spec/models/visit_guarantor_employer_spec.rb +46 -0
- data/spec/models/visit_guarantor_spec.rb +104 -0
- data/spec/models/visit_insurances_spec.rb +112 -0
- data/spec/models/visit_insured_spec.rb +78 -0
- data/spec/models/visit_plan_spec.rb +46 -0
- data/spec/models/visit_spec.rb +88 -0
- data/spec/spec_helper.rb +1 -1
- metadata +228 -7
- data/Gemfile.lock +0 -74
@@ -0,0 +1,52 @@
|
|
1
|
+
# PrimaryConnectClient::PatientDemographics
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | [**Name**](Name.md) | | [optional] |
|
8
|
+
| **dob** | **String** | | [optional] |
|
9
|
+
| **ssn** | **String** | | [optional] |
|
10
|
+
| **sex** | **String** | | [optional] |
|
11
|
+
| **gender** | **String** | | [optional] |
|
12
|
+
| **sexual_orientation** | **String** | | [optional] |
|
13
|
+
| **races** | **Array<String>** | | [optional] |
|
14
|
+
| **race_details** | **Array<String>** | | [optional] |
|
15
|
+
| **ethnicity** | **String** | | [optional] |
|
16
|
+
| **ethnicity_detail** | **Array<String>** | | [optional] |
|
17
|
+
| **marital_status** | **String** | | [optional] |
|
18
|
+
| **is_deceased** | **Boolean** | | [optional] |
|
19
|
+
| **death_date_time** | **Time** | ISO 8601 | [optional] |
|
20
|
+
| **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
|
21
|
+
| **email_addresses** | **Array<String>** | | [optional] |
|
22
|
+
| **language_code** | **String** | | [optional] |
|
23
|
+
| **citizenships** | **Array<String>** | | [optional] |
|
24
|
+
| **address** | [**Address**](Address.md) | | [optional] |
|
25
|
+
|
26
|
+
## Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'primary_connect_client'
|
30
|
+
|
31
|
+
instance = PrimaryConnectClient::PatientDemographics.new(
|
32
|
+
name: null,
|
33
|
+
dob: 1992-07-23,
|
34
|
+
ssn: null,
|
35
|
+
sex: null,
|
36
|
+
gender: null,
|
37
|
+
sexual_orientation: null,
|
38
|
+
races: null,
|
39
|
+
race_details: null,
|
40
|
+
ethnicity: null,
|
41
|
+
ethnicity_detail: null,
|
42
|
+
marital_status: null,
|
43
|
+
is_deceased: null,
|
44
|
+
death_date_time: null,
|
45
|
+
phone_numbers: null,
|
46
|
+
email_addresses: null,
|
47
|
+
language_code: en,
|
48
|
+
citizenships: null,
|
49
|
+
address: null
|
50
|
+
)
|
51
|
+
```
|
52
|
+
|
data/docs/PhoneNumber.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# PrimaryConnectClient::PhoneNumber
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | | [optional] |
|
8
|
+
| **number** | **String** | E.164 | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'primary_connect_client'
|
14
|
+
|
15
|
+
instance = PrimaryConnectClient::PhoneNumber.new(
|
16
|
+
type: null,
|
17
|
+
number: +15555555555
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Provider.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# PrimaryConnectClient::Provider
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **identifier** | [**Identifier**](Identifier.md) | | [optional] |
|
8
|
+
| **npi** | **String** | | [optional] |
|
9
|
+
| **name** | [**Name**](Name.md) | | [optional] |
|
10
|
+
| **credentials** | **Array<String>** | List of credentials for the provider. e.g. MD, PhD | [optional] |
|
11
|
+
| **address** | [**Address**](Address.md) | | [optional] |
|
12
|
+
| **email_addresses** | **Array<String>** | | [optional] |
|
13
|
+
| **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
|
14
|
+
| **location** | [**Location**](Location.md) | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'primary_connect_client'
|
20
|
+
|
21
|
+
instance = PrimaryConnectClient::Provider.new(
|
22
|
+
identifier: null,
|
23
|
+
npi: 1234567890,
|
24
|
+
name: null,
|
25
|
+
credentials: null,
|
26
|
+
address: null,
|
27
|
+
email_addresses: null,
|
28
|
+
phone_numbers: null,
|
29
|
+
location: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/Result.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# PrimaryConnectClient::Result
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | [**CodedValue**](CodedValue.md) | | [optional] |
|
8
|
+
| **related_group_id** | **Array<String>** | ID to group separate result components | [optional] |
|
9
|
+
| **specimen** | [**Specimen**](Specimen.md) | | [optional] |
|
10
|
+
| **value** | **String** | Value of the result component | [optional] |
|
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] |
|
13
|
+
| **report** | [**ResultReport**](ResultReport.md) | | [optional] |
|
14
|
+
| **units** | **String** | Units of the result | [optional] |
|
15
|
+
| **notes** | **Array<String>** | Notes about the result component/observation | [optional] |
|
16
|
+
| **abnormal_flag** | **String** | Indication of whether the result was abnormal | [optional] |
|
17
|
+
| **status** | **String** | Current status of the result | [optional] |
|
18
|
+
| **primary_results_interpreter** | [**Provider**](Provider.md) | | [optional] |
|
19
|
+
| **producer** | **Object** | | [optional] |
|
20
|
+
| **performer** | [**Provider**](Provider.md) | | [optional] |
|
21
|
+
| **reference_range** | [**ResultReferenceRange**](ResultReferenceRange.md) | | [optional] |
|
22
|
+
| **observation_method** | [**CodedValue**](CodedValue.md) | | [optional] |
|
23
|
+
| **producer_order_id** | **String** | Unique ID generated by resulting entity | [optional] |
|
24
|
+
| **finding_value** | [**CodedValue**](CodedValue.md) | | [optional] |
|
25
|
+
|
26
|
+
## Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'primary_connect_client'
|
30
|
+
|
31
|
+
instance = PrimaryConnectClient::Result.new(
|
32
|
+
code: null,
|
33
|
+
related_group_id: null,
|
34
|
+
specimen: null,
|
35
|
+
value: negative,
|
36
|
+
value_type: STRING,
|
37
|
+
completion_date_time: 2021-07-10T12:35:45-07:00,
|
38
|
+
report: null,
|
39
|
+
units: null,
|
40
|
+
notes: null,
|
41
|
+
abnormal_flag: null,
|
42
|
+
status: null,
|
43
|
+
primary_results_interpreter: null,
|
44
|
+
producer: null,
|
45
|
+
performer: null,
|
46
|
+
reference_range: null,
|
47
|
+
observation_method: null,
|
48
|
+
producer_order_id: 12345678,
|
49
|
+
finding_value: null
|
50
|
+
)
|
51
|
+
```
|
52
|
+
|
data/docs/ResultIds.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# PrimaryConnectClient::ResultIds
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **results** | **Array<String>** | List of Result IDs | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'primary_connect_client'
|
13
|
+
|
14
|
+
instance = PrimaryConnectClient::ResultIds.new(
|
15
|
+
results: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# PrimaryConnectClient::ResultReferenceRange
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **low** | **Integer** | Lower bound for a normal result | [optional] |
|
8
|
+
| **high** | **Integer** | Upper bound for a normal result | [optional] |
|
9
|
+
| **text** | **String** | Normal value for non-numeric results | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'primary_connect_client'
|
15
|
+
|
16
|
+
instance = PrimaryConnectClient::ResultReferenceRange.new(
|
17
|
+
low: null,
|
18
|
+
high: null,
|
19
|
+
text: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# PrimaryConnectClient::ResultReport
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **file_type** | **String** | Report MIME type | [optional] |
|
8
|
+
| **data** | **String** | Base64 encoded report | [optional] |
|
9
|
+
| **url** | **String** | Report URL redirect | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'primary_connect_client'
|
15
|
+
|
16
|
+
instance = PrimaryConnectClient::ResultReport.new(
|
17
|
+
file_type: application/pdf,
|
18
|
+
data: <BASE64 ENCODED PDF>,
|
19
|
+
url: https://example.com/report?12345
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# PrimaryConnectClient::ResultSpecimen
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | ID of the collected specimen | [optional] |
|
8
|
+
| **source** | **String** | Source of the specimen | [optional] |
|
9
|
+
| **body_site** | **String** | Body site from which the specimen was collected | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'primary_connect_client'
|
15
|
+
|
16
|
+
instance = PrimaryConnectClient::ResultSpecimen.new(
|
17
|
+
id: PB123456789,
|
18
|
+
source: nasal,
|
19
|
+
body_site: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Results.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# PrimaryConnectClient::Results
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **meta** | [**Meta**](Meta.md) | | [optional] |
|
8
|
+
| **results** | [**Array<Result>**](Result.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'primary_connect_client'
|
14
|
+
|
15
|
+
instance = PrimaryConnectClient::Results.new(
|
16
|
+
meta: null,
|
17
|
+
results: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Specimen.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# PrimaryConnectClient::Specimen
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | ID of the collected specimen | [optional] |
|
8
|
+
| **source** | **String** | Source of the specimen | [optional] |
|
9
|
+
| **body_site** | **String** | Body site from which the specimen was collected | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'primary_connect_client'
|
15
|
+
|
16
|
+
instance = PrimaryConnectClient::Specimen.new(
|
17
|
+
id: PB124567890,
|
18
|
+
source: nares,
|
19
|
+
body_site: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
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 | [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 | [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
|
+
|
data/docs/Visit.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# PrimaryConnectClient::Visit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **visit_number** | **String** | Unique ID of a single visit | [optional] |
|
8
|
+
| **account_number** | **String** | An ID that can span several visits often related to the same issue - pregnancy, surgeries, research study, etc. | [optional] |
|
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] |
|
11
|
+
| **attending_provider** | [**Provider**](Provider.md) | | [optional] |
|
12
|
+
| **consulting_provider** | [**Provider**](Provider.md) | | [optional] |
|
13
|
+
| **referring_provider** | [**Provider**](Provider.md) | | [optional] |
|
14
|
+
| **guarantor** | [**VisitGuarantor**](VisitGuarantor.md) | | [optional] |
|
15
|
+
| **insurances** | [**Array<VisitInsurances>**](VisitInsurances.md) | List of insurance coverages for the patient | [optional] |
|
16
|
+
| **location** | [**Location**](Location.md) | | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'primary_connect_client'
|
22
|
+
|
23
|
+
instance = PrimaryConnectClient::Visit.new(
|
24
|
+
visit_number: 12345,
|
25
|
+
account_number: null,
|
26
|
+
patient_class: null,
|
27
|
+
visit_date_time: 2021-07-10T12:20:11-07:00,
|
28
|
+
attending_provider: null,
|
29
|
+
consulting_provider: null,
|
30
|
+
referring_provider: null,
|
31
|
+
guarantor: null,
|
32
|
+
insurances: null,
|
33
|
+
location: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# PrimaryConnectClient::VisitCompany
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **identifier** | [**Identifier**](Identifier.md) | | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **address** | [**Address**](Address.md) | | [optional] |
|
10
|
+
| **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'primary_connect_client'
|
16
|
+
|
17
|
+
instance = PrimaryConnectClient::VisitCompany.new(
|
18
|
+
identifier: null,
|
19
|
+
name: Aetna,
|
20
|
+
address: null,
|
21
|
+
phone_numbers: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# PrimaryConnectClient::VisitGuarantor
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **number** | **String** | Number of the guarantor (?) | [optional] |
|
8
|
+
| **name** | [**Name**](Name.md) | | [optional] |
|
9
|
+
| **ssn** | **String** | | [optional] |
|
10
|
+
| **dob** | **String** | Date of Birth | [optional] |
|
11
|
+
| **sex** | **String** | | [optional] |
|
12
|
+
| **spouse** | [**Name**](Name.md) | | [optional] |
|
13
|
+
| **address** | [**Address**](Address.md) | | [optional] |
|
14
|
+
| **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
|
15
|
+
| **email_addresses** | **Array<String>** | | [optional] |
|
16
|
+
| **type** | **String** | | [optional] |
|
17
|
+
| **relation_to_patient** | **String** | | [optional] |
|
18
|
+
| **employer** | [**VisitGuarantorEmployer**](VisitGuarantorEmployer.md) | | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'primary_connect_client'
|
24
|
+
|
25
|
+
instance = PrimaryConnectClient::VisitGuarantor.new(
|
26
|
+
number: null,
|
27
|
+
name: null,
|
28
|
+
ssn: null,
|
29
|
+
dob: 1952-09-03,
|
30
|
+
sex: null,
|
31
|
+
spouse: null,
|
32
|
+
address: null,
|
33
|
+
phone_numbers: null,
|
34
|
+
email_addresses: null,
|
35
|
+
type: null,
|
36
|
+
relation_to_patient: null,
|
37
|
+
employer: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# PrimaryConnectClient::VisitGuarantorEmployer
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
| **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
|
9
|
+
| **address** | [**Address**](Address.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'primary_connect_client'
|
15
|
+
|
16
|
+
instance = PrimaryConnectClient::VisitGuarantorEmployer.new(
|
17
|
+
name: ABC Inc.,
|
18
|
+
phone_numbers: null,
|
19
|
+
address: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# PrimaryConnectClient::VisitInsurances
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **plan** | [**VisitPlan**](VisitPlan.md) | | [optional] |
|
8
|
+
| **member_number** | **Array<String>** | Patient member number | [optional] |
|
9
|
+
| **company** | [**VisitCompany**](VisitCompany.md) | | [optional] |
|
10
|
+
| **group_number** | **String** | Insurance policy group number | [optional] |
|
11
|
+
| **group_name** | **String** | Insurance policy group name | [optional] |
|
12
|
+
| **effective_date** | **String** | YYYY-MM-DD, Effect date of this insurance policy | [optional] |
|
13
|
+
| **expiration_date** | **String** | YYYY-MM-DD, Expiration date of this insurance policy | [optional] |
|
14
|
+
| **policy_number** | **String** | Insurance policy number | [optional] |
|
15
|
+
| **priority** | **String** | The insurance priority sequence | [optional] |
|
16
|
+
| **agreement_type** | **String** | Type of insurance agreement | [optional] |
|
17
|
+
| **coverage_type** | **String** | Type of insurance Agreement | [optional] |
|
18
|
+
| **insured** | [**VisitInsured**](VisitInsured.md) | | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'primary_connect_client'
|
24
|
+
|
25
|
+
instance = PrimaryConnectClient::VisitInsurances.new(
|
26
|
+
plan: null,
|
27
|
+
member_number: null,
|
28
|
+
company: null,
|
29
|
+
group_number: 123456789,
|
30
|
+
group_name: null,
|
31
|
+
effective_date: 2021-01-01,
|
32
|
+
expiration_date: 2050-01-01,
|
33
|
+
policy_number: 987654321,
|
34
|
+
priority: null,
|
35
|
+
agreement_type: null,
|
36
|
+
coverage_type: null,
|
37
|
+
insured: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|