candidhealth 0.18.0 → 0.18.2

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: add4ff09bdd3c10a36fe961b6e3ff99c29dfeae8685c5f69e4df44212f3624a4
4
- data.tar.gz: 56d73c13afca1e3a7a7bd76c8502aa08c2f0b81429ddc028f13990fab9a3249e
3
+ metadata.gz: 90993023bc842df7ca7f776af7dfb84e6a88f49a22cec6194d94683bda4ca58d
4
+ data.tar.gz: c76d2e483062d0372477cdd1f899284a6f9c1a892032da95f5b4076aabe6788b
5
5
  SHA512:
6
- metadata.gz: 8b6597c1c014a1bba0a09e43d6b1c2f9893f6cd657d161cb28efe6bd457111720053c916302193a32ccafd1379ce48e932fee4516a3cc29919ad238459c0c6eb
7
- data.tar.gz: 3f2ab5915a3bd5389a7d913acbc0c5d9af899113589deac233c67a102d56fdf230586c8f9e14ad969245559b87f37262e3364c8871f6c9b7f13a65009075da51
6
+ metadata.gz: 311657aa83abffe1f96d47404c6fbd9e3cbf814a5993ac6185cb7442f74440c6747a5406082ed550dbde471d3cbb589d7dbc554c931cced780dafc7e4b287bb1
7
+ data.tar.gz: 85cc2cd24f7295c20e3b4b88e21a52fcd1575df42f946e8fc2b7d56e59d68b6052fe8a30f9ee8ba02bfe59220045a0c7491bd8917524474aa9684eb5d15d7b26
@@ -12,6 +12,7 @@ module CandidApiClient
12
12
  PR = "PR"
13
13
  RR = "RR"
14
14
  NC = "NC"
15
+ UNKNOWN = "UNKNOWN"
15
16
  end
16
17
  end
17
18
  end
@@ -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, :guarantor,
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(date_of_service: date_of_service, end_date_of_service: end_date_of_service, encounter_id: encounter_id,
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.")
@@ -16,8 +16,8 @@ module CandidApiClient
16
16
  # @param body_temperature_f [Float]
17
17
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
18
18
  # @return [Encounters::V4::Vitals]
19
- def initialize(height_in:, weight_lbs:, blood_pressure_systolic_mmhg:, blood_pressure_diastolic_mmhg:,
20
- body_temperature_f: nil, additional_properties: nil)
19
+ def initialize(height_in: nil, weight_lbs: nil, blood_pressure_systolic_mmhg: nil,
20
+ blood_pressure_diastolic_mmhg: nil, body_temperature_f: nil, additional_properties: nil)
21
21
  # @type [Integer]
22
22
  @height_in = height_in
23
23
  # @type [Integer]
@@ -66,10 +66,10 @@ module CandidApiClient
66
66
  # @param obj [Object]
67
67
  # @return [Void]
68
68
  def self.validate_raw(obj:)
69
- obj.height_in.is_a?(Integer) != false || raise("Passed value for field obj.height_in is not the expected type, validation failed.")
70
- obj.weight_lbs.is_a?(Integer) != false || raise("Passed value for field obj.weight_lbs is not the expected type, validation failed.")
71
- obj.blood_pressure_systolic_mmhg.is_a?(Integer) != false || raise("Passed value for field obj.blood_pressure_systolic_mmhg is not the expected type, validation failed.")
72
- obj.blood_pressure_diastolic_mmhg.is_a?(Integer) != false || raise("Passed value for field obj.blood_pressure_diastolic_mmhg is not the expected type, validation failed.")
69
+ obj.height_in&.is_a?(Integer) != false || raise("Passed value for field obj.height_in is not the expected type, validation failed.")
70
+ obj.weight_lbs&.is_a?(Integer) != false || raise("Passed value for field obj.weight_lbs is not the expected type, validation failed.")
71
+ obj.blood_pressure_systolic_mmhg&.is_a?(Integer) != false || raise("Passed value for field obj.blood_pressure_systolic_mmhg is not the expected type, validation failed.")
72
+ obj.blood_pressure_diastolic_mmhg&.is_a?(Integer) != false || raise("Passed value for field obj.blood_pressure_diastolic_mmhg is not the expected type, validation failed.")
73
73
  obj.body_temperature_f&.is_a?(Float) != false || raise("Passed value for field obj.body_temperature_f is not the expected type, validation failed.")
74
74
  end
75
75
  end
@@ -8,6 +8,7 @@ module CandidApiClient
8
8
  PAID = "paid"
9
9
  VOID = "void"
10
10
  UNCOLLECTIBLE = "uncollectible"
11
+ HELD = "held"
11
12
  end
12
13
  end
13
14
  end
@@ -406,6 +406,7 @@ module CandidApiClient
406
406
  CARC_Y_1 = "Y1"
407
407
  CARC_Y_2 = "Y2"
408
408
  CARC_Y_3 = "Y3"
409
+ UNKNOWN = "UNKNOWN"
409
410
  end
410
411
  end
411
412
  end
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.0",
23
+ "X-Fern-SDK-Version": "0.18.2",
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.0",
49
+ "X-Fern-SDK-Version": "0.18.2",
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.0
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday