candidhealth 1.17.1 → 1.17.2

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candid/claims/types/claim.rb +1 -1
  3. data/lib/candid/client.rb +1 -6
  4. data/lib/candid/eligibility/v_2/client.rb +0 -38
  5. data/lib/candid/encounters/v_4/types/encounter_deep_optional.rb +3 -0
  6. data/lib/candid/{era → eras}/types/era.rb +1 -1
  7. data/lib/candid/{era → eras}/types/era_base.rb +1 -1
  8. data/lib/candid/financials/types/allocation_create.rb +1 -0
  9. data/lib/candid/financials/types/allocation_earmark_type.rb +19 -0
  10. data/lib/candid/service_lines/v_2/types/service_line.rb +1 -0
  11. data/lib/candid/service_lines/v_2/types/service_line_create_base_base.rb +1 -0
  12. data/lib/candid/service_lines/v_2/types/service_line_create_optional.rb +1 -0
  13. data/lib/candid/service_lines/v_2/types/service_line_create_standalone.rb +1 -0
  14. data/lib/candid/service_lines/v_2/types/service_line_update_base.rb +1 -0
  15. data/lib/candid/service_lines/v_2/types/test_result_type.rb +1 -0
  16. data/lib/candid/service_lines/v_2/types/universal_service_line_create_standalone.rb +1 -0
  17. data/lib/candid/version.rb +1 -1
  18. data/lib/candid.rb +6 -30
  19. data/reference.md +0 -354
  20. metadata +4 -28
  21. data/lib/candid/commons/types/http_service_unavailable_error_message.rb +0 -11
  22. data/lib/candid/expected_network_status/client.rb +0 -22
  23. data/lib/candid/expected_network_status/v_1/client.rb +0 -38
  24. data/lib/candid/expected_network_status/v_1/types/expected_network_status.rb +0 -17
  25. data/lib/candid/expected_network_status/v_1/types/expected_network_status_request.rb +0 -24
  26. data/lib/candid/expected_network_status/v_1/types/expected_network_status_response.rb +0 -17
  27. data/lib/candid/expected_network_status/v_2/client.rb +0 -66
  28. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +0 -25
  29. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +0 -16
  30. data/lib/candid/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +0 -21
  31. data/lib/candid/expected_network_status/v_2/types/empty_object.rb +0 -11
  32. data/lib/candid/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +0 -13
  33. data/lib/candid/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +0 -25
  34. data/lib/candid/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +0 -16
  35. data/lib/candid/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +0 -17
  36. data/lib/candid/expected_network_status/v_2/types/expected_network_status_v_2.rb +0 -19
  37. data/lib/candid/expected_network_status/v_2/types/explanation.rb +0 -22
  38. data/lib/candid/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +0 -15
  39. data/lib/candid/expected_network_status/v_2/types/in_network_status.rb +0 -14
  40. data/lib/candid/expected_network_status/v_2/types/indeterminate_network_status.rb +0 -18
  41. data/lib/candid/expected_network_status/v_2/types/insurance_type.rb +0 -18
  42. data/lib/candid/expected_network_status/v_2/types/insurance_type_codes.rb +0 -19
  43. data/lib/candid/expected_network_status/v_2/types/line_of_business.rb +0 -17
  44. data/lib/candid/expected_network_status/v_2/types/out_of_network_status.rb +0 -17
  45. data/lib/candid/expected_network_status/v_2/types/service_type.rb +0 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6216b846646f6d4f67bf117597fba91822a5055020bd90b7e5fe8dd437cba1af
4
- data.tar.gz: 4b8061c0931b7076543f6c629a71f7b85410c9d4b8af7f01a721428e66904dd2
3
+ metadata.gz: f3eb7a40db31098feb00087d7c723d1b7591fab773c2be2888a91ddf1d0c184a
4
+ data.tar.gz: 5d0364b74a509eef5b7a086469c27db74579f2fd31bec58a24465a8b7317e51e
5
5
  SHA512:
6
- metadata.gz: 95d0909dc1a1bcaa14953cfab64acb80c06704a412371ce0bb28be99d875a3ca0a402a833b8b2efd1c64064a1b68b785076ca86ac6e71896ece655aea2baec1a
7
- data.tar.gz: ba7a7847a5bbbd6344cc846378d5d2bccd4ea7fca3817db140a55c6c7487649208360da9c8b85c72fc859598a66f1a7ca46d19611f02c3e477a5186bdd562ab4
6
+ metadata.gz: 864a5f17ec17836105e54c80a340bd95f052550684e4dd00998b1778b9c9d42b59e365725ddd622401433affa3b44a24ecc07ea166948024a4e3c1dced864433
7
+ data.tar.gz: be0a035e096169ccc7bff6a2fb7ba5580ceb8e90d0b3e981b6cfa2ae077c8194b3d4db409101008985422cbba109d55bc593759e70627948df72daa4661ed444
@@ -13,7 +13,7 @@ module Candid
13
13
  field :service_lines, lambda {
14
14
  Internal::Types::Array[Candid::ServiceLines::V2::Types::ServiceLine]
15
15
  }, optional: false, nullable: false
16
- field :eras, -> { Internal::Types::Array[Candid::Era::Types::Era] }, optional: false, nullable: false
16
+ field :eras, -> { Internal::Types::Array[Candid::Eras::Types::Era] }, optional: false, nullable: false
17
17
  end
18
18
  end
19
19
  end
data/lib/candid/client.rb CHANGED
@@ -7,7 +7,7 @@ module Candid
7
7
  @raw_client = Candid::Internal::Http::RawClient.new(
8
8
  base_url: base_url,
9
9
  headers: {
10
- "User-Agent": "candidhealth/1.17.1",
10
+ "User-Agent": "candidhealth/1.17.2",
11
11
  "X-Fern-Language": "Ruby"
12
12
  }
13
13
  )
@@ -78,11 +78,6 @@ module Candid
78
78
  @events ||= Candid::Events::Client.new(client: @raw_client)
79
79
  end
80
80
 
81
- # @return [Candid::ExpectedNetworkStatus::Client]
82
- def expected_network_status
83
- @expected_network_status ||= Candid::ExpectedNetworkStatus::Client.new(client: @raw_client)
84
- end
85
-
86
81
  # @return [Candid::Exports::Client]
87
82
  def exports
88
83
  @exports ||= Candid::Exports::Client.new(client: @raw_client)
@@ -9,44 +9,6 @@ module Candid
9
9
  @client = client
10
10
  end
11
11
 
12
- # <Tip>Candid is deprecating support for this endpoint. It is instead recommended to use [Candid's Stedi passthrough endpoint](https://docs.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
13
- # For assistance with the transition, please reference the [Transitioning to Candid's New Eligibility Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980) document in the Candid Support Center.</Tip>
14
- #
15
- # This API is a wrapper around Change Healthcare's eligibility API. Below are some helpful documentation links:
16
- #
17
- # - [Change Healthcare - Guides: Contents of the Eligibility Request Body](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
18
- # - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility Requests](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
19
- # - [Change Healthcare - Guides: Contents of the Eligibility Response](https://developers.changehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
20
- # - [Change Healthcare - Guides: Eligibility JSON-to-EDI API Contents](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
21
- # - [Change Healthcare - Guides: Eligibility Error Messages](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
22
- # - [Change Healthcare - Guides: FAQ](https://developers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
23
- # - [Change Healthcare - Guides: Eligibility FAQs](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
24
- # - [Change Healthcare - Guides: Sandbox API Values and Test Responses](https://developers.changehealthcare.com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
25
- # - [Change Healthcare - Guides: Sandbox Predefined Fields and Values](https://developers.changehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
26
- # - [Change Healthcare - Guides: Using Test Payers in the Sandbox](https://developers.changehealthcare.com/eligibilityandclaims/docs/use-the-test-payers-in-the-sandbox-api)
27
- #
28
- # A schema of the response object can be found here: [Change Healthcare Docs](https://developers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
29
- #
30
- # @return [Hash[String, Object]]
31
- def submit_eligibility_check(request_options: {}, **params)
32
- _request = Candid::Internal::JSON::Request.new(
33
- base_url: request_options[:base_url] || Candid::Environment::PRODUCTION,
34
- method: "POST",
35
- path: "/api/eligibility/v2",
36
- body: params
37
- )
38
- begin
39
- _response = @client.send(_request)
40
- rescue Net::HTTPRequestTimeout
41
- raise Candid::Errors::TimeoutError
42
- end
43
- code = _response.code.to_i
44
- return if code.between?(200, 299)
45
-
46
- error_class = Candid::Errors::ResponseError.subclass_for_code(code)
47
- raise error_class.new(_response.body, code: code)
48
- end
49
-
50
12
  # <Tip>Candid is deprecating support for this endpoint. It is instead recommended to use [Candid's Stedi passthrough endpoint](https://docs.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
51
13
  # For assistance with the transition, please reference the [Transitioning to Candid's New Eligibility Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980) document in the Candid Support Center.</Tip>
52
14
  #
@@ -73,6 +73,9 @@ module Candid
73
73
  field :pay_to_address, lambda {
74
74
  Candid::Commons::Types::StreetAddressShortZipOptional
75
75
  }, optional: true, nullable: false
76
+ field :related_causes_information, lambda {
77
+ Candid::RelatedCausesInformation::V1::Types::RelatedCausesInformationCreate
78
+ }, optional: true, nullable: false
76
79
  end
77
80
  end
78
81
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Candid
4
- module Era
4
+ module Eras
5
5
  module Types
6
6
  class Era < Internal::Types::Model
7
7
  field :era_id, -> { String }, optional: false, nullable: false
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Candid
4
- module Era
4
+ module Eras
5
5
  module Types
6
6
  class EraBase < Internal::Types::Model
7
7
  field :check_number, -> { String }, optional: false, nullable: false
@@ -8,6 +8,7 @@ module Candid
8
8
  class AllocationCreate < Internal::Types::Model
9
9
  field :amount_cents, -> { Integer }, optional: false, nullable: false
10
10
  field :target, -> { Candid::Financials::Types::AllocationTargetCreate }, optional: false, nullable: false
11
+ field :earmark, -> { Candid::Financials::Types::AllocationEarmarkType }, optional: true, nullable: false
11
12
  end
12
13
  end
13
14
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Candid
4
+ module Financials
5
+ module Types
6
+ # CURRENTLY UNIMPLEMENTED - Defines how a patient prepayment allocation should be earmarked for future auto-allocation.
7
+ # When implemented, earmarks will hold the allocation until a matching encounter is created, then attempt to allocate to that encounter.
8
+ # Only applicable for unattributed allocations.
9
+ class AllocationEarmarkType < Internal::Types::Model
10
+ extend Candid::Internal::Types::Union
11
+
12
+ discriminant :type
13
+
14
+ member -> { String }, key: "DATE_OF_SERVICE"
15
+ member -> { String }, key: "EXTERNAL_ENCOUNTER_ID"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -69,6 +69,7 @@ module Candid
69
69
  field :has_family_planning_indicator, -> { Internal::Types::Boolean }, optional: true, nullable: false
70
70
  field :note, -> { String }, optional: true, nullable: false
71
71
  field :prior_authorization_number, -> { String }, optional: true, nullable: false
72
+ field :external_id, -> { String }, optional: true, nullable: false
72
73
  end
73
74
  end
74
75
  end
@@ -28,6 +28,7 @@ module Candid
28
28
  }, optional: true, nullable: false
29
29
  field :note, -> { String }, optional: true, nullable: false
30
30
  field :prior_authorization_number, -> { String }, optional: true, nullable: false
31
+ field :external_id, -> { String }, optional: true, nullable: false
31
32
  end
32
33
  end
33
34
  end
@@ -31,6 +31,7 @@ module Candid
31
31
  field :note, -> { String }, optional: true, nullable: false
32
32
  field :revenue_code, -> { String }, optional: true, nullable: false
33
33
  field :prior_authorization_number, -> { String }, optional: true, nullable: false
34
+ field :external_id, -> { String }, optional: true, nullable: false
34
35
  end
35
36
  end
36
37
  end
@@ -10,6 +10,7 @@ module Candid
10
10
  field :diagnosis_id_two, -> { String }, optional: true, nullable: false
11
11
  field :diagnosis_id_three, -> { String }, optional: true, nullable: false
12
12
  field :prior_authorization_number, -> { String }, optional: true, nullable: false
13
+ field :external_id, -> { String }, optional: true, nullable: false
13
14
  end
14
15
  end
15
16
  end
@@ -30,6 +30,7 @@ module Candid
30
30
  field :has_family_planning_indicator, -> { Internal::Types::Boolean }, optional: true, nullable: false
31
31
  field :note, -> { String }, optional: true, nullable: false
32
32
  field :prior_authorization_number, -> { String }, optional: true, nullable: false
33
+ field :external_id, -> { String }, optional: true, nullable: false
33
34
  end
34
35
  end
35
36
  end
@@ -10,6 +10,7 @@ module Candid
10
10
  HEMATOCRIT = "HEMATOCRIT"
11
11
  HEMOGLOBIN = "HEMOGLOBIN"
12
12
  LDL = "LDL"
13
+ VITAMIN_D = "VITAMIN_D"
13
14
  end
14
15
  end
15
16
  end
@@ -12,6 +12,7 @@ module Candid
12
12
  field :revenue_code, -> { String }, optional: true, nullable: false
13
13
  field :procedure_code, -> { String }, optional: true, nullable: false
14
14
  field :prior_authorization_number, -> { String }, optional: true, nullable: false
15
+ field :external_id, -> { String }, optional: true, nullable: false
15
16
  end
16
17
  end
17
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Candid
4
- VERSION = "1.17.1"
4
+ VERSION = "1.17.2"
5
5
  end
data/lib/candid.rb CHANGED
@@ -96,6 +96,9 @@ require_relative "candid/commons/types/insurance_type_code"
96
96
  require_relative "candid/insurance_cards/v_2/types/insurance_card_base"
97
97
  require_relative "candid/commons/types/emr_payer_crosswalk"
98
98
  require_relative "candid/insurance_cards/v_2/types/insurance_card_create_optional"
99
+ require_relative "candid/related_causes_information/v_1/types/related_causes_code"
100
+ require_relative "candid/related_causes_information/v_1/types/related_causes_information"
101
+ require_relative "candid/related_causes_information/v_1/types/related_causes_information_create"
99
102
  require_relative "candid/service_lines/v_2/types/service_id_qualifier"
100
103
  require_relative "candid/service_lines/v_2/types/measurement_unit_code"
101
104
  require_relative "candid/service_lines/v_2/types/drug_identification_optional"
@@ -252,9 +255,6 @@ require_relative "candid/guarantor/v_1/types/guarantor_base"
252
255
  require_relative "candid/commons/types/phone_number"
253
256
  require_relative "candid/guarantor/v_1/types/guarantor_create"
254
257
  require_relative "candid/insurance_cards/v_2/types/insurance_card_create"
255
- require_relative "candid/related_causes_information/v_1/types/related_causes_code"
256
- require_relative "candid/related_causes_information/v_1/types/related_causes_information"
257
- require_relative "candid/related_causes_information/v_1/types/related_causes_information_create"
258
258
  require_relative "candid/individual/types/individual_base"
259
259
  require_relative "candid/individual/types/subscriber_base"
260
260
  require_relative "candid/individual/types/subscriber_create"
@@ -372,8 +372,8 @@ require_relative "candid/invoices/types/invoice"
372
372
  require_relative "candid/service_lines/v_2/types/service_line"
373
373
  require_relative "candid/x_12/v_1/types/type_of_bill_composite"
374
374
  require_relative "candid/claims/types/claim_status"
375
- require_relative "candid/era/types/era_base"
376
- require_relative "candid/era/types/era"
375
+ require_relative "candid/eras/types/era_base"
376
+ require_relative "candid/eras/types/era"
377
377
  require_relative "candid/claims/types/claim"
378
378
  require_relative "candid/commons/types/next_responsible_party"
379
379
  require_relative "candid/diagnoses/types/standalone_diagnosis_create"
@@ -406,26 +406,6 @@ require_relative "candid/encounters/v_4/types/payer_plan_group_payer_does_not_ma
406
406
  require_relative "candid/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error"
407
407
  require_relative "candid/events/v_1/types/event"
408
408
  require_relative "candid/events/v_1/types/event_scan_page"
409
- require_relative "candid/expected_network_status/v_1/types/expected_network_status"
410
- require_relative "candid/expected_network_status/v_1/types/expected_network_status_response"
411
- require_relative "candid/expected_network_status/v_2/types/line_of_business"
412
- require_relative "candid/expected_network_status/v_2/types/empty_object"
413
- require_relative "candid/expected_network_status/v_2/types/insurance_type_codes"
414
- require_relative "candid/expected_network_status/v_2/types/insurance_type"
415
- require_relative "candid/expected_network_status/v_2/types/explanation"
416
- require_relative "candid/expected_network_status/v_2/types/service_type"
417
- require_relative "candid/expected_network_status/v_2/types/expected_network_status_subscriber_information"
418
- require_relative "candid/expected_network_status/v_2/types/expected_network_status_request_v_2"
419
- require_relative "candid/expected_network_status/v_2/types/compute_all_in_network_providers_request"
420
- require_relative "candid/expected_network_status/v_2/types/in_network_rendering_providers_detail"
421
- require_relative "candid/expected_network_status/v_2/types/indeterminate_network_status"
422
- require_relative "candid/expected_network_status/v_2/types/in_network_status"
423
- require_relative "candid/expected_network_status/v_2/types/out_of_network_status"
424
- require_relative "candid/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result"
425
- require_relative "candid/expected_network_status/v_2/types/compute_all_in_network_providers_response"
426
- require_relative "candid/expected_network_status/v_2/types/expected_network_status_v_2"
427
- require_relative "candid/expected_network_status/v_2/types/expected_network_status_response_v_2"
428
- require_relative "candid/expected_network_status/v_2/types/expected_network_status_check_error_message"
429
409
  require_relative "candid/exports/v_3/types/get_exports_response"
430
410
  require_relative "candid/external_payment_account_config/v_1/types/external_payment_account_config"
431
411
  require_relative "candid/external_payment_account_config/v_1/types/external_payment_account_config_page"
@@ -490,6 +470,7 @@ require_relative "candid/financials/types/allocation"
490
470
  require_relative "candid/insurance_refunds/v_1/types/insurance_refund"
491
471
  require_relative "candid/payers/v_3/types/payer_info"
492
472
  require_relative "candid/payers/v_3/types/payer_identifier"
473
+ require_relative "candid/financials/types/allocation_earmark_type"
493
474
  require_relative "candid/financials/types/appointment_by_id_and_patient_external_id"
494
475
  require_relative "candid/financials/types/allocation_target_create"
495
476
  require_relative "candid/financials/types/allocation_create"
@@ -724,7 +705,6 @@ require_relative "candid/pre_encounter/tags/v_1/types/tag_page"
724
705
  require_relative "candid/commons/types/sort_direction"
725
706
  require_relative "candid/commons/types/unauthorized_error_message"
726
707
  require_relative "candid/commons/types/unprocessable_entity_error_message"
727
- require_relative "candid/commons/types/http_service_unavailable_error_message"
728
708
  require_relative "candid/commons/types/request_validation_error"
729
709
  require_relative "candid/commons/types/updates_disabled_due_to_external_system_integration_error_message"
730
710
  require_relative "candid/commons/types/organization_not_authorized_error_message"
@@ -797,10 +777,6 @@ require_relative "candid/encounters/v_4/types/get_all_encounters_request"
797
777
  require_relative "candid/events/client"
798
778
  require_relative "candid/events/v_1/client"
799
779
  require_relative "candid/events/v_1/types/get_event_scan_request"
800
- require_relative "candid/expected_network_status/client"
801
- require_relative "candid/expected_network_status/v_1/client"
802
- require_relative "candid/expected_network_status/v_1/types/expected_network_status_request"
803
- require_relative "candid/expected_network_status/v_2/client"
804
780
  require_relative "candid/exports/client"
805
781
  require_relative "candid/exports/v_3/client"
806
782
  require_relative "candid/exports/v_3/types/get_exports_request"