candidhealth 1.6.0 → 1.8.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/auth/default/client.rb +74 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +48 -48
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +70 -56
- data/lib/candidhealth/commons/types/clearinghouse.rb +18 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +11 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +342 -8
- data/lib/candidhealth/credentialing/v_2/types/base_credentialing_span.rb +143 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span.rb +165 -0
- data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +34 -34
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
- data/lib/candidhealth/encounters/v_4/client.rb +3253 -2040
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
- data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
- data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
- data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
- data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
- data/lib/candidhealth/health_care_code_information/client.rb +30 -0
- data/lib/candidhealth/health_care_code_information/v_1/client.rb +268 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +1068 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +237 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +54 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +227 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +188 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +225 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +249 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +25 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +252 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +248 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/present_on_admission_indicator_code.rb +17 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_code_qualifier.rb +14 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +246 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_code_qualifier.rb +15 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +72 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_admitting_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_diagnosis_related_group.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_diagnosis.rb +69 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_procedure_information.rb +71 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +236 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code.rb +119 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_code_qualifier.rb +13 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +245 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
- data/lib/candidhealth/individual/types/patient.rb +6 -6
- data/lib/candidhealth/individual/types/patient_base.rb +6 -6
- data/lib/candidhealth/individual/types/patient_create.rb +6 -6
- data/lib/candidhealth/individual/types/patient_update.rb +6 -6
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +6 -6
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/patient_ar/client.rb +30 -0
- data/lib/candidhealth/patient_ar/v_1/client.rb +161 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/invalid_filters_error_type.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/inventory_record.rb +101 -0
- data/lib/candidhealth/patient_ar/v_1/types/invoice_itemization_response.rb +103 -0
- data/lib/candidhealth/patient_ar/v_1/types/list_inventory_paged_response.rb +77 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/non_insurance_payment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_adjustment_info.rb +60 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_ar_status.rb +14 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_allocation.rb +76 -0
- data/lib/candidhealth/patient_ar/v_1/types/patient_payment_info.rb +75 -0
- data/lib/candidhealth/patient_ar/v_1/types/service_line_itemization.rb +210 -0
- data/lib/candidhealth/payers/client.rb +7 -0
- data/lib/candidhealth/payers/v_4/client.rb +137 -0
- data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +93 -0
- data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
- data/lib/candidhealth/payers/v_4/types/payer_ids.rb +107 -0
- data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
- data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +204 -6
- data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +33 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +33 -5
- data/lib/candidhealth/pre_encounter/patients/v_1/types/origination_detail.rb +104 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +32 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_source.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +17 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/specialization_category.rb +42 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
- data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
- data/lib/candidhealth.rb +21 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +116 -13
- metadata +109 -2
@@ -385,6 +385,33 @@ module CandidApiClient
|
|
385
385
|
end
|
386
386
|
JSON.parse(response.body)
|
387
387
|
end
|
388
|
+
|
389
|
+
# Hard deletes specific rates from the system by their IDs. This is a destructive
|
390
|
+
# operation and cannot be undone. Limited to 100 rate IDs maximum per request. For
|
391
|
+
# bulk deletion of more than 100 rates, use the hard_delete_rates endpoint with
|
392
|
+
# dimension filters. Returns the number of rates deleted.
|
393
|
+
#
|
394
|
+
# @param rate_ids [Array<String>]
|
395
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
396
|
+
# @return [Integer]
|
397
|
+
# @example
|
398
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
399
|
+
# api.fee_schedules.v_3.hard_delete_rates_by_ids(rate_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"])
|
400
|
+
def hard_delete_rates_by_ids(rate_ids:, request_options: nil)
|
401
|
+
response = @request_client.conn.post do |req|
|
402
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
403
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
404
|
+
req.headers = {
|
405
|
+
**(req.headers || {}),
|
406
|
+
**@request_client.get_headers,
|
407
|
+
**(request_options&.additional_headers || {})
|
408
|
+
}.compact
|
409
|
+
req.body = { **(request_options&.additional_body_parameters || {}), rate_ids: rate_ids }.compact
|
410
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
411
|
+
request_options: request_options)}/api/fee-schedules/v3/hard-delete-by-ids"
|
412
|
+
end
|
413
|
+
JSON.parse(response.body)
|
414
|
+
end
|
388
415
|
end
|
389
416
|
|
390
417
|
class AsyncV3Client
|
@@ -779,6 +806,36 @@ module CandidApiClient
|
|
779
806
|
parsed_json
|
780
807
|
end
|
781
808
|
end
|
809
|
+
|
810
|
+
# Hard deletes specific rates from the system by their IDs. This is a destructive
|
811
|
+
# operation and cannot be undone. Limited to 100 rate IDs maximum per request. For
|
812
|
+
# bulk deletion of more than 100 rates, use the hard_delete_rates endpoint with
|
813
|
+
# dimension filters. Returns the number of rates deleted.
|
814
|
+
#
|
815
|
+
# @param rate_ids [Array<String>]
|
816
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
817
|
+
# @return [Integer]
|
818
|
+
# @example
|
819
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
820
|
+
# api.fee_schedules.v_3.hard_delete_rates_by_ids(rate_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"])
|
821
|
+
def hard_delete_rates_by_ids(rate_ids:, request_options: nil)
|
822
|
+
Async do
|
823
|
+
response = @request_client.conn.post do |req|
|
824
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
825
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
826
|
+
req.headers = {
|
827
|
+
**(req.headers || {}),
|
828
|
+
**@request_client.get_headers,
|
829
|
+
**(request_options&.additional_headers || {})
|
830
|
+
}.compact
|
831
|
+
req.body = { **(request_options&.additional_body_parameters || {}), rate_ids: rate_ids }.compact
|
832
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
833
|
+
request_options: request_options)}/api/fee-schedules/v3/hard-delete-by-ids"
|
834
|
+
end
|
835
|
+
parsed_json = JSON.parse(response.body)
|
836
|
+
parsed_json
|
837
|
+
end
|
838
|
+
end
|
782
839
|
end
|
783
840
|
end
|
784
841
|
end
|
@@ -48,6 +48,8 @@ module CandidApiClient
|
|
48
48
|
member = CandidApiClient::Commons::Types::EntityNotFoundErrorMessage.from_json(json_object: json_object)
|
49
49
|
when "payer_plan_group_does_not_match_rate_payer"
|
50
50
|
member = CandidApiClient::FeeSchedules::V3::Types::PayerPlanGroupDoesNotMatchRatePayerError.from_json(json_object: json_object)
|
51
|
+
when "payer_plan_group_network_type_mutual_exclusion"
|
52
|
+
member = CandidApiClient::Commons::Types::EntityConflictErrorMessage.from_json(json_object: json_object)
|
51
53
|
else
|
52
54
|
member = CandidApiClient::FeeSchedules::V3::Types::OverlappingRateEntriesError.from_json(json_object: json_object)
|
53
55
|
end
|
@@ -73,6 +75,8 @@ module CandidApiClient
|
|
73
75
|
{ **@member.to_json, type: @discriminant }.to_json
|
74
76
|
when "payer_plan_group_does_not_match_rate_payer"
|
75
77
|
{ **@member.to_json, type: @discriminant }.to_json
|
78
|
+
when "payer_plan_group_network_type_mutual_exclusion"
|
79
|
+
{ **@member.to_json, type: @discriminant }.to_json
|
76
80
|
else
|
77
81
|
{ "type": @discriminant, value: @member }.to_json
|
78
82
|
end
|
@@ -101,6 +105,8 @@ module CandidApiClient
|
|
101
105
|
CandidApiClient::Commons::Types::EntityNotFoundErrorMessage.validate_raw(obj: obj)
|
102
106
|
when "payer_plan_group_does_not_match_rate_payer"
|
103
107
|
CandidApiClient::FeeSchedules::V3::Types::PayerPlanGroupDoesNotMatchRatePayerError.validate_raw(obj: obj)
|
108
|
+
when "payer_plan_group_network_type_mutual_exclusion"
|
109
|
+
CandidApiClient::Commons::Types::EntityConflictErrorMessage.validate_raw(obj: obj)
|
104
110
|
else
|
105
111
|
raise("Passed value matched no type within the union, validation failed.")
|
106
112
|
end
|
@@ -153,6 +159,12 @@ module CandidApiClient
|
|
153
159
|
def self.payer_plan_group_does_not_match_rate_payer(member:)
|
154
160
|
new(member: member, discriminant: "payer_plan_group_does_not_match_rate_payer")
|
155
161
|
end
|
162
|
+
|
163
|
+
# @param member [CandidApiClient::Commons::Types::EntityConflictErrorMessage]
|
164
|
+
# @return [CandidApiClient::FeeSchedules::V3::Types::ValidationError]
|
165
|
+
def self.payer_plan_group_network_type_mutual_exclusion(member:)
|
166
|
+
new(member: member, discriminant: "payer_plan_group_network_type_mutual_exclusion")
|
167
|
+
end
|
156
168
|
end
|
157
169
|
end
|
158
170
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../requests"
|
4
|
+
require_relative "v_1/client"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module HealthCareCodeInformation
|
8
|
+
class Client
|
9
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::V1Client]
|
10
|
+
attr_reader :v_1
|
11
|
+
|
12
|
+
# @param request_client [CandidApiClient::RequestClient]
|
13
|
+
# @return [CandidApiClient::HealthCareCodeInformation::Client]
|
14
|
+
def initialize(request_client:)
|
15
|
+
@v_1 = CandidApiClient::HealthCareCodeInformation::V1::V1Client.new(request_client: request_client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class AsyncClient
|
20
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::AsyncV1Client]
|
21
|
+
attr_reader :v_1
|
22
|
+
|
23
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
|
+
# @return [CandidApiClient::HealthCareCodeInformation::AsyncClient]
|
25
|
+
def initialize(request_client:)
|
26
|
+
@v_1 = CandidApiClient::HealthCareCodeInformation::V1::AsyncV1Client.new(request_client: request_client)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,268 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../requests"
|
4
|
+
require_relative "types/health_care_code_information_update"
|
5
|
+
require_relative "types/health_care_code_information_get_all_response"
|
6
|
+
require "async"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
module HealthCareCodeInformation
|
10
|
+
module V1
|
11
|
+
class V1Client
|
12
|
+
# @return [CandidApiClient::RequestClient]
|
13
|
+
attr_reader :request_client
|
14
|
+
|
15
|
+
# @param request_client [CandidApiClient::RequestClient]
|
16
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::V1Client]
|
17
|
+
def initialize(request_client:)
|
18
|
+
@request_client = request_client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @param encounter_id [String]
|
22
|
+
# @param request [Hash] Request of type CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate, as a Hash
|
23
|
+
# * :principal_diagnosis (Hash)
|
24
|
+
# * :value (Hash)
|
25
|
+
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
26
|
+
# * :primary_diagnosis_code (String)
|
27
|
+
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
28
|
+
# * :id (String)
|
29
|
+
# * :encounter_id (String)
|
30
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
31
|
+
# * :industry_code_1 (String)
|
32
|
+
# * :industry_code_2 (String)
|
33
|
+
# * :industry_code_3 (String)
|
34
|
+
# * :industry_code_4 (String)
|
35
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
36
|
+
# * :date_time_period (String)
|
37
|
+
# * :monetary_amount (String)
|
38
|
+
# * :quantity (String)
|
39
|
+
# * :admitting_diagnosis (Hash)
|
40
|
+
# * :value (Hash)
|
41
|
+
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
42
|
+
# * :admitting_diagnosis_code (String)
|
43
|
+
# * :id (String)
|
44
|
+
# * :encounter_id (String)
|
45
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
46
|
+
# * :industry_code_1 (String)
|
47
|
+
# * :industry_code_2 (String)
|
48
|
+
# * :industry_code_3 (String)
|
49
|
+
# * :industry_code_4 (String)
|
50
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
51
|
+
# * :date_time_period (String)
|
52
|
+
# * :monetary_amount (String)
|
53
|
+
# * :quantity (String)
|
54
|
+
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>)
|
55
|
+
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>)
|
56
|
+
# * :diagnosis_related_groups (Hash)
|
57
|
+
# * :value (Hash)
|
58
|
+
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
59
|
+
# * :diagnosis_related_group_code (String)
|
60
|
+
# * :id (String)
|
61
|
+
# * :encounter_id (String)
|
62
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
63
|
+
# * :industry_code_1 (String)
|
64
|
+
# * :industry_code_2 (String)
|
65
|
+
# * :industry_code_3 (String)
|
66
|
+
# * :industry_code_4 (String)
|
67
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
68
|
+
# * :date_time_period (String)
|
69
|
+
# * :monetary_amount (String)
|
70
|
+
# * :quantity (String)
|
71
|
+
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>)
|
72
|
+
# * :principal_procedure (Hash)
|
73
|
+
# * :value (Hash)
|
74
|
+
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
75
|
+
# * :principal_procedure_code (String)
|
76
|
+
# * :procedure_date (DateTime)
|
77
|
+
# * :id (String)
|
78
|
+
# * :encounter_id (String)
|
79
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
80
|
+
# * :industry_code_1 (String)
|
81
|
+
# * :industry_code_2 (String)
|
82
|
+
# * :industry_code_3 (String)
|
83
|
+
# * :industry_code_4 (String)
|
84
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
85
|
+
# * :date_time_period (String)
|
86
|
+
# * :monetary_amount (String)
|
87
|
+
# * :quantity (String)
|
88
|
+
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>)
|
89
|
+
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>)
|
90
|
+
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>)
|
91
|
+
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>)
|
92
|
+
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>)
|
93
|
+
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>)
|
94
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
95
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse]
|
96
|
+
# @example
|
97
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
98
|
+
# api.health_care_code_information.v_1.update(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
99
|
+
def update(encounter_id:, request:, request_options: nil)
|
100
|
+
response = @request_client.conn.put do |req|
|
101
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
102
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
103
|
+
req.headers = {
|
104
|
+
**(req.headers || {}),
|
105
|
+
**@request_client.get_headers,
|
106
|
+
**(request_options&.additional_headers || {})
|
107
|
+
}.compact
|
108
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
109
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
110
|
+
request_options: request_options)}/api/health-care-code-informations/v1/#{encounter_id}"
|
111
|
+
end
|
112
|
+
CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse.from_json(json_object: response.body)
|
113
|
+
end
|
114
|
+
|
115
|
+
# @param encounter_id [String]
|
116
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
117
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse]
|
118
|
+
# @example
|
119
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
120
|
+
# api.health_care_code_information.v_1.get_all_for_encounter(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
121
|
+
def get_all_for_encounter(encounter_id:, request_options: nil)
|
122
|
+
response = @request_client.conn.get do |req|
|
123
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
124
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
125
|
+
req.headers = {
|
126
|
+
**(req.headers || {}),
|
127
|
+
**@request_client.get_headers,
|
128
|
+
**(request_options&.additional_headers || {})
|
129
|
+
}.compact
|
130
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
131
|
+
request_options: request_options)}/api/health-care-code-informations/v1/#{encounter_id}"
|
132
|
+
end
|
133
|
+
CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse.from_json(json_object: response.body)
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
class AsyncV1Client
|
138
|
+
# @return [CandidApiClient::AsyncRequestClient]
|
139
|
+
attr_reader :request_client
|
140
|
+
|
141
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
142
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::AsyncV1Client]
|
143
|
+
def initialize(request_client:)
|
144
|
+
@request_client = request_client
|
145
|
+
end
|
146
|
+
|
147
|
+
# @param encounter_id [String]
|
148
|
+
# @param request [Hash] Request of type CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate, as a Hash
|
149
|
+
# * :principal_diagnosis (Hash)
|
150
|
+
# * :value (Hash)
|
151
|
+
# * :principal_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosisCodeQualifier)
|
152
|
+
# * :primary_diagnosis_code (String)
|
153
|
+
# * :present_on_admission_indicator (CandidApiClient::HealthCareCodeInformation::V1::Types::PresentOnAdmissionIndicatorCode)
|
154
|
+
# * :id (String)
|
155
|
+
# * :encounter_id (String)
|
156
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
157
|
+
# * :industry_code_1 (String)
|
158
|
+
# * :industry_code_2 (String)
|
159
|
+
# * :industry_code_3 (String)
|
160
|
+
# * :industry_code_4 (String)
|
161
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
162
|
+
# * :date_time_period (String)
|
163
|
+
# * :monetary_amount (String)
|
164
|
+
# * :quantity (String)
|
165
|
+
# * :admitting_diagnosis (Hash)
|
166
|
+
# * :value (Hash)
|
167
|
+
# * :admitting_diagnosis_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier)
|
168
|
+
# * :admitting_diagnosis_code (String)
|
169
|
+
# * :id (String)
|
170
|
+
# * :encounter_id (String)
|
171
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
172
|
+
# * :industry_code_1 (String)
|
173
|
+
# * :industry_code_2 (String)
|
174
|
+
# * :industry_code_3 (String)
|
175
|
+
# * :industry_code_4 (String)
|
176
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
177
|
+
# * :date_time_period (String)
|
178
|
+
# * :monetary_amount (String)
|
179
|
+
# * :quantity (String)
|
180
|
+
# * :patient_reasons_for_visit (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>)
|
181
|
+
# * :external_causes_of_injury (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>)
|
182
|
+
# * :diagnosis_related_groups (Hash)
|
183
|
+
# * :value (Hash)
|
184
|
+
# * :diagnosis_related_group_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroupCodeQualifier)
|
185
|
+
# * :diagnosis_related_group_code (String)
|
186
|
+
# * :id (String)
|
187
|
+
# * :encounter_id (String)
|
188
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
189
|
+
# * :industry_code_1 (String)
|
190
|
+
# * :industry_code_2 (String)
|
191
|
+
# * :industry_code_3 (String)
|
192
|
+
# * :industry_code_4 (String)
|
193
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
194
|
+
# * :date_time_period (String)
|
195
|
+
# * :monetary_amount (String)
|
196
|
+
# * :quantity (String)
|
197
|
+
# * :other_diagnosis_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>)
|
198
|
+
# * :principal_procedure (Hash)
|
199
|
+
# * :value (Hash)
|
200
|
+
# * :principal_procedure_code_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformationCodeQualifier)
|
201
|
+
# * :principal_procedure_code (String)
|
202
|
+
# * :procedure_date (DateTime)
|
203
|
+
# * :id (String)
|
204
|
+
# * :encounter_id (String)
|
205
|
+
# * :code_list_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode)
|
206
|
+
# * :industry_code_1 (String)
|
207
|
+
# * :industry_code_2 (String)
|
208
|
+
# * :industry_code_3 (String)
|
209
|
+
# * :industry_code_4 (String)
|
210
|
+
# * :date_time_period_format_qualifier (CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier)
|
211
|
+
# * :date_time_period (String)
|
212
|
+
# * :monetary_amount (String)
|
213
|
+
# * :quantity (String)
|
214
|
+
# * :other_procedure_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>)
|
215
|
+
# * :occurrence_span_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>)
|
216
|
+
# * :occurrence_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>)
|
217
|
+
# * :treatment_code_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>)
|
218
|
+
# * :value_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>)
|
219
|
+
# * :condition_information (Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>)
|
220
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
221
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse]
|
222
|
+
# @example
|
223
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
224
|
+
# api.health_care_code_information.v_1.update(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
225
|
+
def update(encounter_id:, request:, request_options: nil)
|
226
|
+
Async do
|
227
|
+
response = @request_client.conn.put do |req|
|
228
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
229
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
230
|
+
req.headers = {
|
231
|
+
**(req.headers || {}),
|
232
|
+
**@request_client.get_headers,
|
233
|
+
**(request_options&.additional_headers || {})
|
234
|
+
}.compact
|
235
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
236
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
237
|
+
request_options: request_options)}/api/health-care-code-informations/v1/#{encounter_id}"
|
238
|
+
end
|
239
|
+
CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse.from_json(json_object: response.body)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
# @param encounter_id [String]
|
244
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
245
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse]
|
246
|
+
# @example
|
247
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
248
|
+
# api.health_care_code_information.v_1.get_all_for_encounter(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
249
|
+
def get_all_for_encounter(encounter_id:, request_options: nil)
|
250
|
+
Async do
|
251
|
+
response = @request_client.conn.get do |req|
|
252
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
253
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
254
|
+
req.headers = {
|
255
|
+
**(req.headers || {}),
|
256
|
+
**@request_client.get_headers,
|
257
|
+
**(request_options&.additional_headers || {})
|
258
|
+
}.compact
|
259
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
260
|
+
request_options: request_options)}/api/health-care-code-informations/v1/#{encounter_id}"
|
261
|
+
end
|
262
|
+
CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationGetAllResponse.from_json(json_object: response.body)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
@@ -0,0 +1,236 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "admitting_diagnosis_code_qualifier"
|
4
|
+
require_relative "code_list_qualifier_code"
|
5
|
+
require_relative "date_time_period_format_qualifier"
|
6
|
+
require "ostruct"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
module HealthCareCodeInformation
|
11
|
+
module V1
|
12
|
+
module Types
|
13
|
+
# This corresponds to BJ or ABJ code qualifier values.
|
14
|
+
class AdmittingDiagnosis
|
15
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier]
|
16
|
+
attr_reader :admitting_diagnosis_code_qualifier
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :admitting_diagnosis_code
|
19
|
+
# @return [String] The id of this health care code information if it is already stored.
|
20
|
+
# If this is not set, this is referring to a new health care code information to
|
21
|
+
# be added
|
22
|
+
# to the encounter. If it is set, this refers to an update of an existing health
|
23
|
+
# care code
|
24
|
+
# information object on the encounter.
|
25
|
+
attr_reader :id
|
26
|
+
# @return [String] The encounter_id of this health care code information if it is already stored.
|
27
|
+
# This will be set by the server in responses, but clients are not expected to set
|
28
|
+
# it.
|
29
|
+
attr_reader :encounter_id
|
30
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
31
|
+
attr_reader :code_list_qualifier
|
32
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
33
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
34
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
35
|
+
# reporting.
|
36
|
+
attr_reader :industry_code_1
|
37
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
38
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
39
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
40
|
+
# reporting.
|
41
|
+
attr_reader :industry_code_2
|
42
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
43
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
44
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
45
|
+
# reporting.
|
46
|
+
attr_reader :industry_code_3
|
47
|
+
# @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
48
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
49
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
50
|
+
# reporting.
|
51
|
+
attr_reader :industry_code_4
|
52
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
53
|
+
# as part of claim process.
|
54
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
55
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
56
|
+
# reporting.
|
57
|
+
attr_reader :date_time_period_format_qualifier
|
58
|
+
# @return [String] A string, formatted according to date_time_period_format_qualifier, which
|
59
|
+
# ultimately represents the date time period in which an information object
|
60
|
+
# is covering.
|
61
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
62
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
63
|
+
# reporting.
|
64
|
+
attr_reader :date_time_period
|
65
|
+
# @return [String] A decimal used to represent ValueInformation results.
|
66
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
67
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
68
|
+
# reporting.
|
69
|
+
attr_reader :monetary_amount
|
70
|
+
# @return [String] You do not need to set this field generally, instead it is provided as advisory
|
71
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
72
|
+
# reporting.
|
73
|
+
attr_reader :quantity
|
74
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
75
|
+
attr_reader :additional_properties
|
76
|
+
# @return [Object]
|
77
|
+
attr_reader :_field_set
|
78
|
+
protected :_field_set
|
79
|
+
|
80
|
+
OMIT = Object.new
|
81
|
+
|
82
|
+
# @param admitting_diagnosis_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier]
|
83
|
+
# @param admitting_diagnosis_code [String]
|
84
|
+
# @param id [String] The id of this health care code information if it is already stored.
|
85
|
+
# If this is not set, this is referring to a new health care code information to
|
86
|
+
# be added
|
87
|
+
# to the encounter. If it is set, this refers to an update of an existing health
|
88
|
+
# care code
|
89
|
+
# information object on the encounter.
|
90
|
+
# @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
|
91
|
+
# This will be set by the server in responses, but clients are not expected to set
|
92
|
+
# it.
|
93
|
+
# @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
|
94
|
+
# @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
95
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
96
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
97
|
+
# reporting.
|
98
|
+
# @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
99
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
100
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
101
|
+
# reporting.
|
102
|
+
# @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
103
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
104
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
105
|
+
# reporting.
|
106
|
+
# @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
|
107
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
108
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
109
|
+
# reporting.
|
110
|
+
# @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
|
111
|
+
# as part of claim process.
|
112
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
113
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
114
|
+
# reporting.
|
115
|
+
# @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
|
116
|
+
# ultimately represents the date time period in which an information object
|
117
|
+
# is covering.
|
118
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
119
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
120
|
+
# reporting.
|
121
|
+
# @param monetary_amount [String] A decimal used to represent ValueInformation results.
|
122
|
+
# You do not need to set this field generally, instead it is provided as advisory
|
123
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
124
|
+
# reporting.
|
125
|
+
# @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
|
126
|
+
# context on how this HealthCareCodeInformation's data will be available in
|
127
|
+
# reporting.
|
128
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
129
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis]
|
130
|
+
def initialize(admitting_diagnosis_code_qualifier:, admitting_diagnosis_code:, id: OMIT, encounter_id: OMIT,
|
131
|
+
code_list_qualifier: OMIT, industry_code_1: OMIT, industry_code_2: OMIT, industry_code_3: OMIT, industry_code_4: OMIT, date_time_period_format_qualifier: OMIT, date_time_period: OMIT, monetary_amount: OMIT, quantity: OMIT, additional_properties: nil)
|
132
|
+
@admitting_diagnosis_code_qualifier = admitting_diagnosis_code_qualifier
|
133
|
+
@admitting_diagnosis_code = admitting_diagnosis_code
|
134
|
+
@id = id if id != OMIT
|
135
|
+
@encounter_id = encounter_id if encounter_id != OMIT
|
136
|
+
@code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
|
137
|
+
@industry_code_1 = industry_code_1 if industry_code_1 != OMIT
|
138
|
+
@industry_code_2 = industry_code_2 if industry_code_2 != OMIT
|
139
|
+
@industry_code_3 = industry_code_3 if industry_code_3 != OMIT
|
140
|
+
@industry_code_4 = industry_code_4 if industry_code_4 != OMIT
|
141
|
+
if date_time_period_format_qualifier != OMIT
|
142
|
+
@date_time_period_format_qualifier = date_time_period_format_qualifier
|
143
|
+
end
|
144
|
+
@date_time_period = date_time_period if date_time_period != OMIT
|
145
|
+
@monetary_amount = monetary_amount if monetary_amount != OMIT
|
146
|
+
@quantity = quantity if quantity != OMIT
|
147
|
+
@additional_properties = additional_properties
|
148
|
+
@_field_set = {
|
149
|
+
"admitting_diagnosis_code_qualifier": admitting_diagnosis_code_qualifier,
|
150
|
+
"admitting_diagnosis_code": admitting_diagnosis_code,
|
151
|
+
"id": id,
|
152
|
+
"encounter_id": encounter_id,
|
153
|
+
"code_list_qualifier": code_list_qualifier,
|
154
|
+
"industry_code_1": industry_code_1,
|
155
|
+
"industry_code_2": industry_code_2,
|
156
|
+
"industry_code_3": industry_code_3,
|
157
|
+
"industry_code_4": industry_code_4,
|
158
|
+
"date_time_period_format_qualifier": date_time_period_format_qualifier,
|
159
|
+
"date_time_period": date_time_period,
|
160
|
+
"monetary_amount": monetary_amount,
|
161
|
+
"quantity": quantity
|
162
|
+
}.reject do |_k, v|
|
163
|
+
v == OMIT
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserialize a JSON object to an instance of AdmittingDiagnosis
|
168
|
+
#
|
169
|
+
# @param json_object [String]
|
170
|
+
# @return [CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosis]
|
171
|
+
def self.from_json(json_object:)
|
172
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
173
|
+
admitting_diagnosis_code_qualifier = struct["admitting_diagnosis_code_qualifier"]
|
174
|
+
admitting_diagnosis_code = struct["admitting_diagnosis_code"]
|
175
|
+
id = struct["id"]
|
176
|
+
encounter_id = struct["encounter_id"]
|
177
|
+
code_list_qualifier = struct["code_list_qualifier"]
|
178
|
+
industry_code_1 = struct["industry_code_1"]
|
179
|
+
industry_code_2 = struct["industry_code_2"]
|
180
|
+
industry_code_3 = struct["industry_code_3"]
|
181
|
+
industry_code_4 = struct["industry_code_4"]
|
182
|
+
date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
|
183
|
+
date_time_period = struct["date_time_period"]
|
184
|
+
monetary_amount = struct["monetary_amount"]
|
185
|
+
quantity = struct["quantity"]
|
186
|
+
new(
|
187
|
+
admitting_diagnosis_code_qualifier: admitting_diagnosis_code_qualifier,
|
188
|
+
admitting_diagnosis_code: admitting_diagnosis_code,
|
189
|
+
id: id,
|
190
|
+
encounter_id: encounter_id,
|
191
|
+
code_list_qualifier: code_list_qualifier,
|
192
|
+
industry_code_1: industry_code_1,
|
193
|
+
industry_code_2: industry_code_2,
|
194
|
+
industry_code_3: industry_code_3,
|
195
|
+
industry_code_4: industry_code_4,
|
196
|
+
date_time_period_format_qualifier: date_time_period_format_qualifier,
|
197
|
+
date_time_period: date_time_period,
|
198
|
+
monetary_amount: monetary_amount,
|
199
|
+
quantity: quantity,
|
200
|
+
additional_properties: struct
|
201
|
+
)
|
202
|
+
end
|
203
|
+
|
204
|
+
# Serialize an instance of AdmittingDiagnosis to a JSON object
|
205
|
+
#
|
206
|
+
# @return [String]
|
207
|
+
def to_json(*_args)
|
208
|
+
@_field_set&.to_json
|
209
|
+
end
|
210
|
+
|
211
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
212
|
+
# hash and check each fields type against the current object's property
|
213
|
+
# definitions.
|
214
|
+
#
|
215
|
+
# @param obj [Object]
|
216
|
+
# @return [Void]
|
217
|
+
def self.validate_raw(obj:)
|
218
|
+
obj.admitting_diagnosis_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::AdmittingDiagnosisCodeQualifier) != false || raise("Passed value for field obj.admitting_diagnosis_code_qualifier is not the expected type, validation failed.")
|
219
|
+
obj.admitting_diagnosis_code.is_a?(String) != false || raise("Passed value for field obj.admitting_diagnosis_code is not the expected type, validation failed.")
|
220
|
+
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
221
|
+
obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
|
222
|
+
obj.code_list_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode) != false || raise("Passed value for field obj.code_list_qualifier is not the expected type, validation failed.")
|
223
|
+
obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
|
224
|
+
obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
|
225
|
+
obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
|
226
|
+
obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
|
227
|
+
obj.date_time_period_format_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier) != false || raise("Passed value for field obj.date_time_period_format_qualifier is not the expected type, validation failed.")
|
228
|
+
obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
|
229
|
+
obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
|
230
|
+
obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|