candidhealth 0.17.4 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +0 -1
  3. data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +15 -4
  4. data/lib/candidhealth/commons/types/entity_conflict_error_message.rb +47 -0
  5. data/lib/candidhealth/commons/types/intended_submission_medium.rb +11 -0
  6. data/lib/candidhealth/commons/types/network_type.rb +27 -0
  7. data/lib/candidhealth/commons/types/rate_id.rb +7 -0
  8. data/lib/candidhealth/commons/types/source_of_payment_code.rb +1 -0
  9. data/lib/candidhealth/contracts/v_2/types/contract.rb +2 -2
  10. data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +3 -3
  11. data/lib/candidhealth/eligibility/v_2/client.rb +2 -2
  12. data/lib/candidhealth/encounters/v_4/client.rb +46 -28
  13. data/lib/candidhealth/encounters/v_4/types/encounter.rb +33 -31
  14. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +7 -31
  15. data/lib/candidhealth/fee_schedules/client.rb +28 -0
  16. data/lib/candidhealth/fee_schedules/v_3/client.rb +499 -0
  17. data/lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb +157 -0
  18. data/lib/candidhealth/fee_schedules/v_3/types/dimension_name.rb +14 -0
  19. data/lib/candidhealth/fee_schedules/v_3/types/dimensions.rb +136 -0
  20. data/lib/candidhealth/fee_schedules/v_3/types/dimensions_page.rb +69 -0
  21. data/lib/candidhealth/fee_schedules/v_3/types/match_cpt_code.rb +60 -0
  22. data/lib/candidhealth/fee_schedules/v_3/types/match_date.rb +61 -0
  23. data/lib/candidhealth/fee_schedules/v_3/types/match_facility_type_code.rb +61 -0
  24. data/lib/candidhealth/fee_schedules/v_3/types/match_geo.rb +66 -0
  25. data/lib/candidhealth/fee_schedules/v_3/types/match_license_type.rb +61 -0
  26. data/lib/candidhealth/fee_schedules/v_3/types/match_modifiers.rb +66 -0
  27. data/lib/candidhealth/fee_schedules/v_3/types/match_network_types.rb +66 -0
  28. data/lib/candidhealth/fee_schedules/v_3/types/match_payer.rb +61 -0
  29. data/lib/candidhealth/fee_schedules/v_3/types/match_provider.rb +61 -0
  30. data/lib/candidhealth/fee_schedules/v_3/types/match_result.rb +61 -0
  31. data/lib/candidhealth/fee_schedules/v_3/types/match_test_result.rb +66 -0
  32. data/lib/candidhealth/fee_schedules/v_3/types/new_rate.rb +64 -0
  33. data/lib/candidhealth/fee_schedules/v_3/types/new_rate_version.rb +64 -0
  34. data/lib/candidhealth/fee_schedules/v_3/types/optional_dimensions.rb +136 -0
  35. data/lib/candidhealth/fee_schedules/v_3/types/overlapping_rate_entries_error.rb +71 -0
  36. data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +66 -0
  37. data/lib/candidhealth/fee_schedules/v_3/types/payer_thresholds_page.rb +68 -0
  38. data/lib/candidhealth/fee_schedules/v_3/types/rate.rb +96 -0
  39. data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +72 -0
  40. data/lib/candidhealth/fee_schedules/v_3/types/rate_upload.rb +94 -0
  41. data/lib/candidhealth/fee_schedules/v_3/types/rate_upload_with_possible_errors.rb +76 -0
  42. data/lib/candidhealth/fee_schedules/v_3/types/rates_page.rb +65 -0
  43. data/lib/candidhealth/fee_schedules/v_3/types/threshold_match.rb +72 -0
  44. data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +129 -0
  45. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +20 -5
  46. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +19 -4
  47. data/lib/requests.rb +2 -2
  48. data/lib/types_export.rb +32 -0
  49. metadata +36 -2
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "../../../commons/types/date"
3
4
  require_relative "../../../commons/types/encounter_id"
4
5
  require_relative "../../../claims/types/claim"
5
6
  require_relative "../../../individual/types/patient"
@@ -21,7 +22,6 @@ require "date"
21
22
  require_relative "encounter_owner_of_next_action_type"
22
23
  require_relative "encounter_submission_origin_type"
23
24
  require_relative "../../../commons/types/encounter_external_id"
24
- require_relative "../../../commons/types/date"
25
25
  require_relative "prior_authorization_number"
26
26
  require_relative "medication"
27
27
  require_relative "vitals"
@@ -38,9 +38,18 @@ module CandidApiClient
38
38
  module Encounters
39
39
  module V4
40
40
  class Encounter
41
- attr_reader :encounter_id, :claims, :patient, :guarantor, :billing_provider, :rendering_provider,
42
- :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, :date_of_service, :end_date_of_service, :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 :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
43
43
 
44
+ # @param date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
45
+ # This date must be the local date in the timezone where the service occurred.
46
+ # Box 24a on the CMS-1500 claim form.
47
+ # If service occurred over a range of dates, this should be the start date.
48
+ # date_of_service must be defined on either the encounter or the service lines but not both.
49
+ # @param end_date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
50
+ # This date must be the local date in the timezone where the service occurred.
51
+ # If omitted, the Encounter is assumed to be for a single day.
52
+ # Must not be temporally before the date_of_service field.
44
53
  # @param encounter_id [Commons::ENCOUNTER_ID]
45
54
  # @param claims [Array<Claims::Claim>]
46
55
  # @param patient [Individual::Patient] Contains the identification information of the individual receiving medical services.
@@ -75,14 +84,6 @@ module CandidApiClient
75
84
  # @param external_id [Commons::ENCOUNTER_EXTERNAL_ID] A client-specified unique ID to associate with this encounter;
76
85
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
77
86
  # This field should not contain PHI.
78
- # @param date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
79
- # This date must be the local date in the timezone where the service occurred.
80
- # Box 24a on the CMS-1500 claim form.
81
- # If service occurred over a range of dates, this should be the start date.
82
- # @param end_date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
83
- # This date must be the local date in the timezone where the service occurred.
84
- # If omitted, the Encounter is assumed to be for a single day.
85
- # Must not be temporally before the date_of_service field.
86
87
  # @param prior_authorization_number [Encounters::V4::PRIOR_AUTHORIZATION_NUMBER] Box 23 on the CMS-1500 claim form.
87
88
  # @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
88
89
  # for billing purpose.
@@ -129,8 +130,19 @@ module CandidApiClient
129
130
  # Code indicating the reason why a request was delayed
130
131
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
131
132
  # @return [Encounters::V4::Encounter]
132
- def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, external_id:, date_of_service:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, responsible_party:, guarantor: nil,
133
- 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, end_date_of_service: 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)
133
+ 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)
135
+ # @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
136
+ # This date must be the local date in the timezone where the service occurred.
137
+ # Box 24a on the CMS-1500 claim form.
138
+ # If service occurred over a range of dates, this should be the start date.
139
+ # date_of_service must be defined on either the encounter or the service lines but not both.
140
+ @date_of_service = date_of_service
141
+ # @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
142
+ # This date must be the local date in the timezone where the service occurred.
143
+ # If omitted, the Encounter is assumed to be for a single day.
144
+ # Must not be temporally before the date_of_service field.
145
+ @end_date_of_service = end_date_of_service
134
146
  # @type [Commons::ENCOUNTER_ID]
135
147
  @encounter_id = encounter_id
136
148
  # @type [Array<Claims::Claim>]
@@ -190,16 +202,6 @@ module CandidApiClient
190
202
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
191
203
  # This field should not contain PHI.
192
204
  @external_id = external_id
193
- # @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
194
- # This date must be the local date in the timezone where the service occurred.
195
- # Box 24a on the CMS-1500 claim form.
196
- # If service occurred over a range of dates, this should be the start date.
197
- @date_of_service = date_of_service
198
- # @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
199
- # This date must be the local date in the timezone where the service occurred.
200
- # If omitted, the Encounter is assumed to be for a single day.
201
- # Must not be temporally before the date_of_service field.
202
- @end_date_of_service = end_date_of_service
203
205
  # @type [Encounters::V4::PRIOR_AUTHORIZATION_NUMBER] Box 23 on the CMS-1500 claim form.
204
206
  @prior_authorization_number = prior_authorization_number
205
207
  # @type [Boolean] Whether this patient has authorized the release of medical information
@@ -274,6 +276,8 @@ module CandidApiClient
274
276
  def self.from_json(json_object:)
275
277
  struct = JSON.parse(json_object, object_class: OpenStruct)
276
278
  parsed_json = JSON.parse(json_object)
279
+ date_of_service = struct.date_of_service
280
+ end_date_of_service = struct.end_date_of_service
277
281
  encounter_id = struct.encounter_id
278
282
  claims = parsed_json["claims"]&.map do |v|
279
283
  v = v.to_json
@@ -362,8 +366,6 @@ module CandidApiClient
362
366
  owner_of_next_action = struct.owner_of_next_action
363
367
  submission_origin = struct.submission_origin
364
368
  external_id = struct.external_id
365
- date_of_service = struct.date_of_service
366
- end_date_of_service = struct.end_date_of_service
367
369
  prior_authorization_number = struct.prior_authorization_number
368
370
  patient_authorized_release = struct.patient_authorized_release
369
371
  benefits_assigned_to_provider = struct.benefits_assigned_to_provider
@@ -399,8 +401,8 @@ module CandidApiClient
399
401
  onset_of_current_illness_or_symptom_date = struct.onset_of_current_illness_or_symptom_date
400
402
  last_menstrual_period_date = struct.last_menstrual_period_date
401
403
  delay_reason_code = struct.delay_reason_code
402
- new(encounter_id: encounter_id, claims: claims, patient: patient, guarantor: guarantor,
403
- 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, date_of_service: date_of_service, end_date_of_service: end_date_of_service, 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)
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)
404
406
  end
405
407
 
406
408
  # Serialize an instance of Encounter to a JSON object
@@ -408,6 +410,8 @@ module CandidApiClient
408
410
  # @return [JSON]
409
411
  def to_json(*_args)
410
412
  {
413
+ "date_of_service": @date_of_service,
414
+ "end_date_of_service": @end_date_of_service,
411
415
  "encounter_id": @encounter_id,
412
416
  "claims": @claims,
413
417
  "patient": @patient,
@@ -433,8 +437,6 @@ module CandidApiClient
433
437
  "owner_of_next_action": @owner_of_next_action,
434
438
  "submission_origin": @submission_origin,
435
439
  "external_id": @external_id,
436
- "date_of_service": @date_of_service,
437
- "end_date_of_service": @end_date_of_service,
438
440
  "prior_authorization_number": @prior_authorization_number,
439
441
  "patient_authorized_release": @patient_authorized_release,
440
442
  "benefits_assigned_to_provider": @benefits_assigned_to_provider,
@@ -462,6 +464,8 @@ module CandidApiClient
462
464
  # @param obj [Object]
463
465
  # @return [Void]
464
466
  def self.validate_raw(obj:)
467
+ 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
+ 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.")
465
469
  obj.encounter_id.is_a?(UUID) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
466
470
  obj.claims.is_a?(Array) != false || raise("Passed value for field obj.claims is not the expected type, validation failed.")
467
471
  Individual::Patient.validate_raw(obj: obj.patient)
@@ -487,8 +491,6 @@ module CandidApiClient
487
491
  obj.owner_of_next_action.is_a?(Encounters::V4::EncounterOwnerOfNextActionType) != false || raise("Passed value for field obj.owner_of_next_action is not the expected type, validation failed.")
488
492
  obj.submission_origin.is_a?(Encounters::V4::EncounterSubmissionOriginType) != false || raise("Passed value for field obj.submission_origin is not the expected type, validation failed.")
489
493
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
490
- obj.date_of_service.is_a?(String) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
491
- 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.")
492
494
  obj.prior_authorization_number&.is_a?(String) != false || raise("Passed value for field obj.prior_authorization_number is not the expected type, validation failed.")
493
495
  obj.patient_authorized_release.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
494
496
  obj.benefits_assigned_to_provider.is_a?(Boolean) != false || raise("Passed value for field obj.benefits_assigned_to_provider is not the expected type, validation failed.")
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../../../commons/types/encounter_external_id"
4
- require_relative "../../../commons/types/date"
5
4
  require_relative "prior_authorization_number"
6
5
  require_relative "medication"
7
6
  require_relative "vitals"
@@ -11,6 +10,7 @@ require_relative "synchronicity_type"
11
10
  require_relative "billable_status_type"
12
11
  require_relative "responsible_party_type"
13
12
  require_relative "service_authorization_exception_code"
13
+ require_relative "../../../commons/types/date"
14
14
  require_relative "../../../commons/types/delay_reason_code"
15
15
  require "json"
16
16
 
@@ -18,20 +18,12 @@ module CandidApiClient
18
18
  module Encounters
19
19
  module V4
20
20
  class EncounterBase
21
- attr_reader :external_id, :date_of_service, :end_date_of_service, :prior_authorization_number,
22
- :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
21
+ attr_reader :external_id, :prior_authorization_number, :patient_authorized_release,
22
+ :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
23
23
 
24
24
  # @param external_id [Commons::ENCOUNTER_EXTERNAL_ID] A client-specified unique ID to associate with this encounter;
25
25
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
26
26
  # This field should not contain PHI.
27
- # @param date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
28
- # This date must be the local date in the timezone where the service occurred.
29
- # Box 24a on the CMS-1500 claim form.
30
- # If service occurred over a range of dates, this should be the start date.
31
- # @param end_date_of_service [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
32
- # This date must be the local date in the timezone where the service occurred.
33
- # If omitted, the Encounter is assumed to be for a single day.
34
- # Must not be temporally before the date_of_service field.
35
27
  # @param prior_authorization_number [Encounters::V4::PRIOR_AUTHORIZATION_NUMBER] Box 23 on the CMS-1500 claim form.
36
28
  # @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
37
29
  # for billing purpose.
@@ -78,22 +70,12 @@ module CandidApiClient
78
70
  # Code indicating the reason why a request was delayed
79
71
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
80
72
  # @return [Encounters::V4::EncounterBase]
81
- def initialize(external_id:, date_of_service:, patient_authorized_release:, benefits_assigned_to_provider:,
82
- provider_accepts_assignment:, billable_status:, responsible_party:, end_date_of_service: 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)
73
+ def initialize(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
74
+ provider_accepts_assignment:, billable_status:, responsible_party:, 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)
83
75
  # @type [Commons::ENCOUNTER_EXTERNAL_ID] A client-specified unique ID to associate with this encounter;
84
76
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
85
77
  # This field should not contain PHI.
86
78
  @external_id = external_id
87
- # @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
88
- # This date must be the local date in the timezone where the service occurred.
89
- # Box 24a on the CMS-1500 claim form.
90
- # If service occurred over a range of dates, this should be the start date.
91
- @date_of_service = date_of_service
92
- # @type [Commons::DATE] Date formatted as YYYY-MM-DD; eg: 2019-08-25.
93
- # This date must be the local date in the timezone where the service occurred.
94
- # If omitted, the Encounter is assumed to be for a single day.
95
- # Must not be temporally before the date_of_service field.
96
- @end_date_of_service = end_date_of_service
97
79
  # @type [Encounters::V4::PRIOR_AUTHORIZATION_NUMBER] Box 23 on the CMS-1500 claim form.
98
80
  @prior_authorization_number = prior_authorization_number
99
81
  # @type [Boolean] Whether this patient has authorized the release of medical information
@@ -169,8 +151,6 @@ module CandidApiClient
169
151
  struct = JSON.parse(json_object, object_class: OpenStruct)
170
152
  parsed_json = JSON.parse(json_object)
171
153
  external_id = struct.external_id
172
- date_of_service = struct.date_of_service
173
- end_date_of_service = struct.end_date_of_service
174
154
  prior_authorization_number = struct.prior_authorization_number
175
155
  patient_authorized_release = struct.patient_authorized_release
176
156
  benefits_assigned_to_provider = struct.benefits_assigned_to_provider
@@ -206,8 +186,8 @@ module CandidApiClient
206
186
  onset_of_current_illness_or_symptom_date = struct.onset_of_current_illness_or_symptom_date
207
187
  last_menstrual_period_date = struct.last_menstrual_period_date
208
188
  delay_reason_code = struct.delay_reason_code
209
- new(external_id: external_id, date_of_service: date_of_service, end_date_of_service: end_date_of_service,
210
- 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)
189
+ new(external_id: external_id, prior_authorization_number: prior_authorization_number,
190
+ 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)
211
191
  end
212
192
 
213
193
  # Serialize an instance of EncounterBase to a JSON object
@@ -216,8 +196,6 @@ module CandidApiClient
216
196
  def to_json(*_args)
217
197
  {
218
198
  "external_id": @external_id,
219
- "date_of_service": @date_of_service,
220
- "end_date_of_service": @end_date_of_service,
221
199
  "prior_authorization_number": @prior_authorization_number,
222
200
  "patient_authorized_release": @patient_authorized_release,
223
201
  "benefits_assigned_to_provider": @benefits_assigned_to_provider,
@@ -246,8 +224,6 @@ module CandidApiClient
246
224
  # @return [Void]
247
225
  def self.validate_raw(obj:)
248
226
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
249
- obj.date_of_service.is_a?(String) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
250
- 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.")
251
227
  obj.prior_authorization_number&.is_a?(String) != false || raise("Passed value for field obj.prior_authorization_number is not the expected type, validation failed.")
252
228
  obj.patient_authorized_release.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
253
229
  obj.benefits_assigned_to_provider.is_a?(Boolean) != false || raise("Passed value for field obj.benefits_assigned_to_provider is not the expected type, validation failed.")
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../../requests"
4
+ require_relative "v_3/client"
5
+
6
+ module CandidApiClient
7
+ module FeeSchedules
8
+ class Client
9
+ attr_reader :v_3
10
+
11
+ # @param request_client [RequestClient]
12
+ # @return [FeeSchedules::Client]
13
+ def initialize(request_client:)
14
+ @v_3 = FeeSchedules::V3::V3Client.new(request_client: request_client)
15
+ end
16
+ end
17
+
18
+ class AsyncClient
19
+ attr_reader :v_3
20
+
21
+ # @param request_client [RequestClient]
22
+ # @return [FeeSchedules::AsyncClient]
23
+ def initialize(request_client:)
24
+ @v_3 = FeeSchedules::V3::AsyncV3Client.new(request_client: request_client)
25
+ end
26
+ end
27
+ end
28
+ end