candidhealth 0.39.1 → 0.39.3
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/charge_capture/v_1/client.rb +16 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +18 -2
- data/lib/candidhealth/commons/types/epsdt_referral_condition_indicator_code.rb +14 -0
- data/lib/candidhealth/encounters/v_4/client.rb +1112 -1192
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +17 -1
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +627 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +18 -2
- data/lib/candidhealth/encounters/v_4/types/epsdt_referral.rb +85 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +12 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +26 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +25 -1
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +26 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +26 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +3 -0
- metadata +5 -2
@@ -21,6 +21,7 @@ require_relative "../../../encounter_providers/v_2/types/billing_provider_update
|
|
21
21
|
require_relative "../../../encounter_providers/v_2/types/supervising_provider_update"
|
22
22
|
require_relative "../../../encounter_providers/v_2/types/referring_provider_update"
|
23
23
|
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update"
|
24
|
+
require_relative "epsdt_referral"
|
24
25
|
require "ostruct"
|
25
26
|
require "json"
|
26
27
|
|
@@ -193,6 +194,9 @@ module CandidApiClient
|
|
193
194
|
attr_reader :initial_referring_provider
|
194
195
|
# @return [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
195
196
|
attr_reader :referral_number
|
197
|
+
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
198
|
+
# 837P form
|
199
|
+
attr_reader :epsdt_referral
|
196
200
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
197
201
|
attr_reader :additional_properties
|
198
202
|
# @return [Object]
|
@@ -329,10 +333,12 @@ module CandidApiClient
|
|
329
333
|
# provider wrote the initial referral for this patient's episode of care being
|
330
334
|
# billed/reported in this transaction.
|
331
335
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
336
|
+
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
337
|
+
# 837P form
|
332
338
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
333
339
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterOptional]
|
334
340
|
def initialize(benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT,
|
335
|
-
date_of_service: OMIT, tag_ids: OMIT, clinical_notes: OMIT, pay_to_address: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient: OMIT, patient_authorized_release: OMIT, schema_instances: OMIT, vitals: OMIT, existing_medications: OMIT, rendering_provider: OMIT, service_facility: OMIT, guarantor: OMIT, billing_provider: OMIT, supervising_provider: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, referral_number: OMIT, additional_properties: nil)
|
341
|
+
date_of_service: OMIT, tag_ids: OMIT, clinical_notes: OMIT, pay_to_address: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient: OMIT, patient_authorized_release: OMIT, schema_instances: OMIT, vitals: OMIT, existing_medications: OMIT, rendering_provider: OMIT, service_facility: OMIT, guarantor: OMIT, billing_provider: OMIT, supervising_provider: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, referral_number: OMIT, epsdt_referral: OMIT, additional_properties: nil)
|
336
342
|
@benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
|
337
343
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
338
344
|
@external_id = external_id if external_id != OMIT
|
@@ -373,6 +379,7 @@ module CandidApiClient
|
|
373
379
|
@referring_provider = referring_provider if referring_provider != OMIT
|
374
380
|
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
375
381
|
@referral_number = referral_number if referral_number != OMIT
|
382
|
+
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
376
383
|
@additional_properties = additional_properties
|
377
384
|
@_field_set = {
|
378
385
|
"benefits_assigned_to_provider": benefits_assigned_to_provider,
|
@@ -410,7 +417,8 @@ module CandidApiClient
|
|
410
417
|
"supervising_provider": supervising_provider,
|
411
418
|
"referring_provider": referring_provider,
|
412
419
|
"initial_referring_provider": initial_referring_provider,
|
413
|
-
"referral_number": referral_number
|
420
|
+
"referral_number": referral_number,
|
421
|
+
"epsdt_referral": epsdt_referral
|
414
422
|
}.reject do |_k, v|
|
415
423
|
v == OMIT
|
416
424
|
end
|
@@ -534,6 +542,12 @@ module CandidApiClient
|
|
534
542
|
initial_referring_provider = CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.from_json(json_object: initial_referring_provider)
|
535
543
|
end
|
536
544
|
referral_number = struct["referral_number"]
|
545
|
+
if parsed_json["epsdt_referral"].nil?
|
546
|
+
epsdt_referral = nil
|
547
|
+
else
|
548
|
+
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
549
|
+
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
550
|
+
end
|
537
551
|
new(
|
538
552
|
benefits_assigned_to_provider: benefits_assigned_to_provider,
|
539
553
|
prior_authorization_number: prior_authorization_number,
|
@@ -571,6 +585,7 @@ module CandidApiClient
|
|
571
585
|
referring_provider: referring_provider,
|
572
586
|
initial_referring_provider: initial_referring_provider,
|
573
587
|
referral_number: referral_number,
|
588
|
+
epsdt_referral: epsdt_referral,
|
574
589
|
additional_properties: struct
|
575
590
|
)
|
576
591
|
end
|
@@ -625,6 +640,7 @@ module CandidApiClient
|
|
625
640
|
obj.referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.validate_raw(obj: obj.referring_provider)
|
626
641
|
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
627
642
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
643
|
+
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
628
644
|
end
|
629
645
|
end
|
630
646
|
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../commons/types/epsdt_referral_condition_indicator_code"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Encounters
|
9
|
+
module V4
|
10
|
+
module Types
|
11
|
+
class EpsdtReferral
|
12
|
+
# @return [CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode]
|
13
|
+
attr_reader :condition_indicator_1
|
14
|
+
# @return [CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode]
|
15
|
+
attr_reader :condition_indicator_2
|
16
|
+
# @return [CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode]
|
17
|
+
attr_reader :condition_indicator_3
|
18
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
attr_reader :additional_properties
|
20
|
+
# @return [Object]
|
21
|
+
attr_reader :_field_set
|
22
|
+
protected :_field_set
|
23
|
+
|
24
|
+
OMIT = Object.new
|
25
|
+
|
26
|
+
# @param condition_indicator_1 [CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode]
|
27
|
+
# @param condition_indicator_2 [CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode]
|
28
|
+
# @param condition_indicator_3 [CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode]
|
29
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
|
+
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral]
|
31
|
+
def initialize(condition_indicator_1:, condition_indicator_2: OMIT, condition_indicator_3: OMIT,
|
32
|
+
additional_properties: nil)
|
33
|
+
@condition_indicator_1 = condition_indicator_1
|
34
|
+
@condition_indicator_2 = condition_indicator_2 if condition_indicator_2 != OMIT
|
35
|
+
@condition_indicator_3 = condition_indicator_3 if condition_indicator_3 != OMIT
|
36
|
+
@additional_properties = additional_properties
|
37
|
+
@_field_set = {
|
38
|
+
"condition_indicator1": condition_indicator_1,
|
39
|
+
"condition_indicator2": condition_indicator_2,
|
40
|
+
"condition_indicator3": condition_indicator_3
|
41
|
+
}.reject do |_k, v|
|
42
|
+
v == OMIT
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Deserialize a JSON object to an instance of EpsdtReferral
|
47
|
+
#
|
48
|
+
# @param json_object [String]
|
49
|
+
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral]
|
50
|
+
def self.from_json(json_object:)
|
51
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
52
|
+
condition_indicator_1 = struct["condition_indicator1"]
|
53
|
+
condition_indicator_2 = struct["condition_indicator2"]
|
54
|
+
condition_indicator_3 = struct["condition_indicator3"]
|
55
|
+
new(
|
56
|
+
condition_indicator_1: condition_indicator_1,
|
57
|
+
condition_indicator_2: condition_indicator_2,
|
58
|
+
condition_indicator_3: condition_indicator_3,
|
59
|
+
additional_properties: struct
|
60
|
+
)
|
61
|
+
end
|
62
|
+
|
63
|
+
# Serialize an instance of EpsdtReferral to a JSON object
|
64
|
+
#
|
65
|
+
# @return [String]
|
66
|
+
def to_json(*_args)
|
67
|
+
@_field_set&.to_json
|
68
|
+
end
|
69
|
+
|
70
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
71
|
+
# hash and check each fields type against the current object's property
|
72
|
+
# definitions.
|
73
|
+
#
|
74
|
+
# @param obj [Object]
|
75
|
+
# @return [Void]
|
76
|
+
def self.validate_raw(obj:)
|
77
|
+
obj.condition_indicator_1.is_a?(CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode) != false || raise("Passed value for field obj.condition_indicator_1 is not the expected type, validation failed.")
|
78
|
+
obj.condition_indicator_2&.is_a?(CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode) != false || raise("Passed value for field obj.condition_indicator_2 is not the expected type, validation failed.")
|
79
|
+
obj.condition_indicator_3&.is_a?(CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode) != false || raise("Passed value for field obj.condition_indicator_3 is not the expected type, validation failed.")
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -59,11 +59,13 @@ module CandidApiClient
|
|
59
59
|
# * :last_name (String)
|
60
60
|
# * :organization_name (String)
|
61
61
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
62
|
+
# * :has_epsdt_indicator (Boolean)
|
63
|
+
# * :has_family_planning_indicator (Boolean)
|
62
64
|
# @param request_options [CandidApiClient::RequestOptions]
|
63
65
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
64
66
|
# @example
|
65
67
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
66
|
-
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
|
68
|
+
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
67
69
|
def create(request:, request_options: nil)
|
68
70
|
response = @request_client.conn.post do |req|
|
69
71
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -108,11 +110,13 @@ module CandidApiClient
|
|
108
110
|
# * :date_of_service (Date)
|
109
111
|
# * :end_date_of_service (Date)
|
110
112
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
113
|
+
# * :has_epsdt_indicator (Boolean)
|
114
|
+
# * :has_family_planning_indicator (Boolean)
|
111
115
|
# @param request_options [CandidApiClient::RequestOptions]
|
112
116
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
113
117
|
# @example
|
114
118
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
115
|
-
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
|
119
|
+
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
116
120
|
def update(service_line_id:, request:, request_options: nil)
|
117
121
|
response = @request_client.conn.patch do |req|
|
118
122
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -200,11 +204,13 @@ module CandidApiClient
|
|
200
204
|
# * :last_name (String)
|
201
205
|
# * :organization_name (String)
|
202
206
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
207
|
+
# * :has_epsdt_indicator (Boolean)
|
208
|
+
# * :has_family_planning_indicator (Boolean)
|
203
209
|
# @param request_options [CandidApiClient::RequestOptions]
|
204
210
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
205
211
|
# @example
|
206
212
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
207
|
-
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
|
213
|
+
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
208
214
|
def create(request:, request_options: nil)
|
209
215
|
Async do
|
210
216
|
response = @request_client.conn.post do |req|
|
@@ -251,11 +257,13 @@ module CandidApiClient
|
|
251
257
|
# * :date_of_service (Date)
|
252
258
|
# * :end_date_of_service (Date)
|
253
259
|
# * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
|
260
|
+
# * :has_epsdt_indicator (Boolean)
|
261
|
+
# * :has_family_planning_indicator (Boolean)
|
254
262
|
# @param request_options [CandidApiClient::RequestOptions]
|
255
263
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
256
264
|
# @example
|
257
265
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
258
|
-
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
|
266
|
+
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
259
267
|
def update(service_line_id:, request:, request_options: nil)
|
260
268
|
Async do
|
261
269
|
response = @request_client.conn.patch do |req|
|
@@ -95,6 +95,14 @@ module CandidApiClient
|
|
95
95
|
# @return [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
|
96
96
|
# service line.
|
97
97
|
attr_reader :test_results
|
98
|
+
# @return [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
99
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
100
|
+
# will not be populated.
|
101
|
+
attr_reader :has_epsdt_indicator
|
102
|
+
# @return [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
103
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
104
|
+
# will not be populated.
|
105
|
+
attr_reader :has_family_planning_indicator
|
98
106
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
99
107
|
attr_reader :additional_properties
|
100
108
|
# @return [Object]
|
@@ -144,10 +152,16 @@ module CandidApiClient
|
|
144
152
|
# @param end_date_of_service [Date]
|
145
153
|
# @param test_results [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
|
146
154
|
# service line.
|
155
|
+
# @param has_epsdt_indicator [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
156
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
157
|
+
# will not be populated.
|
158
|
+
# @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
159
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
160
|
+
# will not be populated.
|
147
161
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
148
162
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
149
163
|
def initialize(service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
|
150
|
-
insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, test_results: OMIT, additional_properties: nil)
|
164
|
+
insurance_balance_cents: OMIT, patient_balance_cents: OMIT, paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, service_line_era_data: OMIT, service_line_manual_adjustments: OMIT, related_invoices: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
|
151
165
|
@modifiers = modifiers if modifiers != OMIT
|
152
166
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
153
167
|
@allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
|
@@ -185,6 +199,8 @@ module CandidApiClient
|
|
185
199
|
@date_of_service = date_of_service
|
186
200
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
187
201
|
@test_results = test_results if test_results != OMIT
|
202
|
+
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
203
|
+
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
188
204
|
@additional_properties = additional_properties
|
189
205
|
@_field_set = {
|
190
206
|
"modifiers": modifiers,
|
@@ -219,7 +235,9 @@ module CandidApiClient
|
|
219
235
|
"description": description,
|
220
236
|
"date_of_service": date_of_service,
|
221
237
|
"end_date_of_service": end_date_of_service,
|
222
|
-
"test_results": test_results
|
238
|
+
"test_results": test_results,
|
239
|
+
"has_epsdt_indicator": has_epsdt_indicator,
|
240
|
+
"has_family_planning_indicator": has_family_planning_indicator
|
223
241
|
}.reject do |_k, v|
|
224
242
|
v == OMIT
|
225
243
|
end
|
@@ -304,6 +322,8 @@ module CandidApiClient
|
|
304
322
|
item = item.to_json
|
305
323
|
CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
|
306
324
|
end
|
325
|
+
has_epsdt_indicator = struct["has_epsdt_indicator"]
|
326
|
+
has_family_planning_indicator = struct["has_family_planning_indicator"]
|
307
327
|
new(
|
308
328
|
modifiers: modifiers,
|
309
329
|
charge_amount_cents: charge_amount_cents,
|
@@ -338,6 +358,8 @@ module CandidApiClient
|
|
338
358
|
date_of_service: date_of_service,
|
339
359
|
end_date_of_service: end_date_of_service,
|
340
360
|
test_results: test_results,
|
361
|
+
has_epsdt_indicator: has_epsdt_indicator,
|
362
|
+
has_family_planning_indicator: has_family_planning_indicator,
|
341
363
|
additional_properties: struct
|
342
364
|
)
|
343
365
|
end
|
@@ -389,6 +411,8 @@ module CandidApiClient
|
|
389
411
|
obj.date_of_service.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
390
412
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
391
413
|
obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
|
414
|
+
obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
|
415
|
+
obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
|
392
416
|
end
|
393
417
|
end
|
394
418
|
end
|
@@ -17,6 +17,14 @@ module CandidApiClient
|
|
17
17
|
class ServiceLineCreate
|
18
18
|
# @return [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
|
19
19
|
attr_reader :modifiers
|
20
|
+
# @return [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
21
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
22
|
+
# will not be populated.
|
23
|
+
attr_reader :has_epsdt_indicator
|
24
|
+
# @return [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
25
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
26
|
+
# will not be populated.
|
27
|
+
attr_reader :has_family_planning_indicator
|
20
28
|
# @return [String]
|
21
29
|
attr_reader :procedure_code
|
22
30
|
# @return [String] String representation of a Decimal that can be parsed by most libraries.
|
@@ -63,6 +71,12 @@ module CandidApiClient
|
|
63
71
|
OMIT = Object.new
|
64
72
|
|
65
73
|
# @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
|
74
|
+
# @param has_epsdt_indicator [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
75
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
76
|
+
# will not be populated.
|
77
|
+
# @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
78
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
79
|
+
# will not be populated.
|
66
80
|
# @param procedure_code [String]
|
67
81
|
# @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
|
68
82
|
# A ServiceLine quantity cannot contain more than one digit of precision.
|
@@ -91,8 +105,10 @@ module CandidApiClient
|
|
91
105
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
92
106
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate]
|
93
107
|
def initialize(procedure_code:, quantity:, units:, diagnosis_pointers:, modifiers: OMIT,
|
94
|
-
charge_amount_cents: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, test_results: OMIT, additional_properties: nil)
|
108
|
+
has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, charge_amount_cents: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, test_results: OMIT, additional_properties: nil)
|
95
109
|
@modifiers = modifiers if modifiers != OMIT
|
110
|
+
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
111
|
+
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
96
112
|
@procedure_code = procedure_code
|
97
113
|
@quantity = quantity
|
98
114
|
@units = units
|
@@ -108,6 +124,8 @@ module CandidApiClient
|
|
108
124
|
@additional_properties = additional_properties
|
109
125
|
@_field_set = {
|
110
126
|
"modifiers": modifiers,
|
127
|
+
"has_epsdt_indicator": has_epsdt_indicator,
|
128
|
+
"has_family_planning_indicator": has_family_planning_indicator,
|
111
129
|
"procedure_code": procedure_code,
|
112
130
|
"quantity": quantity,
|
113
131
|
"units": units,
|
@@ -133,6 +151,8 @@ module CandidApiClient
|
|
133
151
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
134
152
|
parsed_json = JSON.parse(json_object)
|
135
153
|
modifiers = struct["modifiers"]
|
154
|
+
has_epsdt_indicator = struct["has_epsdt_indicator"]
|
155
|
+
has_family_planning_indicator = struct["has_family_planning_indicator"]
|
136
156
|
procedure_code = struct["procedure_code"]
|
137
157
|
quantity = struct["quantity"]
|
138
158
|
units = struct["units"]
|
@@ -162,6 +182,8 @@ module CandidApiClient
|
|
162
182
|
end
|
163
183
|
new(
|
164
184
|
modifiers: modifiers,
|
185
|
+
has_epsdt_indicator: has_epsdt_indicator,
|
186
|
+
has_family_planning_indicator: has_family_planning_indicator,
|
165
187
|
procedure_code: procedure_code,
|
166
188
|
quantity: quantity,
|
167
189
|
units: units,
|
@@ -193,6 +215,8 @@ module CandidApiClient
|
|
193
215
|
# @return [Void]
|
194
216
|
def self.validate_raw(obj:)
|
195
217
|
obj.modifiers&.is_a?(Array) != false || raise("Passed value for field obj.modifiers is not the expected type, validation failed.")
|
218
|
+
obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
|
219
|
+
obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
|
196
220
|
obj.procedure_code.is_a?(String) != false || raise("Passed value for field obj.procedure_code is not the expected type, validation failed.")
|
197
221
|
obj.quantity.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
198
222
|
obj.units.is_a?(CandidApiClient::Commons::Types::ServiceLineUnits) != false || raise("Passed value for field obj.units is not the expected type, validation failed.")
|
@@ -61,6 +61,14 @@ module CandidApiClient
|
|
61
61
|
# @return [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
|
62
62
|
# service line.
|
63
63
|
attr_reader :test_results
|
64
|
+
# @return [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
65
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
66
|
+
# will not be populated.
|
67
|
+
attr_reader :has_epsdt_indicator
|
68
|
+
# @return [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
69
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
70
|
+
# will not be populated.
|
71
|
+
attr_reader :has_family_planning_indicator
|
64
72
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
65
73
|
attr_reader :additional_properties
|
66
74
|
# @return [Object]
|
@@ -96,10 +104,16 @@ module CandidApiClient
|
|
96
104
|
# If not required by this implementation guide, do not send.
|
97
105
|
# @param test_results [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
|
98
106
|
# service line.
|
107
|
+
# @param has_epsdt_indicator [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
108
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
109
|
+
# will not be populated.
|
110
|
+
# @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
111
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
112
|
+
# will not be populated.
|
99
113
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
100
114
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone]
|
101
115
|
def initialize(procedure_code:, quantity:, units:, claim_id:, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT,
|
102
|
-
diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, drug_identification: OMIT, ordering_provider: OMIT, test_results: OMIT, additional_properties: nil)
|
116
|
+
diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, drug_identification: OMIT, ordering_provider: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
|
103
117
|
@modifiers = modifiers if modifiers != OMIT
|
104
118
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
105
119
|
@diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
|
@@ -118,6 +132,8 @@ module CandidApiClient
|
|
118
132
|
@drug_identification = drug_identification if drug_identification != OMIT
|
119
133
|
@ordering_provider = ordering_provider if ordering_provider != OMIT
|
120
134
|
@test_results = test_results if test_results != OMIT
|
135
|
+
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
136
|
+
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
121
137
|
@additional_properties = additional_properties
|
122
138
|
@_field_set = {
|
123
139
|
"modifiers": modifiers,
|
@@ -137,7 +153,9 @@ module CandidApiClient
|
|
137
153
|
"end_date_of_service": end_date_of_service,
|
138
154
|
"drug_identification": drug_identification,
|
139
155
|
"ordering_provider": ordering_provider,
|
140
|
-
"test_results": test_results
|
156
|
+
"test_results": test_results,
|
157
|
+
"has_epsdt_indicator": has_epsdt_indicator,
|
158
|
+
"has_family_planning_indicator": has_family_planning_indicator
|
141
159
|
}.reject do |_k, v|
|
142
160
|
v == OMIT
|
143
161
|
end
|
@@ -188,6 +206,8 @@ module CandidApiClient
|
|
188
206
|
item = item.to_json
|
189
207
|
CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
|
190
208
|
end
|
209
|
+
has_epsdt_indicator = struct["has_epsdt_indicator"]
|
210
|
+
has_family_planning_indicator = struct["has_family_planning_indicator"]
|
191
211
|
new(
|
192
212
|
modifiers: modifiers,
|
193
213
|
charge_amount_cents: charge_amount_cents,
|
@@ -207,6 +227,8 @@ module CandidApiClient
|
|
207
227
|
drug_identification: drug_identification,
|
208
228
|
ordering_provider: ordering_provider,
|
209
229
|
test_results: test_results,
|
230
|
+
has_epsdt_indicator: has_epsdt_indicator,
|
231
|
+
has_family_planning_indicator: has_family_planning_indicator,
|
210
232
|
additional_properties: struct
|
211
233
|
)
|
212
234
|
end
|
@@ -243,6 +265,8 @@ module CandidApiClient
|
|
243
265
|
obj.drug_identification.nil? || CandidApiClient::ServiceLines::V2::Types::DrugIdentification.validate_raw(obj: obj.drug_identification)
|
244
266
|
obj.ordering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::OrderingProvider.validate_raw(obj: obj.ordering_provider)
|
245
267
|
obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
|
268
|
+
obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
|
269
|
+
obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
|
246
270
|
end
|
247
271
|
end
|
248
272
|
end
|
@@ -59,6 +59,14 @@ module CandidApiClient
|
|
59
59
|
# provided. No more than 5 test
|
60
60
|
# results may be submitted per service line.
|
61
61
|
attr_reader :test_results
|
62
|
+
# @return [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
63
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
64
|
+
# will not be populated.
|
65
|
+
attr_reader :has_epsdt_indicator
|
66
|
+
# @return [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
67
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
68
|
+
# will not be populated.
|
69
|
+
attr_reader :has_family_planning_indicator
|
62
70
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
63
71
|
attr_reader :additional_properties
|
64
72
|
# @return [Object]
|
@@ -94,10 +102,16 @@ module CandidApiClient
|
|
94
102
|
# so the test results on the service line will be set to whatever inputs are
|
95
103
|
# provided. No more than 5 test
|
96
104
|
# results may be submitted per service line.
|
105
|
+
# @param has_epsdt_indicator [Boolean] Maps to SV1-11 on the 837-P and Box 24H on the CMS-1500.
|
106
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
107
|
+
# will not be populated.
|
108
|
+
# @param has_family_planning_indicator [Boolean] Maps to SV1-12 on the 837-P and Box 24I on the CMS-1500.
|
109
|
+
# If the value is true, the box will be populated with "Y". Otherwise, the box
|
110
|
+
# will not be populated.
|
97
111
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
98
112
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineUpdate]
|
99
113
|
def initialize(edit_reason: OMIT, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT,
|
100
|
-
diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, units: OMIT, procedure_code: OMIT, quantity: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, test_results: OMIT, additional_properties: nil)
|
114
|
+
diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, drug_identification: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, units: OMIT, procedure_code: OMIT, quantity: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, test_results: OMIT, has_epsdt_indicator: OMIT, has_family_planning_indicator: OMIT, additional_properties: nil)
|
101
115
|
@edit_reason = edit_reason if edit_reason != OMIT
|
102
116
|
@modifiers = modifiers if modifiers != OMIT
|
103
117
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
@@ -115,6 +129,8 @@ module CandidApiClient
|
|
115
129
|
@date_of_service = date_of_service if date_of_service != OMIT
|
116
130
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
117
131
|
@test_results = test_results if test_results != OMIT
|
132
|
+
@has_epsdt_indicator = has_epsdt_indicator if has_epsdt_indicator != OMIT
|
133
|
+
@has_family_planning_indicator = has_family_planning_indicator if has_family_planning_indicator != OMIT
|
118
134
|
@additional_properties = additional_properties
|
119
135
|
@_field_set = {
|
120
136
|
"edit_reason": edit_reason,
|
@@ -133,7 +149,9 @@ module CandidApiClient
|
|
133
149
|
"description": description,
|
134
150
|
"date_of_service": date_of_service,
|
135
151
|
"end_date_of_service": end_date_of_service,
|
136
|
-
"test_results": test_results
|
152
|
+
"test_results": test_results,
|
153
|
+
"has_epsdt_indicator": has_epsdt_indicator,
|
154
|
+
"has_family_planning_indicator": has_family_planning_indicator
|
137
155
|
}.reject do |_k, v|
|
138
156
|
v == OMIT
|
139
157
|
end
|
@@ -178,6 +196,8 @@ module CandidApiClient
|
|
178
196
|
item = item.to_json
|
179
197
|
CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
|
180
198
|
end
|
199
|
+
has_epsdt_indicator = struct["has_epsdt_indicator"]
|
200
|
+
has_family_planning_indicator = struct["has_family_planning_indicator"]
|
181
201
|
new(
|
182
202
|
edit_reason: edit_reason,
|
183
203
|
modifiers: modifiers,
|
@@ -196,6 +216,8 @@ module CandidApiClient
|
|
196
216
|
date_of_service: date_of_service,
|
197
217
|
end_date_of_service: end_date_of_service,
|
198
218
|
test_results: test_results,
|
219
|
+
has_epsdt_indicator: has_epsdt_indicator,
|
220
|
+
has_family_planning_indicator: has_family_planning_indicator,
|
199
221
|
additional_properties: struct
|
200
222
|
)
|
201
223
|
end
|
@@ -231,6 +253,8 @@ module CandidApiClient
|
|
231
253
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
232
254
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
233
255
|
obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
|
256
|
+
obj.has_epsdt_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_epsdt_indicator is not the expected type, validation failed.")
|
257
|
+
obj.has_family_planning_indicator&.is_a?(Boolean) != false || raise("Passed value for field obj.has_family_planning_indicator is not the expected type, validation failed.")
|
234
258
|
end
|
235
259
|
end
|
236
260
|
end
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.3" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.3" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -52,6 +52,7 @@ require_relative "candidhealth/encounter_providers/v_2/types/ordering_provider_u
|
|
52
52
|
require_relative "candidhealth/encounter_providers/v_2/types/billing_provider"
|
53
53
|
require_relative "candidhealth/encounter_providers/v_2/types/billing_provider_update"
|
54
54
|
require_relative "candidhealth/encounter_providers/v_2/types/encounter_provider"
|
55
|
+
require_relative "candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter"
|
55
56
|
require_relative "candidhealth/encounters/v_4/types/encounter_base"
|
56
57
|
require_relative "candidhealth/encounters/v_4/types/encounter_optional"
|
57
58
|
require_relative "candidhealth/encounters/v_4/types/encounter"
|
@@ -78,6 +79,7 @@ require_relative "candidhealth/encounters/v_4/types/encounter_owner_of_next_acti
|
|
78
79
|
require_relative "candidhealth/encounters/v_4/types/encounter_submission_origin_type"
|
79
80
|
require_relative "candidhealth/encounters/v_4/types/synchronicity_type"
|
80
81
|
require_relative "candidhealth/encounters/v_4/types/coding_attribution_type"
|
82
|
+
require_relative "candidhealth/encounters/v_4/types/epsdt_referral"
|
81
83
|
require_relative "candidhealth/encounters/v_4/types/encounter_page"
|
82
84
|
require_relative "candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type"
|
83
85
|
require_relative "candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type"
|
@@ -373,6 +375,7 @@ require_relative "candidhealth/commons/types/phone_number_type"
|
|
373
375
|
require_relative "candidhealth/commons/types/delay_reason_code"
|
374
376
|
require_relative "candidhealth/commons/types/intended_submission_medium"
|
375
377
|
require_relative "candidhealth/commons/types/billing_provider_commercial_license_type"
|
378
|
+
require_relative "candidhealth/commons/types/epsdt_referral_condition_indicator_code"
|
376
379
|
require_relative "candidhealth/diagnoses/types/diagnosis_create"
|
377
380
|
require_relative "candidhealth/diagnoses/types/standalone_diagnosis_create"
|
378
381
|
require_relative "candidhealth/diagnoses/types/diagnosis_type_code"
|