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.
- checksums.yaml +4 -4
- data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
- data/lib/candidhealth/custom_schemas/v_1/client.rb +20 -20
- data/lib/candidhealth/financials/types/account_type.rb +1 -0
- data/lib/candidhealth/pre_encounter/common/types/disability_status.rb +14 -0
- data/lib/candidhealth/pre_encounter/common/types/ethnicity.rb +16 -0
- data/lib/candidhealth/pre_encounter/common/types/gender.rb +5 -2
- data/lib/candidhealth/pre_encounter/common/types/race.rb +21 -0
- data/lib/candidhealth/pre_encounter/common/types/sex.rb +16 -0
- data/lib/candidhealth/pre_encounter/common/types/sexual_orientation.rb +19 -0
- data/lib/candidhealth/pre_encounter/coverages/client.rb +6 -6
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +464 -11
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +183 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_status.rb +20 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +134 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +129 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +33 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +88 -0
- data/lib/candidhealth/pre_encounter/patients/client.rb +6 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +607 -11
- data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +133 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb +73 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provider.rb +122 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb +63 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb +26 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +325 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +389 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +25 -1
- data/lib/candidhealth.rb +7 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +18 -12
- metadata +20 -16
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/client.rb +0 -487
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage.rb +0 -185
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage_status.rb +0 -22
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage_type.rb +0 -18
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/insurance_plan.rb +0 -136
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/mutable_coverage.rb +0 -131
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/subscriber.rb +0 -90
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/client.rb +0 -590
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/contact.rb +0 -135
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/external_provenance.rb +0 -75
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/external_provider.rb +0 -116
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/marital_status.rb +0 -28
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/mutable_patient.rb +0 -242
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5ff8c4c0d313269cb5562b1d858aeb1edd111a93674fea096bffbaff0709dfe
|
4
|
+
data.tar.gz: b73699ae13470f85b07c5eba00ff61f9b0f698baee49522f40897ac8e8ab2755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaf9394896b6a1cebd6c7be9ede2f5258ae496e1a4ffae0fca323b96026d61be88b11fb2001e70ba0546f5e720e581576deb05b2c835deb90dcc265f9fad222e
|
7
|
+
data.tar.gz: 6b835c8885844a4efadbcb514ae5fedae7857e9309d0cf63b7b0220d7a7d35f364c291d90a25783281a2d5694966a61df7db4ccd0733821dcbf694e235551265
|
@@ -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: "
|
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
|
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: "
|
82
|
-
# description: "
|
83
|
-
# fields: [{ key: "
|
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: "
|
121
|
-
# name: "
|
122
|
-
# description: "
|
123
|
-
# fields_to_add: [{ key: "
|
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: "
|
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
|
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: "
|
221
|
-
# description: "
|
222
|
-
# fields: [{ key: "
|
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: "
|
262
|
-
# name: "
|
263
|
-
# description: "
|
264
|
-
# fields_to_add: [{ key: "
|
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
|
@@ -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
|
-
|
9
|
-
|
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,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::
|
11
|
-
attr_reader :
|
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
|
-
@
|
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::
|
22
|
-
attr_reader :
|
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
|
-
@
|
27
|
+
@v_1 = CandidApiClient::PreEncounter::Coverages::V1::AsyncV1Client.new(request_client: request_client)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|