candidhealth 1.8.1 → 1.9.1

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +0 -74
  3. data/lib/candidhealth/diagnoses/client.rb +2 -2
  4. data/lib/candidhealth/encounters/v_4/client.rb +479 -2522
  5. data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
  6. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +4 -4
  7. data/lib/candidhealth/health_care_code_information/v_1/client.rb +2 -74
  8. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
  9. data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
  10. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
  11. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
  12. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
  13. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
  14. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
  15. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
  16. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
  17. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
  18. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
  19. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
  20. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
  21. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
  22. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
  23. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
  24. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
  25. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
  26. data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
  27. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
  28. data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
  29. data/lib/candidhealth/individual/types/patient.rb +4 -4
  30. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  31. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
  32. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
  33. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
  34. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
  35. data/lib/candidhealth/payers/v_4/types/payer.rb +10 -2
  36. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
  37. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
  38. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
  39. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
  40. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
  41. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  42. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
  43. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
  44. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
  45. data/lib/requests.rb +2 -2
  46. data/lib/types_export.rb +1 -21
  47. metadata +3 -23
  48. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
  49. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
  50. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
  51. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
  52. data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
  53. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
  54. data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
  55. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
  56. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
  57. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
  58. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
  59. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
  60. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
  61. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
  62. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
  63. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
  64. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
  65. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
  66. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
  67. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
  68. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "set_or_clear_principal_diagnosis"
4
+ require_relative "other_diagnosis_information"
4
5
  require_relative "set_or_clear_admitting_diagnosis"
5
6
  require_relative "patient_reason_for_visit"
6
7
  require_relative "external_cause_of_injury"
7
8
  require_relative "set_or_clear_diagnosis_related_group"
8
- require_relative "other_diagnosis_information"
9
9
  require_relative "set_or_clear_principal_procedure_information"
10
10
  require_relative "other_procedure_information"
11
11
  require_relative "occurrence_span_information"
@@ -21,31 +21,81 @@ module CandidApiClient
21
21
  module V1
22
22
  module Types
23
23
  class HealthCareCodeInformationUpdate
24
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis]
24
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis] Set & Replace semantics. If the id matches the existing principal_diagnosis,
25
+ # that diagnosis is updated in place. If the entry has no id, it is created
26
+ # newly, its id will be in the response, and any existing principal_diagnosis is
27
+ # deleted and removed from any service line pointers.
25
28
  attr_reader :principal_diagnosis
26
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis]
29
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>] Set & Replace semantics. For each entry that has an id, any previous
30
+ # other_diagnosis_information by that id is updated in place. For each entry
31
+ # without an id, it is created newly and its id will be in the response. For each
32
+ # existing entry that was not referred to by id, it is deleted, including having
33
+ # it removed from any service line pointers.
34
+ attr_reader :other_diagnosis_information
35
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis] Set & Replace semantics. If the id matches the existing admitting_diagnosis,
36
+ # that diagnosis is updated in place. If the entry has no id, it is created
37
+ # newly, its id will be in the response, and any existing principal_diagnosis is
38
+ # deleted. This object only applies to 837i institutional claim forms.
27
39
  attr_reader :admitting_diagnosis
28
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>]
40
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>] Set & Replace semantics. For each entry that has an id, any previous
41
+ # patient_reasons_for_visit by that id is updated in place. For each entry
42
+ # without an id, it is created newly and its id will be in the response. For each
43
+ # existing entry that was not referred to by id, it is deleted. This object only
44
+ # applies to 837i institutional claim forms.
29
45
  attr_reader :patient_reasons_for_visit
30
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>]
46
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>] Set & Replace semantics. For each entry that has an id, any previous
47
+ # external_causes_of_injury by that id is updated in place. For each entry
48
+ # without an id, it is created newly and its id will be in the response. For each
49
+ # existing entry that was not referred to by id, it is deleted. This object only
50
+ # applies to 837i institutional claim forms.
31
51
  attr_reader :external_causes_of_injury
32
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup]
52
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup] Set & Replace semantics. If the id matches the existing
53
+ # diagnosis_related_groups, that diagnosis_related_group is updated in place. If
54
+ # the entry has no id, it is created newly, its id will be in the response, and
55
+ # any existing diagnosis_related_groups is deleted. This object only applies to
56
+ # 837i institutional claim forms.
33
57
  attr_reader :diagnosis_related_groups
34
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>]
35
- attr_reader :other_diagnosis_information
36
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation]
58
+ # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation] Set & Replace semantics. If the id matches the existing principal_procedure,
59
+ # that principal_procedure is updated in place. If the entry has no id, it is
60
+ # created newly, its id will be in the response, and any existing
61
+ # principal_procedure is deleted. This object only applies to 837i institutional
62
+ # claim forms.
37
63
  attr_reader :principal_procedure
38
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>]
64
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>] Set & Replace semantics. For each entry that has an id, any previous
65
+ # other_procedure_information by that id is updated in place. For each entry
66
+ # without an id, it is created newly and its id will be in the response. For each
67
+ # existing entry that was not referred to by id, it is deleted. This object only
68
+ # applies to 837i institutional claim forms.
39
69
  attr_reader :other_procedure_information
40
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>]
70
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>] Set & Replace semantics. For each entry that has an id, any previous
71
+ # occurrence_span_information by that id is updated in place. For each entry
72
+ # without an id, it is created newly and its id will be in the response. For each
73
+ # existing entry that was not referred to by id, it is deleted. This object only
74
+ # applies to 837i institutional claim forms.
41
75
  attr_reader :occurrence_span_information
42
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>]
76
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>] Set & Replace semantics. For each entry that has an id, any previous
77
+ # occurrence_information by that id is updated in place. For each entry without
78
+ # an id, it is created newly and its id will be in the response. For each
79
+ # existing entry that was not referred to by id, it is deleted. This object only
80
+ # applies to 837i institutional claim forms.
43
81
  attr_reader :occurrence_information
44
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>]
82
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>] Set & Replace semantics. For each entry that has an id, any previous
83
+ # treatment_code_information by that id is updated in place. For each entry
84
+ # without an id, it is created newly and its id will be in the response. For each
85
+ # existing entry that was not referred to by id, it is deleted. This object only
86
+ # applies to 837i institutional claim forms.
45
87
  attr_reader :treatment_code_information
46
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>]
88
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>] Set & Replace semantics. For each entry that has an id, any previous
89
+ # value_information by that id is updated in place. For each entry without an id,
90
+ # it is created newly and its id will be in the response. For each existing entry
91
+ # that was not referred to by id, it is deleted. This object only applies to 837i
92
+ # institutional claim forms.
47
93
  attr_reader :value_information
48
- # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>]
94
+ # @return [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>] Set & Replace semantics. For each entry that has an id, any previous
95
+ # condition_information by that id is updated in place. For each entry without an
96
+ # id, it is created newly and its id will be in the response. For each existing
97
+ # entry that was not referred to by id, it is deleted. This object only applies to
98
+ # 837i institutional claim forms.
49
99
  attr_reader :condition_information
50
100
  # @return [OpenStruct] Additional properties unmapped to the current class definition
51
101
  attr_reader :additional_properties
@@ -55,29 +105,79 @@ module CandidApiClient
55
105
 
56
106
  OMIT = Object.new
57
107
 
58
- # @param principal_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis]
59
- # @param admitting_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis]
60
- # @param patient_reasons_for_visit [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>]
61
- # @param external_causes_of_injury [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>]
62
- # @param diagnosis_related_groups [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup]
63
- # @param other_diagnosis_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>]
64
- # @param principal_procedure [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation]
65
- # @param other_procedure_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>]
66
- # @param occurrence_span_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>]
67
- # @param occurrence_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>]
68
- # @param treatment_code_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>]
69
- # @param value_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>]
70
- # @param condition_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>]
108
+ # @param principal_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis] Set & Replace semantics. If the id matches the existing principal_diagnosis,
109
+ # that diagnosis is updated in place. If the entry has no id, it is created
110
+ # newly, its id will be in the response, and any existing principal_diagnosis is
111
+ # deleted and removed from any service line pointers.
112
+ # @param other_diagnosis_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation>] Set & Replace semantics. For each entry that has an id, any previous
113
+ # other_diagnosis_information by that id is updated in place. For each entry
114
+ # without an id, it is created newly and its id will be in the response. For each
115
+ # existing entry that was not referred to by id, it is deleted, including having
116
+ # it removed from any service line pointers.
117
+ # @param admitting_diagnosis [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis] Set & Replace semantics. If the id matches the existing admitting_diagnosis,
118
+ # that diagnosis is updated in place. If the entry has no id, it is created
119
+ # newly, its id will be in the response, and any existing principal_diagnosis is
120
+ # deleted. This object only applies to 837i institutional claim forms.
121
+ # @param patient_reasons_for_visit [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::PatientReasonForVisit>] Set & Replace semantics. For each entry that has an id, any previous
122
+ # patient_reasons_for_visit by that id is updated in place. For each entry
123
+ # without an id, it is created newly and its id will be in the response. For each
124
+ # existing entry that was not referred to by id, it is deleted. This object only
125
+ # applies to 837i institutional claim forms.
126
+ # @param external_causes_of_injury [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ExternalCauseOfInjury>] Set & Replace semantics. For each entry that has an id, any previous
127
+ # external_causes_of_injury by that id is updated in place. For each entry
128
+ # without an id, it is created newly and its id will be in the response. For each
129
+ # existing entry that was not referred to by id, it is deleted. This object only
130
+ # applies to 837i institutional claim forms.
131
+ # @param diagnosis_related_groups [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup] Set & Replace semantics. If the id matches the existing
132
+ # diagnosis_related_groups, that diagnosis_related_group is updated in place. If
133
+ # the entry has no id, it is created newly, its id will be in the response, and
134
+ # any existing diagnosis_related_groups is deleted. This object only applies to
135
+ # 837i institutional claim forms.
136
+ # @param principal_procedure [CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation] Set & Replace semantics. If the id matches the existing principal_procedure,
137
+ # that principal_procedure is updated in place. If the entry has no id, it is
138
+ # created newly, its id will be in the response, and any existing
139
+ # principal_procedure is deleted. This object only applies to 837i institutional
140
+ # claim forms.
141
+ # @param other_procedure_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OtherProcedureInformation>] Set & Replace semantics. For each entry that has an id, any previous
142
+ # other_procedure_information by that id is updated in place. For each entry
143
+ # without an id, it is created newly and its id will be in the response. For each
144
+ # existing entry that was not referred to by id, it is deleted. This object only
145
+ # applies to 837i institutional claim forms.
146
+ # @param occurrence_span_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceSpanInformation>] Set & Replace semantics. For each entry that has an id, any previous
147
+ # occurrence_span_information by that id is updated in place. For each entry
148
+ # without an id, it is created newly and its id will be in the response. For each
149
+ # existing entry that was not referred to by id, it is deleted. This object only
150
+ # applies to 837i institutional claim forms.
151
+ # @param occurrence_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation>] Set & Replace semantics. For each entry that has an id, any previous
152
+ # occurrence_information by that id is updated in place. For each entry without
153
+ # an id, it is created newly and its id will be in the response. For each
154
+ # existing entry that was not referred to by id, it is deleted. This object only
155
+ # applies to 837i institutional claim forms.
156
+ # @param treatment_code_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::TreatmentCodeInformation>] Set & Replace semantics. For each entry that has an id, any previous
157
+ # treatment_code_information by that id is updated in place. For each entry
158
+ # without an id, it is created newly and its id will be in the response. For each
159
+ # existing entry that was not referred to by id, it is deleted. This object only
160
+ # applies to 837i institutional claim forms.
161
+ # @param value_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ValueInformation>] Set & Replace semantics. For each entry that has an id, any previous
162
+ # value_information by that id is updated in place. For each entry without an id,
163
+ # it is created newly and its id will be in the response. For each existing entry
164
+ # that was not referred to by id, it is deleted. This object only applies to 837i
165
+ # institutional claim forms.
166
+ # @param condition_information [Array<CandidApiClient::HealthCareCodeInformation::V1::Types::ConditionInformation>] Set & Replace semantics. For each entry that has an id, any previous
167
+ # condition_information by that id is updated in place. For each entry without an
168
+ # id, it is created newly and its id will be in the response. For each existing
169
+ # entry that was not referred to by id, it is deleted. This object only applies to
170
+ # 837i institutional claim forms.
71
171
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
72
172
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::HealthCareCodeInformationUpdate]
73
- def initialize(principal_diagnosis: OMIT, admitting_diagnosis: OMIT, patient_reasons_for_visit: OMIT,
74
- external_causes_of_injury: OMIT, diagnosis_related_groups: OMIT, other_diagnosis_information: OMIT, principal_procedure: OMIT, other_procedure_information: OMIT, occurrence_span_information: OMIT, occurrence_information: OMIT, treatment_code_information: OMIT, value_information: OMIT, condition_information: OMIT, additional_properties: nil)
173
+ def initialize(principal_diagnosis: OMIT, other_diagnosis_information: OMIT, admitting_diagnosis: OMIT,
174
+ patient_reasons_for_visit: OMIT, external_causes_of_injury: OMIT, diagnosis_related_groups: OMIT, principal_procedure: OMIT, other_procedure_information: OMIT, occurrence_span_information: OMIT, occurrence_information: OMIT, treatment_code_information: OMIT, value_information: OMIT, condition_information: OMIT, additional_properties: nil)
75
175
  @principal_diagnosis = principal_diagnosis if principal_diagnosis != OMIT
176
+ @other_diagnosis_information = other_diagnosis_information if other_diagnosis_information != OMIT
76
177
  @admitting_diagnosis = admitting_diagnosis if admitting_diagnosis != OMIT
77
178
  @patient_reasons_for_visit = patient_reasons_for_visit if patient_reasons_for_visit != OMIT
78
179
  @external_causes_of_injury = external_causes_of_injury if external_causes_of_injury != OMIT
79
180
  @diagnosis_related_groups = diagnosis_related_groups if diagnosis_related_groups != OMIT
80
- @other_diagnosis_information = other_diagnosis_information if other_diagnosis_information != OMIT
81
181
  @principal_procedure = principal_procedure if principal_procedure != OMIT
82
182
  @other_procedure_information = other_procedure_information if other_procedure_information != OMIT
83
183
  @occurrence_span_information = occurrence_span_information if occurrence_span_information != OMIT
@@ -88,11 +188,11 @@ module CandidApiClient
88
188
  @additional_properties = additional_properties
89
189
  @_field_set = {
90
190
  "principal_diagnosis": principal_diagnosis,
191
+ "other_diagnosis_information": other_diagnosis_information,
91
192
  "admitting_diagnosis": admitting_diagnosis,
92
193
  "patient_reasons_for_visit": patient_reasons_for_visit,
93
194
  "external_causes_of_injury": external_causes_of_injury,
94
195
  "diagnosis_related_groups": diagnosis_related_groups,
95
- "other_diagnosis_information": other_diagnosis_information,
96
196
  "principal_procedure": principal_procedure,
97
197
  "other_procedure_information": other_procedure_information,
98
198
  "occurrence_span_information": occurrence_span_information,
@@ -118,6 +218,10 @@ module CandidApiClient
118
218
  principal_diagnosis = parsed_json["principal_diagnosis"].to_json
119
219
  principal_diagnosis = CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis.from_json(json_object: principal_diagnosis)
120
220
  end
221
+ other_diagnosis_information = parsed_json["other_diagnosis_information"]&.map do |item|
222
+ item = item.to_json
223
+ CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation.from_json(json_object: item)
224
+ end
121
225
  if parsed_json["admitting_diagnosis"].nil?
122
226
  admitting_diagnosis = nil
123
227
  else
@@ -138,10 +242,6 @@ module CandidApiClient
138
242
  diagnosis_related_groups = parsed_json["diagnosis_related_groups"].to_json
139
243
  diagnosis_related_groups = CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup.from_json(json_object: diagnosis_related_groups)
140
244
  end
141
- other_diagnosis_information = parsed_json["other_diagnosis_information"]&.map do |item|
142
- item = item.to_json
143
- CandidApiClient::HealthCareCodeInformation::V1::Types::OtherDiagnosisInformation.from_json(json_object: item)
144
- end
145
245
  if parsed_json["principal_procedure"].nil?
146
246
  principal_procedure = nil
147
247
  else
@@ -174,11 +274,11 @@ module CandidApiClient
174
274
  end
175
275
  new(
176
276
  principal_diagnosis: principal_diagnosis,
277
+ other_diagnosis_information: other_diagnosis_information,
177
278
  admitting_diagnosis: admitting_diagnosis,
178
279
  patient_reasons_for_visit: patient_reasons_for_visit,
179
280
  external_causes_of_injury: external_causes_of_injury,
180
281
  diagnosis_related_groups: diagnosis_related_groups,
181
- other_diagnosis_information: other_diagnosis_information,
182
282
  principal_procedure: principal_procedure,
183
283
  other_procedure_information: other_procedure_information,
184
284
  occurrence_span_information: occurrence_span_information,
@@ -205,11 +305,11 @@ module CandidApiClient
205
305
  # @return [Void]
206
306
  def self.validate_raw(obj:)
207
307
  obj.principal_diagnosis.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalDiagnosis.validate_raw(obj: obj.principal_diagnosis)
308
+ obj.other_diagnosis_information&.is_a?(Array) != false || raise("Passed value for field obj.other_diagnosis_information is not the expected type, validation failed.")
208
309
  obj.admitting_diagnosis.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearAdmittingDiagnosis.validate_raw(obj: obj.admitting_diagnosis)
209
310
  obj.patient_reasons_for_visit&.is_a?(Array) != false || raise("Passed value for field obj.patient_reasons_for_visit is not the expected type, validation failed.")
210
311
  obj.external_causes_of_injury&.is_a?(Array) != false || raise("Passed value for field obj.external_causes_of_injury is not the expected type, validation failed.")
211
312
  obj.diagnosis_related_groups.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearDiagnosisRelatedGroup.validate_raw(obj: obj.diagnosis_related_groups)
212
- obj.other_diagnosis_information&.is_a?(Array) != false || raise("Passed value for field obj.other_diagnosis_information is not the expected type, validation failed.")
213
313
  obj.principal_procedure.nil? || CandidApiClient::HealthCareCodeInformation::V1::Types::SetOrClearPrincipalProcedureInformation.validate_raw(obj: obj.principal_procedure)
214
314
  obj.other_procedure_information&.is_a?(Array) != false || raise("Passed value for field obj.other_procedure_information is not the expected type, validation failed.")
215
315
  obj.occurrence_span_information&.is_a?(Array) != false || raise("Passed value for field obj.occurrence_span_information is not the expected type, validation failed.")
@@ -4,6 +4,7 @@ module CandidApiClient
4
4
  module HealthCareCodeInformation
5
5
  module V1
6
6
  module Types
7
+ # An enumeration.
7
8
  class OccurrenceCode
8
9
  C_01 = "01"
9
10
  C_02 = "02"
@@ -3,8 +3,6 @@
3
3
  require_relative "occurrence_information_code_qualifier"
4
4
  require_relative "occurrence_code"
5
5
  require "date"
6
- require_relative "code_list_qualifier_code"
7
- require_relative "date_time_period_format_qualifier"
8
6
  require "ostruct"
9
7
  require "json"
10
8
 
@@ -18,7 +16,10 @@ module CandidApiClient
18
16
  attr_reader :occurrence_code_qualifier
19
17
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceCode]
20
18
  attr_reader :occurrence_code
21
- # @return [DateTime]
19
+ # @return [DateTime] An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
20
+ # For example, 2017-07-21T17:32:28Z.
21
+ # In practice, only the date portion of this is used for claim submission, so
22
+ # midnight time is fine.
22
23
  attr_reader :occurrence_date
23
24
  # @return [String] The id of this health care code information if it is already stored.
24
25
  # If this is not set, this is referring to a new health care code information to
@@ -31,50 +32,6 @@ module CandidApiClient
31
32
  # This will be set by the server in responses, but clients are not expected to set
32
33
  # it.
33
34
  attr_reader :encounter_id
34
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
35
- attr_reader :code_list_qualifier
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_1
41
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
42
- # You do not need to set this field generally, instead it is provided as advisory
43
- # context on how this HealthCareCodeInformation's data will be available in
44
- # reporting.
45
- attr_reader :industry_code_2
46
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
47
- # You do not need to set this field generally, instead it is provided as advisory
48
- # context on how this HealthCareCodeInformation's data will be available in
49
- # reporting.
50
- attr_reader :industry_code_3
51
- # @return [String] A code string whose interpretation depends on the code_list_qualifier being set.
52
- # You do not need to set this field generally, instead it is provided as advisory
53
- # context on how this HealthCareCodeInformation's data will be available in
54
- # reporting.
55
- attr_reader :industry_code_4
56
- # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
57
- # as part of claim process.
58
- # You do not need to set this field generally, instead it is provided as advisory
59
- # context on how this HealthCareCodeInformation's data will be available in
60
- # reporting.
61
- attr_reader :date_time_period_format_qualifier
62
- # @return [String] A string, formatted according to date_time_period_format_qualifier, which
63
- # ultimately represents the date time period in which an information object
64
- # is covering.
65
- # You do not need to set this field generally, instead it is provided as advisory
66
- # context on how this HealthCareCodeInformation's data will be available in
67
- # reporting.
68
- attr_reader :date_time_period
69
- # @return [String] A decimal used to represent ValueInformation results.
70
- # 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 :monetary_amount
74
- # @return [String] You do not need to set this field generally, instead it is provided as advisory
75
- # context on how this HealthCareCodeInformation's data will be available in
76
- # reporting.
77
- attr_reader :quantity
78
35
  # @return [OpenStruct] Additional properties unmapped to the current class definition
79
36
  attr_reader :additional_properties
80
37
  # @return [Object]
@@ -85,7 +42,10 @@ module CandidApiClient
85
42
 
86
43
  # @param occurrence_code_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformationCodeQualifier]
87
44
  # @param occurrence_code [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceCode]
88
- # @param occurrence_date [DateTime]
45
+ # @param occurrence_date [DateTime] An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
46
+ # For example, 2017-07-21T17:32:28Z.
47
+ # In practice, only the date portion of this is used for claim submission, so
48
+ # midnight time is fine.
89
49
  # @param id [String] The id of this health care code information if it is already stored.
90
50
  # If this is not set, this is referring to a new health care code information to
91
51
  # be added
@@ -95,77 +55,22 @@ module CandidApiClient
95
55
  # @param encounter_id [String] The encounter_id of this health care code information if it is already stored.
96
56
  # This will be set by the server in responses, but clients are not expected to set
97
57
  # it.
98
- # @param code_list_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::CodeListQualifierCode]
99
- # @param industry_code_1 [String] A code string whose interpretation depends on the code_list_qualifier being set.
100
- # You do not need to set this field generally, instead it is provided as advisory
101
- # context on how this HealthCareCodeInformation's data will be available in
102
- # reporting.
103
- # @param industry_code_2 [String] A code string whose interpretation depends on the code_list_qualifier being set.
104
- # You do not need to set this field generally, instead it is provided as advisory
105
- # context on how this HealthCareCodeInformation's data will be available in
106
- # reporting.
107
- # @param industry_code_3 [String] A code string whose interpretation depends on the code_list_qualifier being set.
108
- # You do not need to set this field generally, instead it is provided as advisory
109
- # context on how this HealthCareCodeInformation's data will be available in
110
- # reporting.
111
- # @param industry_code_4 [String] A code string whose interpretation depends on the code_list_qualifier being set.
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_format_qualifier [CandidApiClient::HealthCareCodeInformation::V1::Types::DateTimePeriodFormatQualifier] Controls how the date_time_period field is interpreted and is submitted
116
- # as part of claim process.
117
- # You do not need to set this field generally, instead it is provided as advisory
118
- # context on how this HealthCareCodeInformation's data will be available in
119
- # reporting.
120
- # @param date_time_period [String] A string, formatted according to date_time_period_format_qualifier, which
121
- # ultimately represents the date time period in which an information object
122
- # is covering.
123
- # You do not need to set this field generally, instead it is provided as advisory
124
- # context on how this HealthCareCodeInformation's data will be available in
125
- # reporting.
126
- # @param monetary_amount [String] A decimal used to represent ValueInformation results.
127
- # You do not need to set this field generally, instead it is provided as advisory
128
- # context on how this HealthCareCodeInformation's data will be available in
129
- # reporting.
130
- # @param quantity [String] You do not need to set this field generally, instead it is provided as advisory
131
- # context on how this HealthCareCodeInformation's data will be available in
132
- # reporting.
133
58
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
134
59
  # @return [CandidApiClient::HealthCareCodeInformation::V1::Types::OccurrenceInformation]
135
60
  def initialize(occurrence_code_qualifier:, occurrence_code:, occurrence_date:, id: OMIT, encounter_id: OMIT,
136
- 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)
61
+ additional_properties: nil)
137
62
  @occurrence_code_qualifier = occurrence_code_qualifier
138
63
  @occurrence_code = occurrence_code
139
64
  @occurrence_date = occurrence_date
140
65
  @id = id if id != OMIT
141
66
  @encounter_id = encounter_id if encounter_id != OMIT
142
- @code_list_qualifier = code_list_qualifier if code_list_qualifier != OMIT
143
- @industry_code_1 = industry_code_1 if industry_code_1 != OMIT
144
- @industry_code_2 = industry_code_2 if industry_code_2 != OMIT
145
- @industry_code_3 = industry_code_3 if industry_code_3 != OMIT
146
- @industry_code_4 = industry_code_4 if industry_code_4 != OMIT
147
- if date_time_period_format_qualifier != OMIT
148
- @date_time_period_format_qualifier = date_time_period_format_qualifier
149
- end
150
- @date_time_period = date_time_period if date_time_period != OMIT
151
- @monetary_amount = monetary_amount if monetary_amount != OMIT
152
- @quantity = quantity if quantity != OMIT
153
67
  @additional_properties = additional_properties
154
68
  @_field_set = {
155
69
  "occurrence_code_qualifier": occurrence_code_qualifier,
156
70
  "occurrence_code": occurrence_code,
157
71
  "occurrence_date": occurrence_date,
158
72
  "id": id,
159
- "encounter_id": encounter_id,
160
- "code_list_qualifier": code_list_qualifier,
161
- "industry_code_1": industry_code_1,
162
- "industry_code_2": industry_code_2,
163
- "industry_code_3": industry_code_3,
164
- "industry_code_4": industry_code_4,
165
- "date_time_period_format_qualifier": date_time_period_format_qualifier,
166
- "date_time_period": date_time_period,
167
- "monetary_amount": monetary_amount,
168
- "quantity": quantity
73
+ "encounter_id": encounter_id
169
74
  }.reject do |_k, v|
170
75
  v == OMIT
171
76
  end
@@ -185,30 +90,12 @@ module CandidApiClient
185
90
  end
186
91
  id = struct["id"]
187
92
  encounter_id = struct["encounter_id"]
188
- code_list_qualifier = struct["code_list_qualifier"]
189
- industry_code_1 = struct["industry_code_1"]
190
- industry_code_2 = struct["industry_code_2"]
191
- industry_code_3 = struct["industry_code_3"]
192
- industry_code_4 = struct["industry_code_4"]
193
- date_time_period_format_qualifier = struct["date_time_period_format_qualifier"]
194
- date_time_period = struct["date_time_period"]
195
- monetary_amount = struct["monetary_amount"]
196
- quantity = struct["quantity"]
197
93
  new(
198
94
  occurrence_code_qualifier: occurrence_code_qualifier,
199
95
  occurrence_code: occurrence_code,
200
96
  occurrence_date: occurrence_date,
201
97
  id: id,
202
98
  encounter_id: encounter_id,
203
- code_list_qualifier: code_list_qualifier,
204
- industry_code_1: industry_code_1,
205
- industry_code_2: industry_code_2,
206
- industry_code_3: industry_code_3,
207
- industry_code_4: industry_code_4,
208
- date_time_period_format_qualifier: date_time_period_format_qualifier,
209
- date_time_period: date_time_period,
210
- monetary_amount: monetary_amount,
211
- quantity: quantity,
212
99
  additional_properties: struct
213
100
  )
214
101
  end
@@ -232,15 +119,6 @@ module CandidApiClient
232
119
  obj.occurrence_date.is_a?(DateTime) != false || raise("Passed value for field obj.occurrence_date is not the expected type, validation failed.")
233
120
  obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
234
121
  obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
235
- 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.")
236
- obj.industry_code_1&.is_a?(String) != false || raise("Passed value for field obj.industry_code_1 is not the expected type, validation failed.")
237
- obj.industry_code_2&.is_a?(String) != false || raise("Passed value for field obj.industry_code_2 is not the expected type, validation failed.")
238
- obj.industry_code_3&.is_a?(String) != false || raise("Passed value for field obj.industry_code_3 is not the expected type, validation failed.")
239
- obj.industry_code_4&.is_a?(String) != false || raise("Passed value for field obj.industry_code_4 is not the expected type, validation failed.")
240
- 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.")
241
- obj.date_time_period&.is_a?(String) != false || raise("Passed value for field obj.date_time_period is not the expected type, validation failed.")
242
- obj.monetary_amount&.is_a?(String) != false || raise("Passed value for field obj.monetary_amount is not the expected type, validation failed.")
243
- obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
244
122
  end
245
123
  end
246
124
  end
@@ -4,6 +4,7 @@ module CandidApiClient
4
4
  module HealthCareCodeInformation
5
5
  module V1
6
6
  module Types
7
+ # An enumeration.
7
8
  class OccurrenceSpanCode
8
9
  C_70 = "70"
9
10
  C_71 = "71"
@@ -14,10 +15,14 @@ module CandidApiClient
14
15
  C_76 = "76"
15
16
  C_77 = "77"
16
17
  C_78 = "78"
17
- C_79 = "79"
18
18
  C_80 = "80"
19
19
  C_81 = "81"
20
20
  C_82 = "82"
21
+ CM_0 = "M0"
22
+ CM_1 = "M1"
23
+ CM_2 = "M2"
24
+ CM_3 = "M3"
25
+ CM_4 = "M4"
21
26
  end
22
27
  end
23
28
  end