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.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +74 -20
  4. data/docs/Address.md +32 -0
  5. data/docs/CodedValue.md +22 -0
  6. data/docs/DefaultApi.md +637 -0
  7. data/docs/Demographics.md +52 -0
  8. data/docs/Device.md +30 -0
  9. data/docs/Dosage.md +30 -0
  10. data/docs/Error.md +18 -0
  11. data/docs/Event.md +26 -0
  12. data/docs/Events.md +18 -0
  13. data/docs/Identifier.md +20 -0
  14. data/docs/Location.md +28 -0
  15. data/docs/Medication.md +22 -0
  16. data/docs/MedicationAdministration.md +32 -0
  17. data/docs/Meta.md +34 -0
  18. data/docs/MetaDestinations.md +22 -0
  19. data/docs/MetaMessage.md +20 -0
  20. data/docs/MetaSource.md +20 -0
  21. data/docs/MetaTransmission.md +18 -0
  22. data/docs/Name.md +22 -0
  23. data/docs/Order.md +26 -0
  24. data/docs/OrderIds.md +18 -0
  25. data/docs/OrderOrder.md +62 -0
  26. data/docs/OrderOrderClinicalInfo.md +26 -0
  27. data/docs/OrderOrderDiagnoses.md +22 -0
  28. data/docs/OrderOrderOrderingFacility.md +22 -0
  29. data/docs/OrderOrderSpecimen.md +22 -0
  30. data/docs/OrderWithEventErrors.md +20 -0
  31. data/docs/Orders.md +18 -0
  32. data/docs/OrdersOrders.md +22 -0
  33. data/docs/Patient.md +24 -0
  34. data/docs/PatientContacts.md +28 -0
  35. data/docs/PatientDemographics.md +52 -0
  36. data/docs/PhoneNumber.md +20 -0
  37. data/docs/Provider.md +32 -0
  38. data/docs/Result.md +52 -0
  39. data/docs/ResultIds.md +18 -0
  40. data/docs/ResultReferenceRange.md +22 -0
  41. data/docs/ResultReport.md +22 -0
  42. data/docs/ResultSpecimen.md +22 -0
  43. data/docs/Results.md +20 -0
  44. data/docs/Specimen.md +22 -0
  45. data/docs/Subject.md +49 -0
  46. data/docs/SubjectOneOf.md +18 -0
  47. data/docs/SubjectOneOf1.md +18 -0
  48. data/docs/V2Device.md +30 -0
  49. data/docs/V2Dosage.md +30 -0
  50. data/docs/V2Medication.md +22 -0
  51. data/docs/V2MedicationAdministration.md +32 -0
  52. data/docs/Visit.md +36 -0
  53. data/docs/VisitCompany.md +24 -0
  54. data/docs/VisitGuarantor.md +40 -0
  55. data/docs/VisitGuarantorEmployer.md +22 -0
  56. data/docs/VisitInsurances.md +40 -0
  57. data/docs/VisitInsured.md +30 -0
  58. data/docs/VisitPlan.md +22 -0
  59. data/git_push.sh +5 -6
  60. data/lib/primary_connect_client/api/default_api.rb +207 -67
  61. data/lib/primary_connect_client/api_client.rb +5 -6
  62. data/lib/primary_connect_client/api_error.rb +1 -1
  63. data/lib/primary_connect_client/configuration.rb +3 -2
  64. data/lib/primary_connect_client/models/address.rb +281 -0
  65. data/lib/primary_connect_client/models/coded_value.rb +238 -0
  66. data/lib/primary_connect_client/models/demographics.rb +466 -0
  67. data/lib/primary_connect_client/models/device.rb +276 -0
  68. data/lib/primary_connect_client/models/dosage.rb +275 -0
  69. data/lib/primary_connect_client/models/error.rb +218 -0
  70. data/lib/primary_connect_client/models/event.rb +254 -0
  71. data/lib/primary_connect_client/models/events.rb +221 -0
  72. data/lib/primary_connect_client/models/identifier.rb +228 -0
  73. data/lib/primary_connect_client/models/location.rb +264 -0
  74. data/lib/primary_connect_client/models/medication.rb +238 -0
  75. data/lib/primary_connect_client/models/medication_administration.rb +286 -0
  76. data/lib/primary_connect_client/models/meta.rb +327 -0
  77. data/lib/primary_connect_client/models/meta_destinations.rb +242 -0
  78. data/lib/primary_connect_client/models/meta_message.rb +227 -0
  79. data/lib/primary_connect_client/models/meta_source.rb +227 -0
  80. data/lib/primary_connect_client/models/meta_transmission.rb +218 -0
  81. data/lib/primary_connect_client/models/name.rb +237 -0
  82. data/lib/primary_connect_client/models/order.rb +255 -0
  83. data/lib/primary_connect_client/models/order_ids.rb +221 -0
  84. data/lib/primary_connect_client/models/order_order.rb +518 -0
  85. data/lib/primary_connect_client/models/order_order_clinical_info.rb +260 -0
  86. data/lib/primary_connect_client/models/order_order_diagnoses.rb +272 -0
  87. data/lib/primary_connect_client/models/order_order_ordering_facility.rb +239 -0
  88. data/lib/primary_connect_client/models/order_order_specimen.rb +239 -0
  89. data/lib/primary_connect_client/models/order_with_event_errors.rb +229 -0
  90. data/lib/primary_connect_client/models/orders.rb +221 -0
  91. data/lib/primary_connect_client/models/orders_orders.rb +236 -0
  92. data/lib/primary_connect_client/models/patient.rb +253 -0
  93. data/lib/primary_connect_client/models/patient_contacts.rb +305 -0
  94. data/lib/primary_connect_client/models/patient_demographics.rb +466 -0
  95. data/lib/primary_connect_client/models/phone_number.rb +262 -0
  96. data/lib/primary_connect_client/models/provider.rb +288 -0
  97. data/lib/primary_connect_client/models/result.rb +443 -0
  98. data/lib/primary_connect_client/models/result_ids.rb +221 -0
  99. data/lib/primary_connect_client/models/result_reference_range.rb +240 -0
  100. data/lib/primary_connect_client/models/result_report.rb +240 -0
  101. data/lib/primary_connect_client/models/result_specimen.rb +239 -0
  102. data/lib/primary_connect_client/models/results.rb +230 -0
  103. data/lib/primary_connect_client/models/specimen.rb +239 -0
  104. data/lib/primary_connect_client/models/subject.rb +105 -0
  105. data/lib/primary_connect_client/models/subject_one_of.rb +218 -0
  106. data/lib/primary_connect_client/models/subject_one_of1.rb +218 -0
  107. data/lib/primary_connect_client/models/v2_device.rb +276 -0
  108. data/lib/primary_connect_client/models/v2_dosage.rb +275 -0
  109. data/lib/primary_connect_client/models/v2_medication.rb +238 -0
  110. data/lib/primary_connect_client/models/v2_medication_administration.rb +286 -0
  111. data/lib/primary_connect_client/models/visit.rb +306 -0
  112. data/lib/primary_connect_client/models/visit_company.rb +248 -0
  113. data/lib/primary_connect_client/models/visit_guarantor.rb +358 -0
  114. data/lib/primary_connect_client/models/visit_guarantor_employer.rb +238 -0
  115. data/lib/primary_connect_client/models/visit_insurances.rb +386 -0
  116. data/lib/primary_connect_client/models/visit_insured.rb +322 -0
  117. data/lib/primary_connect_client/models/visit_plan.rb +238 -0
  118. data/lib/primary_connect_client/version.rb +12 -2
  119. data/lib/primary_connect_client.rb +56 -3
  120. data/primary_connect_client.gemspec +8 -5
  121. data/spec/api/default_api_spec.rb +56 -41
  122. data/spec/api_client_spec.rb +3 -3
  123. data/spec/configuration_spec.rb +1 -1
  124. data/spec/models/address_spec.rb +76 -0
  125. data/spec/models/coded_value_spec.rb +46 -0
  126. data/spec/models/demographics_spec.rb +168 -0
  127. data/spec/models/device_spec.rb +70 -0
  128. data/spec/models/dosage_spec.rb +70 -0
  129. data/spec/models/error_spec.rb +34 -0
  130. data/spec/models/event_spec.rb +58 -0
  131. data/spec/models/events_spec.rb +34 -0
  132. data/spec/models/identifier_spec.rb +40 -0
  133. data/spec/models/location_spec.rb +64 -0
  134. data/spec/models/medication_administration_spec.rb +76 -0
  135. data/spec/models/medication_spec.rb +46 -0
  136. data/spec/models/meta_destinations_spec.rb +46 -0
  137. data/spec/models/meta_message_spec.rb +40 -0
  138. data/spec/models/meta_source_spec.rb +40 -0
  139. data/spec/models/meta_spec.rb +86 -0
  140. data/spec/models/meta_transmission_spec.rb +34 -0
  141. data/spec/models/name_spec.rb +46 -0
  142. data/spec/models/order_ids_spec.rb +34 -0
  143. data/spec/models/order_order_clinical_info_spec.rb +58 -0
  144. data/spec/models/order_order_diagnoses_spec.rb +50 -0
  145. data/spec/models/order_order_ordering_facility_spec.rb +46 -0
  146. data/spec/models/order_order_spec.rb +182 -0
  147. data/spec/models/order_order_specimen_spec.rb +46 -0
  148. data/spec/models/order_spec.rb +58 -0
  149. data/spec/models/order_with_event_errors_spec.rb +40 -0
  150. data/spec/models/orders_orders_spec.rb +46 -0
  151. data/spec/models/orders_spec.rb +34 -0
  152. data/spec/models/patient_contacts_spec.rb +68 -0
  153. data/spec/models/patient_demographics_spec.rb +168 -0
  154. data/spec/models/patient_spec.rb +52 -0
  155. data/spec/models/phone_number_spec.rb +44 -0
  156. data/spec/models/provider_spec.rb +76 -0
  157. data/spec/models/result_ids_spec.rb +34 -0
  158. data/spec/models/result_reference_range_spec.rb +46 -0
  159. data/spec/models/result_report_spec.rb +46 -0
  160. data/spec/models/result_spec.rb +148 -0
  161. data/spec/models/result_specimen_spec.rb +46 -0
  162. data/spec/models/results_spec.rb +40 -0
  163. data/spec/models/specimen_spec.rb +46 -0
  164. data/spec/models/subject_one_of1_spec.rb +34 -0
  165. data/spec/models/subject_one_of_spec.rb +34 -0
  166. data/spec/models/subject_spec.rb +31 -0
  167. data/spec/models/v2_device_spec.rb +70 -0
  168. data/spec/models/v2_dosage_spec.rb +70 -0
  169. data/spec/models/v2_medication_administration_spec.rb +76 -0
  170. data/spec/models/v2_medication_spec.rb +46 -0
  171. data/spec/models/visit_company_spec.rb +52 -0
  172. data/spec/models/visit_guarantor_employer_spec.rb +46 -0
  173. data/spec/models/visit_guarantor_spec.rb +104 -0
  174. data/spec/models/visit_insurances_spec.rb +112 -0
  175. data/spec/models/visit_insured_spec.rb +78 -0
  176. data/spec/models/visit_plan_spec.rb +46 -0
  177. data/spec/models/visit_spec.rb +88 -0
  178. data/spec/spec_helper.rb +1 -1
  179. metadata +228 -7
  180. data/Gemfile.lock +0 -74
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/Error.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Error
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Error.new(
15
+ error: null
16
+ )
17
+ ```
18
+
data/docs/Event.md ADDED
@@ -0,0 +1,26 @@
1
+ # PrimaryConnectClient::Event
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | [optional] |
8
+ | **eventable_type** | **String** | | [optional] |
9
+ | **created_at** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+ | **eventable_id** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'primary_connect_client'
17
+
18
+ instance = PrimaryConnectClient::Event.new(
19
+ type: null,
20
+ eventable_type: null,
21
+ created_at: null,
22
+ id: null,
23
+ eventable_id: null
24
+ )
25
+ ```
26
+
data/docs/Events.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Events
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **events** | [**Array<Event>**](Event.md) | List of events (max 25) | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Events.new(
15
+ events: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # PrimaryConnectClient::Identifier
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **id_type** | **String** | E.g. MRN, EPI, EHRI, NIST, NPI, Payor ID | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'primary_connect_client'
14
+
15
+ instance = PrimaryConnectClient::Identifier.new(
16
+ id: null,
17
+ id_type: 1234567
18
+ )
19
+ ```
20
+
data/docs/Location.md ADDED
@@ -0,0 +1,28 @@
1
+ # PrimaryConnectClient::Location
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | E.g. Clinic, Department, Home, Nursing Unit, Provider's Office, Phone | [optional] |
8
+ | **facility** | **String** | | [optional] |
9
+ | **department** | **String** | | [optional] |
10
+ | **room** | **String** | | [optional] |
11
+ | **bed** | **String** | | [optional] |
12
+ | **floor** | **String** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'primary_connect_client'
18
+
19
+ instance = PrimaryConnectClient::Location.new(
20
+ type: Clinic,
21
+ facility: Community Hospital,
22
+ department: null,
23
+ room: 136,
24
+ bed: B,
25
+ floor: 10
26
+ )
27
+ ```
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/Meta.md ADDED
@@ -0,0 +1,34 @@
1
+ # PrimaryConnectClient::Meta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **event_type** | **String** | | [optional] |
8
+ | **event_date_and_time** | **Time** | | [optional] |
9
+ | **test** | **Boolean** | | [optional] |
10
+ | **source** | [**MetaSource**](MetaSource.md) | | [optional] |
11
+ | **destinations** | [**Array<MetaDestinations>**](MetaDestinations.md) | | [optional] |
12
+ | **message** | [**MetaMessage**](MetaMessage.md) | | [optional] |
13
+ | **transmission** | [**MetaTransmission**](MetaTransmission.md) | | [optional] |
14
+ | **facility_code** | **String** | | [optional] |
15
+ | **echo** | **Object** | Arbitrary key/value pairs to store with the Order | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'primary_connect_client'
21
+
22
+ instance = PrimaryConnectClient::Meta.new(
23
+ event_type: EVENT_TYPE_NEW,
24
+ event_date_and_time: 2021-07-30T20:27:55Z,
25
+ test: true,
26
+ source: null,
27
+ destinations: null,
28
+ message: null,
29
+ transmission: null,
30
+ facility_code: 123,
31
+ echo: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::MetaDestinations
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | |
8
+ | **name** | **String** | | [optional] |
9
+ | **config** | **Object** | Arbitrary key/value pairs for Lab specific use | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::MetaDestinations.new(
17
+ id: 01FXNPV4TCTGRSV4EGTJMW0D0Y,
18
+ name: Sample Lab,
19
+ config: {"key1":"value1","key2":"value2"}
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # PrimaryConnectClient::MetaMessage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **order_id** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'primary_connect_client'
14
+
15
+ instance = PrimaryConnectClient::MetaMessage.new(
16
+ id: 12345,
17
+ order_id: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # PrimaryConnectClient::MetaSource
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'primary_connect_client'
14
+
15
+ instance = PrimaryConnectClient::MetaSource.new(
16
+ id: 1,
17
+ name: Primary Connect
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::MetaTransmission
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::MetaTransmission.new(
15
+ id: 12345
16
+ )
17
+ ```
18
+
data/docs/Name.md ADDED
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::Name
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **first_name** | **String** | | [optional] |
8
+ | **last_name** | **String** | | [optional] |
9
+ | **middle_name** | **String** | middle name or middle initial. For people with multiple middle names, all their middle names are included in this field. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::Name.new(
17
+ first_name: George,
18
+ last_name: Lopez,
19
+ middle_name: James
20
+ )
21
+ ```
22
+
data/docs/Order.md ADDED
@@ -0,0 +1,26 @@
1
+ # PrimaryConnectClient::Order
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **patient** | [**Patient**](Patient.md) | | [optional] |
8
+ | **subject** | [**Subject**](Subject.md) | | [optional] |
9
+ | **visit** | [**Visit**](Visit.md) | | [optional] |
10
+ | **meta** | [**Meta**](Meta.md) | | [optional] |
11
+ | **order** | [**OrderOrder**](OrderOrder.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'primary_connect_client'
17
+
18
+ instance = PrimaryConnectClient::Order.new(
19
+ patient: null,
20
+ subject: null,
21
+ visit: null,
22
+ meta: null,
23
+ order: null
24
+ )
25
+ ```
26
+
data/docs/OrderIds.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::OrderIds
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **orders** | **Array<String>** | List of Order IDs | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::OrderIds.new(
15
+ orders: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,62 @@
1
+ # PrimaryConnectClient::OrderOrder
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | ID of the order assigned by the placing system | [optional] |
8
+ | **application_order_id** | **String** | ID assigned by the application fulfilling the order | [optional] |
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] |
14
+ | **expiration_date** | **String** | YYYY-MM-DD, Date when the order becomes invalid | [optional] |
15
+ | **specimen** | [**Specimen**](Specimen.md) | | [optional] |
16
+ | **medication_administrations** | [**Array<MedicationAdministration>**](MedicationAdministration.md) | Array of medications administered to the subject | [optional] |
17
+ | **procedure** | [**CodedValue**](CodedValue.md) | | [optional] |
18
+ | **ordering_provider** | [**Provider**](Provider.md) | | [optional] |
19
+ | **result_copy_providers** | [**Array<Provider>**](Provider.md) | Array of providers to be copied on the results | [optional] |
20
+ | **ordering_facility** | [**OrderOrderOrderingFacility**](OrderOrderOrderingFacility.md) | | [optional] |
21
+ | **priority** | **String** | Priority of the order | [optional] |
22
+ | **diagnoses** | [**Array<OrderOrderDiagnoses>**](OrderOrderDiagnoses.md) | List of diagnoses associated with this order | [optional] |
23
+ | **clinical_comments** | **String** | Clinically relevant comments regarding the order | [optional] |
24
+ | **notes** | **Array<String>** | Order-level notes | [optional] |
25
+ | **clinical_info** | [**Array<OrderOrderClinicalInfo>**](OrderOrderClinicalInfo.md) | List of supplementary clinical information associated with the order. Often these are answers to Ask at Order Entry (AOE) questions. | [optional] |
26
+ | **results_status** | **String** | Current overall status of the order | [optional] |
27
+ | **response_flag** | **String** | Specificity of the response requested from the receiving system | [optional] |
28
+ | **external_ids** | [**Array<Identifier>**](Identifier.md) | | [optional] |
29
+ | **results** | [**Array<Result>**](Result.md) | List of result components | [optional] |
30
+
31
+ ## Example
32
+
33
+ ```ruby
34
+ require 'primary_connect_client'
35
+
36
+ instance = PrimaryConnectClient::OrderOrder.new(
37
+ id: 12345,
38
+ application_order_id: 67890,
39
+ status: null,
40
+ transaction_date_time: 2021-07-10T12:35:45-07:00,
41
+ collection_date_time: 2021-07-10T12:35:45-07:00,
42
+ collection_start_date_time: 2021-07-10T12:35:45-07:00,
43
+ completion_date_time: 2021-07-10T12:35:45-07:00,
44
+ expiration_date: 2022-05-23,
45
+ specimen: null,
46
+ medication_administrations: null,
47
+ procedure: null,
48
+ ordering_provider: null,
49
+ result_copy_providers: null,
50
+ ordering_facility: null,
51
+ priority: null,
52
+ diagnoses: null,
53
+ clinical_comments: null,
54
+ notes: null,
55
+ clinical_info: null,
56
+ results_status: null,
57
+ response_flag: null,
58
+ external_ids: null,
59
+ results: null
60
+ )
61
+ ```
62
+
@@ -0,0 +1,26 @@
1
+ # PrimaryConnectClient::OrderOrderClinicalInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | [**CodedValue**](CodedValue.md) | | [optional] |
8
+ | **value** | **String** | Value of the information element. For AOEs, this is typically the full answer | [optional] |
9
+ | **units** | **String** | Units of the value. If the Value is a time range, this may be \"WK\" | [optional] |
10
+ | **abbreviation** | **String** | Abbreviation of the value of the information element. Typically only present for text answer AOEs | [optional] |
11
+ | **notes** | **Array<String>** | Notes related to the clinical info | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'primary_connect_client'
17
+
18
+ instance = PrimaryConnectClient::OrderOrderClinicalInfo.new(
19
+ code: null,
20
+ value: Yes,
21
+ units: null,
22
+ abbreviation: null,
23
+ notes: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::OrderOrderDiagnoses
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **code** | [**CodedValue**](CodedValue.md) | | [optional] |
8
+ | **type** | **String** | Type of the diagnosis | [optional] |
9
+ | **documented_date_time** | **Time** | Timestamp of the the diagnosis was documented | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::OrderOrderDiagnoses.new(
17
+ code: null,
18
+ type: null,
19
+ documented_date_time: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::OrderOrderOrderingFacility
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **address** | [**Address**](Address.md) | | [optional] |
9
+ | **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::OrderOrderOrderingFacility.new(
17
+ name: Test Facility,
18
+ address: null,
19
+ phone_numbers: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::OrderOrderSpecimen
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::OrderOrderSpecimen.new(
17
+ id: PB124567890,
18
+ source: nares,
19
+ body_site: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # PrimaryConnectClient::OrderWithEventErrors
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **order** | [**Order**](Order.md) | | [optional] |
8
+ | **errors** | **Array<String>** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'primary_connect_client'
14
+
15
+ instance = PrimaryConnectClient::OrderWithEventErrors.new(
16
+ order: null,
17
+ errors: null
18
+ )
19
+ ```
20
+
data/docs/Orders.md ADDED
@@ -0,0 +1,18 @@
1
+ # PrimaryConnectClient::Orders
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **orders** | [**Array<OrdersOrders>**](OrdersOrders.md) | List of orders (max 25) | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'primary_connect_client'
13
+
14
+ instance = PrimaryConnectClient::Orders.new(
15
+ orders: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::OrdersOrders
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **state** | **String** | | [optional] |
9
+ | **order** | [**Order**](Order.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::OrdersOrders.new(
17
+ id: null,
18
+ state: null,
19
+ order: null
20
+ )
21
+ ```
22
+
data/docs/Patient.md ADDED
@@ -0,0 +1,24 @@
1
+ # PrimaryConnectClient::Patient
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **identifiers** | [**Array<Identifier>**](Identifier.md) | List of IDs and types that identify the patient | [optional] |
8
+ | **demographics** | [**Demographics**](Demographics.md) | | [optional] |
9
+ | **notes** | **Array<String>** | Patient-level notes | [optional] |
10
+ | **contacts** | [**Array<PatientContacts>**](PatientContacts.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'primary_connect_client'
16
+
17
+ instance = PrimaryConnectClient::Patient.new(
18
+ identifiers: null,
19
+ demographics: null,
20
+ notes: null,
21
+ contacts: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,28 @@
1
+ # PrimaryConnectClient::PatientContacts
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | [**Name**](Name.md) | | [optional] |
8
+ | **address** | [**Address**](Address.md) | | [optional] |
9
+ | **phone_numbers** | [**Array<PhoneNumber>**](PhoneNumber.md) | | [optional] |
10
+ | **relation_to_patient** | **String** | Personal relationship to the patient | [optional] |
11
+ | **email_addresses** | **Array<String>** | | [optional] |
12
+ | **roles** | **Array<String>** | e.g. Employer, Emergency Contact | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'primary_connect_client'
18
+
19
+ instance = PrimaryConnectClient::PatientContacts.new(
20
+ name: null,
21
+ address: null,
22
+ phone_numbers: null,
23
+ relation_to_patient: null,
24
+ email_addresses: null,
25
+ roles: null
26
+ )
27
+ ```
28
+