candidhealth 0.39.4 → 0.39.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/encounters/v_4/client.rb +0 -312
- data/lib/requests.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a6175830f8109fe2b7fe90399bd9422ed89eedc824b3155655044a2e222435f
|
4
|
+
data.tar.gz: 4e05499a27bb1e6551c640a6ce8123704eed9cf730ff22b01c4b9fe997f63db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2298a18c4b4233472d9e62e9924f799b6ad57881cc63b94a8a68711cfcba0e9eee77452177f2e88a686544177652ac3ebc12c41ec34a691e1aba6f335783c243
|
7
|
+
data.tar.gz: e3a49be84ad1c5cbfa7c774967768ef29f97b8ac7b9cfff886ee48166e230b9934cfad6e5ae29bfd8b7df0abd357c1aa4048011d63b0fd8d070a65e18b7fa05c
|
@@ -789,161 +789,6 @@ module CandidApiClient
|
|
789
789
|
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
790
790
|
end
|
791
791
|
|
792
|
-
# Create an encounter from a pre-encounter patient and appointment. This endpoint
|
793
|
-
# is intended to be used by consumers who are managing
|
794
|
-
# patients and appointments in the pre-encounter service and is currently under
|
795
|
-
# development. Consumers who are not taking advantage
|
796
|
-
# of the pre-encounter service should use the standard create endpoint.
|
797
|
-
# The endpoint will create an encounter from the provided fields, pulling
|
798
|
-
# information from the provided patient and appointment objects
|
799
|
-
# where applicable. In particular, the following fields are populated from the
|
800
|
-
# patient and appointment objects:
|
801
|
-
# - Patient
|
802
|
-
# - Referring Provider
|
803
|
-
# - Subscriber Primary
|
804
|
-
# - Subscriber Secondary
|
805
|
-
# - Referral Number
|
806
|
-
# - Responsible Party
|
807
|
-
# - Guarantor
|
808
|
-
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
809
|
-
# the patient or appointment is updated, assuming the
|
810
|
-
# encounter has not already been submitted or adjudicated.
|
811
|
-
#
|
812
|
-
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
|
813
|
-
# * :pre_encounter_patient_id (String)
|
814
|
-
# * :pre_encounter_appointment_ids (Array<String>)
|
815
|
-
# * :billing_provider (Hash)
|
816
|
-
# * :address (Hash)
|
817
|
-
# * :zip_plus_four_code (String)
|
818
|
-
# * :address_1 (String)
|
819
|
-
# * :address_2 (String)
|
820
|
-
# * :city (String)
|
821
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
822
|
-
# * :zip_code (String)
|
823
|
-
# * :tax_id (String)
|
824
|
-
# * :npi (String)
|
825
|
-
# * :taxonomy_code (String)
|
826
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
827
|
-
# * :first_name (String)
|
828
|
-
# * :last_name (String)
|
829
|
-
# * :organization_name (String)
|
830
|
-
# * :rendering_provider (Hash)
|
831
|
-
# * :npi (String)
|
832
|
-
# * :taxonomy_code (String)
|
833
|
-
# * :address (Hash)
|
834
|
-
# * :zip_plus_four_code (String)
|
835
|
-
# * :address_1 (String)
|
836
|
-
# * :address_2 (String)
|
837
|
-
# * :city (String)
|
838
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
839
|
-
# * :zip_code (String)
|
840
|
-
# * :first_name (String)
|
841
|
-
# * :last_name (String)
|
842
|
-
# * :organization_name (String)
|
843
|
-
# * :initial_referring_provider (Hash)
|
844
|
-
# * :npi (String)
|
845
|
-
# * :taxonomy_code (String)
|
846
|
-
# * :address (Hash)
|
847
|
-
# * :zip_plus_four_code (String)
|
848
|
-
# * :address_1 (String)
|
849
|
-
# * :address_2 (String)
|
850
|
-
# * :city (String)
|
851
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
852
|
-
# * :zip_code (String)
|
853
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
854
|
-
# * :first_name (String)
|
855
|
-
# * :last_name (String)
|
856
|
-
# * :organization_name (String)
|
857
|
-
# * :supervising_provider (Hash)
|
858
|
-
# * :npi (String)
|
859
|
-
# * :taxonomy_code (String)
|
860
|
-
# * :address (Hash)
|
861
|
-
# * :zip_plus_four_code (String)
|
862
|
-
# * :address_1 (String)
|
863
|
-
# * :address_2 (String)
|
864
|
-
# * :city (String)
|
865
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
866
|
-
# * :zip_code (String)
|
867
|
-
# * :first_name (String)
|
868
|
-
# * :last_name (String)
|
869
|
-
# * :organization_name (String)
|
870
|
-
# * :service_facility (Hash)
|
871
|
-
# * :organization_name (String)
|
872
|
-
# * :npi (String)
|
873
|
-
# * :address (Hash)
|
874
|
-
# * :zip_plus_four_code (String)
|
875
|
-
# * :address_1 (String)
|
876
|
-
# * :address_2 (String)
|
877
|
-
# * :city (String)
|
878
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
879
|
-
# * :zip_code (String)
|
880
|
-
# * :secondary_identification (String)
|
881
|
-
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
882
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
883
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
884
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
885
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
886
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
887
|
-
# * :external_claim_submission (Hash)
|
888
|
-
# * :claim_created_at (DateTime)
|
889
|
-
# * :patient_control_number (String)
|
890
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
891
|
-
# * :tag_ids (Array<String>)
|
892
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
893
|
-
# * :external_id (String)
|
894
|
-
# * :date_of_service (Date)
|
895
|
-
# * :end_date_of_service (Date)
|
896
|
-
# * :patient_authorized_release (Boolean)
|
897
|
-
# * :benefits_assigned_to_provider (Boolean)
|
898
|
-
# * :provider_accepts_assignment (Boolean)
|
899
|
-
# * :appointment_type (String)
|
900
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
901
|
-
# * :vitals (Hash)
|
902
|
-
# * :height_in (Integer)
|
903
|
-
# * :weight_lbs (Integer)
|
904
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
905
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
906
|
-
# * :body_temperature_f (Float)
|
907
|
-
# * :hemoglobin_gdl (Float)
|
908
|
-
# * :hematocrit_pct (Float)
|
909
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
910
|
-
# * :pay_to_address (Hash)
|
911
|
-
# * :zip_plus_four_code (String)
|
912
|
-
# * :address_1 (String)
|
913
|
-
# * :address_2 (String)
|
914
|
-
# * :city (String)
|
915
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
916
|
-
# * :zip_code (String)
|
917
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
918
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
919
|
-
# * :additional_information (String)
|
920
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
921
|
-
# * :admission_date (Date)
|
922
|
-
# * :discharge_date (Date)
|
923
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
924
|
-
# * :last_menstrual_period_date (Date)
|
925
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
926
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
927
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
928
|
-
# @example
|
929
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
930
|
-
# api.encounters.v_4.create_from_pre_encounter_patient_internal(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" }, rendering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, initial_referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" }, supervising_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
|
931
|
-
def create_from_pre_encounter_patient_internal(request:, request_options: nil)
|
932
|
-
response = @request_client.conn.post do |req|
|
933
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
934
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
935
|
-
req.headers = {
|
936
|
-
**(req.headers || {}),
|
937
|
-
**@request_client.get_headers,
|
938
|
-
**(request_options&.additional_headers || {})
|
939
|
-
}.compact
|
940
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
941
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
942
|
-
request_options: request_options)}/api/encounters/v4/create-from-pre-encounter-internal"
|
943
|
-
end
|
944
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
945
|
-
end
|
946
|
-
|
947
792
|
# @param encounter_id [String]
|
948
793
|
# @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
949
794
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
@@ -2084,163 +1929,6 @@ module CandidApiClient
|
|
2084
1929
|
end
|
2085
1930
|
end
|
2086
1931
|
|
2087
|
-
# Create an encounter from a pre-encounter patient and appointment. This endpoint
|
2088
|
-
# is intended to be used by consumers who are managing
|
2089
|
-
# patients and appointments in the pre-encounter service and is currently under
|
2090
|
-
# development. Consumers who are not taking advantage
|
2091
|
-
# of the pre-encounter service should use the standard create endpoint.
|
2092
|
-
# The endpoint will create an encounter from the provided fields, pulling
|
2093
|
-
# information from the provided patient and appointment objects
|
2094
|
-
# where applicable. In particular, the following fields are populated from the
|
2095
|
-
# patient and appointment objects:
|
2096
|
-
# - Patient
|
2097
|
-
# - Referring Provider
|
2098
|
-
# - Subscriber Primary
|
2099
|
-
# - Subscriber Secondary
|
2100
|
-
# - Referral Number
|
2101
|
-
# - Responsible Party
|
2102
|
-
# - Guarantor
|
2103
|
-
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
2104
|
-
# the patient or appointment is updated, assuming the
|
2105
|
-
# encounter has not already been submitted or adjudicated.
|
2106
|
-
#
|
2107
|
-
# @param request [Hash] Request of type CandidApiClient::Encounters::V4::Types::EncounterCreateFromPreEncounter, as a Hash
|
2108
|
-
# * :pre_encounter_patient_id (String)
|
2109
|
-
# * :pre_encounter_appointment_ids (Array<String>)
|
2110
|
-
# * :billing_provider (Hash)
|
2111
|
-
# * :address (Hash)
|
2112
|
-
# * :zip_plus_four_code (String)
|
2113
|
-
# * :address_1 (String)
|
2114
|
-
# * :address_2 (String)
|
2115
|
-
# * :city (String)
|
2116
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2117
|
-
# * :zip_code (String)
|
2118
|
-
# * :tax_id (String)
|
2119
|
-
# * :npi (String)
|
2120
|
-
# * :taxonomy_code (String)
|
2121
|
-
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
2122
|
-
# * :first_name (String)
|
2123
|
-
# * :last_name (String)
|
2124
|
-
# * :organization_name (String)
|
2125
|
-
# * :rendering_provider (Hash)
|
2126
|
-
# * :npi (String)
|
2127
|
-
# * :taxonomy_code (String)
|
2128
|
-
# * :address (Hash)
|
2129
|
-
# * :zip_plus_four_code (String)
|
2130
|
-
# * :address_1 (String)
|
2131
|
-
# * :address_2 (String)
|
2132
|
-
# * :city (String)
|
2133
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2134
|
-
# * :zip_code (String)
|
2135
|
-
# * :first_name (String)
|
2136
|
-
# * :last_name (String)
|
2137
|
-
# * :organization_name (String)
|
2138
|
-
# * :initial_referring_provider (Hash)
|
2139
|
-
# * :npi (String)
|
2140
|
-
# * :taxonomy_code (String)
|
2141
|
-
# * :address (Hash)
|
2142
|
-
# * :zip_plus_four_code (String)
|
2143
|
-
# * :address_1 (String)
|
2144
|
-
# * :address_2 (String)
|
2145
|
-
# * :city (String)
|
2146
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2147
|
-
# * :zip_code (String)
|
2148
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
2149
|
-
# * :first_name (String)
|
2150
|
-
# * :last_name (String)
|
2151
|
-
# * :organization_name (String)
|
2152
|
-
# * :supervising_provider (Hash)
|
2153
|
-
# * :npi (String)
|
2154
|
-
# * :taxonomy_code (String)
|
2155
|
-
# * :address (Hash)
|
2156
|
-
# * :zip_plus_four_code (String)
|
2157
|
-
# * :address_1 (String)
|
2158
|
-
# * :address_2 (String)
|
2159
|
-
# * :city (String)
|
2160
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2161
|
-
# * :zip_code (String)
|
2162
|
-
# * :first_name (String)
|
2163
|
-
# * :last_name (String)
|
2164
|
-
# * :organization_name (String)
|
2165
|
-
# * :service_facility (Hash)
|
2166
|
-
# * :organization_name (String)
|
2167
|
-
# * :npi (String)
|
2168
|
-
# * :address (Hash)
|
2169
|
-
# * :zip_plus_four_code (String)
|
2170
|
-
# * :address_1 (String)
|
2171
|
-
# * :address_2 (String)
|
2172
|
-
# * :city (String)
|
2173
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2174
|
-
# * :zip_code (String)
|
2175
|
-
# * :secondary_identification (String)
|
2176
|
-
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreate>)
|
2177
|
-
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
|
2178
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
|
2179
|
-
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
2180
|
-
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
2181
|
-
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
2182
|
-
# * :external_claim_submission (Hash)
|
2183
|
-
# * :claim_created_at (DateTime)
|
2184
|
-
# * :patient_control_number (String)
|
2185
|
-
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
2186
|
-
# * :tag_ids (Array<String>)
|
2187
|
-
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
|
2188
|
-
# * :external_id (String)
|
2189
|
-
# * :date_of_service (Date)
|
2190
|
-
# * :end_date_of_service (Date)
|
2191
|
-
# * :patient_authorized_release (Boolean)
|
2192
|
-
# * :benefits_assigned_to_provider (Boolean)
|
2193
|
-
# * :provider_accepts_assignment (Boolean)
|
2194
|
-
# * :appointment_type (String)
|
2195
|
-
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
|
2196
|
-
# * :vitals (Hash)
|
2197
|
-
# * :height_in (Integer)
|
2198
|
-
# * :weight_lbs (Integer)
|
2199
|
-
# * :blood_pressure_systolic_mmhg (Integer)
|
2200
|
-
# * :blood_pressure_diastolic_mmhg (Integer)
|
2201
|
-
# * :body_temperature_f (Float)
|
2202
|
-
# * :hemoglobin_gdl (Float)
|
2203
|
-
# * :hematocrit_pct (Float)
|
2204
|
-
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::Intervention>)
|
2205
|
-
# * :pay_to_address (Hash)
|
2206
|
-
# * :zip_plus_four_code (String)
|
2207
|
-
# * :address_1 (String)
|
2208
|
-
# * :address_2 (String)
|
2209
|
-
# * :city (String)
|
2210
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
2211
|
-
# * :zip_code (String)
|
2212
|
-
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
2213
|
-
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
2214
|
-
# * :additional_information (String)
|
2215
|
-
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
2216
|
-
# * :admission_date (Date)
|
2217
|
-
# * :discharge_date (Date)
|
2218
|
-
# * :onset_of_current_illness_or_symptom_date (Date)
|
2219
|
-
# * :last_menstrual_period_date (Date)
|
2220
|
-
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
2221
|
-
# @param request_options [CandidApiClient::RequestOptions]
|
2222
|
-
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
2223
|
-
# @example
|
2224
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
2225
|
-
# api.encounters.v_4.create_from_pre_encounter_patient_internal(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER, first_name: "string", last_name: "string", organization_name: "string" }, rendering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, initial_referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" }, supervising_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1 })
|
2226
|
-
def create_from_pre_encounter_patient_internal(request:, request_options: nil)
|
2227
|
-
Async do
|
2228
|
-
response = @request_client.conn.post do |req|
|
2229
|
-
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
2230
|
-
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
2231
|
-
req.headers = {
|
2232
|
-
**(req.headers || {}),
|
2233
|
-
**@request_client.get_headers,
|
2234
|
-
**(request_options&.additional_headers || {})
|
2235
|
-
}.compact
|
2236
|
-
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
2237
|
-
req.url "#{@request_client.get_url(environment: CandidApi,
|
2238
|
-
request_options: request_options)}/api/encounters/v4/create-from-pre-encounter-internal"
|
2239
|
-
end
|
2240
|
-
CandidApiClient::Encounters::V4::Types::Encounter.from_json(json_object: response.body)
|
2241
|
-
end
|
2242
|
-
end
|
2243
|
-
|
2244
1932
|
# @param encounter_id [String]
|
2245
1933
|
# @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
2246
1934
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.5" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.5" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.39.
|
4
|
+
version: 0.39.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|