candidhealth 1.8.0 → 1.9.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/auth/default/client.rb +0 -74
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +71 -4
  4. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +33 -2
  5. data/lib/candidhealth/diagnoses/client.rb +2 -2
  6. data/lib/candidhealth/encounters/v_4/client.rb +483 -2510
  7. data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
  8. data/lib/candidhealth/guarantor/v_1/client.rb +4 -0
  9. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +10 -2
  10. data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +10 -2
  11. data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +10 -2
  12. data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +10 -2
  13. data/lib/candidhealth/health_care_code_information/v_1/client.rb +2 -74
  14. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
  15. data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
  16. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
  17. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
  18. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
  19. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
  20. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
  21. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
  22. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
  23. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
  24. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
  25. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
  26. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
  27. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
  28. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
  29. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
  30. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
  31. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
  32. data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
  33. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
  34. data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
  35. data/lib/candidhealth/individual/types/patient.rb +10 -2
  36. data/lib/candidhealth/individual/types/patient_create.rb +9 -1
  37. data/lib/candidhealth/individual/types/patient_update.rb +9 -1
  38. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +9 -1
  39. data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
  40. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
  41. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
  42. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
  43. data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
  44. data/lib/candidhealth/payers/v_4/types/clearinghouse_payer_info.rb +36 -2
  45. data/lib/candidhealth/payers/v_4/types/payer.rb +15 -7
  46. data/lib/candidhealth/payers/v_4/types/payer_ids.rb +12 -35
  47. data/lib/candidhealth/payers/v_4/types/primary_payer_ids.rb +84 -0
  48. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
  49. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
  50. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
  51. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
  52. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
  53. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  54. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
  55. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
  56. data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
  57. data/lib/requests.rb +2 -2
  58. data/lib/types_export.rb +2 -21
  59. metadata +4 -23
  60. data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
  61. data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
  62. data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
  63. data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
  64. data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
  65. data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
  66. data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
  67. data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
  68. data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
  69. data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
  70. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
  71. data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
  72. data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
  73. data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
  74. data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
  75. data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
  76. data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
  77. data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
  78. data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
  79. data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
  80. data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
@@ -23,6 +23,8 @@ module CandidApiClient
23
23
  attr_reader :email
24
24
  # @return [Boolean]
25
25
  attr_reader :email_consent
26
+ # @return [Boolean]
27
+ attr_reader :auto_charge_consent
26
28
  # @return [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
27
29
  attr_reader :non_insurance_payers
28
30
  # @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
@@ -54,6 +56,7 @@ module CandidApiClient
54
56
  # @param phone_consent [Boolean]
55
57
  # @param email [String]
56
58
  # @param email_consent [Boolean]
59
+ # @param auto_charge_consent [Boolean]
57
60
  # @param non_insurance_payers [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
58
61
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
59
62
  # @param external_id [String] The ID used to identify this individual in your system. For example, your
@@ -66,13 +69,14 @@ module CandidApiClient
66
69
  # @param gender [CandidApiClient::Individual::Types::Gender]
67
70
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
68
71
  # @return [CandidApiClient::Individual::Types::Patient]
69
- def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:,
70
- non_insurance_payers_info:, external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
72
+ def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, auto_charge_consent:,
73
+ non_insurance_payers:, non_insurance_payers_info:, external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
71
74
  @individual_id = individual_id
72
75
  @phone_numbers = phone_numbers
73
76
  @phone_consent = phone_consent
74
77
  @email = email if email != OMIT
75
78
  @email_consent = email_consent
79
+ @auto_charge_consent = auto_charge_consent
76
80
  @non_insurance_payers = non_insurance_payers
77
81
  @non_insurance_payers_info = non_insurance_payers_info
78
82
  @external_id = external_id
@@ -88,6 +92,7 @@ module CandidApiClient
88
92
  "phone_consent": phone_consent,
89
93
  "email": email,
90
94
  "email_consent": email_consent,
95
+ "auto_charge_consent": auto_charge_consent,
91
96
  "non_insurance_payers": non_insurance_payers,
92
97
  "non_insurance_payers_info": non_insurance_payers_info,
93
98
  "external_id": external_id,
@@ -116,6 +121,7 @@ module CandidApiClient
116
121
  phone_consent = struct["phone_consent"]
117
122
  email = struct["email"]
118
123
  email_consent = struct["email_consent"]
124
+ auto_charge_consent = struct["auto_charge_consent"]
119
125
  non_insurance_payers = parsed_json["non_insurance_payers"]&.map do |item|
120
126
  item = item.to_json
121
127
  CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: item)
@@ -141,6 +147,7 @@ module CandidApiClient
141
147
  phone_consent: phone_consent,
142
148
  email: email,
143
149
  email_consent: email_consent,
150
+ auto_charge_consent: auto_charge_consent,
144
151
  non_insurance_payers: non_insurance_payers,
145
152
  non_insurance_payers_info: non_insurance_payers_info,
146
153
  external_id: external_id,
@@ -172,6 +179,7 @@ module CandidApiClient
172
179
  obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
173
180
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
174
181
  obj.email_consent.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
182
+ obj.auto_charge_consent.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
175
183
  obj.non_insurance_payers.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
176
184
  obj.non_insurance_payers_info.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
177
185
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
@@ -24,6 +24,8 @@ module CandidApiClient
24
24
  attr_reader :non_insurance_payers_info
25
25
  # @return [Boolean] Defaults to false
26
26
  attr_reader :email_consent
27
+ # @return [Boolean] Defaults to false
28
+ attr_reader :auto_charge_consent
27
29
  # @return [String] The ID used to identify this individual in your system. For example, your
28
30
  # internal patient ID or an EHR patient ID.
29
31
  attr_reader :external_id
@@ -52,6 +54,7 @@ module CandidApiClient
52
54
  # @param non_insurance_payers [Array<String>]
53
55
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>]
54
56
  # @param email_consent [Boolean] Defaults to false
57
+ # @param auto_charge_consent [Boolean] Defaults to false
55
58
  # @param external_id [String] The ID used to identify this individual in your system. For example, your
56
59
  # internal patient ID or an EHR patient ID.
57
60
  # @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
@@ -63,13 +66,14 @@ module CandidApiClient
63
66
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
64
67
  # @return [CandidApiClient::Individual::Types::PatientCreate]
65
68
  def initialize(external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, non_insurance_payers: OMIT,
66
- non_insurance_payers_info: OMIT, email_consent: OMIT, additional_properties: nil)
69
+ non_insurance_payers_info: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, additional_properties: nil)
67
70
  @phone_numbers = phone_numbers if phone_numbers != OMIT
68
71
  @phone_consent = phone_consent if phone_consent != OMIT
69
72
  @email = email if email != OMIT
70
73
  @non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
71
74
  @non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
72
75
  @email_consent = email_consent if email_consent != OMIT
76
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
73
77
  @external_id = external_id
74
78
  @date_of_birth = date_of_birth
75
79
  @address = address
@@ -84,6 +88,7 @@ module CandidApiClient
84
88
  "non_insurance_payers": non_insurance_payers,
85
89
  "non_insurance_payers_info": non_insurance_payers_info,
86
90
  "email_consent": email_consent,
91
+ "auto_charge_consent": auto_charge_consent,
87
92
  "external_id": external_id,
88
93
  "date_of_birth": date_of_birth,
89
94
  "address": address,
@@ -114,6 +119,7 @@ module CandidApiClient
114
119
  CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate.from_json(json_object: item)
115
120
  end
116
121
  email_consent = struct["email_consent"]
122
+ auto_charge_consent = struct["auto_charge_consent"]
117
123
  external_id = struct["external_id"]
118
124
  date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
119
125
  if parsed_json["address"].nil?
@@ -132,6 +138,7 @@ module CandidApiClient
132
138
  non_insurance_payers: non_insurance_payers,
133
139
  non_insurance_payers_info: non_insurance_payers_info,
134
140
  email_consent: email_consent,
141
+ auto_charge_consent: auto_charge_consent,
135
142
  external_id: external_id,
136
143
  date_of_birth: date_of_birth,
137
144
  address: address,
@@ -162,6 +169,7 @@ module CandidApiClient
162
169
  obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
163
170
  obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
164
171
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
172
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
165
173
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
166
174
  obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
167
175
  CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
@@ -34,6 +34,8 @@ module CandidApiClient
34
34
  attr_reader :email
35
35
  # @return [Boolean]
36
36
  attr_reader :email_consent
37
+ # @return [Boolean]
38
+ attr_reader :auto_charge_consent
37
39
  # @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
38
40
  # new list if populated.
39
41
  attr_reader :non_insurance_payers
@@ -60,6 +62,7 @@ module CandidApiClient
60
62
  # @param phone_consent [Boolean]
61
63
  # @param email [String]
62
64
  # @param email_consent [Boolean]
65
+ # @param auto_charge_consent [Boolean]
63
66
  # @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
64
67
  # new list if populated.
65
68
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
@@ -67,7 +70,7 @@ module CandidApiClient
67
70
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
68
71
  # @return [CandidApiClient::Individual::Types::PatientUpdate]
69
72
  def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
70
- address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
73
+ address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
71
74
  @first_name = first_name if first_name != OMIT
72
75
  @last_name = last_name if last_name != OMIT
73
76
  @gender = gender if gender != OMIT
@@ -78,6 +81,7 @@ module CandidApiClient
78
81
  @phone_consent = phone_consent if phone_consent != OMIT
79
82
  @email = email if email != OMIT
80
83
  @email_consent = email_consent if email_consent != OMIT
84
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
81
85
  @non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
82
86
  @non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
83
87
  @additional_properties = additional_properties
@@ -92,6 +96,7 @@ module CandidApiClient
92
96
  "phone_consent": phone_consent,
93
97
  "email": email,
94
98
  "email_consent": email_consent,
99
+ "auto_charge_consent": auto_charge_consent,
95
100
  "non_insurance_payers": non_insurance_payers,
96
101
  "non_insurance_payers_info": non_insurance_payers_info
97
102
  }.reject do |_k, v|
@@ -124,6 +129,7 @@ module CandidApiClient
124
129
  phone_consent = struct["phone_consent"]
125
130
  email = struct["email"]
126
131
  email_consent = struct["email_consent"]
132
+ auto_charge_consent = struct["auto_charge_consent"]
127
133
  non_insurance_payers = struct["non_insurance_payers"]
128
134
  non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
129
135
  item = item.to_json
@@ -140,6 +146,7 @@ module CandidApiClient
140
146
  phone_consent: phone_consent,
141
147
  email: email,
142
148
  email_consent: email_consent,
149
+ auto_charge_consent: auto_charge_consent,
143
150
  non_insurance_payers: non_insurance_payers,
144
151
  non_insurance_payers_info: non_insurance_payers_info,
145
152
  additional_properties: struct
@@ -170,6 +177,7 @@ module CandidApiClient
170
177
  obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
171
178
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
172
179
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
180
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
173
181
  obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
174
182
  obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
175
183
  end
@@ -34,6 +34,8 @@ module CandidApiClient
34
34
  attr_reader :email
35
35
  # @return [Boolean]
36
36
  attr_reader :email_consent
37
+ # @return [Boolean]
38
+ attr_reader :auto_charge_consent
37
39
  # @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
38
40
  # new list if populated.
39
41
  attr_reader :non_insurance_payers
@@ -60,6 +62,7 @@ module CandidApiClient
60
62
  # @param phone_consent [Boolean]
61
63
  # @param email [String]
62
64
  # @param email_consent [Boolean]
65
+ # @param auto_charge_consent [Boolean]
63
66
  # @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
64
67
  # new list if populated.
65
68
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>] On update, we will replace the existing list of non-insurance payers with the
@@ -67,7 +70,7 @@ module CandidApiClient
67
70
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
68
71
  # @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress]
69
72
  def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
70
- address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
73
+ address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
71
74
  @first_name = first_name if first_name != OMIT
72
75
  @last_name = last_name if last_name != OMIT
73
76
  @gender = gender if gender != OMIT
@@ -78,6 +81,7 @@ module CandidApiClient
78
81
  @phone_consent = phone_consent if phone_consent != OMIT
79
82
  @email = email if email != OMIT
80
83
  @email_consent = email_consent if email_consent != OMIT
84
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
81
85
  @non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
82
86
  @non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
83
87
  @additional_properties = additional_properties
@@ -92,6 +96,7 @@ module CandidApiClient
92
96
  "phone_consent": phone_consent,
93
97
  "email": email,
94
98
  "email_consent": email_consent,
99
+ "auto_charge_consent": auto_charge_consent,
95
100
  "non_insurance_payers": non_insurance_payers,
96
101
  "non_insurance_payers_info": non_insurance_payers_info
97
102
  }.reject do |_k, v|
@@ -124,6 +129,7 @@ module CandidApiClient
124
129
  phone_consent = struct["phone_consent"]
125
130
  email = struct["email"]
126
131
  email_consent = struct["email_consent"]
132
+ auto_charge_consent = struct["auto_charge_consent"]
127
133
  non_insurance_payers = struct["non_insurance_payers"]
128
134
  non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
129
135
  item = item.to_json
@@ -140,6 +146,7 @@ module CandidApiClient
140
146
  phone_consent: phone_consent,
141
147
  email: email,
142
148
  email_consent: email_consent,
149
+ auto_charge_consent: auto_charge_consent,
143
150
  non_insurance_payers: non_insurance_payers,
144
151
  non_insurance_payers_info: non_insurance_payers_info,
145
152
  additional_properties: struct
@@ -170,6 +177,7 @@ module CandidApiClient
170
177
  obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
171
178
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
172
179
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
180
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
173
181
  obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
174
182
  obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
175
183
  end
@@ -106,6 +106,8 @@ module CandidApiClient
106
106
  AMFT = "AMFT"
107
107
  CDN = "CDN"
108
108
  CNS = "CNS"
109
+ MDPHD = "MDPHD"
110
+ AUD = "AuD"
109
111
  end
110
112
  end
111
113
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "../../../requests"
4
4
  require_relative "types/organization_service_facility"
5
+ require_relative "../../commons/types/facility_type_code"
5
6
  require_relative "types/organization_service_facility_page"
6
7
  require_relative "types/organization_service_facility_create"
7
8
  require_relative "types/organization_service_facility_update"
@@ -44,6 +45,8 @@ module CandidApiClient
44
45
  # @param limit [Integer] Limit the number of results returned. Defaults to 100.
45
46
  # @param name [String] Filter to a name or a part of a name.
46
47
  # @param organization_service_facility_ids [String] Filter to the provided organization service facility IDs.
48
+ # @param external_ids [String] Filter by one or more external_ids.
49
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Filter by Place of Service (POS) code.
47
50
  # @param page_token [String] The page token to continue paging through a previous request.
48
51
  # @param request_options [CandidApiClient::RequestOptions]
49
52
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityPage]
@@ -54,8 +57,8 @@ module CandidApiClient
54
57
  # name: "Test Service Facility",
55
58
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
56
59
  # )
57
- def get_multi(limit: nil, name: nil, organization_service_facility_ids: nil, page_token: nil,
58
- request_options: nil)
60
+ def get_multi(limit: nil, name: nil, organization_service_facility_ids: nil, external_ids: nil,
61
+ place_of_service_code: nil, page_token: nil, request_options: nil)
59
62
  response = @request_client.conn.get do |req|
60
63
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
61
64
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -69,6 +72,8 @@ module CandidApiClient
69
72
  "limit": limit,
70
73
  "name": name,
71
74
  "organization_service_facility_ids": organization_service_facility_ids,
75
+ "external_ids": external_ids,
76
+ "place_of_service_code": place_of_service_code,
72
77
  "page_token": page_token
73
78
  }.compact
74
79
  req.url "#{@request_client.get_url(environment: CandidApi,
@@ -77,11 +82,40 @@ module CandidApiClient
77
82
  CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityPage.from_json(json_object: response.body)
78
83
  end
79
84
 
85
+ # Looks up a single organization service facility by its `external_id` field. This
86
+ # can be useful
87
+ # for finding service facilities within Candid which are associated with service
88
+ # facilities in
89
+ # an external system.
90
+ #
91
+ # @param external_id [String]
92
+ # @param request_options [CandidApiClient::RequestOptions]
93
+ # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
94
+ # @example
95
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
96
+ # api.organization_service_facilities.v_2.get_by_external_id(external_id: "external_id")
97
+ def get_by_external_id(external_id:, request_options: nil)
98
+ response = @request_client.conn.get do |req|
99
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
100
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
101
+ req.headers = {
102
+ **(req.headers || {}),
103
+ **@request_client.get_headers,
104
+ **(request_options&.additional_headers || {})
105
+ }.compact
106
+ req.url "#{@request_client.get_url(environment: CandidApi,
107
+ request_options: request_options)}/api/organization-service-facilities/v2/external-id/#{external_id}"
108
+ end
109
+ CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility.from_json(json_object: response.body)
110
+ end
111
+
80
112
  # @param request [Hash] Request of type CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityCreate, as a Hash
81
113
  # * :name (String)
82
114
  # * :aliases (Array<String>)
83
115
  # * :description (String)
116
+ # * :external_id (String)
84
117
  # * :npi (String)
118
+ # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
85
119
  # * :status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus)
86
120
  # * :operational_status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus)
87
121
  # * :mode (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode)
@@ -121,7 +155,9 @@ module CandidApiClient
121
155
  # * :name (String)
122
156
  # * :aliases (Array<String>)
123
157
  # * :description (String)
158
+ # * :external_id (String)
124
159
  # * :npi (String)
160
+ # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
125
161
  # * :status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus)
126
162
  # * :operational_status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus)
127
163
  # * :mode (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode)
@@ -213,6 +249,8 @@ module CandidApiClient
213
249
  # @param limit [Integer] Limit the number of results returned. Defaults to 100.
214
250
  # @param name [String] Filter to a name or a part of a name.
215
251
  # @param organization_service_facility_ids [String] Filter to the provided organization service facility IDs.
252
+ # @param external_ids [String] Filter by one or more external_ids.
253
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Filter by Place of Service (POS) code.
216
254
  # @param page_token [String] The page token to continue paging through a previous request.
217
255
  # @param request_options [CandidApiClient::RequestOptions]
218
256
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityPage]
@@ -223,8 +261,8 @@ module CandidApiClient
223
261
  # name: "Test Service Facility",
224
262
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
225
263
  # )
226
- def get_multi(limit: nil, name: nil, organization_service_facility_ids: nil, page_token: nil,
227
- request_options: nil)
264
+ def get_multi(limit: nil, name: nil, organization_service_facility_ids: nil, external_ids: nil,
265
+ place_of_service_code: nil, page_token: nil, request_options: nil)
228
266
  Async do
229
267
  response = @request_client.conn.get do |req|
230
268
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -239,6 +277,8 @@ module CandidApiClient
239
277
  "limit": limit,
240
278
  "name": name,
241
279
  "organization_service_facility_ids": organization_service_facility_ids,
280
+ "external_ids": external_ids,
281
+ "place_of_service_code": place_of_service_code,
242
282
  "page_token": page_token
243
283
  }.compact
244
284
  req.url "#{@request_client.get_url(environment: CandidApi,
@@ -248,11 +288,42 @@ module CandidApiClient
248
288
  end
249
289
  end
250
290
 
291
+ # Looks up a single organization service facility by its `external_id` field. This
292
+ # can be useful
293
+ # for finding service facilities within Candid which are associated with service
294
+ # facilities in
295
+ # an external system.
296
+ #
297
+ # @param external_id [String]
298
+ # @param request_options [CandidApiClient::RequestOptions]
299
+ # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
300
+ # @example
301
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
302
+ # api.organization_service_facilities.v_2.get_by_external_id(external_id: "external_id")
303
+ def get_by_external_id(external_id:, request_options: nil)
304
+ Async do
305
+ response = @request_client.conn.get do |req|
306
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
307
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
308
+ req.headers = {
309
+ **(req.headers || {}),
310
+ **@request_client.get_headers,
311
+ **(request_options&.additional_headers || {})
312
+ }.compact
313
+ req.url "#{@request_client.get_url(environment: CandidApi,
314
+ request_options: request_options)}/api/organization-service-facilities/v2/external-id/#{external_id}"
315
+ end
316
+ CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility.from_json(json_object: response.body)
317
+ end
318
+ end
319
+
251
320
  # @param request [Hash] Request of type CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityCreate, as a Hash
252
321
  # * :name (String)
253
322
  # * :aliases (Array<String>)
254
323
  # * :description (String)
324
+ # * :external_id (String)
255
325
  # * :npi (String)
326
+ # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
256
327
  # * :status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus)
257
328
  # * :operational_status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus)
258
329
  # * :mode (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode)
@@ -294,7 +365,9 @@ module CandidApiClient
294
365
  # * :name (String)
295
366
  # * :aliases (Array<String>)
296
367
  # * :description (String)
368
+ # * :external_id (String)
297
369
  # * :npi (String)
370
+ # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
298
371
  # * :status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus)
299
372
  # * :operational_status (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus)
300
373
  # * :mode (CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode)
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "../../../commons/types/facility_type_code"
3
4
  require_relative "service_facility_status"
4
5
  require_relative "service_facility_operational_status"
5
6
  require_relative "service_facility_mode"
@@ -22,10 +23,15 @@ module CandidApiClient
22
23
  attr_reader :aliases
23
24
  # @return [String] A description of the service facility.
24
25
  attr_reader :description
26
+ # @return [String] An ID for this service facility used in an external system (e.g. your EMR).
27
+ # Service facilities can be queried by this field.
28
+ attr_reader :external_id
25
29
  # @return [String] An NPI specific to the service facility if applicable, i.e. if it has one and is
26
30
  # not under the billing provider's NPI.
27
31
  # Box 32 section (a) of the CMS-1500 claim form.
28
32
  attr_reader :npi
33
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] The Place of Service (POS) code for this service facility.
34
+ attr_reader :place_of_service_code
29
35
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus] The status of the service facility.
30
36
  attr_reader :status
31
37
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus] The operational status of the service facility.
@@ -52,9 +58,12 @@ module CandidApiClient
52
58
  # @param name [String] The name of the service facility.
53
59
  # @param aliases [Array<String>] A list of alternate names for the service facility.
54
60
  # @param description [String] A description of the service facility.
61
+ # @param external_id [String] An ID for this service facility used in an external system (e.g. your EMR).
62
+ # Service facilities can be queried by this field.
55
63
  # @param npi [String] An NPI specific to the service facility if applicable, i.e. if it has one and is
56
64
  # not under the billing provider's NPI.
57
65
  # Box 32 section (a) of the CMS-1500 claim form.
66
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] The Place of Service (POS) code for this service facility.
58
67
  # @param status [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus] The status of the service facility.
59
68
  # @param operational_status [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus] The operational status of the service facility.
60
69
  # @param mode [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode] The mode of the service facility.
@@ -64,13 +73,15 @@ module CandidApiClient
64
73
  # @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] The address of the service facility.
65
74
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
66
75
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
67
- def initialize(organization_service_facility_id:, name:, aliases:, telecoms:, address:, description: OMIT, npi: OMIT,
68
- status: OMIT, operational_status: OMIT, mode: OMIT, type: OMIT, physical_type: OMIT, additional_properties: nil)
76
+ def initialize(organization_service_facility_id:, name:, aliases:, telecoms:, address:, description: OMIT, external_id: OMIT,
77
+ npi: OMIT, place_of_service_code: OMIT, status: OMIT, operational_status: OMIT, mode: OMIT, type: OMIT, physical_type: OMIT, additional_properties: nil)
69
78
  @organization_service_facility_id = organization_service_facility_id
70
79
  @name = name
71
80
  @aliases = aliases
72
81
  @description = description if description != OMIT
82
+ @external_id = external_id if external_id != OMIT
73
83
  @npi = npi if npi != OMIT
84
+ @place_of_service_code = place_of_service_code if place_of_service_code != OMIT
74
85
  @status = status if status != OMIT
75
86
  @operational_status = operational_status if operational_status != OMIT
76
87
  @mode = mode if mode != OMIT
@@ -84,7 +95,9 @@ module CandidApiClient
84
95
  "name": name,
85
96
  "aliases": aliases,
86
97
  "description": description,
98
+ "external_id": external_id,
87
99
  "npi": npi,
100
+ "place_of_service_code": place_of_service_code,
88
101
  "status": status,
89
102
  "operational_status": operational_status,
90
103
  "mode": mode,
@@ -108,7 +121,9 @@ module CandidApiClient
108
121
  name = struct["name"]
109
122
  aliases = struct["aliases"]
110
123
  description = struct["description"]
124
+ external_id = struct["external_id"]
111
125
  npi = struct["npi"]
126
+ place_of_service_code = struct["place_of_service_code"]
112
127
  status = struct["status"]
113
128
  operational_status = struct["operational_status"]
114
129
  mode = struct["mode"]
@@ -126,7 +141,9 @@ module CandidApiClient
126
141
  name: name,
127
142
  aliases: aliases,
128
143
  description: description,
144
+ external_id: external_id,
129
145
  npi: npi,
146
+ place_of_service_code: place_of_service_code,
130
147
  status: status,
131
148
  operational_status: operational_status,
132
149
  mode: mode,
@@ -156,7 +173,9 @@ module CandidApiClient
156
173
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
157
174
  obj.aliases.is_a?(Array) != false || raise("Passed value for field obj.aliases is not the expected type, validation failed.")
158
175
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
176
+ obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
159
177
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
178
+ obj.place_of_service_code&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code is not the expected type, validation failed.")
160
179
  obj.status&.is_a?(CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
161
180
  obj.operational_status&.is_a?(CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus) != false || raise("Passed value for field obj.operational_status is not the expected type, validation failed.")
162
181
  obj.mode&.is_a?(CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode) != false || raise("Passed value for field obj.mode is not the expected type, validation failed.")
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "../../../commons/types/facility_type_code"
3
4
  require_relative "service_facility_status"
4
5
  require_relative "service_facility_operational_status"
5
6
  require_relative "service_facility_mode"
@@ -20,10 +21,15 @@ module CandidApiClient
20
21
  attr_reader :aliases
21
22
  # @return [String] A description of the service facility.
22
23
  attr_reader :description
24
+ # @return [String] An ID for this service facility used in an external system (e.g. your EMR).
25
+ # Service facilities can be queried by this field.
26
+ attr_reader :external_id
23
27
  # @return [String] An NPI specific to the service facility if applicable, i.e. if it has one and is
24
28
  # not under the billing provider's NPI.
25
29
  # Box 32 section (a) of the CMS-1500 claim form.
26
30
  attr_reader :npi
31
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] The Place of Service (POS) code for this service facility.
32
+ attr_reader :place_of_service_code
27
33
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus] The status of the service facility.
28
34
  attr_reader :status
29
35
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus] The operational status of the service facility.
@@ -49,9 +55,12 @@ module CandidApiClient
49
55
  # @param name [String] The name of the service facility.
50
56
  # @param aliases [Array<String>] A list of alternate names for the service facility.
51
57
  # @param description [String] A description of the service facility.
58
+ # @param external_id [String] An ID for this service facility used in an external system (e.g. your EMR).
59
+ # Service facilities can be queried by this field.
52
60
  # @param npi [String] An NPI specific to the service facility if applicable, i.e. if it has one and is
53
61
  # not under the billing provider's NPI.
54
62
  # Box 32 section (a) of the CMS-1500 claim form.
63
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] The Place of Service (POS) code for this service facility.
55
64
  # @param status [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus] The status of the service facility.
56
65
  # @param operational_status [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus] The operational status of the service facility.
57
66
  # @param mode [CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode] The mode of the service facility.
@@ -61,12 +70,14 @@ module CandidApiClient
61
70
  # @param address [CandidApiClient::Commons::Types::StreetAddressLongZip] The address of the service facility.
62
71
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
63
72
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacilityCreate]
64
- def initialize(name:, aliases:, telecoms:, address:, description: OMIT, npi: OMIT, status: OMIT, operational_status: OMIT,
65
- mode: OMIT, type: OMIT, physical_type: OMIT, additional_properties: nil)
73
+ def initialize(name:, aliases:, telecoms:, address:, description: OMIT, external_id: OMIT, npi: OMIT, place_of_service_code: OMIT,
74
+ status: OMIT, operational_status: OMIT, mode: OMIT, type: OMIT, physical_type: OMIT, additional_properties: nil)
66
75
  @name = name
67
76
  @aliases = aliases
68
77
  @description = description if description != OMIT
78
+ @external_id = external_id if external_id != OMIT
69
79
  @npi = npi if npi != OMIT
80
+ @place_of_service_code = place_of_service_code if place_of_service_code != OMIT
70
81
  @status = status if status != OMIT
71
82
  @operational_status = operational_status if operational_status != OMIT
72
83
  @mode = mode if mode != OMIT
@@ -79,7 +90,9 @@ module CandidApiClient
79
90
  "name": name,
80
91
  "aliases": aliases,
81
92
  "description": description,
93
+ "external_id": external_id,
82
94
  "npi": npi,
95
+ "place_of_service_code": place_of_service_code,
83
96
  "status": status,
84
97
  "operational_status": operational_status,
85
98
  "mode": mode,
@@ -102,7 +115,9 @@ module CandidApiClient
102
115
  name = struct["name"]
103
116
  aliases = struct["aliases"]
104
117
  description = struct["description"]
118
+ external_id = struct["external_id"]
105
119
  npi = struct["npi"]
120
+ place_of_service_code = struct["place_of_service_code"]
106
121
  status = struct["status"]
107
122
  operational_status = struct["operational_status"]
108
123
  mode = struct["mode"]
@@ -119,7 +134,9 @@ module CandidApiClient
119
134
  name: name,
120
135
  aliases: aliases,
121
136
  description: description,
137
+ external_id: external_id,
122
138
  npi: npi,
139
+ place_of_service_code: place_of_service_code,
123
140
  status: status,
124
141
  operational_status: operational_status,
125
142
  mode: mode,
@@ -148,7 +165,9 @@ module CandidApiClient
148
165
  obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
149
166
  obj.aliases.is_a?(Array) != false || raise("Passed value for field obj.aliases is not the expected type, validation failed.")
150
167
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
168
+ obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
151
169
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
170
+ obj.place_of_service_code&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code is not the expected type, validation failed.")
152
171
  obj.status&.is_a?(CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
153
172
  obj.operational_status&.is_a?(CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityOperationalStatus) != false || raise("Passed value for field obj.operational_status is not the expected type, validation failed.")
154
173
  obj.mode&.is_a?(CandidApiClient::OrganizationServiceFacilities::V2::Types::ServiceFacilityMode) != false || raise("Passed value for field obj.mode is not the expected type, validation failed.")