primary_connect_client 0.8.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +61 -16
  4. data/docs/Address.md +32 -0
  5. data/docs/CodedValue.md +22 -0
  6. data/docs/DefaultApi.md +568 -0
  7. data/docs/Demographics.md +52 -0
  8. data/docs/Error.md +18 -0
  9. data/docs/Event.md +26 -0
  10. data/docs/Events.md +18 -0
  11. data/docs/Identifier.md +20 -0
  12. data/docs/Location.md +26 -0
  13. data/docs/Meta.md +34 -0
  14. data/docs/MetaDestinations.md +22 -0
  15. data/docs/MetaMessage.md +20 -0
  16. data/docs/MetaSource.md +20 -0
  17. data/docs/MetaTransmission.md +18 -0
  18. data/docs/Name.md +22 -0
  19. data/docs/Order.md +24 -0
  20. data/docs/OrderIds.md +18 -0
  21. data/docs/OrderOrder.md +58 -0
  22. data/docs/OrderOrderClinicalInfo.md +26 -0
  23. data/docs/OrderOrderDiagnoses.md +22 -0
  24. data/docs/OrderOrderOrderingFacility.md +22 -0
  25. data/docs/OrderOrderSpecimen.md +22 -0
  26. data/docs/OrderWithEventErrors.md +20 -0
  27. data/docs/Orders.md +18 -0
  28. data/docs/OrdersOrders.md +22 -0
  29. data/docs/Patient.md +24 -0
  30. data/docs/PatientContacts.md +28 -0
  31. data/docs/PatientDemographics.md +52 -0
  32. data/docs/PhoneNumber.md +20 -0
  33. data/docs/Provider.md +32 -0
  34. data/docs/Result.md +52 -0
  35. data/docs/ResultIds.md +18 -0
  36. data/docs/ResultReferenceRange.md +22 -0
  37. data/docs/ResultReport.md +22 -0
  38. data/docs/ResultSpecimen.md +22 -0
  39. data/docs/Results.md +20 -0
  40. data/docs/Specimen.md +22 -0
  41. data/docs/Visit.md +36 -0
  42. data/docs/VisitCompany.md +24 -0
  43. data/docs/VisitGuarantor.md +40 -0
  44. data/docs/VisitGuarantorEmployer.md +22 -0
  45. data/docs/VisitInsurances.md +40 -0
  46. data/docs/VisitInsured.md +30 -0
  47. data/docs/VisitPlan.md +22 -0
  48. data/git_push.sh +5 -6
  49. data/lib/primary_connect_client/api/default_api.rb +143 -67
  50. data/lib/primary_connect_client/api_client.rb +5 -6
  51. data/lib/primary_connect_client/api_error.rb +1 -1
  52. data/lib/primary_connect_client/configuration.rb +3 -2
  53. data/lib/primary_connect_client/models/address.rb +281 -0
  54. data/lib/primary_connect_client/models/coded_value.rb +238 -0
  55. data/lib/primary_connect_client/models/demographics.rb +466 -0
  56. data/lib/primary_connect_client/models/error.rb +218 -0
  57. data/lib/primary_connect_client/models/event.rb +254 -0
  58. data/lib/primary_connect_client/models/events.rb +221 -0
  59. data/lib/primary_connect_client/models/identifier.rb +228 -0
  60. data/lib/primary_connect_client/models/location.rb +255 -0
  61. data/lib/primary_connect_client/models/meta.rb +327 -0
  62. data/lib/primary_connect_client/models/meta_destinations.rb +242 -0
  63. data/lib/primary_connect_client/models/meta_message.rb +227 -0
  64. data/lib/primary_connect_client/models/meta_source.rb +227 -0
  65. data/lib/primary_connect_client/models/meta_transmission.rb +218 -0
  66. data/lib/primary_connect_client/models/name.rb +237 -0
  67. data/lib/primary_connect_client/models/order.rb +245 -0
  68. data/lib/primary_connect_client/models/order_ids.rb +221 -0
  69. data/lib/primary_connect_client/models/order_order.rb +496 -0
  70. data/lib/primary_connect_client/models/order_order_clinical_info.rb +260 -0
  71. data/lib/primary_connect_client/models/order_order_diagnoses.rb +272 -0
  72. data/lib/primary_connect_client/models/order_order_ordering_facility.rb +239 -0
  73. data/lib/primary_connect_client/models/order_order_specimen.rb +239 -0
  74. data/lib/primary_connect_client/models/order_with_event_errors.rb +229 -0
  75. data/lib/primary_connect_client/models/orders.rb +221 -0
  76. data/lib/primary_connect_client/models/orders_orders.rb +236 -0
  77. data/lib/primary_connect_client/models/patient.rb +253 -0
  78. data/lib/primary_connect_client/models/patient_contacts.rb +305 -0
  79. data/lib/primary_connect_client/models/patient_demographics.rb +466 -0
  80. data/lib/primary_connect_client/models/phone_number.rb +262 -0
  81. data/lib/primary_connect_client/models/provider.rb +288 -0
  82. data/lib/primary_connect_client/models/result.rb +443 -0
  83. data/lib/primary_connect_client/models/result_ids.rb +221 -0
  84. data/lib/primary_connect_client/models/result_reference_range.rb +240 -0
  85. data/lib/primary_connect_client/models/result_report.rb +240 -0
  86. data/lib/primary_connect_client/models/result_specimen.rb +239 -0
  87. data/lib/primary_connect_client/models/results.rb +230 -0
  88. data/lib/primary_connect_client/models/specimen.rb +239 -0
  89. data/lib/primary_connect_client/models/visit.rb +306 -0
  90. data/lib/primary_connect_client/models/visit_company.rb +248 -0
  91. data/lib/primary_connect_client/models/visit_guarantor.rb +358 -0
  92. data/lib/primary_connect_client/models/visit_guarantor_employer.rb +238 -0
  93. data/lib/primary_connect_client/models/visit_insurances.rb +386 -0
  94. data/lib/primary_connect_client/models/visit_insured.rb +322 -0
  95. data/lib/primary_connect_client/models/visit_plan.rb +238 -0
  96. data/lib/primary_connect_client/version.rb +12 -2
  97. data/lib/primary_connect_client.rb +45 -3
  98. data/primary_connect_client.gemspec +7 -5
  99. data/spec/api/default_api_spec.rb +44 -41
  100. data/spec/api_client_spec.rb +3 -3
  101. data/spec/configuration_spec.rb +1 -1
  102. data/spec/models/address_spec.rb +76 -0
  103. data/spec/models/coded_value_spec.rb +46 -0
  104. data/spec/models/demographics_spec.rb +168 -0
  105. data/spec/models/error_spec.rb +34 -0
  106. data/spec/models/event_spec.rb +58 -0
  107. data/spec/models/events_spec.rb +34 -0
  108. data/spec/models/identifier_spec.rb +40 -0
  109. data/spec/models/location_spec.rb +58 -0
  110. data/spec/models/meta_destinations_spec.rb +46 -0
  111. data/spec/models/meta_message_spec.rb +40 -0
  112. data/spec/models/meta_source_spec.rb +40 -0
  113. data/spec/models/meta_spec.rb +86 -0
  114. data/spec/models/meta_transmission_spec.rb +34 -0
  115. data/spec/models/name_spec.rb +46 -0
  116. data/spec/models/order_ids_spec.rb +34 -0
  117. data/spec/models/order_order_clinical_info_spec.rb +58 -0
  118. data/spec/models/order_order_diagnoses_spec.rb +50 -0
  119. data/spec/models/order_order_ordering_facility_spec.rb +46 -0
  120. data/spec/models/order_order_spec.rb +170 -0
  121. data/spec/models/order_order_specimen_spec.rb +46 -0
  122. data/spec/models/order_spec.rb +52 -0
  123. data/spec/models/order_with_event_errors_spec.rb +40 -0
  124. data/spec/models/orders_orders_spec.rb +46 -0
  125. data/spec/models/orders_spec.rb +34 -0
  126. data/spec/models/patient_contacts_spec.rb +68 -0
  127. data/spec/models/patient_demographics_spec.rb +168 -0
  128. data/spec/models/patient_spec.rb +52 -0
  129. data/spec/models/phone_number_spec.rb +44 -0
  130. data/spec/models/provider_spec.rb +76 -0
  131. data/spec/models/result_ids_spec.rb +34 -0
  132. data/spec/models/result_reference_range_spec.rb +46 -0
  133. data/spec/models/result_report_spec.rb +46 -0
  134. data/spec/models/result_spec.rb +148 -0
  135. data/spec/models/result_specimen_spec.rb +46 -0
  136. data/spec/models/results_spec.rb +40 -0
  137. data/spec/models/specimen_spec.rb +46 -0
  138. data/spec/models/visit_company_spec.rb +52 -0
  139. data/spec/models/visit_guarantor_employer_spec.rb +46 -0
  140. data/spec/models/visit_guarantor_spec.rb +104 -0
  141. data/spec/models/visit_insurances_spec.rb +112 -0
  142. data/spec/models/visit_insured_spec.rb +78 -0
  143. data/spec/models/visit_plan_spec.rb +46 -0
  144. data/spec/models/visit_spec.rb +88 -0
  145. data/spec/spec_helper.rb +1 -1
  146. metadata +177 -20
  147. data/Gemfile.lock +0 -74
@@ -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/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
+
@@ -0,0 +1,30 @@
1
+ # PrimaryConnectClient::VisitInsured
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **identifiers** | [**Array<Identifier>**](Identifier.md) | | [optional] |
8
+ | **name** | [**Name**](Name.md) | | [optional] |
9
+ | **ssn** | **String** | | [optional] |
10
+ | **relationship** | **String** | | [optional] |
11
+ | **dob** | **String** | Date of Birth | [optional] |
12
+ | **sex** | **String** | | [optional] |
13
+ | **address** | [**Address**](Address.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'primary_connect_client'
19
+
20
+ instance = PrimaryConnectClient::VisitInsured.new(
21
+ identifiers: null,
22
+ name: null,
23
+ ssn: null,
24
+ relationship: null,
25
+ dob: 1949-12-26,
26
+ sex: null,
27
+ address: null
28
+ )
29
+ ```
30
+
data/docs/VisitPlan.md ADDED
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::VisitPlan
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **identifier** | [**Identifier**](Identifier.md) | | [optional] |
8
+ | **name** | **String** | Name of insurance plan | [optional] |
9
+ | **type** | **String** | Type of insurance plan | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::VisitPlan.new(
17
+ identifier: null,
18
+ name: Insurance Plan name,
19
+ type: Insurance Plan Type
20
+ )
21
+ ```
22
+
data/git_push.sh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
3
  #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
5
 
6
6
  git_user_id=$1
7
7
  git_repo_id=$2
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
14
14
  fi
15
15
 
16
16
  if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
17
+ git_user_id="PrimaryDotHealth"
18
18
  echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
19
  fi
20
20
 
21
21
  if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
22
+ git_repo_id="connect-ruby-client"
23
23
  echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
24
  fi
25
25
 
@@ -38,14 +38,14 @@ git add .
38
38
  git commit -m "$release_note"
39
39
 
40
40
  # Sets the new remote
41
- git_remote=`git remote`
41
+ git_remote=$(git remote)
42
42
  if [ "$git_remote" = "" ]; then # git remote not defined
43
43
 
44
44
  if [ "$GIT_TOKEN" = "" ]; then
45
45
  echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
46
  git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
47
  else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
49
  fi
50
50
 
51
51
  fi
@@ -55,4 +55,3 @@ git pull origin master
55
55
  # Pushes (Forces) the changes in the local repository up to the remote repository
56
56
  echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
57
  git push origin master 2>&1 | grep -v 'To https'
58
-