candidhealth 1.6.0 → 1.8.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 (151) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +74 -0
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +48 -48
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +70 -56
  5. data/lib/candidhealth/commons/types/clearinghouse.rb +18 -0
  6. data/lib/candidhealth/commons/types/procedure_modifier.rb +11 -0
  7. data/lib/candidhealth/credentialing/v_2/client.rb +342 -8
  8. data/lib/candidhealth/credentialing/v_2/types/base_credentialing_span.rb +143 -0
  9. data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span.rb +165 -0
  10. data/lib/candidhealth/credentialing/v_2/types/facility_credentialing_span_page.rb +88 -0
  11. data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +34 -34
  12. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +1 -1
  13. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +1 -1
  14. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +1 -1
  15. data/lib/candidhealth/encounters/v_4/client.rb +3253 -2040
  16. data/lib/candidhealth/encounters/v_4/types/encounter.rb +111 -86
  17. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +39 -33
  18. data/lib/candidhealth/encounters/v_4/types/encounter_create.rb +796 -0
  19. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +131 -117
  20. data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +70 -56
  21. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +29 -39
  22. data/lib/candidhealth/encounters/v_4/types/encounter_rendering_or_attending_provider_required_error.rb +55 -0
  23. data/lib/candidhealth/encounters/v_4/types/encounter_update.rb +736 -0
  24. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +944 -0
  25. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_base.rb +691 -0
  26. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +791 -0
  27. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter_base.rb +572 -0
  28. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +872 -0
  29. data/lib/candidhealth/encounters_universal/types/universal_encounter_update_base.rb +700 -0
  30. data/lib/candidhealth/fee_schedules/v_3/client.rb +57 -0
  31. data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +12 -0
  32. data/lib/candidhealth/financials/types/patient_transaction_source.rb +1 -0
  33. data/lib/candidhealth/health_care_code_information/client.rb +30 -0
  34. data/lib/candidhealth/health_care_code_information/v_1/client.rb +268 -0
  35. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +236 -0
  36. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_code_qualifier.rb +14 -0
  37. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +206 -0
  38. data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +1068 -0
  39. data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +71 -0
  40. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +237 -0
  41. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_code_qualifier.rb +13 -0
  42. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +207 -0
  43. data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +54 -0
  44. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +236 -0
  45. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_code_qualifier.rb +13 -0
  46. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +206 -0
  47. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +245 -0
  48. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_code_qualifier.rb +14 -0
  49. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +245 -0
  50. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +218 -0
  51. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +225 -0
  52. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +227 -0
  53. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +188 -0
  54. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +225 -0
  55. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +71 -0
  56. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +249 -0
  57. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_code_qualifier.rb +13 -0
  58. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +219 -0
  59. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +25 -0
  60. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code_qualifier.rb +13 -0
  61. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +252 -0
  62. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +222 -0
  63. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +245 -0
  64. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_code_qualifier.rb +14 -0
  65. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +215 -0
  66. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +248 -0
  67. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_code_qualifier.rb +14 -0
  68. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +218 -0
  69. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +236 -0
  70. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_code_qualifier.rb +14 -0
  71. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +206 -0
  72. data/lib/candidhealth/health_care_code_information/v_1/types/present_on_admission_indicator_code.rb +17 -0
  73. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +245 -0
  74. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_code_qualifier.rb +14 -0
  75. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +215 -0
  76. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +246 -0
  77. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_code_qualifier.rb +15 -0
  78. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +216 -0
  79. data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +72 -0
  80. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_admitting_diagnosis.rb +69 -0
  81. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_diagnosis_related_group.rb +69 -0
  82. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_diagnosis.rb +69 -0
  83. data/lib/candidhealth/health_care_code_information/v_1/types/set_or_clear_principal_procedure_information.rb +71 -0
  84. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +236 -0
  85. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +206 -0
  86. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_qualifier.rb +13 -0
  87. data/lib/candidhealth/health_care_code_information/v_1/types/value_code.rb +119 -0
  88. data/lib/candidhealth/health_care_code_information/v_1/types/value_code_qualifier.rb +13 -0
  89. data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +245 -0
  90. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +215 -0
  91. data/lib/candidhealth/individual/types/patient.rb +6 -6
  92. data/lib/candidhealth/individual/types/patient_base.rb +6 -6
  93. data/lib/candidhealth/individual/types/patient_create.rb +6 -6
  94. data/lib/candidhealth/individual/types/patient_update.rb +6 -6
  95. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +6 -6
  96. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  97. data/lib/candidhealth/patient_ar/client.rb +30 -0
  98. data/lib/candidhealth/patient_ar/v_1/client.rb +161 -0
  99. data/lib/candidhealth/patient_ar/v_1/types/insurance_adjustment_info.rb +60 -0
  100. data/lib/candidhealth/patient_ar/v_1/types/insurance_payment_info.rb +60 -0
  101. data/lib/candidhealth/patient_ar/v_1/types/invalid_filters_error_type.rb +60 -0
  102. data/lib/candidhealth/patient_ar/v_1/types/inventory_record.rb +101 -0
  103. data/lib/candidhealth/patient_ar/v_1/types/invoice_itemization_response.rb +103 -0
  104. data/lib/candidhealth/patient_ar/v_1/types/list_inventory_paged_response.rb +77 -0
  105. data/lib/candidhealth/patient_ar/v_1/types/non_insurance_adjustment_info.rb +60 -0
  106. data/lib/candidhealth/patient_ar/v_1/types/non_insurance_payment_info.rb +60 -0
  107. data/lib/candidhealth/patient_ar/v_1/types/patient_adjustment_info.rb +60 -0
  108. data/lib/candidhealth/patient_ar/v_1/types/patient_ar_status.rb +14 -0
  109. data/lib/candidhealth/patient_ar/v_1/types/patient_payment_allocation.rb +76 -0
  110. data/lib/candidhealth/patient_ar/v_1/types/patient_payment_info.rb +75 -0
  111. data/lib/candidhealth/patient_ar/v_1/types/service_line_itemization.rb +210 -0
  112. data/lib/candidhealth/payers/client.rb +7 -0
  113. data/lib/candidhealth/payers/v_4/client.rb +137 -0
  114. data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +93 -0
  115. data/lib/candidhealth/payers/v_4/types/payer.rb +116 -0
  116. data/lib/candidhealth/payers/v_4/types/payer_ids.rb +107 -0
  117. data/lib/candidhealth/payers/v_4/types/payer_page.rb +88 -0
  118. data/lib/candidhealth/payers/v_4/types/support_state.rb +15 -0
  119. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
  120. data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +3 -3
  121. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +204 -6
  122. data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
  123. data/lib/candidhealth/pre_encounter/patients/v_1/types/inferred_patient_metadata.rb +80 -0
  124. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +33 -5
  125. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +33 -5
  126. data/lib/candidhealth/pre_encounter/patients/v_1/types/origination_detail.rb +104 -0
  127. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +32 -4
  128. data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_source.rb +18 -0
  129. data/lib/candidhealth/pre_encounter/patients/v_1/types/referral_type.rb +17 -0
  130. data/lib/candidhealth/pre_encounter/patients/v_1/types/specialization_category.rb +42 -0
  131. data/lib/candidhealth/service_lines/v_2/client.rb +252 -10
  132. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +28 -10
  133. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +52 -40
  134. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +251 -0
  135. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +243 -0
  136. data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +48 -24
  137. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +58 -46
  138. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base.rb +273 -0
  139. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone_base_base.rb +265 -0
  140. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +64 -54
  141. data/lib/candidhealth/service_lines/v_2/types/service_line_update_base.rb +263 -0
  142. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +271 -0
  143. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create_standalone.rb +317 -0
  144. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_update.rb +307 -0
  145. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite.rb +2 -2
  146. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_base.rb +90 -0
  147. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +112 -0
  148. data/lib/candidhealth.rb +21 -7
  149. data/lib/requests.rb +2 -2
  150. data/lib/types_export.rb +116 -13
  151. metadata +109 -2
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "diagnosis_related_group"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module HealthCareCodeInformation
9
+ module V1
10
+ module Types
11
+ class SetOrClearDiagnosisRelatedGroup
12
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup]
13
+ attr_reader :value
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param value [CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup]
23
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup]
25
+ def initialize(value: OMIT, additional_properties: nil)
26
+ @value = value if value != OMIT
27
+ @additional_properties = additional_properties
28
+ @_field_set = { "value": value }.reject do |_k, v|
29
+ v == OMIT
30
+ end
31
+ end
32
+
33
+ # Deserialize a JSON object to an instance of SetOrClearDiagnosisRelatedGroup
34
+ #
35
+ # @param json_object [String]
36
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup]
37
+ def self.from_json(json_object:)
38
+ struct = JSON.parse(json_object, object_class: OpenStruct)
39
+ parsed_json = JSON.parse(json_object)
40
+ if parsed_json["value"].nil?
41
+ value = nil
42
+ else
43
+ value = parsed_json["value"].to_json
44
+ value = CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup.from_json(json_object: value)
45
+ end
46
+ new(value: value, additional_properties: struct)
47
+ end
48
+
49
+ # Serialize an instance of SetOrClearDiagnosisRelatedGroup to a JSON object
50
+ #
51
+ # @return [String]
52
+ def to_json(*_args)
53
+ @_field_set&.to_json
54
+ end
55
+
56
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
57
+ # hash and check each fields type against the current object's property
58
+ # definitions.
59
+ #
60
+ # @param obj [Object]
61
+ # @return [Void]
62
+ def self.validate_raw(obj:)
63
+ obj.value.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::DiagnosisRelatedGroup.validate_raw(obj: obj.value)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "principal_diagnosis"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module HealthCareCodeInformation
9
+ module V1
10
+ module Types
11
+ class SetOrClearPrincipalDiagnosis
12
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis]
13
+ attr_reader :value
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param value [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis]
23
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis]
25
+ def initialize(value: OMIT, additional_properties: nil)
26
+ @value = value if value != OMIT
27
+ @additional_properties = additional_properties
28
+ @_field_set = { "value": value }.reject do |_k, v|
29
+ v == OMIT
30
+ end
31
+ end
32
+
33
+ # Deserialize a JSON object to an instance of SetOrClearPrincipalDiagnosis
34
+ #
35
+ # @param json_object [String]
36
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis]
37
+ def self.from_json(json_object:)
38
+ struct = JSON.parse(json_object, object_class: OpenStruct)
39
+ parsed_json = JSON.parse(json_object)
40
+ if parsed_json["value"].nil?
41
+ value = nil
42
+ else
43
+ value = parsed_json["value"].to_json
44
+ value = CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis.from_json(json_object: value)
45
+ end
46
+ new(value: value, additional_properties: struct)
47
+ end
48
+
49
+ # Serialize an instance of SetOrClearPrincipalDiagnosis to a JSON object
50
+ #
51
+ # @return [String]
52
+ def to_json(*_args)
53
+ @_field_set&.to_json
54
+ end
55
+
56
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
57
+ # hash and check each fields type against the current object's property
58
+ # definitions.
59
+ #
60
+ # @param obj [Object]
61
+ # @return [Void]
62
+ def self.validate_raw(obj:)
63
+ obj.value.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalDiagnosis.validate_raw(obj: obj.value)
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "principal_procedure_information"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module HealthCareCodeInformation
9
+ module V1
10
+ module Types
11
+ class SetOrClearPrincipalProcedureInformation
12
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation]
13
+ attr_reader :value
14
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
15
+ attr_reader :additional_properties
16
+ # @return [Object]
17
+ attr_reader :_field_set
18
+ protected :_field_set
19
+
20
+ OMIT = Object.new
21
+
22
+ # @param value [CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation]
23
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
24
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation]
25
+ def initialize(value: OMIT, additional_properties: nil)
26
+ @value = value if value != OMIT
27
+ @additional_properties = additional_properties
28
+ @_field_set = { "value": value }.reject do |_k, v|
29
+ v == OMIT
30
+ end
31
+ end
32
+
33
+ # Deserialize a JSON object to an instance of
34
+ # SetOrClearPrincipalProcedureInformation
35
+ #
36
+ # @param json_object [String]
37
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation]
38
+ def self.from_json(json_object:)
39
+ struct = JSON.parse(json_object, object_class: OpenStruct)
40
+ parsed_json = JSON.parse(json_object)
41
+ if parsed_json["value"].nil?
42
+ value = nil
43
+ else
44
+ value = parsed_json["value"].to_json
45
+ value = CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation.from_json(json_object: value)
46
+ end
47
+ new(value: value, additional_properties: struct)
48
+ end
49
+
50
+ # Serialize an instance of SetOrClearPrincipalProcedureInformation to a JSON
51
+ # object
52
+ #
53
+ # @return [String]
54
+ def to_json(*_args)
55
+ @_field_set&.to_json
56
+ end
57
+
58
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
59
+ # hash and check each fields type against the current object's property
60
+ # definitions.
61
+ #
62
+ # @param obj [Object]
63
+ # @return [Void]
64
+ def self.validate_raw(obj:)
65
+ obj.value.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::PrincipalProcedureInformation.validate_raw(obj: obj.value)
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,236 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "treatment_code_qualifier"
4
+ require_relative "code_list_qualifier_code"
5
+ require_relative "date_time_period_format_qualifier"
6
+ require "ostruct"
7
+ require "json"
8
+
9
+ module CandidApiClient
10
+ module HealthCareCodeInformation
11
+ module V1
12
+ module Types
13
+ # This corresponds to the TC code qualifier value.
14
+ class TreatmentCodeInformation
15
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeQualifier]
16
+ attr_reader :treatment_code_qualifier
17
+ # @return [String]
18
+ attr_reader :treatment_code
19
+ # @return [String] The id of this health care code information if it is already stored.
20
+ # If this is not set, this is referring to a new health care code information to
21
+ # be added
22
+ # to the encounter. If it is set, this refers to an update of an existing health
23
+ # care code
24
+ # information object on the encounter.
25
+ attr_reader :id
26
+ # @return [String] The encounter_id of this health care code information if it is already stored.
27
+ # This will be set by the server in responses, but clients are not expected to set
28
+ # it.
29
+ attr_reader :encounter_id
30
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
31
+ attr_reader :code_list_qualifier
32
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
33
+ # You do not need to set this field generally, instead it is provided as advisory
34
+ # context on how this HealthCareCodeInformation's data will be available in
35
+ # reporting.
36
+ attr_reader :industry_code_1
37
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
38
+ # You do not need to set this field generally, instead it is provided as advisory
39
+ # context on how this HealthCareCodeInformation's data will be available in
40
+ # reporting.
41
+ attr_reader :industry_code_2
42
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
43
+ # You do not need to set this field generally, instead it is provided as advisory
44
+ # context on how this HealthCareCodeInformation's data will be available in
45
+ # reporting.
46
+ attr_reader :industry_code_3
47
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
48
+ # You do not need to set this field generally, instead it is provided as advisory
49
+ # context on how this HealthCareCodeInformation's data will be available in
50
+ # reporting.
51
+ attr_reader :industry_code_4
52
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
53
+ # as part of claim process.
54
+ # You do not need to set this field generally, instead it is provided as advisory
55
+ # context on how this HealthCareCodeInformation's data will be available in
56
+ # reporting.
57
+ attr_reader :date_time_period_format_qualifier
58
+ # @return [String] A string, formatted according to date_time_period_format_qualifier, which
59
+ # ultimately represents the date time period in which an information object
60
+ # is covering.
61
+ # You do not need to set this field generally, instead it is provided as advisory
62
+ # context on how this HealthCareCodeInformation's data will be available in
63
+ # reporting.
64
+ attr_reader :date_time_period
65
+ # @return [String] A decimal used to represent ValueInformation results.
66
+ # You do not need to set this field generally, instead it is provided as advisory
67
+ # context on how this HealthCareCodeInformation's data will be available in
68
+ # reporting.
69
+ attr_reader :monetary_amount
70
+ # @return [String] You do not need to set this field generally, instead it is provided as advisory
71
+ # context on how this HealthCareCodeInformation's data will be available in
72
+ # reporting.
73
+ attr_reader :quantity
74
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
75
+ attr_reader :additional_properties
76
+ # @return [Object]
77
+ attr_reader :_field_set
78
+ protected :_field_set
79
+
80
+ OMIT = Object.new
81
+
82
+ # @param treatment_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeQualifier]
83
+ # @param treatment_code [String]
84
+ # @param id [String] The id of this health care code information if it is already stored.
85
+ # If this is not set, this is referring to a new health care code information to
86
+ # be added
87
+ # to the encounter. If it is set, this refers to an update of an existing health
88
+ # care code
89
+ # information object on the encounter.
90
+ # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
91
+ # This will be set by the server in responses, but clients are not expected to set
92
+ # it.
93
+ # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
94
+ # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
95
+ # You do not need to set this field generally, instead it is provided as advisory
96
+ # context on how this HealthCareCodeInformation's data will be available in
97
+ # reporting.
98
+ # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
99
+ # You do not need to set this field generally, instead it is provided as advisory
100
+ # context on how this HealthCareCodeInformation's data will be available in
101
+ # reporting.
102
+ # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
103
+ # You do not need to set this field generally, instead it is provided as advisory
104
+ # context on how this HealthCareCodeInformation's data will be available in
105
+ # reporting.
106
+ # @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
107
+ # You do not need to set this field generally, instead it is provided as advisory
108
+ # context on how this HealthCareCodeInformation's data will be available in
109
+ # reporting.
110
+ # @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
111
+ # as part of claim process.
112
+ # You do not need to set this field generally, instead it is provided as advisory
113
+ # context on how this HealthCareCodeInformation's data will be available in
114
+ # reporting.
115
+ # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
116
+ # ultimately represents the date time period in which an information object
117
+ # is covering.
118
+ # You do not need to set this field generally, instead it is provided as advisory
119
+ # context on how this HealthCareCodeInformation's data will be available in
120
+ # reporting.
121
+ # @param monetary_amount [String] A decimal used to represent ValueInformation results.
122
+ # You do not need to set this field generally, instead it is provided as advisory
123
+ # context on how this HealthCareCodeInformation's data will be available in
124
+ # reporting.
125
+ # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
126
+ # context on how this HealthCareCodeInformation's data will be available in
127
+ # reporting.
128
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
129
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation]
130
+ def initialize(treatment_code_qualifier:, treatment_code:, id: OMIT, encounter_id: OMIT,
131
+ code_list_qualifier: OMIT, industry_code_1: OMIT, industry_code_2: OMIT, industry_code_3: OMIT, industry_code_4: OMIT, date_time_period_format_qualifier: OMIT, date_time_period: OMIT, monetary_amount: OMIT, quantity: OMIT, additional_properties: nil)
132
+ @treatment_code_qualifier = treatment_code_qualifier
133
+ @treatment_code = treatment_code
134
+ @id = id if id != OMIT
135
+ @encounter_id = encounter_id if encounter_id != OMIT
136
+ @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
137
+ @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
138
+ @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
139
+ @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
140
+ @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
141
+ if date_time_period_format_qualifier != OMIT
142
+ @date_time_period_format_qualifier = date_time_period_format_qualifier
143
+ end
144
+ @date_time_period = date_time_period if date_time_period != OMIT
145
+ @monetary_amount = monetary_amount if monetary_amount != OMIT
146
+ @quantity = quantity if quantity != OMIT
147
+ @additional_properties = additional_properties
148
+ @_field_set = {
149
+ "treatment_code_qualifier": treatment_code_qualifier,
150
+ "treatment_code": treatment_code,
151
+ "id": id,
152
+ "encounter_id": encounter_id,
153
+ "code_list_qualifier": code_list_qualifier,
154
+ "industry_code_1": industry_code_1,
155
+ "industry_code_2": industry_code_2,
156
+ "industry_code_3": industry_code_3,
157
+ "industry_code_4": industry_code_4,
158
+ "date_time_period_format_qualifier": date_time_period_format_qualifier,
159
+ "date_time_period": date_time_period,
160
+ "monetary_amount": monetary_amount,
161
+ "quantity": quantity
162
+ }.reject do |_k, v|
163
+ v == OMIT
164
+ end
165
+ end
166
+
167
+ # Deserialize a JSON object to an instance of TreatmentCodeInformation
168
+ #
169
+ # @param json_object [String]
170
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation]
171
+ def self.from_json(json_object:)
172
+ struct = JSON.parse(json_object, object_class: OpenStruct)
173
+ treatment_code_qualifier = struct["treatment_code_qualifier"]
174
+ treatment_code = struct["treatment_code"]
175
+ id = struct["id"]
176
+ encounter_id = struct["encounter_id"]
177
+ code_list_qualifier = struct["code_list_qualifier"]
178
+ industry_code_1 = struct["industry_code_1"]
179
+ industry_code_2 = struct["industry_code_2"]
180
+ industry_code_3 = struct["industry_code_3"]
181
+ industry_code_4 = struct["industry_code_4"]
182
+ date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
183
+ date_time_period = struct["date_time_period"]
184
+ monetary_amount = struct["monetary_amount"]
185
+ quantity = struct["quantity"]
186
+ new(
187
+ treatment_code_qualifier: treatment_code_qualifier,
188
+ treatment_code: treatment_code,
189
+ id: id,
190
+ encounter_id: encounter_id,
191
+ code_list_qualifier: code_list_qualifier,
192
+ industry_code_1: industry_code_1,
193
+ industry_code_2: industry_code_2,
194
+ industry_code_3: industry_code_3,
195
+ industry_code_4: industry_code_4,
196
+ date_time_period_format_qualifier: date_time_period_format_qualifier,
197
+ date_time_period: date_time_period,
198
+ monetary_amount: monetary_amount,
199
+ quantity: quantity,
200
+ additional_properties: struct
201
+ )
202
+ end
203
+
204
+ # Serialize an instance of TreatmentCodeInformation to a JSON object
205
+ #
206
+ # @return [String]
207
+ def to_json(*_args)
208
+ @_field_set&.to_json
209
+ end
210
+
211
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
212
+ # hash and check each fields type against the current object's property
213
+ # definitions.
214
+ #
215
+ # @param obj [Object]
216
+ # @return [Void]
217
+ def self.validate_raw(obj:)
218
+ obj.treatment_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeQualifier) != false || raise("Passed value for field obj.treatment_code_qualifier is not the expected type, validation failed.")
219
+ obj.treatment_code.is_a?(String) != false || raise("Passed value for field obj.treatment_code is not the expected type, validation failed.")
220
+ obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
221
+ obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
222
+ obj.code_list_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode) != false || raise("Passed value for field obj.code_list_qualifier is not the expected type, validation failed.")
223
+ obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
224
+ obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
225
+ obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
226
+ obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
227
+ obj.date_time_period_format_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier) != false || raise("Passed value for field obj.date_time_period_format_qualifier is not the expected type, validation failed.")
228
+ obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
229
+ obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
230
+ obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
231
+ end
232
+ end
233
+ end
234
+ end
235
+ end
236
+ end
@@ -0,0 +1,206 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "treatment_code_qualifier"
4
+ require_relative "code_list_qualifier_code"
5
+ require_relative "date_time_period_format_qualifier"
6
+ require "ostruct"
7
+ require "json"
8
+
9
+ module CandidApiClient
10
+ module HealthCareCodeInformation
11
+ module V1
12
+ module Types
13
+ # This corresponds to the TC code qualifier value.
14
+ class TreatmentCodeInformationNew
15
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeQualifier]
16
+ attr_reader :treatment_code_qualifier
17
+ # @return [String]
18
+ attr_reader :treatment_code
19
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
20
+ attr_reader :code_list_qualifier
21
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
22
+ # You do not need to set this field generally, instead it is provided as advisory
23
+ # context on how this HealthCareCodeInformation's data will be available in
24
+ # reporting.
25
+ attr_reader :industry_code_1
26
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
27
+ # You do not need to set this field generally, instead it is provided as advisory
28
+ # context on how this HealthCareCodeInformation's data will be available in
29
+ # reporting.
30
+ attr_reader :industry_code_2
31
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
32
+ # You do not need to set this field generally, instead it is provided as advisory
33
+ # context on how this HealthCareCodeInformation's data will be available in
34
+ # reporting.
35
+ attr_reader :industry_code_3
36
+ # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
37
+ # You do not need to set this field generally, instead it is provided as advisory
38
+ # context on how this HealthCareCodeInformation's data will be available in
39
+ # reporting.
40
+ attr_reader :industry_code_4
41
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
42
+ # as part of claim process.
43
+ # You do not need to set this field generally, instead it is provided as advisory
44
+ # context on how this HealthCareCodeInformation's data will be available in
45
+ # reporting.
46
+ attr_reader :date_time_period_format_qualifier
47
+ # @return [String] A string, formatted according to date_time_period_format_qualifier, which
48
+ # ultimately represents the date time period in which an information object
49
+ # is covering.
50
+ # You do not need to set this field generally, instead it is provided as advisory
51
+ # context on how this HealthCareCodeInformation's data will be available in
52
+ # reporting.
53
+ attr_reader :date_time_period
54
+ # @return [String] A decimal used to represent ValueInformation results.
55
+ # You do not need to set this field generally, instead it is provided as advisory
56
+ # context on how this HealthCareCodeInformation's data will be available in
57
+ # reporting.
58
+ attr_reader :monetary_amount
59
+ # @return [String] You do not need to set this field generally, instead it is provided as advisory
60
+ # context on how this HealthCareCodeInformation's data will be available in
61
+ # reporting.
62
+ attr_reader :quantity
63
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
64
+ attr_reader :additional_properties
65
+ # @return [Object]
66
+ attr_reader :_field_set
67
+ protected :_field_set
68
+
69
+ OMIT = Object.new
70
+
71
+ # @param treatment_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeQualifier]
72
+ # @param treatment_code [String]
73
+ # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
74
+ # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
75
+ # You do not need to set this field generally, instead it is provided as advisory
76
+ # context on how this HealthCareCodeInformation's data will be available in
77
+ # reporting.
78
+ # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
79
+ # You do not need to set this field generally, instead it is provided as advisory
80
+ # context on how this HealthCareCodeInformation's data will be available in
81
+ # reporting.
82
+ # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
83
+ # You do not need to set this field generally, instead it is provided as advisory
84
+ # context on how this HealthCareCodeInformation's data will be available in
85
+ # reporting.
86
+ # @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
87
+ # You do not need to set this field generally, instead it is provided as advisory
88
+ # context on how this HealthCareCodeInformation's data will be available in
89
+ # reporting.
90
+ # @param date_time_period_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
91
+ # as part of claim process.
92
+ # You do not need to set this field generally, instead it is provided as advisory
93
+ # context on how this HealthCareCodeInformation's data will be available in
94
+ # reporting.
95
+ # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
96
+ # ultimately represents the date time period in which an information object
97
+ # is covering.
98
+ # You do not need to set this field generally, instead it is provided as advisory
99
+ # context on how this HealthCareCodeInformation's data will be available in
100
+ # reporting.
101
+ # @param monetary_amount [String] A decimal used to represent ValueInformation results.
102
+ # You do not need to set this field generally, instead it is provided as advisory
103
+ # context on how this HealthCareCodeInformation's data will be available in
104
+ # reporting.
105
+ # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
106
+ # context on how this HealthCareCodeInformation's data will be available in
107
+ # reporting.
108
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
109
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformationNew]
110
+ def initialize(treatment_code_qualifier:, treatment_code:, code_list_qualifier: OMIT, industry_code_1: OMIT,
111
+ industry_code_2: OMIT, industry_code_3: OMIT, industry_code_4: OMIT, date_time_period_format_qualifier: OMIT, date_time_period: OMIT, monetary_amount: OMIT, quantity: OMIT, additional_properties: nil)
112
+ @treatment_code_qualifier = treatment_code_qualifier
113
+ @treatment_code = treatment_code
114
+ @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
115
+ @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
116
+ @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
117
+ @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
118
+ @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
119
+ if date_time_period_format_qualifier != OMIT
120
+ @date_time_period_format_qualifier = date_time_period_format_qualifier
121
+ end
122
+ @date_time_period = date_time_period if date_time_period != OMIT
123
+ @monetary_amount = monetary_amount if monetary_amount != OMIT
124
+ @quantity = quantity if quantity != OMIT
125
+ @additional_properties = additional_properties
126
+ @_field_set = {
127
+ "treatment_code_qualifier": treatment_code_qualifier,
128
+ "treatment_code": treatment_code,
129
+ "code_list_qualifier": code_list_qualifier,
130
+ "industry_code_1": industry_code_1,
131
+ "industry_code_2": industry_code_2,
132
+ "industry_code_3": industry_code_3,
133
+ "industry_code_4": industry_code_4,
134
+ "date_time_period_format_qualifier": date_time_period_format_qualifier,
135
+ "date_time_period": date_time_period,
136
+ "monetary_amount": monetary_amount,
137
+ "quantity": quantity
138
+ }.reject do |_k, v|
139
+ v == OMIT
140
+ end
141
+ end
142
+
143
+ # Deserialize a JSON object to an instance of TreatmentCodeInformationNew
144
+ #
145
+ # @param json_object [String]
146
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformationNew]
147
+ def self.from_json(json_object:)
148
+ struct = JSON.parse(json_object, object_class: OpenStruct)
149
+ treatment_code_qualifier = struct["treatment_code_qualifier"]
150
+ treatment_code = struct["treatment_code"]
151
+ code_list_qualifier = struct["code_list_qualifier"]
152
+ industry_code_1 = struct["industry_code_1"]
153
+ industry_code_2 = struct["industry_code_2"]
154
+ industry_code_3 = struct["industry_code_3"]
155
+ industry_code_4 = struct["industry_code_4"]
156
+ date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
157
+ date_time_period = struct["date_time_period"]
158
+ monetary_amount = struct["monetary_amount"]
159
+ quantity = struct["quantity"]
160
+ new(
161
+ treatment_code_qualifier: treatment_code_qualifier,
162
+ treatment_code: treatment_code,
163
+ code_list_qualifier: code_list_qualifier,
164
+ industry_code_1: industry_code_1,
165
+ industry_code_2: industry_code_2,
166
+ industry_code_3: industry_code_3,
167
+ industry_code_4: industry_code_4,
168
+ date_time_period_format_qualifier: date_time_period_format_qualifier,
169
+ date_time_period: date_time_period,
170
+ monetary_amount: monetary_amount,
171
+ quantity: quantity,
172
+ additional_properties: struct
173
+ )
174
+ end
175
+
176
+ # Serialize an instance of TreatmentCodeInformationNew to a JSON object
177
+ #
178
+ # @return [String]
179
+ def to_json(*_args)
180
+ @_field_set&.to_json
181
+ end
182
+
183
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
184
+ # hash and check each fields type against the current object's property
185
+ # definitions.
186
+ #
187
+ # @param obj [Object]
188
+ # @return [Void]
189
+ def self.validate_raw(obj:)
190
+ obj.treatment_code_qualifier.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeQualifier) != false || raise("Passed value for field obj.treatment_code_qualifier is not the expected type, validation failed.")
191
+ obj.treatment_code.is_a?(String) != false || raise("Passed value for field obj.treatment_code is not the expected type, validation failed.")
192
+ obj.code_list_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode) != false || raise("Passed value for field obj.code_list_qualifier is not the expected type, validation failed.")
193
+ obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
194
+ obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
195
+ obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
196
+ obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
197
+ obj.date_time_period_format_qualifier&.is_a?(CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier) != false || raise("Passed value for field obj.date_time_period_format_qualifier is not the expected type, validation failed.")
198
+ obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
199
+ obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
200
+ obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
201
+ end
202
+ end
203
+ end
204
+ end
205
+ end
206
+ end