candidhealth 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df25c870af6cb1d418bf6307d87cd5b2f1dc80efddca6f8dc0cbd0da6ec5a402
|
4
|
+
data.tar.gz: be621ae6d03ca2cf805b70f11d2661b71e9e0104176e2703c3e78078731e0de4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be96f46c2efeecc09f8ef186d9d6ce23acd2dd4303b973317deec12e5a79ffde9ba883ad3783c410e103262ab5115486894d580764042ab365dca93a896ec0a8
|
7
|
+
data.tar.gz: 30f528e60f40f52dc9e4001c9c013ef7576c1309163899d4ae4afd7aedf46365de7d266a897dfce478c9c90a206960c594de9eaa7349bdf44431ba1dd52ca5f5
|
@@ -55,6 +55,10 @@ module CandidApiClient
|
|
55
55
|
#
|
56
56
|
# - Note Availity requires a free developer account to access this documentation.
|
57
57
|
#
|
58
|
+
# Check connection status of Availity API and partners here:
|
59
|
+
#
|
60
|
+
# - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
|
61
|
+
#
|
58
62
|
# @param request_options [RequestOptions]
|
59
63
|
# @return [Object]
|
60
64
|
def submit_eligibility_check_availity(request_options: nil)
|
@@ -118,6 +122,10 @@ module CandidApiClient
|
|
118
122
|
#
|
119
123
|
# - Note Availity requires a free developer account to access this documentation.
|
120
124
|
#
|
125
|
+
# Check connection status of Availity API and partners here:
|
126
|
+
#
|
127
|
+
# - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
|
128
|
+
#
|
121
129
|
# @param request_options [RequestOptions]
|
122
130
|
# @return [Object]
|
123
131
|
def submit_eligibility_check_availity(request_options: nil)
|
@@ -386,10 +386,11 @@ module CandidApiClient
|
|
386
386
|
# * :claim_created_at (DateTime)
|
387
387
|
# * :patient_control_number (String)
|
388
388
|
# * :submission_records (Array<ClaimSubmission::V1::ClaimSubmissionRecordCreate>)
|
389
|
+
# @param tag_ids [Array<Tags::TAG_ID>] Names of tags that should be on the encounter.
|
389
390
|
# @param request_options [RequestOptions]
|
390
391
|
# @return [Encounters::V4::Encounter]
|
391
392
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
392
|
-
provider_accepts_assignment:, billable_status:, responsible_party:, patient:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, prior_authorization_number: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, date_of_service: nil, end_date_of_service: nil, referring_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, request_options: nil)
|
393
|
+
provider_accepts_assignment:, billable_status:, responsible_party:, patient:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, prior_authorization_number: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, date_of_service: nil, end_date_of_service: nil, referring_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, request_options: nil)
|
393
394
|
response = @request_client.conn.post("/api/encounters/v4") do |req|
|
394
395
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
395
396
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -433,7 +434,8 @@ module CandidApiClient
|
|
433
434
|
patient_histories: patient_histories,
|
434
435
|
service_lines: service_lines,
|
435
436
|
guarantor: guarantor,
|
436
|
-
external_claim_submission: external_claim_submission
|
437
|
+
external_claim_submission: external_claim_submission,
|
438
|
+
tag_ids: tag_ids
|
437
439
|
}.compact
|
438
440
|
end
|
439
441
|
Encounters::V4::Encounter.from_json(json_object: response.body)
|
@@ -452,7 +454,7 @@ module CandidApiClient
|
|
452
454
|
# @param diagnosis_ids [Array<Diagnoses::DIAGNOSIS_ID>] Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses
|
453
455
|
# may be submitted at this time, and coders will later prioritize the 12 that will be
|
454
456
|
# submitted to the payor.
|
455
|
-
# @param tag_ids [Array<Tags::TAG_ID>] Names of tags that should be on the encounter.
|
457
|
+
# @param tag_ids [Array<Tags::TAG_ID>] Names of tags that should be on the encounter. Note all tags on encounter will be overriden with this list.
|
456
458
|
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during patient encounters.Request of type Array<Encounters::V4::ClinicalNoteCategoryCreate>, as a Hash
|
457
459
|
# * :category (Encounters::V4::NoteCategory)
|
458
460
|
# * :notes (Array<Encounters::V4::ClinicalNote>)
|
@@ -547,10 +549,13 @@ module CandidApiClient
|
|
547
549
|
# Required when, in the judgment of the provider, the services on this claim are related to the patient's pregnancy.
|
548
550
|
# @param delay_reason_code [Commons::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
549
551
|
# Code indicating the reason why a request was delayed
|
552
|
+
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
553
|
+
# for billing purpose.
|
554
|
+
# Box 12 on the CMS-1500 claim form.
|
550
555
|
# @param request_options [RequestOptions]
|
551
556
|
# @return [Encounters::V4::Encounter]
|
552
557
|
def update(encounter_id:, prior_authorization_number: nil, external_id: nil, date_of_service: nil,
|
553
|
-
diagnosis_ids: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, benefits_assigned_to_provider: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, request_options: nil)
|
558
|
+
diagnosis_ids: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, benefits_assigned_to_provider: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient_authorized_release: nil, request_options: nil)
|
554
559
|
response = @request_client.conn.patch("/api/encounters/v4/#{encounter_id}") do |req|
|
555
560
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
556
561
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -580,7 +585,8 @@ module CandidApiClient
|
|
580
585
|
discharge_date: discharge_date,
|
581
586
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
582
587
|
last_menstrual_period_date: last_menstrual_period_date,
|
583
|
-
delay_reason_code: delay_reason_code
|
588
|
+
delay_reason_code: delay_reason_code,
|
589
|
+
patient_authorized_release: patient_authorized_release
|
584
590
|
}.compact
|
585
591
|
end
|
586
592
|
Encounters::V4::Encounter.from_json(json_object: response.body)
|
@@ -934,10 +940,11 @@ module CandidApiClient
|
|
934
940
|
# * :claim_created_at (DateTime)
|
935
941
|
# * :patient_control_number (String)
|
936
942
|
# * :submission_records (Array<ClaimSubmission::V1::ClaimSubmissionRecordCreate>)
|
943
|
+
# @param tag_ids [Array<Tags::TAG_ID>] Names of tags that should be on the encounter.
|
937
944
|
# @param request_options [RequestOptions]
|
938
945
|
# @return [Encounters::V4::Encounter]
|
939
946
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
940
|
-
provider_accepts_assignment:, billable_status:, responsible_party:, patient:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, prior_authorization_number: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, date_of_service: nil, end_date_of_service: nil, referring_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, request_options: nil)
|
947
|
+
provider_accepts_assignment:, billable_status:, responsible_party:, patient:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, prior_authorization_number: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, date_of_service: nil, end_date_of_service: nil, referring_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, request_options: nil)
|
941
948
|
Async do
|
942
949
|
response = @request_client.conn.post("/api/encounters/v4") do |req|
|
943
950
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -982,7 +989,8 @@ module CandidApiClient
|
|
982
989
|
patient_histories: patient_histories,
|
983
990
|
service_lines: service_lines,
|
984
991
|
guarantor: guarantor,
|
985
|
-
external_claim_submission: external_claim_submission
|
992
|
+
external_claim_submission: external_claim_submission,
|
993
|
+
tag_ids: tag_ids
|
986
994
|
}.compact
|
987
995
|
end
|
988
996
|
Encounters::V4::Encounter.from_json(json_object: response.body)
|
@@ -1002,7 +1010,7 @@ module CandidApiClient
|
|
1002
1010
|
# @param diagnosis_ids [Array<Diagnoses::DIAGNOSIS_ID>] Ideally, this field should contain no more than 12 diagnoses. However, more diagnoses
|
1003
1011
|
# may be submitted at this time, and coders will later prioritize the 12 that will be
|
1004
1012
|
# submitted to the payor.
|
1005
|
-
# @param tag_ids [Array<Tags::TAG_ID>] Names of tags that should be on the encounter.
|
1013
|
+
# @param tag_ids [Array<Tags::TAG_ID>] Names of tags that should be on the encounter. Note all tags on encounter will be overriden with this list.
|
1006
1014
|
# @param clinical_notes [Array<Hash>] Holds a collection of clinical observations made by healthcare providers during patient encounters.Request of type Array<Encounters::V4::ClinicalNoteCategoryCreate>, as a Hash
|
1007
1015
|
# * :category (Encounters::V4::NoteCategory)
|
1008
1016
|
# * :notes (Array<Encounters::V4::ClinicalNote>)
|
@@ -1097,10 +1105,13 @@ module CandidApiClient
|
|
1097
1105
|
# Required when, in the judgment of the provider, the services on this claim are related to the patient's pregnancy.
|
1098
1106
|
# @param delay_reason_code [Commons::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
1099
1107
|
# Code indicating the reason why a request was delayed
|
1108
|
+
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
1109
|
+
# for billing purpose.
|
1110
|
+
# Box 12 on the CMS-1500 claim form.
|
1100
1111
|
# @param request_options [RequestOptions]
|
1101
1112
|
# @return [Encounters::V4::Encounter]
|
1102
1113
|
def update(encounter_id:, prior_authorization_number: nil, external_id: nil, date_of_service: nil,
|
1103
|
-
diagnosis_ids: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, benefits_assigned_to_provider: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, request_options: nil)
|
1114
|
+
diagnosis_ids: nil, tag_ids: nil, clinical_notes: nil, pay_to_address: nil, billable_status: nil, responsible_party: nil, provider_accepts_assignment: nil, benefits_assigned_to_provider: nil, synchronicity: nil, place_of_service_code: nil, appointment_type: nil, end_date_of_service: nil, subscriber_primary: nil, subscriber_secondary: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, patient_authorized_release: nil, request_options: nil)
|
1104
1115
|
Async do
|
1105
1116
|
response = @request_client.conn.patch("/api/encounters/v4/#{encounter_id}") do |req|
|
1106
1117
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1131,7 +1142,8 @@ module CandidApiClient
|
|
1131
1142
|
discharge_date: discharge_date,
|
1132
1143
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
1133
1144
|
last_menstrual_period_date: last_menstrual_period_date,
|
1134
|
-
delay_reason_code: delay_reason_code
|
1145
|
+
delay_reason_code: delay_reason_code,
|
1146
|
+
patient_authorized_release: patient_authorized_release
|
1135
1147
|
}.compact
|
1136
1148
|
end
|
1137
1149
|
Encounters::V4::Encounter.from_json(json_object: response.body)
|
@@ -38,9 +38,11 @@ module CandidApiClient
|
|
38
38
|
module Encounters
|
39
39
|
module V4
|
40
40
|
class Encounter
|
41
|
-
attr_reader :date_of_service, :end_date_of_service, :encounter_id, :claims, :patient,
|
42
|
-
:billing_provider, :rendering_provider, :referring_provider, :service_facility, :subscriber_primary, :subscriber_secondary, :url, :diagnoses, :clinical_notes, :billing_notes, :place_of_service_code, :place_of_service_code_as_submitted, :patient_histories, :patient_payments, :tags, :coding_attribution, :work_queue_id, :work_queue_membership_activated_at, :owner_of_next_action, :submission_origin, :external_id, :prior_authorization_number, :patient_authorized_release, :benefits_assigned_to_provider, :provider_accepts_assignment, :appointment_type, :existing_medications, :vitals, :interventions, :pay_to_address, :synchronicity, :billable_status, :responsible_party, :additional_information, :service_authorization_exception_code, :admission_date, :discharge_date, :onset_of_current_illness_or_symptom_date, :last_menstrual_period_date, :delay_reason_code, :additional_properties
|
41
|
+
attr_reader :patient_control_number, :date_of_service, :end_date_of_service, :encounter_id, :claims, :patient,
|
42
|
+
:guarantor, :billing_provider, :rendering_provider, :referring_provider, :service_facility, :subscriber_primary, :subscriber_secondary, :url, :diagnoses, :clinical_notes, :billing_notes, :place_of_service_code, :place_of_service_code_as_submitted, :patient_histories, :patient_payments, :tags, :coding_attribution, :work_queue_id, :work_queue_membership_activated_at, :owner_of_next_action, :submission_origin, :external_id, :prior_authorization_number, :patient_authorized_release, :benefits_assigned_to_provider, :provider_accepts_assignment, :appointment_type, :existing_medications, :vitals, :interventions, :pay_to_address, :synchronicity, :billable_status, :responsible_party, :additional_information, :service_authorization_exception_code, :admission_date, :discharge_date, :onset_of_current_illness_or_symptom_date, :last_menstrual_period_date, :delay_reason_code, :additional_properties
|
43
43
|
|
44
|
+
# @param patient_control_number [String] A patient control number (PCN) is a unique identifier assigned to a patient within a healthcare system or facility.
|
45
|
+
# It's used to track and manage a patient's medical records, treatments, and other healthcare-related information.
|
44
46
|
# @param date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
45
47
|
# This date must be the local date in the timezone where the service occurred.
|
46
48
|
# Box 24a on the CMS-1500 claim form.
|
@@ -131,7 +133,10 @@ module CandidApiClient
|
|
131
133
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
132
134
|
# @return [Encounters::V4::Encounter]
|
133
135
|
def initialize(date_of_service:, encounter_id:, claims:, patient:, billing_provider:, rendering_provider:,
|
134
|
-
service_facility:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, responsible_party:, end_date_of_service: nil, guarantor: nil, referring_provider: nil, subscriber_primary: nil, subscriber_secondary: nil, billing_notes: nil, place_of_service_code: nil, place_of_service_code_as_submitted: nil, coding_attribution: nil, work_queue_id: nil, work_queue_membership_activated_at: nil, prior_authorization_number: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil)
|
136
|
+
service_facility:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, responsible_party:, patient_control_number: nil, end_date_of_service: nil, guarantor: nil, referring_provider: nil, subscriber_primary: nil, subscriber_secondary: nil, billing_notes: nil, place_of_service_code: nil, place_of_service_code_as_submitted: nil, coding_attribution: nil, work_queue_id: nil, work_queue_membership_activated_at: nil, prior_authorization_number: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil)
|
137
|
+
# @type [String] A patient control number (PCN) is a unique identifier assigned to a patient within a healthcare system or facility.
|
138
|
+
# It's used to track and manage a patient's medical records, treatments, and other healthcare-related information.
|
139
|
+
@patient_control_number = patient_control_number
|
135
140
|
# @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
136
141
|
# This date must be the local date in the timezone where the service occurred.
|
137
142
|
# Box 24a on the CMS-1500 claim form.
|
@@ -276,6 +281,7 @@ module CandidApiClient
|
|
276
281
|
def self.from_json(json_object:)
|
277
282
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
278
283
|
parsed_json = JSON.parse(json_object)
|
284
|
+
patient_control_number = struct.patient_control_number
|
279
285
|
date_of_service = struct.date_of_service
|
280
286
|
end_date_of_service = struct.end_date_of_service
|
281
287
|
encounter_id = struct.encounter_id
|
@@ -401,8 +407,8 @@ module CandidApiClient
|
|
401
407
|
onset_of_current_illness_or_symptom_date = struct.onset_of_current_illness_or_symptom_date
|
402
408
|
last_menstrual_period_date = struct.last_menstrual_period_date
|
403
409
|
delay_reason_code = struct.delay_reason_code
|
404
|
-
new(
|
405
|
-
claims: claims, patient: patient, guarantor: guarantor, billing_provider: billing_provider, rendering_provider: rendering_provider, referring_provider: referring_provider, service_facility: service_facility, subscriber_primary: subscriber_primary, subscriber_secondary: subscriber_secondary, url: url, diagnoses: diagnoses, clinical_notes: clinical_notes, billing_notes: billing_notes, place_of_service_code: place_of_service_code, place_of_service_code_as_submitted: place_of_service_code_as_submitted, patient_histories: patient_histories, patient_payments: patient_payments, tags: tags, coding_attribution: coding_attribution, work_queue_id: work_queue_id, work_queue_membership_activated_at: work_queue_membership_activated_at, owner_of_next_action: owner_of_next_action, submission_origin: submission_origin, external_id: external_id, prior_authorization_number: prior_authorization_number, patient_authorized_release: patient_authorized_release, benefits_assigned_to_provider: benefits_assigned_to_provider, provider_accepts_assignment: provider_accepts_assignment, appointment_type: appointment_type, existing_medications: existing_medications, vitals: vitals, interventions: interventions, pay_to_address: pay_to_address, synchronicity: synchronicity, billable_status: billable_status, responsible_party: responsible_party, additional_information: additional_information, service_authorization_exception_code: service_authorization_exception_code, admission_date: admission_date, discharge_date: discharge_date, onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date, last_menstrual_period_date: last_menstrual_period_date, delay_reason_code: delay_reason_code, additional_properties: struct)
|
410
|
+
new(patient_control_number: patient_control_number, date_of_service: date_of_service,
|
411
|
+
end_date_of_service: end_date_of_service, encounter_id: encounter_id, claims: claims, patient: patient, guarantor: guarantor, billing_provider: billing_provider, rendering_provider: rendering_provider, referring_provider: referring_provider, service_facility: service_facility, subscriber_primary: subscriber_primary, subscriber_secondary: subscriber_secondary, url: url, diagnoses: diagnoses, clinical_notes: clinical_notes, billing_notes: billing_notes, place_of_service_code: place_of_service_code, place_of_service_code_as_submitted: place_of_service_code_as_submitted, patient_histories: patient_histories, patient_payments: patient_payments, tags: tags, coding_attribution: coding_attribution, work_queue_id: work_queue_id, work_queue_membership_activated_at: work_queue_membership_activated_at, owner_of_next_action: owner_of_next_action, submission_origin: submission_origin, external_id: external_id, prior_authorization_number: prior_authorization_number, patient_authorized_release: patient_authorized_release, benefits_assigned_to_provider: benefits_assigned_to_provider, provider_accepts_assignment: provider_accepts_assignment, appointment_type: appointment_type, existing_medications: existing_medications, vitals: vitals, interventions: interventions, pay_to_address: pay_to_address, synchronicity: synchronicity, billable_status: billable_status, responsible_party: responsible_party, additional_information: additional_information, service_authorization_exception_code: service_authorization_exception_code, admission_date: admission_date, discharge_date: discharge_date, onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date, last_menstrual_period_date: last_menstrual_period_date, delay_reason_code: delay_reason_code, additional_properties: struct)
|
406
412
|
end
|
407
413
|
|
408
414
|
# Serialize an instance of Encounter to a JSON object
|
@@ -410,6 +416,7 @@ module CandidApiClient
|
|
410
416
|
# @return [JSON]
|
411
417
|
def to_json(*_args)
|
412
418
|
{
|
419
|
+
"patient_control_number": @patient_control_number,
|
413
420
|
"date_of_service": @date_of_service,
|
414
421
|
"end_date_of_service": @end_date_of_service,
|
415
422
|
"encounter_id": @encounter_id,
|
@@ -464,6 +471,7 @@ module CandidApiClient
|
|
464
471
|
# @param obj [Object]
|
465
472
|
# @return [Void]
|
466
473
|
def self.validate_raw(obj:)
|
474
|
+
obj.patient_control_number&.is_a?(String) != false || raise("Passed value for field obj.patient_control_number is not the expected type, validation failed.")
|
467
475
|
obj.date_of_service.is_a?(String) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
468
476
|
obj.end_date_of_service&.is_a?(String) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
469
477
|
obj.encounter_id.is_a?(UUID) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
|
data/lib/requests.rb
CHANGED
@@ -20,7 +20,7 @@ module CandidApiClient
|
|
20
20
|
@headers = {
|
21
21
|
"X-Fern-Language": "Ruby",
|
22
22
|
"X-Fern-SDK-Name": "candidhealth",
|
23
|
-
"X-Fern-SDK-Version": "0.18.
|
23
|
+
"X-Fern-SDK-Version": "0.18.1",
|
24
24
|
"Authorization": "Bearer #{token}"
|
25
25
|
}
|
26
26
|
@conn = Faraday.new(@base_url, headers: @headers) do |faraday|
|
@@ -46,7 +46,7 @@ module CandidApiClient
|
|
46
46
|
@headers = {
|
47
47
|
"X-Fern-Language": "Ruby",
|
48
48
|
"X-Fern-SDK-Name": "candidhealth",
|
49
|
-
"X-Fern-SDK-Version": "0.18.
|
49
|
+
"X-Fern-SDK-Version": "0.18.1",
|
50
50
|
"Authorization": "Bearer #{token}"
|
51
51
|
}
|
52
52
|
@conn = Faraday.new(@base_url, headers: @headers) do |faraday|
|
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.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|