candidhealth 1.0.0 → 1.3.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/client.rb +7 -7
- data/lib/candidhealth/auth/{v_2 → default}/client.rb +39 -13
- data/lib/candidhealth/auth/{v_2 → default}/types/auth_get_token_response.rb +3 -3
- data/lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb +60 -0
- data/lib/candidhealth/auth/{v_2 → default}/types/too_many_requests_error_type.rb +3 -3
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb +62 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +504 -482
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +17 -1
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +173 -173
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +26 -2
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +58 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +100 -0
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb +101 -0
- data/lib/candidhealth/commons/types/phone_number_optional.rb +71 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +2 -0
- data/lib/candidhealth/commons/types/street_address_long_zip_optional.rb +107 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb +78 -0
- data/lib/candidhealth/diagnoses/client.rb +23 -4
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +21 -2
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +25 -2
- data/lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb +126 -0
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +22 -2
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb +123 -0
- data/lib/candidhealth/encounters/v_4/client.rb +214 -208
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb +78 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb +93 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +16 -4
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +4 -2
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +780 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +1 -139
- data/lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb +85 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question_optional.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_optional.rb +114 -0
- data/lib/candidhealth/encounters/v_4/types/lab_optional.rb +80 -0
- data/lib/candidhealth/encounters/v_4/types/medication_optional.rb +108 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb +78 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +144 -0
- data/lib/candidhealth/individual/types/individual_base_optional.rb +78 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb +89 -0
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +8 -8
- data/lib/candidhealth/individual/types/subscriber_base_optional.rb +118 -0
- data/lib/candidhealth/individual/types/subscriber_create_optional.rb +132 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +9 -1
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb +167 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +13 -1
- data/lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb +126 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +239 -0
- data/lib/candidhealth/service_lines/v_2/types/test_result_optional.rb +73 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +1 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +1 -0
- data/lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb +14 -0
- data/lib/core/oauth.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +32 -3
- metadata +34 -5
@@ -486,8 +486,10 @@ module CandidApiClient
|
|
486
486
|
# * :name (String)
|
487
487
|
# * :code_type (CandidApiClient::Diagnoses::Types::DiagnosisTypeCode)
|
488
488
|
# * :code (String)
|
489
|
+
# * :present_on_admission_indicator (CandidApiClient::YesNoIndicator::Types::YesNoIndicator)
|
489
490
|
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during
|
490
|
-
# patient encounters.
|
491
|
+
# patient encounters. Please note that medical records for appeals should be sent
|
492
|
+
# using the Encounter Attachments API.Request of type Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>, as a Hash
|
491
493
|
# * :category (CandidApiClient::Encounters::V4::Types::NoteCategory)
|
492
494
|
# * :notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNote>)
|
493
495
|
# @param billing_notes [Array<Hash>] Spot to store misc, human-readable, notes about this encounter to be used
|
@@ -830,10 +832,6 @@ module CandidApiClient
|
|
830
832
|
# date_of_service values.
|
831
833
|
# @param tag_ids [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
832
834
|
# be overridden with this list.
|
833
|
-
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during
|
834
|
-
# patient encounters.Request of type Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>, as a Hash
|
835
|
-
# * :category (CandidApiClient::Encounters::V4::Types::NoteCategory)
|
836
|
-
# * :notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNote>)
|
837
835
|
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
838
836
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
839
837
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -860,6 +858,100 @@ module CandidApiClient
|
|
860
858
|
# encounter's end_date_of_service will fail. If all service line
|
861
859
|
# end_date_of_service values are the same, updating the encounter's
|
862
860
|
# end_date_of_service will update all service line date_of_service values.
|
861
|
+
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
862
|
+
# Box 19 on the CMS-1500 claim form.
|
863
|
+
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
864
|
+
# Required when mandated by government law or regulation to obtain authorization
|
865
|
+
# for specific service(s) but, for the
|
866
|
+
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
867
|
+
# the service was performed without
|
868
|
+
# obtaining the authorization.
|
869
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
870
|
+
# Required on all ambulance claims when the patient was known to be admitted to
|
871
|
+
# the hospital.
|
872
|
+
# OR
|
873
|
+
# Required on all claims involving inpatient medical visits.
|
874
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
875
|
+
# Required for inpatient claims when the patient was discharged from the facility
|
876
|
+
# and the discharge date is known.
|
877
|
+
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
878
|
+
# Required for the initial medical service or visit performed in response to a
|
879
|
+
# medical emergency when the date is available and is different than the date of
|
880
|
+
# service.
|
881
|
+
# OR
|
882
|
+
# This date is the onset of acute symptoms for the current illness or condition.
|
883
|
+
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
884
|
+
# Required when, in the judgment of the provider, the services on this claim are
|
885
|
+
# related to the patient's pregnancy.de
|
886
|
+
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
887
|
+
# Code indicating the reason why a request was delayed
|
888
|
+
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
889
|
+
# for billing purpose.
|
890
|
+
# Box 12 on the CMS-1500 claim form.
|
891
|
+
# @param vitals [Hash] If a vitals entity already exists for the encounter, then all values will be
|
892
|
+
# updated to the provided values.
|
893
|
+
# Otherwise, a new vitals object will be created for the encounter.Request of type CandidApiClient::Encounters::V4::Types::VitalsUpdate, as a Hash
|
894
|
+
# * :height_in (Integer)
|
895
|
+
# * :weight_lbs (Integer)
|
896
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
897
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
898
|
+
# * :body_temperature_f (Float)
|
899
|
+
# * :hemoglobin_gdl (Float)
|
900
|
+
# * :hematocrit_pct (Float)
|
901
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
902
|
+
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
903
|
+
# identify the primary payer. This is required for certain states.
|
904
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
905
|
+
# @param _field_set [Object]
|
906
|
+
# @param epsdt_referral [Hash] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
907
|
+
# 837P formRequest of type CandidApiClient::Encounters::V4::Types::EpsdtReferral, as a Hash
|
908
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
909
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
910
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
911
|
+
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during
|
912
|
+
# patient encounters. Please note that medical records for appeals should be sent
|
913
|
+
# using the Encounter Attachments API.Request of type Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>, as a Hash
|
914
|
+
# * :category (CandidApiClient::Encounters::V4::Types::NoteCategory)
|
915
|
+
# * :notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNote>)
|
916
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
917
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
918
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
919
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
920
|
+
# * :attachment_control_number (String)
|
921
|
+
# @param schema_instances [Array<Hash>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
922
|
+
# Multiple schema
|
923
|
+
# instances cannot be created for the same schema on an encounter. Updating schema
|
924
|
+
# instances utilizes PUT
|
925
|
+
# semantics, so the schema instances on the encounter will be set to whatever
|
926
|
+
# inputs are provided. If null
|
927
|
+
# is provided as an input, then the encounter's schema instances will be cleared.Request of type Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>, as a Hash
|
928
|
+
# * :schema_id (String)
|
929
|
+
# * :content (Hash{String => Object})
|
930
|
+
# @param existing_medications [Array<Hash>] Existing medications that should be on the encounter.
|
931
|
+
# Note all current existing medications on encounter will be overridden with this
|
932
|
+
# list.Request of type Array<CandidApiClient::Encounters::V4::Types::Medication>, as a Hash
|
933
|
+
# * :name (String)
|
934
|
+
# * :rx_cui (String)
|
935
|
+
# * :dosage (String)
|
936
|
+
# * :dosage_form (String)
|
937
|
+
# * :frequency (String)
|
938
|
+
# * :as_needed (Boolean)
|
939
|
+
# @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorUpdate, as a Hash
|
940
|
+
# * :first_name (String)
|
941
|
+
# * :last_name (String)
|
942
|
+
# * :external_id (String)
|
943
|
+
# * :date_of_birth (Date)
|
944
|
+
# * :address (Hash)
|
945
|
+
# * :zip_plus_four_code (String)
|
946
|
+
# * :address_1 (String)
|
947
|
+
# * :address_2 (String)
|
948
|
+
# * :city (String)
|
949
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
950
|
+
# * :zip_code (String)
|
951
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
952
|
+
# * :phone_consent (Boolean)
|
953
|
+
# * :email (String)
|
954
|
+
# * :email_consent (Boolean)
|
863
955
|
# @param subscriber_primary [Hash] Contains details of the primary insurance subscriber.Request of type CandidApiClient::Individual::Types::SubscriberCreate, as a Hash
|
864
956
|
# * :insurance_card (Hash)
|
865
957
|
# * :member_id (String)
|
@@ -941,95 +1033,6 @@ module CandidApiClient
|
|
941
1033
|
# * :first_name (String)
|
942
1034
|
# * :last_name (String)
|
943
1035
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
944
|
-
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
945
|
-
# Box 19 on the CMS-1500 claim form.
|
946
|
-
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
947
|
-
# Required when mandated by government law or regulation to obtain authorization
|
948
|
-
# for specific service(s) but, for the
|
949
|
-
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
950
|
-
# the service was performed without
|
951
|
-
# obtaining the authorization.
|
952
|
-
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
953
|
-
# Required on all ambulance claims when the patient was known to be admitted to
|
954
|
-
# the hospital.
|
955
|
-
# OR
|
956
|
-
# Required on all claims involving inpatient medical visits.
|
957
|
-
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
958
|
-
# Required for inpatient claims when the patient was discharged from the facility
|
959
|
-
# and the discharge date is known.
|
960
|
-
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
961
|
-
# Required for the initial medical service or visit performed in response to a
|
962
|
-
# medical emergency when the date is available and is different than the date of
|
963
|
-
# service.
|
964
|
-
# OR
|
965
|
-
# This date is the onset of acute symptoms for the current illness or condition.
|
966
|
-
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
967
|
-
# Required when, in the judgment of the provider, the services on this claim are
|
968
|
-
# related to the patient's pregnancy.de
|
969
|
-
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
970
|
-
# Code indicating the reason why a request was delayed
|
971
|
-
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
972
|
-
# for billing purpose.
|
973
|
-
# Box 12 on the CMS-1500 claim form.
|
974
|
-
# @param schema_instances [Array<Hash>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
975
|
-
# Multiple schema
|
976
|
-
# instances cannot be created for the same schema on an encounter. Updating schema
|
977
|
-
# instances utilizes PUT
|
978
|
-
# semantics, so the schema instances on the encounter will be set to whatever
|
979
|
-
# inputs are provided. If null
|
980
|
-
# is provided as an input, then the encounter's schema instances will be cleared.Request of type Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>, as a Hash
|
981
|
-
# * :schema_id (String)
|
982
|
-
# * :content (Hash{String => Object})
|
983
|
-
# @param vitals [Hash] If a vitals entity already exists for the encounter, then all values will be
|
984
|
-
# updated to the provided values.
|
985
|
-
# Otherwise, a new vitals object will be created for the encounter.Request of type CandidApiClient::Encounters::V4::Types::VitalsUpdate, as a Hash
|
986
|
-
# * :height_in (Integer)
|
987
|
-
# * :weight_lbs (Integer)
|
988
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
989
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
990
|
-
# * :body_temperature_f (Float)
|
991
|
-
# * :hemoglobin_gdl (Float)
|
992
|
-
# * :hematocrit_pct (Float)
|
993
|
-
# @param existing_medications [Array<Hash>] Existing medications that should be on the encounter.
|
994
|
-
# Note all current existing medications on encounter will be overridden with this
|
995
|
-
# list.Request of type Array<CandidApiClient::Encounters::V4::Types::Medication>, as a Hash
|
996
|
-
# * :name (String)
|
997
|
-
# * :rx_cui (String)
|
998
|
-
# * :dosage (String)
|
999
|
-
# * :dosage_form (String)
|
1000
|
-
# * :frequency (String)
|
1001
|
-
# * :as_needed (Boolean)
|
1002
|
-
# @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorUpdate, as a Hash
|
1003
|
-
# * :first_name (String)
|
1004
|
-
# * :last_name (String)
|
1005
|
-
# * :external_id (String)
|
1006
|
-
# * :date_of_birth (Date)
|
1007
|
-
# * :address (Hash)
|
1008
|
-
# * :zip_plus_four_code (String)
|
1009
|
-
# * :address_1 (String)
|
1010
|
-
# * :address_2 (String)
|
1011
|
-
# * :city (String)
|
1012
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
1013
|
-
# * :zip_code (String)
|
1014
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
1015
|
-
# * :phone_consent (Boolean)
|
1016
|
-
# * :email (String)
|
1017
|
-
# * :email_consent (Boolean)
|
1018
|
-
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
1019
|
-
# @param epsdt_referral [Hash] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
1020
|
-
# 837P formRequest of type CandidApiClient::Encounters::V4::Types::EpsdtReferral, as a Hash
|
1021
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1022
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1023
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1024
|
-
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
1025
|
-
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
1026
|
-
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
1027
|
-
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
1028
|
-
# * :attachment_control_number (String)
|
1029
|
-
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
1030
|
-
# identify the primary payer. This is required for certain states.
|
1031
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
1032
|
-
# @param _field_set [Object]
|
1033
1036
|
# @param pay_to_address [Hash] Specifies the address to which payments for the claim should be sent.Request of type CandidApiClient::Commons::Types::StreetAddressLongZip, as a Hash
|
1034
1037
|
# * :zip_plus_four_code (String)
|
1035
1038
|
# * :address_1 (String)
|
@@ -1177,7 +1180,7 @@ module CandidApiClient
|
|
1177
1180
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1178
1181
|
# api.encounters.v_4.update(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
1179
1182
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
1180
|
-
external_id: nil, date_of_service: nil, tag_ids: nil,
|
1183
|
+
external_id: nil, date_of_service: nil, tag_ids: 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, 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_authorized_release: nil, vitals: nil, referral_number: nil, secondary_payer_carrier_code: nil, additional_properties: nil, _field_set: nil, epsdt_referral: nil, clinical_notes: nil, claim_supplemental_information: nil, schema_instances: nil, existing_medications: nil, guarantor: nil, subscriber_primary: nil, subscriber_secondary: nil, subscriber_tertiary: nil, pay_to_address: nil, diagnosis_ids: nil, initial_referring_provider: nil, referring_provider: nil, patient: nil, rendering_provider: nil, service_facility: nil, supervising_provider: nil, billing_provider: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
1181
1184
|
response = @request_client.conn.patch do |req|
|
1182
1185
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1183
1186
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -1193,7 +1196,6 @@ module CandidApiClient
|
|
1193
1196
|
external_id: external_id,
|
1194
1197
|
date_of_service: date_of_service,
|
1195
1198
|
tag_ids: tag_ids,
|
1196
|
-
clinical_notes: clinical_notes,
|
1197
1199
|
billable_status: billable_status,
|
1198
1200
|
responsible_party: responsible_party,
|
1199
1201
|
provider_accepts_assignment: provider_accepts_assignment,
|
@@ -1201,9 +1203,6 @@ module CandidApiClient
|
|
1201
1203
|
place_of_service_code: place_of_service_code,
|
1202
1204
|
appointment_type: appointment_type,
|
1203
1205
|
end_date_of_service: end_date_of_service,
|
1204
|
-
subscriber_primary: subscriber_primary,
|
1205
|
-
subscriber_secondary: subscriber_secondary,
|
1206
|
-
subscriber_tertiary: subscriber_tertiary,
|
1207
1206
|
additional_information: additional_information,
|
1208
1207
|
service_authorization_exception_code: service_authorization_exception_code,
|
1209
1208
|
admission_date: admission_date,
|
@@ -1212,16 +1211,20 @@ module CandidApiClient
|
|
1212
1211
|
last_menstrual_period_date: last_menstrual_period_date,
|
1213
1212
|
delay_reason_code: delay_reason_code,
|
1214
1213
|
patient_authorized_release: patient_authorized_release,
|
1215
|
-
schema_instances: schema_instances,
|
1216
1214
|
vitals: vitals,
|
1217
|
-
existing_medications: existing_medications,
|
1218
|
-
guarantor: guarantor,
|
1219
1215
|
referral_number: referral_number,
|
1220
|
-
epsdt_referral: epsdt_referral,
|
1221
|
-
claim_supplemental_information: claim_supplemental_information,
|
1222
1216
|
secondary_payer_carrier_code: secondary_payer_carrier_code,
|
1223
1217
|
additional_properties: additional_properties,
|
1224
1218
|
_field_set: _field_set,
|
1219
|
+
epsdt_referral: epsdt_referral,
|
1220
|
+
clinical_notes: clinical_notes,
|
1221
|
+
claim_supplemental_information: claim_supplemental_information,
|
1222
|
+
schema_instances: schema_instances,
|
1223
|
+
existing_medications: existing_medications,
|
1224
|
+
guarantor: guarantor,
|
1225
|
+
subscriber_primary: subscriber_primary,
|
1226
|
+
subscriber_secondary: subscriber_secondary,
|
1227
|
+
subscriber_tertiary: subscriber_tertiary,
|
1225
1228
|
pay_to_address: pay_to_address,
|
1226
1229
|
diagnosis_ids: diagnosis_ids,
|
1227
1230
|
initial_referring_provider: initial_referring_provider,
|
@@ -1679,8 +1682,10 @@ module CandidApiClient
|
|
1679
1682
|
# * :name (String)
|
1680
1683
|
# * :code_type (CandidApiClient::Diagnoses::Types::DiagnosisTypeCode)
|
1681
1684
|
# * :code (String)
|
1685
|
+
# * :present_on_admission_indicator (CandidApiClient::YesNoIndicator::Types::YesNoIndicator)
|
1682
1686
|
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during
|
1683
|
-
# patient encounters.
|
1687
|
+
# patient encounters. Please note that medical records for appeals should be sent
|
1688
|
+
# using the Encounter Attachments API.Request of type Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>, as a Hash
|
1684
1689
|
# * :category (CandidApiClient::Encounters::V4::Types::NoteCategory)
|
1685
1690
|
# * :notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNote>)
|
1686
1691
|
# @param billing_notes [Array<Hash>] Spot to store misc, human-readable, notes about this encounter to be used
|
@@ -2027,10 +2032,6 @@ module CandidApiClient
|
|
2027
2032
|
# date_of_service values.
|
2028
2033
|
# @param tag_ids [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
2029
2034
|
# be overridden with this list.
|
2030
|
-
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during
|
2031
|
-
# patient encounters.Request of type Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>, as a Hash
|
2032
|
-
# * :category (CandidApiClient::Encounters::V4::Types::NoteCategory)
|
2033
|
-
# * :notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNote>)
|
2034
2035
|
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
2035
2036
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
2036
2037
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -2057,6 +2058,100 @@ module CandidApiClient
|
|
2057
2058
|
# encounter's end_date_of_service will fail. If all service line
|
2058
2059
|
# end_date_of_service values are the same, updating the encounter's
|
2059
2060
|
# end_date_of_service will update all service line date_of_service values.
|
2061
|
+
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
2062
|
+
# Box 19 on the CMS-1500 claim form.
|
2063
|
+
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
2064
|
+
# Required when mandated by government law or regulation to obtain authorization
|
2065
|
+
# for specific service(s) but, for the
|
2066
|
+
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
2067
|
+
# the service was performed without
|
2068
|
+
# obtaining the authorization.
|
2069
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
2070
|
+
# Required on all ambulance claims when the patient was known to be admitted to
|
2071
|
+
# the hospital.
|
2072
|
+
# OR
|
2073
|
+
# Required on all claims involving inpatient medical visits.
|
2074
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
2075
|
+
# Required for inpatient claims when the patient was discharged from the facility
|
2076
|
+
# and the discharge date is known.
|
2077
|
+
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
2078
|
+
# Required for the initial medical service or visit performed in response to a
|
2079
|
+
# medical emergency when the date is available and is different than the date of
|
2080
|
+
# service.
|
2081
|
+
# OR
|
2082
|
+
# This date is the onset of acute symptoms for the current illness or condition.
|
2083
|
+
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
2084
|
+
# Required when, in the judgment of the provider, the services on this claim are
|
2085
|
+
# related to the patient's pregnancy.de
|
2086
|
+
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
2087
|
+
# Code indicating the reason why a request was delayed
|
2088
|
+
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
2089
|
+
# for billing purpose.
|
2090
|
+
# Box 12 on the CMS-1500 claim form.
|
2091
|
+
# @param vitals [Hash] If a vitals entity already exists for the encounter, then all values will be
|
2092
|
+
# updated to the provided values.
|
2093
|
+
# Otherwise, a new vitals object will be created for the encounter.Request of type CandidApiClient::Encounters::V4::Types::VitalsUpdate, as a Hash
|
2094
|
+
# * :height_in (Integer)
|
2095
|
+
# * :weight_lbs (Integer)
|
2096
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
2097
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
2098
|
+
# * :body_temperature_f (Float)
|
2099
|
+
# * :hemoglobin_gdl (Float)
|
2100
|
+
# * :hematocrit_pct (Float)
|
2101
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
2102
|
+
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
2103
|
+
# identify the primary payer. This is required for certain states.
|
2104
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
2105
|
+
# @param _field_set [Object]
|
2106
|
+
# @param epsdt_referral [Hash] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
2107
|
+
# 837P formRequest of type CandidApiClient::Encounters::V4::Types::EpsdtReferral, as a Hash
|
2108
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2109
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2110
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2111
|
+
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during
|
2112
|
+
# patient encounters. Please note that medical records for appeals should be sent
|
2113
|
+
# using the Encounter Attachments API.Request of type Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>, as a Hash
|
2114
|
+
# * :category (CandidApiClient::Encounters::V4::Types::NoteCategory)
|
2115
|
+
# * :notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNote>)
|
2116
|
+
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
2117
|
+
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
2118
|
+
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
2119
|
+
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
2120
|
+
# * :attachment_control_number (String)
|
2121
|
+
# @param schema_instances [Array<Hash>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
2122
|
+
# Multiple schema
|
2123
|
+
# instances cannot be created for the same schema on an encounter. Updating schema
|
2124
|
+
# instances utilizes PUT
|
2125
|
+
# semantics, so the schema instances on the encounter will be set to whatever
|
2126
|
+
# inputs are provided. If null
|
2127
|
+
# is provided as an input, then the encounter's schema instances will be cleared.Request of type Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>, as a Hash
|
2128
|
+
# * :schema_id (String)
|
2129
|
+
# * :content (Hash{String => Object})
|
2130
|
+
# @param existing_medications [Array<Hash>] Existing medications that should be on the encounter.
|
2131
|
+
# Note all current existing medications on encounter will be overridden with this
|
2132
|
+
# list.Request of type Array<CandidApiClient::Encounters::V4::Types::Medication>, as a Hash
|
2133
|
+
# * :name (String)
|
2134
|
+
# * :rx_cui (String)
|
2135
|
+
# * :dosage (String)
|
2136
|
+
# * :dosage_form (String)
|
2137
|
+
# * :frequency (String)
|
2138
|
+
# * :as_needed (Boolean)
|
2139
|
+
# @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorUpdate, as a Hash
|
2140
|
+
# * :first_name (String)
|
2141
|
+
# * :last_name (String)
|
2142
|
+
# * :external_id (String)
|
2143
|
+
# * :date_of_birth (Date)
|
2144
|
+
# * :address (Hash)
|
2145
|
+
# * :zip_plus_four_code (String)
|
2146
|
+
# * :address_1 (String)
|
2147
|
+
# * :address_2 (String)
|
2148
|
+
# * :city (String)
|
2149
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
2150
|
+
# * :zip_code (String)
|
2151
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
2152
|
+
# * :phone_consent (Boolean)
|
2153
|
+
# * :email (String)
|
2154
|
+
# * :email_consent (Boolean)
|
2060
2155
|
# @param subscriber_primary [Hash] Contains details of the primary insurance subscriber.Request of type CandidApiClient::Individual::Types::SubscriberCreate, as a Hash
|
2061
2156
|
# * :insurance_card (Hash)
|
2062
2157
|
# * :member_id (String)
|
@@ -2138,95 +2233,6 @@ module CandidApiClient
|
|
2138
2233
|
# * :first_name (String)
|
2139
2234
|
# * :last_name (String)
|
2140
2235
|
# * :gender (CandidApiClient::Individual::Types::Gender)
|
2141
|
-
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
2142
|
-
# Box 19 on the CMS-1500 claim form.
|
2143
|
-
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
2144
|
-
# Required when mandated by government law or regulation to obtain authorization
|
2145
|
-
# for specific service(s) but, for the
|
2146
|
-
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
2147
|
-
# the service was performed without
|
2148
|
-
# obtaining the authorization.
|
2149
|
-
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
2150
|
-
# Required on all ambulance claims when the patient was known to be admitted to
|
2151
|
-
# the hospital.
|
2152
|
-
# OR
|
2153
|
-
# Required on all claims involving inpatient medical visits.
|
2154
|
-
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
2155
|
-
# Required for inpatient claims when the patient was discharged from the facility
|
2156
|
-
# and the discharge date is known.
|
2157
|
-
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
2158
|
-
# Required for the initial medical service or visit performed in response to a
|
2159
|
-
# medical emergency when the date is available and is different than the date of
|
2160
|
-
# service.
|
2161
|
-
# OR
|
2162
|
-
# This date is the onset of acute symptoms for the current illness or condition.
|
2163
|
-
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
2164
|
-
# Required when, in the judgment of the provider, the services on this claim are
|
2165
|
-
# related to the patient's pregnancy.de
|
2166
|
-
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
2167
|
-
# Code indicating the reason why a request was delayed
|
2168
|
-
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
2169
|
-
# for billing purpose.
|
2170
|
-
# Box 12 on the CMS-1500 claim form.
|
2171
|
-
# @param schema_instances [Array<Hash>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
2172
|
-
# Multiple schema
|
2173
|
-
# instances cannot be created for the same schema on an encounter. Updating schema
|
2174
|
-
# instances utilizes PUT
|
2175
|
-
# semantics, so the schema instances on the encounter will be set to whatever
|
2176
|
-
# inputs are provided. If null
|
2177
|
-
# is provided as an input, then the encounter's schema instances will be cleared.Request of type Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>, as a Hash
|
2178
|
-
# * :schema_id (String)
|
2179
|
-
# * :content (Hash{String => Object})
|
2180
|
-
# @param vitals [Hash] If a vitals entity already exists for the encounter, then all values will be
|
2181
|
-
# updated to the provided values.
|
2182
|
-
# Otherwise, a new vitals object will be created for the encounter.Request of type CandidApiClient::Encounters::V4::Types::VitalsUpdate, as a Hash
|
2183
|
-
# * :height_in (Integer)
|
2184
|
-
# * :weight_lbs (Integer)
|
2185
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
2186
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
2187
|
-
# * :body_temperature_f (Float)
|
2188
|
-
# * :hemoglobin_gdl (Float)
|
2189
|
-
# * :hematocrit_pct (Float)
|
2190
|
-
# @param existing_medications [Array<Hash>] Existing medications that should be on the encounter.
|
2191
|
-
# Note all current existing medications on encounter will be overridden with this
|
2192
|
-
# list.Request of type Array<CandidApiClient::Encounters::V4::Types::Medication>, as a Hash
|
2193
|
-
# * :name (String)
|
2194
|
-
# * :rx_cui (String)
|
2195
|
-
# * :dosage (String)
|
2196
|
-
# * :dosage_form (String)
|
2197
|
-
# * :frequency (String)
|
2198
|
-
# * :as_needed (Boolean)
|
2199
|
-
# @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorUpdate, as a Hash
|
2200
|
-
# * :first_name (String)
|
2201
|
-
# * :last_name (String)
|
2202
|
-
# * :external_id (String)
|
2203
|
-
# * :date_of_birth (Date)
|
2204
|
-
# * :address (Hash)
|
2205
|
-
# * :zip_plus_four_code (String)
|
2206
|
-
# * :address_1 (String)
|
2207
|
-
# * :address_2 (String)
|
2208
|
-
# * :city (String)
|
2209
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2210
|
-
# * :zip_code (String)
|
2211
|
-
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
2212
|
-
# * :phone_consent (Boolean)
|
2213
|
-
# * :email (String)
|
2214
|
-
# * :email_consent (Boolean)
|
2215
|
-
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
2216
|
-
# @param epsdt_referral [Hash] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
2217
|
-
# 837P formRequest of type CandidApiClient::Encounters::V4::Types::EpsdtReferral, as a Hash
|
2218
|
-
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2219
|
-
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2220
|
-
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
2221
|
-
# @param claim_supplemental_information [Array<Hash>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
2222
|
-
# permitted.Request of type Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>, as a Hash
|
2223
|
-
# * :attachment_report_type_code (CandidApiClient::Encounters::V4::Types::ReportTypeCode)
|
2224
|
-
# * :attachment_transmission_code (CandidApiClient::Encounters::V4::Types::ReportTransmissionCode)
|
2225
|
-
# * :attachment_control_number (String)
|
2226
|
-
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
2227
|
-
# identify the primary payer. This is required for certain states.
|
2228
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
2229
|
-
# @param _field_set [Object]
|
2230
2236
|
# @param pay_to_address [Hash] Specifies the address to which payments for the claim should be sent.Request of type CandidApiClient::Commons::Types::StreetAddressLongZip, as a Hash
|
2231
2237
|
# * :zip_plus_four_code (String)
|
2232
2238
|
# * :address_1 (String)
|
@@ -2374,7 +2380,7 @@ module CandidApiClient
|
|
2374
2380
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
2375
2381
|
# api.encounters.v_4.update(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
2376
2382
|
def update(encounter_id:, benefits_assigned_to_provider: nil, prior_authorization_number: nil,
|
2377
|
-
external_id: nil, date_of_service: nil, tag_ids: nil,
|
2383
|
+
external_id: nil, date_of_service: nil, tag_ids: 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, 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_authorized_release: nil, vitals: nil, referral_number: nil, secondary_payer_carrier_code: nil, additional_properties: nil, _field_set: nil, epsdt_referral: nil, clinical_notes: nil, claim_supplemental_information: nil, schema_instances: nil, existing_medications: nil, guarantor: nil, subscriber_primary: nil, subscriber_secondary: nil, subscriber_tertiary: nil, pay_to_address: nil, diagnosis_ids: nil, initial_referring_provider: nil, referring_provider: nil, patient: nil, rendering_provider: nil, service_facility: nil, supervising_provider: nil, billing_provider: nil, place_of_service_code_as_submitted: nil, request_options: nil)
|
2378
2384
|
Async do
|
2379
2385
|
response = @request_client.conn.patch do |req|
|
2380
2386
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -2391,7 +2397,6 @@ module CandidApiClient
|
|
2391
2397
|
external_id: external_id,
|
2392
2398
|
date_of_service: date_of_service,
|
2393
2399
|
tag_ids: tag_ids,
|
2394
|
-
clinical_notes: clinical_notes,
|
2395
2400
|
billable_status: billable_status,
|
2396
2401
|
responsible_party: responsible_party,
|
2397
2402
|
provider_accepts_assignment: provider_accepts_assignment,
|
@@ -2399,9 +2404,6 @@ module CandidApiClient
|
|
2399
2404
|
place_of_service_code: place_of_service_code,
|
2400
2405
|
appointment_type: appointment_type,
|
2401
2406
|
end_date_of_service: end_date_of_service,
|
2402
|
-
subscriber_primary: subscriber_primary,
|
2403
|
-
subscriber_secondary: subscriber_secondary,
|
2404
|
-
subscriber_tertiary: subscriber_tertiary,
|
2405
2407
|
additional_information: additional_information,
|
2406
2408
|
service_authorization_exception_code: service_authorization_exception_code,
|
2407
2409
|
admission_date: admission_date,
|
@@ -2410,16 +2412,20 @@ module CandidApiClient
|
|
2410
2412
|
last_menstrual_period_date: last_menstrual_period_date,
|
2411
2413
|
delay_reason_code: delay_reason_code,
|
2412
2414
|
patient_authorized_release: patient_authorized_release,
|
2413
|
-
schema_instances: schema_instances,
|
2414
2415
|
vitals: vitals,
|
2415
|
-
existing_medications: existing_medications,
|
2416
|
-
guarantor: guarantor,
|
2417
2416
|
referral_number: referral_number,
|
2418
|
-
epsdt_referral: epsdt_referral,
|
2419
|
-
claim_supplemental_information: claim_supplemental_information,
|
2420
2417
|
secondary_payer_carrier_code: secondary_payer_carrier_code,
|
2421
2418
|
additional_properties: additional_properties,
|
2422
2419
|
_field_set: _field_set,
|
2420
|
+
epsdt_referral: epsdt_referral,
|
2421
|
+
clinical_notes: clinical_notes,
|
2422
|
+
claim_supplemental_information: claim_supplemental_information,
|
2423
|
+
schema_instances: schema_instances,
|
2424
|
+
existing_medications: existing_medications,
|
2425
|
+
guarantor: guarantor,
|
2426
|
+
subscriber_primary: subscriber_primary,
|
2427
|
+
subscriber_secondary: subscriber_secondary,
|
2428
|
+
subscriber_tertiary: subscriber_tertiary,
|
2423
2429
|
pay_to_address: pay_to_address,
|
2424
2430
|
diagnosis_ids: diagnosis_ids,
|
2425
2431
|
initial_referring_provider: initial_referring_provider,
|
@@ -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 ClaimSupplementalInformationOptional
|
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::ClaimSupplementalInformationOptional]
|
32
|
+
def initialize(attachment_report_type_code: OMIT, attachment_transmission_code: OMIT,
|
33
|
+
attachment_control_number: OMIT, additional_properties: nil)
|
34
|
+
@attachment_report_type_code = attachment_report_type_code if attachment_report_type_code != OMIT
|
35
|
+
@attachment_transmission_code = attachment_transmission_code if attachment_transmission_code != OMIT
|
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 ClaimSupplementalInformationOptional
|
48
|
+
#
|
49
|
+
# @param json_object [String]
|
50
|
+
# @return [CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional]
|
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 ClaimSupplementalInformationOptional 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
|