candidhealth 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +28 -2
  3. data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +4 -4
  4. data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +4 -4
  5. data/lib/candidhealth/commons/types/next_responsible_party.rb +16 -0
  6. data/lib/candidhealth/contracts/v_2/client.rb +4 -4
  7. data/lib/candidhealth/diagnoses/types/service_lines_must_have_at_least_one_diagnosis_error.rb +77 -0
  8. data/lib/candidhealth/encounters/v_4/client.rb +2 -0
  9. data/lib/candidhealth/encounters/v_4/types/encounter.rb +162 -2
  10. data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +23 -0
  11. data/lib/candidhealth/exports/v_3/client.rb +16 -10
  12. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +1 -0
  13. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +205 -2
  14. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/coordination_of_benefits_recommendation.rb +63 -0
  15. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation.rb +144 -0
  16. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_patient_info.rb +124 -0
  17. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation_payload.rb +102 -0
  18. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation.rb +70 -0
  19. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation_payload.rb +87 -0
  20. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/payer_search_response.rb +107 -0
  21. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/post_eligibility_recommendation_request.rb +96 -0
  22. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer.rb +144 -0
  23. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/stedi_payer_item.rb +79 -0
  24. data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_item.rb +28 -1
  25. data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +8 -0
  26. data/lib/candidhealth/pre_encounter/tags/v_1/types/mutable_tag.rb +22 -3
  27. data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +21 -3
  28. data/lib/candidhealth/service_lines/v_2/client.rb +4 -0
  29. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +18 -2
  30. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +10 -2
  31. data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +10 -2
  32. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +10 -2
  33. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +10 -2
  34. data/lib/candidhealth/x_12/v_1/types/patient_discharge_status_code.rb +52 -0
  35. data/lib/candidhealth/x_12/v_1/types/point_of_origin_for_admission_or_visit_code.rb +23 -0
  36. data/lib/candidhealth/x_12/v_1/types/type_of_admission_or_visit_code.rb +18 -0
  37. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +98 -0
  38. data/lib/candidhealth/x_12/v_1/types/type_of_bill_frequency_code.rb +39 -0
  39. data/lib/candidhealth/x_12/v_1/types/type_of_care_code.rb +21 -0
  40. data/lib/candidhealth/x_12/v_1/types/type_of_facility_code.rb +19 -0
  41. data/lib/requests.rb +2 -2
  42. data/lib/types_export.rb +20 -1
  43. metadata +22 -3
  44. data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07f5fe75faed59459559e52d586fdfbdb5e7b3c58e52ecfd9b4987dc2ed6f09e
4
- data.tar.gz: 676a4aafede9210e6a84ec351f37b08a96386b3e523579175d287244f74f1157
3
+ metadata.gz: 9141225cef78a8c36e171f743919b15182424e3068cf0fd7f399d8196642725a
4
+ data.tar.gz: 4ab389fa9065b982c3a5ba6cd8658bbe700373fc1cc55fb4627e85bcfbc650f5
5
5
  SHA512:
6
- metadata.gz: c3c2fb523f098a25fbf1e4e24c1de9f117af1efeae359465c27890bedb3dec1e49f8a34854ccd0b5ffe4f7eeb68aec770252ca08b328604d4048117414a955ca
7
- data.tar.gz: 0b0b3bfe03474e403da0e51ec017939cd30462573f223f9d3e775f8b8160a0d0c8ebb5eb0897700d3524f0a5b987175345aa5278ed2c07a9de5b798260a6f995
6
+ metadata.gz: '09fcbd3990b2f80d298e0625286dd6cf31c1ed580ae9b8cfca884322447eef072e99cd42cc41d857ec9207212b3d22a35b128e252522ee2b9cedbc69c75b44b4'
7
+ data.tar.gz: 719e69c29be38c3f2b45ac0dba4e1a8e2c179b84a3ad8963c2c18234a2cbf31a7180cb0299579be899dec4f96ddb77262b6008688dda364815f3b894838863d9
@@ -7,6 +7,8 @@ require_relative "types/charge_capture"
7
7
  require_relative "types/charge_capture_sort_field"
8
8
  require_relative "../../commons/types/sort_direction"
9
9
  require "date"
10
+ require_relative "../../encounters/v_4/types/billable_status_type"
11
+ require_relative "../../encounters/v_4/types/responsible_party_type"
10
12
  require_relative "types/charge_capture_page"
11
13
  require_relative "types/charge_capture_post_billed_change"
12
14
  require "json"
@@ -679,6 +681,15 @@ module CandidApiClient
679
681
  # This date must be the local date in the timezone where the service occurred.
680
682
  # @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
681
683
  # This date must be the local date in the timezone where the service occurred.
684
+ # @param search_term [String] Filter by any of the following fields: charge_id, claim_id, patient external_id,
685
+ # patient date of birth, patient first name, patient last name,
686
+ # or charge external id.
687
+ # @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
688
+ # Examples for when this should be set to NOT_BILLABLE include if the Encounter
689
+ # has not occurred yet or if there is no intention of ever billing the
690
+ # responsible_party.
691
+ # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
692
+ # SELF_PAY if you intend to bill self pay/cash pay.
682
693
  # @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
683
694
  # have a resulting claim with one of the IDs in this list.
684
695
  # @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
@@ -702,7 +713,7 @@ module CandidApiClient
702
713
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
703
714
  # api.charge_capture.v_1.get_all
704
715
  def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
705
- charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
716
+ charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
706
717
  response = @request_client.conn.get do |req|
707
718
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
708
719
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -737,6 +748,9 @@ module CandidApiClient
737
748
  "charge_external_id_ranked_sort": charge_external_id_ranked_sort,
738
749
  "date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
739
750
  "date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
751
+ "search_term": search_term,
752
+ "billable_status": billable_status,
753
+ "responsible_party": responsible_party,
740
754
  "claim_ids_ranked_sort": claim_ids_ranked_sort,
741
755
  "claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
742
756
  "billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
@@ -1458,6 +1472,15 @@ module CandidApiClient
1458
1472
  # This date must be the local date in the timezone where the service occurred.
1459
1473
  # @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
1460
1474
  # This date must be the local date in the timezone where the service occurred.
1475
+ # @param search_term [String] Filter by any of the following fields: charge_id, claim_id, patient external_id,
1476
+ # patient date of birth, patient first name, patient last name,
1477
+ # or charge external id.
1478
+ # @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
1479
+ # Examples for when this should be set to NOT_BILLABLE include if the Encounter
1480
+ # has not occurred yet or if there is no intention of ever billing the
1481
+ # responsible_party.
1482
+ # @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
1483
+ # SELF_PAY if you intend to bill self pay/cash pay.
1461
1484
  # @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
1462
1485
  # have a resulting claim with one of the IDs in this list.
1463
1486
  # @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
@@ -1481,7 +1504,7 @@ module CandidApiClient
1481
1504
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1482
1505
  # api.charge_capture.v_1.get_all
1483
1506
  def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
1484
- charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
1507
+ charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
1485
1508
  Async do
1486
1509
  response = @request_client.conn.get do |req|
1487
1510
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1517,6 +1540,9 @@ module CandidApiClient
1517
1540
  "charge_external_id_ranked_sort": charge_external_id_ranked_sort,
1518
1541
  "date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
1519
1542
  "date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
1543
+ "search_term": search_term,
1544
+ "billable_status": billable_status,
1545
+ "responsible_party": responsible_party,
1520
1546
  "claim_ids_ranked_sort": claim_ids_ranked_sort,
1521
1547
  "claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
1522
1548
  "billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "date"
4
- require_relative "claim_frequency_type_code"
4
+ require_relative "../../../x_12/v_1/types/type_of_bill_frequency_code"
5
5
  require_relative "../../../commons/types/claim_submission_payer_responsibility_type"
6
6
  require_relative "../../../commons/types/intended_submission_medium"
7
7
  require "ostruct"
@@ -15,7 +15,7 @@ module CandidApiClient
15
15
  class ClaimSubmissionRecordCreate
16
16
  # @return [DateTime] When the claim was submitted to the payer.
17
17
  attr_reader :submitted_at
18
- # @return [CandidApiClient::ClaimSubmission::V1::Types::ClaimFrequencyTypeCode]
18
+ # @return [CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode]
19
19
  attr_reader :claim_frequency_code
20
20
  # @return [CandidApiClient::Commons::Types::ClaimSubmissionPayerResponsibilityType]
21
21
  attr_reader :payer_responsibility
@@ -31,7 +31,7 @@ module CandidApiClient
31
31
  OMIT = Object.new
32
32
 
33
33
  # @param submitted_at [DateTime] When the claim was submitted to the payer.
34
- # @param claim_frequency_code [CandidApiClient::ClaimSubmission::V1::Types::ClaimFrequencyTypeCode]
34
+ # @param claim_frequency_code [CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode]
35
35
  # @param payer_responsibility [CandidApiClient::Commons::Types::ClaimSubmissionPayerResponsibilityType]
36
36
  # @param intended_submission_medium [CandidApiClient::Commons::Types::IntendedSubmissionMedium] The medium by which the claim was submitted to the payer: paper or electronic.
37
37
  # If omitted, defaults to electronic.
@@ -89,7 +89,7 @@ module CandidApiClient
89
89
  # @return [Void]
90
90
  def self.validate_raw(obj:)
91
91
  obj.submitted_at.is_a?(DateTime) != false || raise("Passed value for field obj.submitted_at is not the expected type, validation failed.")
92
- obj.claim_frequency_code&.is_a?(CandidApiClient::ClaimSubmission::V1::Types::ClaimFrequencyTypeCode) != false || raise("Passed value for field obj.claim_frequency_code is not the expected type, validation failed.")
92
+ obj.claim_frequency_code&.is_a?(CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode) != false || raise("Passed value for field obj.claim_frequency_code is not the expected type, validation failed.")
93
93
  obj.payer_responsibility&.is_a?(CandidApiClient::Commons::Types::ClaimSubmissionPayerResponsibilityType) != false || raise("Passed value for field obj.payer_responsibility is not the expected type, validation failed.")
94
94
  obj.intended_submission_medium&.is_a?(CandidApiClient::Commons::Types::IntendedSubmissionMedium) != false || raise("Passed value for field obj.intended_submission_medium is not the expected type, validation failed.")
95
95
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "date"
4
- require_relative "claim_frequency_type_code"
4
+ require_relative "../../../x_12/v_1/types/type_of_bill_frequency_code"
5
5
  require_relative "../../../commons/types/claim_submission_payer_responsibility_type"
6
6
  require_relative "../../../commons/types/intended_submission_medium"
7
7
  require "ostruct"
@@ -15,7 +15,7 @@ module CandidApiClient
15
15
  class ClaimSubmissionRecordCreateOptional
16
16
  # @return [DateTime] When the claim was submitted to the payer.
17
17
  attr_reader :submitted_at
18
- # @return [CandidApiClient::ClaimSubmission::V1::Types::ClaimFrequencyTypeCode]
18
+ # @return [CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode]
19
19
  attr_reader :claim_frequency_code
20
20
  # @return [CandidApiClient::Commons::Types::ClaimSubmissionPayerResponsibilityType]
21
21
  attr_reader :payer_responsibility
@@ -31,7 +31,7 @@ module CandidApiClient
31
31
  OMIT = Object.new
32
32
 
33
33
  # @param submitted_at [DateTime] When the claim was submitted to the payer.
34
- # @param claim_frequency_code [CandidApiClient::ClaimSubmission::V1::Types::ClaimFrequencyTypeCode]
34
+ # @param claim_frequency_code [CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode]
35
35
  # @param payer_responsibility [CandidApiClient::Commons::Types::ClaimSubmissionPayerResponsibilityType]
36
36
  # @param intended_submission_medium [CandidApiClient::Commons::Types::IntendedSubmissionMedium] The medium by which the claim was submitted to the payer: paper or electronic.
37
37
  # If omitted, defaults to electronic.
@@ -89,7 +89,7 @@ module CandidApiClient
89
89
  # @return [Void]
90
90
  def self.validate_raw(obj:)
91
91
  obj.submitted_at&.is_a?(DateTime) != false || raise("Passed value for field obj.submitted_at is not the expected type, validation failed.")
92
- obj.claim_frequency_code&.is_a?(CandidApiClient::ClaimSubmission::V1::Types::ClaimFrequencyTypeCode) != false || raise("Passed value for field obj.claim_frequency_code is not the expected type, validation failed.")
92
+ obj.claim_frequency_code&.is_a?(CandidApiClient::X12::V1::Types::TypeOfBillFrequencyCode) != false || raise("Passed value for field obj.claim_frequency_code is not the expected type, validation failed.")
93
93
  obj.payer_responsibility&.is_a?(CandidApiClient::Commons::Types::ClaimSubmissionPayerResponsibilityType) != false || raise("Passed value for field obj.payer_responsibility is not the expected type, validation failed.")
94
94
  obj.intended_submission_medium&.is_a?(CandidApiClient::Commons::Types::IntendedSubmissionMedium) != false || raise("Passed value for field obj.intended_submission_medium is not the expected type, validation failed.")
95
95
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module Commons
5
+ module Types
6
+ class NextResponsibleParty
7
+ PRIMARY = "primary"
8
+ SECONDARY = "secondary"
9
+ TERTIARY = "tertiary"
10
+ PATIENT = "patient"
11
+ NON_INSURANCE = "non_insurance"
12
+ NONE = "none"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -115,7 +115,7 @@ module CandidApiClient
115
115
  # @param contracting_provider_id [String] The UUID of the provider under agreement to the contract
116
116
  # @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
117
117
  # services under the contract held by the contracting provider.
118
- # Max items is 100.
118
+ # Max items is 1000.
119
119
  # @param payer_uuid [String] The UUID of the insurance company under agreement to the contract
120
120
  # @param request_options [CandidApiClient::RequestOptions]
121
121
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
@@ -181,7 +181,7 @@ module CandidApiClient
181
181
  # @param contract_id [String]
182
182
  # @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
183
183
  # services under the contract held by the contracting provider.
184
- # Max items is 100.
184
+ # Max items is 1000.
185
185
  # @param effective_date [String] The starting day upon which the contract is effective
186
186
  # @param expiration_date [CandidApiClient::Contracts::V2::Types::DateUpdate] An optional end day upon which the contract expires
187
187
  # @param regions [CandidApiClient::Contracts::V2::Types::RegionsUpdate] If present, the contract's rendering providers will be patched to this exact
@@ -324,7 +324,7 @@ module CandidApiClient
324
324
  # @param contracting_provider_id [String] The UUID of the provider under agreement to the contract
325
325
  # @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
326
326
  # services under the contract held by the contracting provider.
327
- # Max items is 100.
327
+ # Max items is 1000.
328
328
  # @param payer_uuid [String] The UUID of the insurance company under agreement to the contract
329
329
  # @param request_options [CandidApiClient::RequestOptions]
330
330
  # @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
@@ -394,7 +394,7 @@ module CandidApiClient
394
394
  # @param contract_id [String]
395
395
  # @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
396
396
  # services under the contract held by the contracting provider.
397
- # Max items is 100.
397
+ # Max items is 1000.
398
398
  # @param effective_date [String] The starting day upon which the contract is effective
399
399
  # @param expiration_date [CandidApiClient::Contracts::V2::Types::DateUpdate] An optional end day upon which the contract expires
400
400
  # @param regions [CandidApiClient::Contracts::V2::Types::RegionsUpdate] If present, the contract's rendering providers will be patched to this exact
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module Diagnoses
8
+ module Types
9
+ class ServiceLinesMustHaveAtLeastOneDiagnosisError
10
+ # @return [String]
11
+ attr_reader :diagnosis_id
12
+ # @return [String]
13
+ attr_reader :service_line_id
14
+ # @return [String]
15
+ attr_reader :message
16
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
17
+ attr_reader :additional_properties
18
+ # @return [Object]
19
+ attr_reader :_field_set
20
+ protected :_field_set
21
+
22
+ OMIT = Object.new
23
+
24
+ # @param diagnosis_id [String]
25
+ # @param service_line_id [String]
26
+ # @param message [String]
27
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
28
+ # @return [CandidApiClient::Diagnoses::Types::ServiceLinesMustHaveAtLeastOneDiagnosisError]
29
+ def initialize(diagnosis_id:, service_line_id:, message:, additional_properties: nil)
30
+ @diagnosis_id = diagnosis_id
31
+ @service_line_id = service_line_id
32
+ @message = message
33
+ @additional_properties = additional_properties
34
+ @_field_set = { "diagnosis_id": diagnosis_id, "service_line_id": service_line_id, "message": message }
35
+ end
36
+
37
+ # Deserialize a JSON object to an instance of
38
+ # ServiceLinesMustHaveAtLeastOneDiagnosisError
39
+ #
40
+ # @param json_object [String]
41
+ # @return [CandidApiClient::Diagnoses::Types::ServiceLinesMustHaveAtLeastOneDiagnosisError]
42
+ def self.from_json(json_object:)
43
+ struct = JSON.parse(json_object, object_class: OpenStruct)
44
+ diagnosis_id = struct["diagnosis_id"]
45
+ service_line_id = struct["service_line_id"]
46
+ message = struct["message"]
47
+ new(
48
+ diagnosis_id: diagnosis_id,
49
+ service_line_id: service_line_id,
50
+ message: message,
51
+ additional_properties: struct
52
+ )
53
+ end
54
+
55
+ # Serialize an instance of ServiceLinesMustHaveAtLeastOneDiagnosisError to a JSON
56
+ # object
57
+ #
58
+ # @return [String]
59
+ def to_json(*_args)
60
+ @_field_set&.to_json
61
+ end
62
+
63
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
64
+ # hash and check each fields type against the current object's property
65
+ # definitions.
66
+ #
67
+ # @param obj [Object]
68
+ # @return [Void]
69
+ def self.validate_raw(obj:)
70
+ obj.diagnosis_id.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id is not the expected type, validation failed.")
71
+ obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
72
+ obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -539,6 +539,7 @@ module CandidApiClient
539
539
  # * :last_name (String)
540
540
  # * :organization_name (String)
541
541
  # * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
542
+ # * :note (String)
542
543
  # @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorCreate, as a Hash
543
544
  # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
544
545
  # * :phone_consent (Boolean)
@@ -1735,6 +1736,7 @@ module CandidApiClient
1735
1736
  # * :last_name (String)
1736
1737
  # * :organization_name (String)
1737
1738
  # * :test_results (Array<CandidApiClient::ServiceLines::V2::Types::TestResult>)
1739
+ # * :note (String)
1738
1740
  # @param guarantor [Hash] Personal and contact info for the guarantor of the patient responsibility.Request of type CandidApiClient::Guarantor::V1::Types::GuarantorCreate, as a Hash
1739
1741
  # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
1740
1742
  # * :phone_consent (Boolean)