candidhealth 0.34.6 → 0.34.9

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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/encounters/v_4/client.rb +32 -14
  3. data/lib/candidhealth/encounters/v_4/types/encounter.rb +10 -2
  4. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +10 -2
  5. data/lib/candidhealth/individual/types/patient.rb +13 -1
  6. data/lib/candidhealth/individual/types/patient_create.rb +13 -1
  7. data/lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb +77 -0
  8. data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb +70 -0
  9. data/lib/candidhealth/individual/types/patient_update.rb +16 -2
  10. data/lib/candidhealth/non_insurance_payers/v_1/client.rb +18 -2
  11. data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +21 -2
  12. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update.rb +98 -0
  13. data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request.rb +20 -2
  14. data/lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb +73 -0
  15. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +44 -4
  16. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +22 -2
  17. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +12 -4
  18. data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
  19. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +24 -2
  20. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +24 -2
  21. data/lib/candidhealth/service_lines/v_2/client.rb +22 -2
  22. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +30 -2
  23. data/lib/requests.rb +2 -2
  24. data/lib/types_export.rb +4 -0
  25. metadata +6 -2
@@ -5,6 +5,8 @@ require_relative "service_line_denial_reason"
5
5
  require_relative "../../../commons/types/facility_type_code"
6
6
  require_relative "../../../commons/types/service_line_units"
7
7
  require "date"
8
+ require_relative "drug_identification"
9
+ require_relative "test_result"
8
10
  require "ostruct"
9
11
  require "json"
10
12
 
@@ -46,6 +48,11 @@ module CandidApiClient
46
48
  attr_reader :date_of_service
47
49
  # @return [Date]
48
50
  attr_reader :end_date_of_service
51
+ # @return [CandidApiClient::ServiceLines::V2::Types::DrugIdentification]
52
+ attr_reader :drug_identification
53
+ # @return [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
54
+ # service line.
55
+ attr_reader :test_results
49
56
  # @return [OpenStruct] Additional properties unmapped to the current class definition
50
57
  attr_reader :additional_properties
51
58
  # @return [Object]
@@ -72,10 +79,13 @@ module CandidApiClient
72
79
  # Maps to SV1-01, C003-07 on the 837-P.
73
80
  # @param date_of_service [Date]
74
81
  # @param end_date_of_service [Date]
82
+ # @param drug_identification [CandidApiClient::ServiceLines::V2::Types::DrugIdentification]
83
+ # @param test_results [Array<CandidApiClient::ServiceLines::V2::Types::TestResult>] Maps to MEA-02 on the 837-P. No more than 5 test results may be submitted per
84
+ # service line.
75
85
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
76
86
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone]
77
87
  def initialize(procedure_code:, quantity:, units:, claim_id:, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT,
78
- diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, additional_properties: nil)
88
+ diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, drug_identification: OMIT, test_results: OMIT, additional_properties: nil)
79
89
  @modifiers = modifiers if modifiers != OMIT
80
90
  @charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
81
91
  @diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
@@ -91,6 +101,8 @@ module CandidApiClient
91
101
  @description = description if description != OMIT
92
102
  @date_of_service = date_of_service if date_of_service != OMIT
93
103
  @end_date_of_service = end_date_of_service if end_date_of_service != OMIT
104
+ @drug_identification = drug_identification if drug_identification != OMIT
105
+ @test_results = test_results if test_results != OMIT
94
106
  @additional_properties = additional_properties
95
107
  @_field_set = {
96
108
  "modifiers": modifiers,
@@ -107,7 +119,9 @@ module CandidApiClient
107
119
  "claim_id": claim_id,
108
120
  "description": description,
109
121
  "date_of_service": date_of_service,
110
- "end_date_of_service": end_date_of_service
122
+ "end_date_of_service": end_date_of_service,
123
+ "drug_identification": drug_identification,
124
+ "test_results": test_results
111
125
  }.reject do |_k, v|
112
126
  v == OMIT
113
127
  end
@@ -142,6 +156,16 @@ module CandidApiClient
142
156
  end_date_of_service = unless parsed_json["end_date_of_service"].nil?
143
157
  Date.parse(parsed_json["end_date_of_service"])
144
158
  end
159
+ if parsed_json["drug_identification"].nil?
160
+ drug_identification = nil
161
+ else
162
+ drug_identification = parsed_json["drug_identification"].to_json
163
+ drug_identification = CandidApiClient::ServiceLines::V2::Types::DrugIdentification.from_json(json_object: drug_identification)
164
+ end
165
+ test_results = parsed_json["test_results"]&.map do |item|
166
+ item = item.to_json
167
+ CandidApiClient::ServiceLines::V2::Types::TestResult.from_json(json_object: item)
168
+ end
145
169
  new(
146
170
  modifiers: modifiers,
147
171
  charge_amount_cents: charge_amount_cents,
@@ -158,6 +182,8 @@ module CandidApiClient
158
182
  description: description,
159
183
  date_of_service: date_of_service,
160
184
  end_date_of_service: end_date_of_service,
185
+ drug_identification: drug_identification,
186
+ test_results: test_results,
161
187
  additional_properties: struct
162
188
  )
163
189
  end
@@ -191,6 +217,8 @@ module CandidApiClient
191
217
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
192
218
  obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
193
219
  obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
220
+ obj.drug_identification.nil? || CandidApiClient::ServiceLines::V2::Types::DrugIdentification.validate_raw(obj: obj.drug_identification)
221
+ obj.test_results&.is_a?(Array) != false || raise("Passed value for field obj.test_results is not the expected type, validation failed.")
194
222
  end
195
223
  end
196
224
  end
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.34.6" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.34.9" }
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.34.6" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.34.9" }
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
@@ -185,6 +185,7 @@ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_paye
185
185
  require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_sort_field"
186
186
  require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update"
187
187
  require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update"
188
+ require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update"
188
189
  require_relative "candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request"
189
190
  require_relative "candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request"
190
191
  require_relative "candidhealth/organization_service_facilities/v_2/types/service_facility_status"
@@ -387,6 +388,8 @@ require_relative "candidhealth/individual/types/individual_base"
387
388
  require_relative "candidhealth/individual/types/subscriber_base"
388
389
  require_relative "candidhealth/individual/types/subscriber_create"
389
390
  require_relative "candidhealth/individual/types/subscriber"
391
+ require_relative "candidhealth/individual/types/patient_non_insurance_payer_info_create"
392
+ require_relative "candidhealth/individual/types/patient_non_insurance_payer_info"
390
393
  require_relative "candidhealth/individual/types/patient_create"
391
394
  require_relative "candidhealth/individual/types/patient_update"
392
395
  require_relative "candidhealth/individual/types/patient_base"
@@ -404,6 +407,7 @@ require_relative "candidhealth/tags/types/tag_color_enum"
404
407
  require_relative "candidhealth/tasks/commons/types/task_status"
405
408
  require_relative "candidhealth/tasks/commons/types/task_type"
406
409
  require_relative "candidhealth/tasks/commons/types/task_category"
410
+ require_relative "candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association"
407
411
  require_relative "candidhealth/pre_encounter/common/types/relationship"
408
412
  require_relative "candidhealth/pre_encounter/common/types/gender"
409
413
  require_relative "candidhealth/pre_encounter/common/types/sex"
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.34.6
4
+ version: 0.34.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-07 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday
@@ -340,6 +340,8 @@ files:
340
340
  - lib/candidhealth/individual/types/patient.rb
341
341
  - lib/candidhealth/individual/types/patient_base.rb
342
342
  - lib/candidhealth/individual/types/patient_create.rb
343
+ - lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb
344
+ - lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb
343
345
  - lib/candidhealth/individual/types/patient_update.rb
344
346
  - lib/candidhealth/individual/types/subscriber.rb
345
347
  - lib/candidhealth/individual/types/subscriber_base.rb
@@ -402,6 +404,7 @@ files:
402
404
  - lib/candidhealth/non_insurance_payers/v_1/client.rb
403
405
  - lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb
404
406
  - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb
407
+ - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update.rb
405
408
  - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update.rb
406
409
  - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update.rb
407
410
  - lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page.rb
@@ -464,6 +467,7 @@ files:
464
467
  - lib/candidhealth/pre_encounter/common/types/additional_payer_information.rb
465
468
  - lib/candidhealth/pre_encounter/common/types/address.rb
466
469
  - lib/candidhealth/pre_encounter/common/types/address_use.rb
470
+ - lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb
467
471
  - lib/candidhealth/pre_encounter/common/types/contact_point.rb
468
472
  - lib/candidhealth/pre_encounter/common/types/contact_point_use.rb
469
473
  - lib/candidhealth/pre_encounter/common/types/disability_status.rb