candidhealth 0.24.3 → 0.24.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
  3. data/lib/candidhealth/custom_schemas/v_1/client.rb +20 -20
  4. data/lib/candidhealth/financials/types/account_type.rb +1 -0
  5. data/lib/candidhealth/pre_encounter/common/types/disability_status.rb +14 -0
  6. data/lib/candidhealth/pre_encounter/common/types/ethnicity.rb +16 -0
  7. data/lib/candidhealth/pre_encounter/common/types/gender.rb +5 -2
  8. data/lib/candidhealth/pre_encounter/common/types/race.rb +21 -0
  9. data/lib/candidhealth/pre_encounter/common/types/sex.rb +16 -0
  10. data/lib/candidhealth/pre_encounter/common/types/sexual_orientation.rb +19 -0
  11. data/lib/candidhealth/pre_encounter/coverages/client.rb +6 -6
  12. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +464 -11
  13. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +183 -0
  14. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_status.rb +20 -0
  15. data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +134 -0
  16. data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +129 -0
  17. data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +33 -0
  18. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +88 -0
  19. data/lib/candidhealth/pre_encounter/patients/client.rb +6 -6
  20. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +607 -11
  21. data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +133 -0
  22. data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb +73 -0
  23. data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provider.rb +122 -0
  24. data/lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb +63 -0
  25. data/lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb +26 -0
  26. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +325 -0
  27. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +389 -0
  28. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +25 -1
  29. data/lib/candidhealth.rb +7 -7
  30. data/lib/requests.rb +2 -2
  31. data/lib/types_export.rb +18 -12
  32. metadata +20 -16
  33. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/client.rb +0 -487
  34. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage.rb +0 -185
  35. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage_status.rb +0 -22
  36. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage_type.rb +0 -18
  37. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/insurance_plan.rb +0 -136
  38. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/mutable_coverage.rb +0 -131
  39. data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/subscriber.rb +0 -90
  40. data/lib/candidhealth/pre_encounter/patients/v_1/patients/client.rb +0 -590
  41. data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/contact.rb +0 -135
  42. data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/external_provenance.rb +0 -75
  43. data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/external_provider.rb +0 -116
  44. data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/marital_status.rb +0 -28
  45. data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/mutable_patient.rb +0 -242
  46. data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/patient.rb +0 -294
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e1718f0ca0a159b22fe68ff3c74381c4d6c9f0b88748b60300f78eb21c52e77
4
- data.tar.gz: e0a6c61539217e8e38d1ebd9b681d9f53ed5b2daec264794187955f6f72228de
3
+ metadata.gz: d5ff8c4c0d313269cb5562b1d858aeb1edd111a93674fea096bffbaff0709dfe
4
+ data.tar.gz: b73699ae13470f85b07c5eba00ff61f9b0f698baee49522f40897ac8e8ab2755
5
5
  SHA512:
6
- metadata.gz: 07f8bf71ea0330db01ded0a5260cf40b8af9622e3d3042e5ad3e65ceb85e8b85acd99921d76a0e33fc8543ea5405c4b39c0f7b6f1baa9ad62e864ea86bbb4b8e
7
- data.tar.gz: 2e6edda2e02c8b73e2fe30ee09d90ed73f8e23521324dd79c0a88c84c1d04af110026b72ede5e54fd2567981d599b7ae5ce2bd6512ff0da2847363d58958c663
6
+ metadata.gz: eaf9394896b6a1cebd6c7be9ede2f5258ae496e1a4ffae0fca323b96026d61be88b11fb2001e70ba0546f5e720e581576deb05b2c835deb90dcc265f9fad222e
7
+ data.tar.gz: 6b835c8885844a4efadbcb514ae5fedae7857e9309d0cf63b7b0220d7a7d35f364c291d90a25783281a2d5694966a61df7db4ccd0733821dcbf694e235551265
@@ -94,6 +94,7 @@ module CandidApiClient
94
94
  CT = "CT"
95
95
  CO = "CO"
96
96
  CQ = "CQ"
97
+ DA = "DA"
97
98
  E_1 = "E1"
98
99
  E_2 = "E2"
99
100
  E_3 = "E3"
@@ -48,7 +48,7 @@ module CandidApiClient
48
48
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
49
49
  # @example
50
50
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
51
- # api.custom_schemas.v_1.get(schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
51
+ # api.custom_schemas.v_1.get(schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582")
52
52
  def get(schema_id:, request_options: nil)
53
53
  response = @request_client.conn.get do |req|
54
54
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -64,8 +64,8 @@ module CandidApiClient
64
64
  CandidApiClient::CustomSchemas::V1::Types::Schema.from_json(json_object: response.body)
65
65
  end
66
66
 
67
- # Create a custom schema. Schema keys can be referenced as inputs in
68
- # user-configurable rules in the Rules
67
+ # Create custom schema with a set of typed keys. Schema keys can be referenced as
68
+ # inputs in user-configurable rules in the Rules
69
69
  # Engine, and key-value pairs can be attached to claims via the Encounters API.
70
70
  #
71
71
  # @param name [String]
@@ -78,9 +78,9 @@ module CandidApiClient
78
78
  # @example
79
79
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
80
80
  # api.custom_schemas.v_1.create(
81
- # name: "string",
82
- # description: "string",
83
- # fields: [{ key: "string", type: BOOLEAN }]
81
+ # name: "General Medicine",
82
+ # description: "Values associated with a generic visit",
83
+ # fields: [{ key: "provider_category", type: STRING }, { key: "is_urgent_care", type: BOOLEAN }, { key: "bmi", type: DOUBLE }, { key: "age", type: INTEGER }]
84
84
  # )
85
85
  def create(name:, fields:, description: nil, request_options: nil)
86
86
  response = @request_client.conn.post do |req|
@@ -117,10 +117,10 @@ module CandidApiClient
117
117
  # @example
118
118
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
119
119
  # api.custom_schemas.v_1.update(
120
- # schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
121
- # name: "string",
122
- # description: "string",
123
- # fields_to_add: [{ key: "string", type: BOOLEAN }]
120
+ # schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582",
121
+ # name: "General Medicine and Health",
122
+ # description: "Values collected during all visits",
123
+ # fields_to_add: [{ key: "visit_type", type: STRING }]
124
124
  # )
125
125
  def update(schema_id:, name: nil, description: nil, fields_to_add: nil, request_options: nil)
126
126
  response = @request_client.conn.patch do |req|
@@ -185,7 +185,7 @@ module CandidApiClient
185
185
  # @return [CandidApiClient::CustomSchemas::V1::Types::Schema]
186
186
  # @example
187
187
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
188
- # api.custom_schemas.v_1.get(schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
188
+ # api.custom_schemas.v_1.get(schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582")
189
189
  def get(schema_id:, request_options: nil)
190
190
  Async do
191
191
  response = @request_client.conn.get do |req|
@@ -203,8 +203,8 @@ module CandidApiClient
203
203
  end
204
204
  end
205
205
 
206
- # Create a custom schema. Schema keys can be referenced as inputs in
207
- # user-configurable rules in the Rules
206
+ # Create custom schema with a set of typed keys. Schema keys can be referenced as
207
+ # inputs in user-configurable rules in the Rules
208
208
  # Engine, and key-value pairs can be attached to claims via the Encounters API.
209
209
  #
210
210
  # @param name [String]
@@ -217,9 +217,9 @@ module CandidApiClient
217
217
  # @example
218
218
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
219
219
  # api.custom_schemas.v_1.create(
220
- # name: "string",
221
- # description: "string",
222
- # fields: [{ key: "string", type: BOOLEAN }]
220
+ # name: "General Medicine",
221
+ # description: "Values associated with a generic visit",
222
+ # fields: [{ key: "provider_category", type: STRING }, { key: "is_urgent_care", type: BOOLEAN }, { key: "bmi", type: DOUBLE }, { key: "age", type: INTEGER }]
223
223
  # )
224
224
  def create(name:, fields:, description: nil, request_options: nil)
225
225
  Async do
@@ -258,10 +258,10 @@ module CandidApiClient
258
258
  # @example
259
259
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
260
260
  # api.custom_schemas.v_1.update(
261
- # schema_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
262
- # name: "string",
263
- # description: "string",
264
- # fields_to_add: [{ key: "string", type: BOOLEAN }]
261
+ # schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582",
262
+ # name: "General Medicine and Health",
263
+ # description: "Values collected during all visits",
264
+ # fields_to_add: [{ key: "visit_type", type: STRING }]
265
265
  # )
266
266
  def update(schema_id:, name: nil, description: nil, fields_to_add: nil, request_options: nil)
267
267
  Async do
@@ -6,6 +6,7 @@ module CandidApiClient
6
6
  class AccountType
7
7
  PATIENT = "PATIENT"
8
8
  INSURANCE = "INSURANCE"
9
+ THIRD_PARTY_PAYER = "THIRD_PARTY_PAYER"
9
10
  end
10
11
  end
11
12
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module PreEncounter
5
+ module Common
6
+ module Types
7
+ class DisabilityStatus
8
+ DISABLED = "DISABLED"
9
+ NON_DISABLED = "NON_DISABLED"
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module PreEncounter
5
+ module Common
6
+ module Types
7
+ class Ethnicity
8
+ HISPANIC_OR_LATINO = "HISPANIC_OR_LATINO"
9
+ NOT_HISPANIC_OR_LATINO = "NOT_HISPANIC_OR_LATINO"
10
+ UNKNOWN = "UNKNOWN"
11
+ REFUSED = "REFUSED"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -5,10 +5,13 @@ module CandidApiClient
5
5
  module Common
6
6
  module Types
7
7
  class Gender
8
- FEMALE = "FEMALE"
9
- MALE = "MALE"
8
+ MAN = "MAN"
9
+ WOMAN = "WOMAN"
10
+ NON_BINARY = "NON_BINARY"
11
+ TWO_SPIRIT = "TWO_SPIRIT"
10
12
  OTHER = "OTHER"
11
13
  UNKNOWN = "UNKNOWN"
14
+ REFUSED = "REFUSED"
12
15
  end
13
16
  end
14
17
  end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module PreEncounter
5
+ module Common
6
+ module Types
7
+ class Race
8
+ AMERICAN_INDIAN_OR_ALASKA_NATIVE = "AMERICAN_INDIAN_OR_ALASKA_NATIVE"
9
+ WHITE = "WHITE"
10
+ BLACK = "BLACK"
11
+ ASIAN = "ASIAN"
12
+ NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER = "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER"
13
+ MIDDLE_EASTERN_OR_NORTH_AFRICAN = "MIDDLE_EASTERN_OR_NORTH_AFRICAN"
14
+ OTHER = "OTHER"
15
+ UNKNOWN = "UNKNOWN"
16
+ REFUSED = "REFUSED"
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module PreEncounter
5
+ module Common
6
+ module Types
7
+ class Sex
8
+ FEMALE = "FEMALE"
9
+ MALE = "MALE"
10
+ UNKNOWN = "UNKNOWN"
11
+ REFUSED = "REFUSED"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module PreEncounter
5
+ module Common
6
+ module Types
7
+ class SexualOrientation
8
+ HETEROSEXUAL = "HETEROSEXUAL"
9
+ HOMOSEXUAL = "HOMOSEXUAL"
10
+ BISEXUAL = "BISEXUAL"
11
+ TWO_SPIRIT = "TWO_SPIRIT"
12
+ OTHER = "OTHER"
13
+ UNKNOWN = "UNKNOWN"
14
+ REFUSED = "REFUSED"
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -7,24 +7,24 @@ module CandidApiClient
7
7
  module PreEncounter
8
8
  module Coverages
9
9
  class Client
10
- # @return [CandidApiClient::PreEncounter::Coverages::V1::Client]
11
- attr_reader :pre_encounter
10
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::V1Client]
11
+ attr_reader :v_1
12
12
 
13
13
  # @param request_client [CandidApiClient::RequestClient]
14
14
  # @return [CandidApiClient::PreEncounter::Coverages::Client]
15
15
  def initialize(request_client:)
16
- @pre_encounter = CandidApiClient::PreEncounter::Coverages::V1::Client.new(request_client: request_client)
16
+ @v_1 = CandidApiClient::PreEncounter::Coverages::V1::V1Client.new(request_client: request_client)
17
17
  end
18
18
  end
19
19
 
20
20
  class AsyncClient
21
- # @return [CandidApiClient::PreEncounter::Coverages::V1::AsyncClient]
22
- attr_reader :pre_encounter
21
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::AsyncV1Client]
22
+ attr_reader :v_1
23
23
 
24
24
  # @param request_client [CandidApiClient::AsyncRequestClient]
25
25
  # @return [CandidApiClient::PreEncounter::Coverages::AsyncClient]
26
26
  def initialize(request_client:)
27
- @pre_encounter = CandidApiClient::PreEncounter::Coverages::V1::AsyncClient.new(request_client: request_client)
27
+ @v_1 = CandidApiClient::PreEncounter::Coverages::V1::AsyncV1Client.new(request_client: request_client)
28
28
  end
29
29
  end
30
30
  end