candidhealth 0.36.1 → 0.38.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.
@@ -29,6 +29,12 @@ module CandidApiClient
29
29
  # @return [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
30
30
  # zip_plus_four_code is not available use "9998" as per CMS documentation.
31
31
  attr_reader :address
32
+ # @return [String] An additional identifier for the service facility other than the facility's NPI.
33
+ # Some payers may require this field.
34
+ # Potential examples: state license number, provider commercial number, or
35
+ # location number.
36
+ # Box 32 section (b) of the CMS-1500 claim form.
37
+ attr_reader :secondary_identification
32
38
  # @return [OpenStruct] Additional properties unmapped to the current class definition
33
39
  attr_reader :additional_properties
34
40
  # @return [Object]
@@ -43,14 +49,26 @@ module CandidApiClient
43
49
  # Box 32 section (a) of the CMS-1500 claim form.
44
50
  # @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
45
51
  # zip_plus_four_code is not available use "9998" as per CMS documentation.
52
+ # @param secondary_identification [String] An additional identifier for the service facility other than the facility's NPI.
53
+ # Some payers may require this field.
54
+ # Potential examples: state license number, provider commercial number, or
55
+ # location number.
56
+ # Box 32 section (b) of the CMS-1500 claim form.
46
57
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
47
58
  # @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityBase]
48
- def initialize(organization_name:, address:, npi: OMIT, additional_properties: nil)
59
+ def initialize(organization_name:, address:, npi: OMIT, secondary_identification: OMIT,
60
+ additional_properties: nil)
49
61
  @organization_name = organization_name
50
62
  @npi = npi if npi != OMIT
51
63
  @address = address
64
+ @secondary_identification = secondary_identification if secondary_identification != OMIT
52
65
  @additional_properties = additional_properties
53
- @_field_set = { "organization_name": organization_name, "npi": npi, "address": address }.reject do |_k, v|
66
+ @_field_set = {
67
+ "organization_name": organization_name,
68
+ "npi": npi,
69
+ "address": address,
70
+ "secondary_identification": secondary_identification
71
+ }.reject do |_k, v|
54
72
  v == OMIT
55
73
  end
56
74
  end
@@ -70,10 +88,12 @@ module CandidApiClient
70
88
  address = parsed_json["address"].to_json
71
89
  address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
72
90
  end
91
+ secondary_identification = struct["secondary_identification"]
73
92
  new(
74
93
  organization_name: organization_name,
75
94
  npi: npi,
76
95
  address: address,
96
+ secondary_identification: secondary_identification,
77
97
  additional_properties: struct
78
98
  )
79
99
  end
@@ -95,6 +115,7 @@ module CandidApiClient
95
115
  obj.organization_name.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
96
116
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
97
117
  CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
118
+ obj.secondary_identification&.is_a?(String) != false || raise("Passed value for field obj.secondary_identification is not the expected type, validation failed.")
98
119
  end
99
120
  end
100
121
  end
@@ -17,6 +17,12 @@ module CandidApiClient
17
17
  # @return [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
18
18
  # zip_plus_four_code is not available use "9998" as per CMS documentation.
19
19
  attr_reader :address
20
+ # @return [String] An additional identifier for the service facility other than the facility's NPI.
21
+ # Some payers may require this field.
22
+ # Potential examples: state license number, provider commercial number, or
23
+ # location number.
24
+ # Box 32 section (b) of the CMS-1500 claim form.
25
+ attr_reader :secondary_identification
20
26
  # @return [OpenStruct] Additional properties unmapped to the current class definition
21
27
  attr_reader :additional_properties
22
28
  # @return [Object]
@@ -31,14 +37,26 @@ module CandidApiClient
31
37
  # Box 32 section (a) of the CMS-1500 claim form.
32
38
  # @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] zip_plus_four_code is required for service facility address. When the
33
39
  # zip_plus_four_code is not available use "9998" as per CMS documentation.
40
+ # @param secondary_identification [String] An additional identifier for the service facility other than the facility's NPI.
41
+ # Some payers may require this field.
42
+ # Potential examples: state license number, provider commercial number, or
43
+ # location number.
44
+ # Box 32 section (b) of the CMS-1500 claim form.
34
45
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
35
46
  # @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate]
36
- def initialize(organization_name: OMIT, npi: OMIT, address: OMIT, additional_properties: nil)
47
+ def initialize(organization_name: OMIT, npi: OMIT, address: OMIT, secondary_identification: OMIT,
48
+ additional_properties: nil)
37
49
  @organization_name = organization_name if organization_name != OMIT
38
50
  @npi = npi if npi != OMIT
39
51
  @address = address if address != OMIT
52
+ @secondary_identification = secondary_identification if secondary_identification != OMIT
40
53
  @additional_properties = additional_properties
41
- @_field_set = { "organization_name": organization_name, "npi": npi, "address": address }.reject do |_k, v|
54
+ @_field_set = {
55
+ "organization_name": organization_name,
56
+ "npi": npi,
57
+ "address": address,
58
+ "secondary_identification": secondary_identification
59
+ }.reject do |_k, v|
42
60
  v == OMIT
43
61
  end
44
62
  end
@@ -58,10 +76,12 @@ module CandidApiClient
58
76
  address = parsed_json["address"].to_json
59
77
  address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: address)
60
78
  end
79
+ secondary_identification = struct["secondary_identification"]
61
80
  new(
62
81
  organization_name: organization_name,
63
82
  npi: npi,
64
83
  address: address,
84
+ secondary_identification: secondary_identification,
65
85
  additional_properties: struct
66
86
  )
67
87
  end
@@ -83,6 +103,7 @@ module CandidApiClient
83
103
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
84
104
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
85
105
  obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.address)
106
+ obj.secondary_identification&.is_a?(String) != false || raise("Passed value for field obj.secondary_identification is not the expected type, validation failed.")
86
107
  end
87
108
  end
88
109
  end
@@ -63,7 +63,7 @@ module CandidApiClient
63
63
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
64
64
  # @example
65
65
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
66
- # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
66
+ # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
67
67
  def create(request:, request_options: nil)
68
68
  response = @request_client.conn.post do |req|
69
69
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -204,7 +204,7 @@ module CandidApiClient
204
204
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
205
205
  # @example
206
206
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
207
- # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
207
+ # api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }] })
208
208
  def create(request:, request_options: nil)
209
209
  Async do
210
210
  response = @request_client.conn.post do |req|
data/lib/candidhealth.rb CHANGED
@@ -6,6 +6,7 @@ require_relative "core/oauth"
6
6
  require_relative "requests"
7
7
  require_relative "candidhealth/auth/client"
8
8
  require_relative "candidhealth/billing_notes/client"
9
+ require_relative "candidhealth/charge_capture/client"
9
10
  require_relative "candidhealth/contracts/client"
10
11
  require_relative "candidhealth/credentialing/client"
11
12
  require_relative "candidhealth/custom_schemas/client"
@@ -43,6 +44,8 @@ module CandidApiClient
43
44
  attr_reader :auth
44
45
  # @return [CandidApiClient::BillingNotes::Client]
45
46
  attr_reader :billing_notes
47
+ # @return [CandidApiClient::ChargeCapture::Client]
48
+ attr_reader :charge_capture
46
49
  # @return [CandidApiClient::Contracts::Client]
47
50
  attr_reader :contracts
48
51
  # @return [CandidApiClient::Credentialing::Client]
@@ -132,6 +135,7 @@ module CandidApiClient
132
135
  )
133
136
  @auth = CandidApiClient::Auth::Client.new(request_client: @request_client)
134
137
  @billing_notes = CandidApiClient::BillingNotes::Client.new(request_client: @request_client)
138
+ @charge_capture = CandidApiClient::ChargeCapture::Client.new(request_client: @request_client)
135
139
  @contracts = CandidApiClient::Contracts::Client.new(request_client: @request_client)
136
140
  @credentialing = CandidApiClient::Credentialing::Client.new(request_client: @request_client)
137
141
  @custom_schemas = CandidApiClient::CustomSchemas::Client.new(request_client: @request_client)
@@ -170,6 +174,8 @@ module CandidApiClient
170
174
  attr_reader :auth
171
175
  # @return [CandidApiClient::BillingNotes::AsyncClient]
172
176
  attr_reader :billing_notes
177
+ # @return [CandidApiClient::ChargeCapture::AsyncClient]
178
+ attr_reader :charge_capture
173
179
  # @return [CandidApiClient::Contracts::AsyncClient]
174
180
  attr_reader :contracts
175
181
  # @return [CandidApiClient::Credentialing::AsyncClient]
@@ -259,6 +265,7 @@ module CandidApiClient
259
265
  )
260
266
  @auth = CandidApiClient::Auth::AsyncClient.new(request_client: @async_request_client)
261
267
  @billing_notes = CandidApiClient::BillingNotes::AsyncClient.new(request_client: @async_request_client)
268
+ @charge_capture = CandidApiClient::ChargeCapture::AsyncClient.new(request_client: @async_request_client)
262
269
  @contracts = CandidApiClient::Contracts::AsyncClient.new(request_client: @async_request_client)
263
270
  @credentialing = CandidApiClient::Credentialing::AsyncClient.new(request_client: @async_request_client)
264
271
  @custom_schemas = CandidApiClient::CustomSchemas::AsyncClient.new(request_client: @async_request_client)
data/lib/requests.rb CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
43
43
 
44
44
  # @return [Hash{String => String}]
45
45
  def get_headers
46
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.36.1" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.38.0" }
47
47
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
48
48
  headers
49
49
  end
@@ -87,7 +87,7 @@ module CandidApiClient
87
87
 
88
88
  # @return [Hash{String => String}]
89
89
  def get_headers
90
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.36.1" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.38.0" }
91
91
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
92
92
  headers
93
93
  end
data/lib/types_export.rb CHANGED
@@ -4,6 +4,10 @@ require_relative "candidhealth/auth/v_2/types/auth_get_token_response"
4
4
  require_relative "candidhealth/auth/v_2/types/too_many_requests_error_type"
5
5
  require_relative "candidhealth/billing_notes/v_2/types/billing_note_base"
6
6
  require_relative "candidhealth/billing_notes/v_2/types/billing_note"
7
+ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
8
+ require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
9
+ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
10
+ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
7
11
  require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
8
12
  require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
9
13
  require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
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.36.1
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-16 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -105,6 +105,12 @@ files:
105
105
  - lib/candidhealth/billing_notes/v_2/client.rb
106
106
  - lib/candidhealth/billing_notes/v_2/types/billing_note.rb
107
107
  - lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb
108
+ - lib/candidhealth/charge_capture/client.rb
109
+ - lib/candidhealth/charge_capture/v_1/client.rb
110
+ - lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
111
+ - lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb
112
+ - lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb
113
+ - lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
108
114
  - lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
109
115
  - lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
110
116
  - lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
@@ -622,7 +628,7 @@ metadata:
622
628
  homepage_uri: https://github.com/candidhealth/candid-ruby
623
629
  source_code_uri: https://github.com/candidhealth/candid-ruby
624
630
  changelog_uri: https://github.com/candidhealth/candid-ruby/blob/master/CHANGELOG.md
625
- post_install_message:
631
+ post_install_message:
626
632
  rdoc_options: []
627
633
  require_paths:
628
634
  - lib
@@ -638,7 +644,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
638
644
  version: '0'
639
645
  requirements: []
640
646
  rubygems_version: 3.1.6
641
- signing_key:
647
+ signing_key:
642
648
  specification_version: 4
643
649
  summary: ''
644
650
  test_files: []