candidhealth 0.39.11 → 0.40.0
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 +4 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +16 -2
- data/lib/candidhealth/encounters/v_4/client.rb +35 -8
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +15 -1
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +16 -2
- data/lib/candidhealth/encounters/v_4/types/report_transmission_code.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/report_type_code.rb +73 -0
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +4 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +15 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/common/types/human_name.rb +15 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/images/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/images/v_1/client.rb +359 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_association.rb +74 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_image_side.rb +16 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +188 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image_status.rb +17 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/mutable_image.rb +125 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/patient_association.rb +75 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +89 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +11 -1
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +6 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +6 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +6 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +10 -8
- data/lib/candidhealth/service_lines/v_2/types/test_result_type.rb +1 -0
- data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off.rb +143 -0
- data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off_create.rb +113 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off.rb +13 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +13 -0
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +114 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +11 -0
- metadata +15 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8a91b8d2c08a55de4d0521432bbdc353fa86c1990b8595ed87d3e514008f902
|
4
|
+
data.tar.gz: 96e4b0340792be17698a6c43203ecd62d2ea4d84062826ff0418d56087ed9cb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed60e8fdaa98c35318617cd5a93a1dd27d8955d7133d8b48385928ee4df95e1cd4442560b6fd1b62575dfa8588448fca29bc35703690112d597f355c1f3c640b
|
7
|
+
data.tar.gz: 55a2be7ba42326b2bfdee8168c6f05b18451ae43f56f7268987ed7c1d6096e27705f5924a3148217df9e4a2e0e35ceea3e84722c04c2bdbfeec340dff5634aec
|
@@ -244,6 +244,7 @@ module CandidApiClient
|
|
244
244
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
245
245
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
246
246
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
247
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
247
248
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
248
249
|
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
249
250
|
# contain PHI.
|
@@ -533,6 +534,7 @@ module CandidApiClient
|
|
533
534
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
534
535
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
535
536
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
537
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
536
538
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
537
539
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
538
540
|
# This field should not contain PHI.
|
@@ -883,6 +885,7 @@ module CandidApiClient
|
|
883
885
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
884
886
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
885
887
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
888
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
886
889
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
887
890
|
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
888
891
|
# contain PHI.
|
@@ -1176,6 +1179,7 @@ module CandidApiClient
|
|
1176
1179
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1177
1180
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1178
1181
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1182
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
|
1179
1183
|
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1180
1184
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1181
1185
|
# This field should not contain PHI.
|
@@ -28,6 +28,7 @@ require_relative "../../../encounter_providers/v_2/types/supervising_provider_up
|
|
28
28
|
require_relative "../../../encounter_providers/v_2/types/referring_provider_update"
|
29
29
|
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update"
|
30
30
|
require_relative "../../../encounters/v_4/types/epsdt_referral"
|
31
|
+
require_relative "../../../encounters/v_4/types/claim_supplemental_information"
|
31
32
|
require "ostruct"
|
32
33
|
require "json"
|
33
34
|
|
@@ -225,6 +226,9 @@ module CandidApiClient
|
|
225
226
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
226
227
|
# 837P form
|
227
228
|
attr_reader :epsdt_referral
|
229
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
230
|
+
# permitted.
|
231
|
+
attr_reader :claim_supplemental_information
|
228
232
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
229
233
|
attr_reader :additional_properties
|
230
234
|
# @return [Object]
|
@@ -379,10 +383,12 @@ module CandidApiClient
|
|
379
383
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
380
384
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
381
385
|
# 837P form
|
386
|
+
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
387
|
+
# permitted.
|
382
388
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
383
389
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
384
390
|
def initialize(diagnoses: OMIT, interventions: OMIT, external_claim_submission: OMIT, service_lines: OMIT,
|
385
|
-
patient_histories: OMIT, billing_notes: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, 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)
|
391
|
+
patient_histories: OMIT, billing_notes: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, 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, claim_supplemental_information: OMIT, additional_properties: nil)
|
386
392
|
@diagnoses = diagnoses if diagnoses != OMIT
|
387
393
|
@interventions = interventions if interventions != OMIT
|
388
394
|
@external_claim_submission = external_claim_submission if external_claim_submission != OMIT
|
@@ -430,6 +436,7 @@ module CandidApiClient
|
|
430
436
|
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
431
437
|
@referral_number = referral_number if referral_number != OMIT
|
432
438
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
439
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
433
440
|
@additional_properties = additional_properties
|
434
441
|
@_field_set = {
|
435
442
|
"diagnoses": diagnoses,
|
@@ -474,7 +481,8 @@ module CandidApiClient
|
|
474
481
|
"referring_provider": referring_provider,
|
475
482
|
"initial_referring_provider": initial_referring_provider,
|
476
483
|
"referral_number": referral_number,
|
477
|
-
"epsdt_referral": epsdt_referral
|
484
|
+
"epsdt_referral": epsdt_referral,
|
485
|
+
"claim_supplemental_information": claim_supplemental_information
|
478
486
|
}.reject do |_k, v|
|
479
487
|
v == OMIT
|
480
488
|
end
|
@@ -630,6 +638,10 @@ module CandidApiClient
|
|
630
638
|
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
631
639
|
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
632
640
|
end
|
641
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
642
|
+
item = item.to_json
|
643
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
644
|
+
end
|
633
645
|
new(
|
634
646
|
diagnoses: diagnoses,
|
635
647
|
interventions: interventions,
|
@@ -674,6 +686,7 @@ module CandidApiClient
|
|
674
686
|
initial_referring_provider: initial_referring_provider,
|
675
687
|
referral_number: referral_number,
|
676
688
|
epsdt_referral: epsdt_referral,
|
689
|
+
claim_supplemental_information: claim_supplemental_information,
|
677
690
|
additional_properties: struct
|
678
691
|
)
|
679
692
|
end
|
@@ -735,6 +748,7 @@ module CandidApiClient
|
|
735
748
|
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
736
749
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
737
750
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
751
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
738
752
|
end
|
739
753
|
end
|
740
754
|
end
|
@@ -35,6 +35,7 @@ require_relative "../../guarantor/v_1/types/guarantor_create"
|
|
35
35
|
require_relative "../../claim_submission/v_1/types/external_claim_submission_create"
|
36
36
|
require_relative "../../custom_schemas/v_1/types/schema_instance"
|
37
37
|
require_relative "types/epsdt_referral"
|
38
|
+
require_relative "types/claim_supplemental_information"
|
38
39
|
require_relative "types/encounter_create_from_pre_encounter"
|
39
40
|
require_relative "../../individual/types/patient_update"
|
40
41
|
require_relative "types/vitals_update"
|
@@ -543,6 +544,11 @@ module CandidApiClient
|
|
543
544
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
544
545
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
545
546
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
547
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
548
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
549
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
550
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
551
|
+
# * :attachment_control_number (String)
|
546
552
|
# @param request_options [CandidApiClient::RequestOptions]
|
547
553
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
548
554
|
# @example
|
@@ -570,10 +576,11 @@ module CandidApiClient
|
|
570
576
|
# tag_ids: ["string"],
|
571
577
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
572
578
|
# referral_number: "string",
|
573
|
-
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV }
|
579
|
+
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV },
|
580
|
+
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
574
581
|
# )
|
575
582
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
576
|
-
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, request_options: nil)
|
583
|
+
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, request_options: nil)
|
577
584
|
response = @request_client.conn.post do |req|
|
578
585
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
579
586
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -628,7 +635,8 @@ module CandidApiClient
|
|
628
635
|
tag_ids: tag_ids,
|
629
636
|
schema_instances: schema_instances,
|
630
637
|
referral_number: referral_number,
|
631
|
-
epsdt_referral: epsdt_referral
|
638
|
+
epsdt_referral: epsdt_referral,
|
639
|
+
claim_supplemental_information: claim_supplemental_information
|
632
640
|
}.compact
|
633
641
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
634
642
|
request_options: request_options)}/api/encounters/v4"
|
@@ -1106,6 +1114,11 @@ module CandidApiClient
|
|
1106
1114
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1107
1115
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1108
1116
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1117
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
1118
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
1119
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
1120
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
1121
|
+
# * :attachment_control_number (String)
|
1109
1122
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
1110
1123
|
# @param _field_set [Object]
|
1111
1124
|
# @param diagnosis_ids [Array<String>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -1126,7 +1139,7 @@ module CandidApiClient
|
|
1126
1139
|
# place_of_service_code_as_submitted: PHARMACY
|
1127
1140
|
# )
|
1128
1141
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
1129
|
-
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
1142
|
+
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
1130
1143
|
response = @request_client.conn.patch do |req|
|
1131
1144
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1132
1145
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -1174,6 +1187,7 @@ module CandidApiClient
|
|
1174
1187
|
initial_referring_provider: initial_referring_provider,
|
1175
1188
|
referral_number: referral_number,
|
1176
1189
|
epsdt_referral: epsdt_referral,
|
1190
|
+
claim_supplemental_information: claim_supplemental_information,
|
1177
1191
|
additional_properties: additional_properties,
|
1178
1192
|
_field_set: _field_set,
|
1179
1193
|
diagnosis_ids: diagnosis_ids,
|
@@ -1683,6 +1697,11 @@ module CandidApiClient
|
|
1683
1697
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1684
1698
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1685
1699
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1700
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
1701
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
1702
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
1703
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
1704
|
+
# * :attachment_control_number (String)
|
1686
1705
|
# @param request_options [CandidApiClient::RequestOptions]
|
1687
1706
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
1688
1707
|
# @example
|
@@ -1710,10 +1729,11 @@ module CandidApiClient
|
|
1710
1729
|
# tag_ids: ["string"],
|
1711
1730
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
1712
1731
|
# referral_number: "string",
|
1713
|
-
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV }
|
1732
|
+
# epsdt_referral: { condition_indicator_1: AV, condition_indicator_2: AV, condition_indicator_3: AV },
|
1733
|
+
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
1714
1734
|
# )
|
1715
1735
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
1716
|
-
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, request_options: nil)
|
1736
|
+
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, request_options: nil)
|
1717
1737
|
Async do
|
1718
1738
|
response = @request_client.conn.post do |req|
|
1719
1739
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1769,7 +1789,8 @@ module CandidApiClient
|
|
1769
1789
|
tag_ids: tag_ids,
|
1770
1790
|
schema_instances: schema_instances,
|
1771
1791
|
referral_number: referral_number,
|
1772
|
-
epsdt_referral: epsdt_referral
|
1792
|
+
epsdt_referral: epsdt_referral,
|
1793
|
+
claim_supplemental_information: claim_supplemental_information
|
1773
1794
|
}.compact
|
1774
1795
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1775
1796
|
request_options: request_options)}/api/encounters/v4"
|
@@ -2250,6 +2271,11 @@ module CandidApiClient
|
|
2250
2271
|
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2251
2272
|
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2252
2273
|
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2274
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
2275
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
2276
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
2277
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
2278
|
+
# * :attachment_control_number (String)
|
2253
2279
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
2254
2280
|
# @param _field_set [Object]
|
2255
2281
|
# @param diagnosis_ids [Array<String>] Ideally, this field should contain no more than 12 diagnoses. However, more
|
@@ -2270,7 +2296,7 @@ module CandidApiClient
|
|
2270
2296
|
# place_of_service_code_as_submitted: PHARMACY
|
2271
2297
|
# )
|
2272
2298
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
2273
|
-
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
2299
|
+
external_id: nil, date_of_service: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient: nil, patient_authorized_release: nil, schema_instances: nil, vitals: nil, existing_medications: nil, rendering_provider: nil, service_facility: nil, guarantor: nil, billing_provider: nil, supervising_provider: nil, referring_provider: nil, initial_referring_provider: nil, referral_number: nil, epsdt_referral: nil, claim_supplemental_information: nil, additional_properties: nil, _field_set: nil, diagnosis_ids: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
2274
2300
|
Async do
|
2275
2301
|
response = @request_client.conn.patch do |req|
|
2276
2302
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -2319,6 +2345,7 @@ module CandidApiClient
|
|
2319
2345
|
initial_referring_provider: initial_referring_provider,
|
2320
2346
|
referral_number: referral_number,
|
2321
2347
|
epsdt_referral: epsdt_referral,
|
2348
|
+
claim_supplemental_information: claim_supplemental_information,
|
2322
2349
|
additional_properties: additional_properties,
|
2323
2350
|
_field_set: _field_set,
|
2324
2351
|
diagnosis_ids: diagnosis_ids,
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "report_type_code"
|
4
|
+
require_relative "report_transmission_code"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
module Encounters
|
10
|
+
module V4
|
11
|
+
module Types
|
12
|
+
class ClaimSupplementalInformation
|
13
|
+
# @return [CandidApiClient::Encounters::V4::Types::ReportTypeCode]
|
14
|
+
attr_reader :attachment_report_type_code
|
15
|
+
# @return [CandidApiClient::Encounters::V4::Types::ReportTransmissionCode]
|
16
|
+
attr_reader :attachment_transmission_code
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :attachment_control_number
|
19
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
+
attr_reader :additional_properties
|
21
|
+
# @return [Object]
|
22
|
+
attr_reader :_field_set
|
23
|
+
protected :_field_set
|
24
|
+
|
25
|
+
OMIT = Object.new
|
26
|
+
|
27
|
+
# @param attachment_report_type_code [CandidApiClient::Encounters::V4::Types::ReportTypeCode]
|
28
|
+
# @param attachment_transmission_code [CandidApiClient::Encounters::V4::Types::ReportTransmissionCode]
|
29
|
+
# @param attachment_control_number [String]
|
30
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
|
+
# @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation]
|
32
|
+
def initialize(attachment_report_type_code:, attachment_transmission_code:, attachment_control_number: OMIT,
|
33
|
+
additional_properties: nil)
|
34
|
+
@attachment_report_type_code = attachment_report_type_code
|
35
|
+
@attachment_transmission_code = attachment_transmission_code
|
36
|
+
@attachment_control_number = attachment_control_number if attachment_control_number != OMIT
|
37
|
+
@additional_properties = additional_properties
|
38
|
+
@_field_set = {
|
39
|
+
"attachment_report_type_code": attachment_report_type_code,
|
40
|
+
"attachment_transmission_code": attachment_transmission_code,
|
41
|
+
"attachment_control_number": attachment_control_number
|
42
|
+
}.reject do |_k, v|
|
43
|
+
v == OMIT
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Deserialize a JSON object to an instance of ClaimSupplementalInformation
|
48
|
+
#
|
49
|
+
# @param json_object [String]
|
50
|
+
# @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation]
|
51
|
+
def self.from_json(json_object:)
|
52
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
53
|
+
attachment_report_type_code = struct["attachment_report_type_code"]
|
54
|
+
attachment_transmission_code = struct["attachment_transmission_code"]
|
55
|
+
attachment_control_number = struct["attachment_control_number"]
|
56
|
+
new(
|
57
|
+
attachment_report_type_code: attachment_report_type_code,
|
58
|
+
attachment_transmission_code: attachment_transmission_code,
|
59
|
+
attachment_control_number: attachment_control_number,
|
60
|
+
additional_properties: struct
|
61
|
+
)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Serialize an instance of ClaimSupplementalInformation to a JSON object
|
65
|
+
#
|
66
|
+
# @return [String]
|
67
|
+
def to_json(*_args)
|
68
|
+
@_field_set&.to_json
|
69
|
+
end
|
70
|
+
|
71
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
72
|
+
# hash and check each fields type against the current object's property
|
73
|
+
# definitions.
|
74
|
+
#
|
75
|
+
# @param obj [Object]
|
76
|
+
# @return [Void]
|
77
|
+
def self.validate_raw(obj:)
|
78
|
+
obj.attachment_report_type_code.is_a?(CandidApiClient::Encounters::V4::Types::ReportTypeCode) != false || raise("Passed value for field obj.attachment_report_type_code is not the expected type, validation failed.")
|
79
|
+
obj.attachment_transmission_code.is_a?(CandidApiClient::Encounters::V4::Types::ReportTransmissionCode) != false || raise("Passed value for field obj.attachment_transmission_code is not the expected type, validation failed.")
|
80
|
+
obj.attachment_control_number&.is_a?(String) != false || raise("Passed value for field obj.attachment_control_number is not the expected type, validation failed.")
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -20,6 +20,7 @@ require_relative "encounter_owner_of_next_action_type"
|
|
20
20
|
require_relative "encounter_submission_origin_type"
|
21
21
|
require_relative "../../../custom_schemas/v_1/types/schema_instance"
|
22
22
|
require_relative "epsdt_referral"
|
23
|
+
require_relative "claim_supplemental_information"
|
23
24
|
require_relative "medication"
|
24
25
|
require_relative "vitals"
|
25
26
|
require_relative "intervention"
|
@@ -147,6 +148,9 @@ module CandidApiClient
|
|
147
148
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
148
149
|
# 837P form
|
149
150
|
attr_reader :epsdt_referral
|
151
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
152
|
+
# permitted.
|
153
|
+
attr_reader :claim_supplemental_information
|
150
154
|
# @return [DateTime] The date and time the encounter was last submitted to a payer.
|
151
155
|
attr_reader :last_submitted_at
|
152
156
|
# @return [DateTime] The date and time the encounter was created.
|
@@ -330,6 +334,8 @@ module CandidApiClient
|
|
330
334
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
331
335
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
332
336
|
# 837P form
|
337
|
+
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
338
|
+
# permitted.
|
333
339
|
# @param last_submitted_at [DateTime] The date and time the encounter was last submitted to a payer.
|
334
340
|
# @param created_at [DateTime] The date and time the encounter was created.
|
335
341
|
# @param external_id [String] A client-specified unique ID to associate with this encounter;
|
@@ -407,7 +413,7 @@ module CandidApiClient
|
|
407
413
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
408
414
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
409
415
|
def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:,
|
410
|
-
responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, created_at:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, epsdt_referral: OMIT, last_submitted_at: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: 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, additional_properties: nil)
|
416
|
+
responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, created_at:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, last_submitted_at: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: 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, additional_properties: nil)
|
411
417
|
@patient_control_number = patient_control_number if patient_control_number != OMIT
|
412
418
|
@encounter_id = encounter_id
|
413
419
|
@claims = claims
|
@@ -444,6 +450,7 @@ module CandidApiClient
|
|
444
450
|
@schema_instances = schema_instances
|
445
451
|
@referral_number = referral_number if referral_number != OMIT
|
446
452
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
453
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
447
454
|
@last_submitted_at = last_submitted_at if last_submitted_at != OMIT
|
448
455
|
@created_at = created_at
|
449
456
|
@external_id = external_id
|
@@ -504,6 +511,7 @@ module CandidApiClient
|
|
504
511
|
"schema_instances": schema_instances,
|
505
512
|
"referral_number": referral_number,
|
506
513
|
"epsdt_referral": epsdt_referral,
|
514
|
+
"claim_supplemental_information": claim_supplemental_information,
|
507
515
|
"last_submitted_at": last_submitted_at,
|
508
516
|
"created_at": created_at,
|
509
517
|
"external_id": external_id,
|
@@ -651,6 +659,10 @@ module CandidApiClient
|
|
651
659
|
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
652
660
|
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
653
661
|
end
|
662
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
663
|
+
item = item.to_json
|
664
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
665
|
+
end
|
654
666
|
last_submitted_at = unless parsed_json["last_submitted_at"].nil?
|
655
667
|
DateTime.parse(parsed_json["last_submitted_at"])
|
656
668
|
end
|
@@ -730,6 +742,7 @@ module CandidApiClient
|
|
730
742
|
schema_instances: schema_instances,
|
731
743
|
referral_number: referral_number,
|
732
744
|
epsdt_referral: epsdt_referral,
|
745
|
+
claim_supplemental_information: claim_supplemental_information,
|
733
746
|
last_submitted_at: last_submitted_at,
|
734
747
|
created_at: created_at,
|
735
748
|
external_id: external_id,
|
@@ -802,6 +815,7 @@ module CandidApiClient
|
|
802
815
|
obj.schema_instances.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
803
816
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
804
817
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
818
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
805
819
|
obj.last_submitted_at&.is_a?(DateTime) != false || raise("Passed value for field obj.last_submitted_at is not the expected type, validation failed.")
|
806
820
|
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
807
821
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
@@ -22,6 +22,7 @@ require_relative "../../../encounter_providers/v_2/types/supervising_provider_up
|
|
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
24
|
require_relative "epsdt_referral"
|
25
|
+
require_relative "claim_supplemental_information"
|
25
26
|
require "ostruct"
|
26
27
|
require "json"
|
27
28
|
|
@@ -197,6 +198,9 @@ module CandidApiClient
|
|
197
198
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
198
199
|
# 837P form
|
199
200
|
attr_reader :epsdt_referral
|
201
|
+
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
202
|
+
# permitted.
|
203
|
+
attr_reader :claim_supplemental_information
|
200
204
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
201
205
|
attr_reader :additional_properties
|
202
206
|
# @return [Object]
|
@@ -335,10 +339,12 @@ module CandidApiClient
|
|
335
339
|
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
336
340
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
337
341
|
# 837P form
|
342
|
+
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
343
|
+
# permitted.
|
338
344
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
339
345
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterOptional]
|
340
346
|
def initialize(benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT,
|
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)
|
347
|
+
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, claim_supplemental_information: OMIT, additional_properties: nil)
|
342
348
|
@benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
|
343
349
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
344
350
|
@external_id = external_id if external_id != OMIT
|
@@ -380,6 +386,7 @@ module CandidApiClient
|
|
380
386
|
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
381
387
|
@referral_number = referral_number if referral_number != OMIT
|
382
388
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
389
|
+
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
383
390
|
@additional_properties = additional_properties
|
384
391
|
@_field_set = {
|
385
392
|
"benefits_assigned_to_provider": benefits_assigned_to_provider,
|
@@ -418,7 +425,8 @@ module CandidApiClient
|
|
418
425
|
"referring_provider": referring_provider,
|
419
426
|
"initial_referring_provider": initial_referring_provider,
|
420
427
|
"referral_number": referral_number,
|
421
|
-
"epsdt_referral": epsdt_referral
|
428
|
+
"epsdt_referral": epsdt_referral,
|
429
|
+
"claim_supplemental_information": claim_supplemental_information
|
422
430
|
}.reject do |_k, v|
|
423
431
|
v == OMIT
|
424
432
|
end
|
@@ -548,6 +556,10 @@ module CandidApiClient
|
|
548
556
|
epsdt_referral = parsed_json["epsdt_referral"].to_json
|
549
557
|
epsdt_referral = CandidApiClient::Encounters::V4::Types::EpsdtReferral.from_json(json_object: epsdt_referral)
|
550
558
|
end
|
559
|
+
claim_supplemental_information = parsed_json["claim_supplemental_information"]&.map do |item|
|
560
|
+
item = item.to_json
|
561
|
+
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
562
|
+
end
|
551
563
|
new(
|
552
564
|
benefits_assigned_to_provider: benefits_assigned_to_provider,
|
553
565
|
prior_authorization_number: prior_authorization_number,
|
@@ -586,6 +598,7 @@ module CandidApiClient
|
|
586
598
|
initial_referring_provider: initial_referring_provider,
|
587
599
|
referral_number: referral_number,
|
588
600
|
epsdt_referral: epsdt_referral,
|
601
|
+
claim_supplemental_information: claim_supplemental_information,
|
589
602
|
additional_properties: struct
|
590
603
|
)
|
591
604
|
end
|
@@ -641,6 +654,7 @@ module CandidApiClient
|
|
641
654
|
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
642
655
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
643
656
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
657
|
+
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
644
658
|
end
|
645
659
|
end
|
646
660
|
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module Encounters
|
5
|
+
module V4
|
6
|
+
module Types
|
7
|
+
class ReportTypeCode
|
8
|
+
C_03 = "03"
|
9
|
+
C_04 = "04"
|
10
|
+
C_05 = "05"
|
11
|
+
C_06 = "06"
|
12
|
+
C_07 = "07"
|
13
|
+
C_08 = "08"
|
14
|
+
C_09 = "09"
|
15
|
+
C_10 = "10"
|
16
|
+
C_11 = "11"
|
17
|
+
C_13 = "13"
|
18
|
+
C_15 = "15"
|
19
|
+
C_21 = "21"
|
20
|
+
CA_3 = "A3"
|
21
|
+
CA_4 = "A4"
|
22
|
+
CAM = "AM"
|
23
|
+
CAS = "AS"
|
24
|
+
CB_2 = "B2"
|
25
|
+
CB_3 = "B3"
|
26
|
+
CB_4 = "B4"
|
27
|
+
CBR = "BR"
|
28
|
+
CBS = "BS"
|
29
|
+
CBT = "BT"
|
30
|
+
CCB = "CB"
|
31
|
+
CCK = "CK"
|
32
|
+
CCT = "CT"
|
33
|
+
CD_2 = "D2"
|
34
|
+
CDA = "DA"
|
35
|
+
CDB = "DB"
|
36
|
+
CDG = "DG"
|
37
|
+
CDJ = "DJ"
|
38
|
+
CDS = "DS"
|
39
|
+
CEB = "EB"
|
40
|
+
CHC = "HC"
|
41
|
+
CHR = "HR"
|
42
|
+
CI_5 = "I5"
|
43
|
+
CIR = "IR"
|
44
|
+
CLA = "LA"
|
45
|
+
CM_1 = "M1"
|
46
|
+
CMT = "MT"
|
47
|
+
CNN = "NN"
|
48
|
+
COB = "OB"
|
49
|
+
COC = "OC"
|
50
|
+
COD = "OD"
|
51
|
+
COE = "OE"
|
52
|
+
COX = "OX"
|
53
|
+
COZ = "OZ"
|
54
|
+
CP_4 = "P4"
|
55
|
+
CP_5 = "P5"
|
56
|
+
CPE = "PE"
|
57
|
+
CPN = "PN"
|
58
|
+
CPO = "PO"
|
59
|
+
CPQ = "PQ"
|
60
|
+
CPY = "PY"
|
61
|
+
CPZ = "PZ"
|
62
|
+
CRB = "RB"
|
63
|
+
CRR = "RR"
|
64
|
+
CRT = "RT"
|
65
|
+
CRX = "RX"
|
66
|
+
CSG = "SG"
|
67
|
+
CV_5 = "V5"
|
68
|
+
CXP = "XP"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|