candidhealth 1.8.1 → 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.
- checksums.yaml +4 -4
- data/lib/candidhealth/auth/default/client.rb +0 -74
- data/lib/candidhealth/diagnoses/client.rb +2 -2
- data/lib/candidhealth/encounters/v_4/client.rb +479 -2522
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_expectation.rb +3 -6
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +4 -4
- data/lib/candidhealth/health_care_code_information/v_1/client.rb +2 -74
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_code.rb +100 -1
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information.rb +2 -134
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_get_all_response.rb +34 -34
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_new.rb +4 -139
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_update.rb +138 -38
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_code.rb +1 -0
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_code.rb +6 -1
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information.rb +10 -132
- data/lib/candidhealth/health_care_code_information/v_1/types/rd_8_date.rb +16 -4
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information.rb +2 -130
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information.rb +2 -130
- data/lib/candidhealth/individual/types/patient.rb +4 -4
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +2 -0
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +77 -4
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +21 -2
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +21 -2
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +21 -2
- data/lib/candidhealth/payers/v_4/types/payer.rb +10 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -1
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_service_facility.rb +63 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base.rb +8 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_base_base.rb +8 -8
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -21
- metadata +3 -23
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create.rb +0 -944
- data/lib/candidhealth/encounters_universal/types/universal_encounter_create_from_pre_encounter.rb +0 -791
- data/lib/candidhealth/encounters_universal/types/universal_encounter_update.rb +0 -872
- data/lib/candidhealth/health_care_code_information/v_1/types/admitting_diagnosis_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/code_list_qualifier_code.rb +0 -1068
- data/lib/candidhealth/health_care_code_information/v_1/types/condition_information_new.rb +0 -207
- data/lib/candidhealth/health_care_code_information/v_1/types/date_time_period_format_qualifier.rb +0 -54
- data/lib/candidhealth/health_care_code_information/v_1/types/diagnosis_related_group_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/external_cause_of_injury_new.rb +0 -245
- data/lib/candidhealth/health_care_code_information/v_1/types/health_care_code_information_create.rb +0 -225
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_information_new.rb +0 -219
- data/lib/candidhealth/health_care_code_information/v_1/types/occurrence_span_information_new.rb +0 -222
- data/lib/candidhealth/health_care_code_information/v_1/types/other_diagnosis_information_new.rb +0 -215
- data/lib/candidhealth/health_care_code_information/v_1/types/other_procedure_information_new.rb +0 -218
- data/lib/candidhealth/health_care_code_information/v_1/types/patient_reason_for_visit_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_diagnosis_new.rb +0 -215
- data/lib/candidhealth/health_care_code_information/v_1/types/principal_procedure_information_new.rb +0 -216
- data/lib/candidhealth/health_care_code_information/v_1/types/treatment_code_information_new.rb +0 -206
- data/lib/candidhealth/health_care_code_information/v_1/types/value_information_new.rb +0 -215
- data/lib/candidhealth/service_lines/v_2/types/universal_service_line_create.rb +0 -271
- data/lib/candidhealth/x_12/v_1/types/type_of_bill_composite_update.rb +0 -112
data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb
CHANGED
|
@@ -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,
|
|
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,
|
|
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.")
|
|
@@ -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::OrganizationServiceFacilityUpdate]
|
|
64
|
-
def initialize(name: OMIT, aliases: OMIT, description: OMIT,
|
|
65
|
-
operational_status: OMIT, mode: OMIT, type: OMIT, physical_type: OMIT, telecoms: OMIT, address: OMIT, additional_properties: nil)
|
|
73
|
+
def initialize(name: OMIT, aliases: OMIT, description: OMIT, external_id: OMIT, npi: OMIT,
|
|
74
|
+
place_of_service_code: OMIT, status: OMIT, operational_status: OMIT, mode: OMIT, type: OMIT, physical_type: OMIT, telecoms: OMIT, address: OMIT, additional_properties: nil)
|
|
66
75
|
@name = name if name != OMIT
|
|
67
76
|
@aliases = aliases if aliases != OMIT
|
|
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.")
|
|
@@ -16,6 +16,8 @@ module CandidApiClient
|
|
|
16
16
|
attr_reader :payer_ids
|
|
17
17
|
# @return [String] The primary display name of the payer.
|
|
18
18
|
attr_reader :payer_name
|
|
19
|
+
# @return [Array<String>] The alternate display names of the payer.
|
|
20
|
+
attr_reader :alternate_payer_names
|
|
19
21
|
# @return [Hash{CandidApiClient::Commons::Types::Clearinghouse => CandidApiClient::Payers::V4::Types::ClearinghousePayerInfo}]
|
|
20
22
|
attr_reader :clearinghouse_payer_info
|
|
21
23
|
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
|
@@ -31,15 +33,17 @@ module CandidApiClient
|
|
|
31
33
|
# @param payer_uuid [String] Auto-generated ID set on creation.
|
|
32
34
|
# @param payer_ids [CandidApiClient::Payers::V4::Types::PrimaryPayerIds] The primary national payer IDs of the payer.
|
|
33
35
|
# @param payer_name [String] The primary display name of the payer.
|
|
36
|
+
# @param alternate_payer_names [Array<String>] The alternate display names of the payer.
|
|
34
37
|
# @param clearinghouse_payer_info [Hash{CandidApiClient::Commons::Types::Clearinghouse => CandidApiClient::Payers::V4::Types::ClearinghousePayerInfo}]
|
|
35
38
|
# @param street_address [CandidApiClient::Commons::Types::StreetAddressLongZip]
|
|
36
39
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
37
40
|
# @return [CandidApiClient::Payers::V4::Types::Payer]
|
|
38
|
-
def initialize(payer_uuid:, payer_ids:, payer_name:, clearinghouse_payer_info:,
|
|
39
|
-
additional_properties: nil)
|
|
41
|
+
def initialize(payer_uuid:, payer_ids:, payer_name:, alternate_payer_names:, clearinghouse_payer_info:,
|
|
42
|
+
street_address: OMIT, additional_properties: nil)
|
|
40
43
|
@payer_uuid = payer_uuid
|
|
41
44
|
@payer_ids = payer_ids
|
|
42
45
|
@payer_name = payer_name
|
|
46
|
+
@alternate_payer_names = alternate_payer_names
|
|
43
47
|
@clearinghouse_payer_info = clearinghouse_payer_info
|
|
44
48
|
@street_address = street_address if street_address != OMIT
|
|
45
49
|
@additional_properties = additional_properties
|
|
@@ -47,6 +51,7 @@ module CandidApiClient
|
|
|
47
51
|
"payer_uuid": payer_uuid,
|
|
48
52
|
"payer_ids": payer_ids,
|
|
49
53
|
"payer_name": payer_name,
|
|
54
|
+
"alternate_payer_names": alternate_payer_names,
|
|
50
55
|
"clearinghouse_payer_info": clearinghouse_payer_info,
|
|
51
56
|
"street_address": street_address
|
|
52
57
|
}.reject do |_k, v|
|
|
@@ -69,6 +74,7 @@ module CandidApiClient
|
|
|
69
74
|
payer_ids = CandidApiClient::Payers::V4::Types::PrimaryPayerIds.from_json(json_object: payer_ids)
|
|
70
75
|
end
|
|
71
76
|
payer_name = struct["payer_name"]
|
|
77
|
+
alternate_payer_names = struct["alternate_payer_names"]
|
|
72
78
|
clearinghouse_payer_info = parsed_json["clearinghouse_payer_info"]&.transform_values do |value|
|
|
73
79
|
value = value.to_json
|
|
74
80
|
CandidApiClient::Payers::V4::Types::ClearinghousePayerInfo.from_json(json_object: value)
|
|
@@ -83,6 +89,7 @@ module CandidApiClient
|
|
|
83
89
|
payer_uuid: payer_uuid,
|
|
84
90
|
payer_ids: payer_ids,
|
|
85
91
|
payer_name: payer_name,
|
|
92
|
+
alternate_payer_names: alternate_payer_names,
|
|
86
93
|
clearinghouse_payer_info: clearinghouse_payer_info,
|
|
87
94
|
street_address: street_address,
|
|
88
95
|
additional_properties: struct
|
|
@@ -106,6 +113,7 @@ module CandidApiClient
|
|
|
106
113
|
obj.payer_uuid.is_a?(String) != false || raise("Passed value for field obj.payer_uuid is not the expected type, validation failed.")
|
|
107
114
|
CandidApiClient::Payers::V4::Types::PrimaryPayerIds.validate_raw(obj: obj.payer_ids)
|
|
108
115
|
obj.payer_name.is_a?(String) != false || raise("Passed value for field obj.payer_name is not the expected type, validation failed.")
|
|
116
|
+
obj.alternate_payer_names.is_a?(Array) != false || raise("Passed value for field obj.alternate_payer_names is not the expected type, validation failed.")
|
|
109
117
|
obj.clearinghouse_payer_info.is_a?(Hash) != false || raise("Passed value for field obj.clearinghouse_payer_info is not the expected type, validation failed.")
|
|
110
118
|
obj.street_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.street_address)
|
|
111
119
|
end
|
|
@@ -114,6 +114,7 @@ module CandidApiClient
|
|
|
114
114
|
# * :authorizations (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>)
|
|
115
115
|
# * :referrals (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>)
|
|
116
116
|
# * :primary_service_facility_id (String)
|
|
117
|
+
# * :service_facilities (Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>)
|
|
117
118
|
# * :do_not_invoice_reason (CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason)
|
|
118
119
|
# * :note_ids (Array<String>)
|
|
119
120
|
# * :tag_ids (Array<String>)
|
|
@@ -259,6 +260,7 @@ module CandidApiClient
|
|
|
259
260
|
# * :authorizations (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>)
|
|
260
261
|
# * :referrals (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>)
|
|
261
262
|
# * :primary_service_facility_id (String)
|
|
263
|
+
# * :service_facilities (Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>)
|
|
262
264
|
# * :do_not_invoice_reason (CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason)
|
|
263
265
|
# * :note_ids (Array<String>)
|
|
264
266
|
# * :tag_ids (Array<String>)
|
|
@@ -291,7 +293,7 @@ module CandidApiClient
|
|
|
291
293
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
|
292
294
|
# @example
|
|
293
295
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
294
|
-
# api.pre_encounter.patients.v_1.create_with_mrn(request: { name: { family: "family", given: ["given", "given"], use: USUAL }, other_names: [{ family: "family", given: ["given", "given"], use: USUAL }, { family: "family", given: ["given", "given"], use: USUAL }], birth_date: DateTime.parse(2023-01-15), biological_sex: FEMALE, primary_address: { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, other_addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }], other_telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], contacts: [{ relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }, { relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }], general_practitioners: [{ name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }, { name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] }
|
|
296
|
+
# api.pre_encounter.patients.v_1.create_with_mrn(request: { mrn: "mrn", name: { family: "family", given: ["given", "given"], use: USUAL }, other_names: [{ family: "family", given: ["given", "given"], use: USUAL }, { family: "family", given: ["given", "given"], use: USUAL }], birth_date: DateTime.parse(2023-01-15), biological_sex: FEMALE, primary_address: { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, other_addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }], other_telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], contacts: [{ relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }, { relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }], general_practitioners: [{ name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }, { name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
|
|
295
297
|
def create_with_mrn(request:, skip_duplicate_check: nil, request_options: nil)
|
|
296
298
|
response = @request_client.conn.post do |req|
|
|
297
299
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -548,6 +550,7 @@ module CandidApiClient
|
|
|
548
550
|
# * :authorizations (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>)
|
|
549
551
|
# * :referrals (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>)
|
|
550
552
|
# * :primary_service_facility_id (String)
|
|
553
|
+
# * :service_facilities (Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>)
|
|
551
554
|
# * :do_not_invoice_reason (CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason)
|
|
552
555
|
# * :note_ids (Array<String>)
|
|
553
556
|
# * :tag_ids (Array<String>)
|
|
@@ -813,6 +816,7 @@ module CandidApiClient
|
|
|
813
816
|
# * :authorizations (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>)
|
|
814
817
|
# * :referrals (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>)
|
|
815
818
|
# * :primary_service_facility_id (String)
|
|
819
|
+
# * :service_facilities (Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>)
|
|
816
820
|
# * :do_not_invoice_reason (CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason)
|
|
817
821
|
# * :note_ids (Array<String>)
|
|
818
822
|
# * :tag_ids (Array<String>)
|
|
@@ -960,6 +964,7 @@ module CandidApiClient
|
|
|
960
964
|
# * :authorizations (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>)
|
|
961
965
|
# * :referrals (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>)
|
|
962
966
|
# * :primary_service_facility_id (String)
|
|
967
|
+
# * :service_facilities (Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>)
|
|
963
968
|
# * :do_not_invoice_reason (CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason)
|
|
964
969
|
# * :note_ids (Array<String>)
|
|
965
970
|
# * :tag_ids (Array<String>)
|
|
@@ -992,7 +997,7 @@ module CandidApiClient
|
|
|
992
997
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::Patient]
|
|
993
998
|
# @example
|
|
994
999
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
|
995
|
-
# api.pre_encounter.patients.v_1.create_with_mrn(request: { name: { family: "family", given: ["given", "given"], use: USUAL }, other_names: [{ family: "family", given: ["given", "given"], use: USUAL }, { family: "family", given: ["given", "given"], use: USUAL }], birth_date: DateTime.parse(2023-01-15), biological_sex: FEMALE, primary_address: { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, other_addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }], other_telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], contacts: [{ relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }, { relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }], general_practitioners: [{ name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }, { name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] }
|
|
1000
|
+
# api.pre_encounter.patients.v_1.create_with_mrn(request: { mrn: "mrn", name: { family: "family", given: ["given", "given"], use: USUAL }, other_names: [{ family: "family", given: ["given", "given"], use: USUAL }, { family: "family", given: ["given", "given"], use: USUAL }], birth_date: DateTime.parse(2023-01-15), biological_sex: FEMALE, primary_address: { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, other_addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }], other_telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], contacts: [{ relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }, { relationship: [SELF, SELF], name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }], addresses: [{ use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }, { use: HOME, line: ["line", "line"], city: "city", state: "state", postal_code: "postal_code", country: "country" }] }], general_practitioners: [{ name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }, { name: { family: "family", given: ["given", "given"], use: USUAL }, telecoms: [{ value: "value", use: HOME }, { value: "value", use: HOME }] }], filing_order: { coverages: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"] } })
|
|
996
1001
|
def create_with_mrn(request:, skip_duplicate_check: nil, request_options: nil)
|
|
997
1002
|
Async do
|
|
998
1003
|
response = @request_client.conn.post do |req|
|
|
@@ -1261,6 +1266,7 @@ module CandidApiClient
|
|
|
1261
1266
|
# * :authorizations (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>)
|
|
1262
1267
|
# * :referrals (Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>)
|
|
1263
1268
|
# * :primary_service_facility_id (String)
|
|
1269
|
+
# * :service_facilities (Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>)
|
|
1264
1270
|
# * :do_not_invoice_reason (CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason)
|
|
1265
1271
|
# * :note_ids (Array<String>)
|
|
1266
1272
|
# * :tag_ids (Array<String>)
|
|
@@ -20,6 +20,7 @@ require_relative "../../../common/types/canonical_non_insurance_payer_associatio
|
|
|
20
20
|
require_relative "guarantor"
|
|
21
21
|
require_relative "authorization"
|
|
22
22
|
require_relative "referral"
|
|
23
|
+
require_relative "patient_service_facility"
|
|
23
24
|
require_relative "do_not_invoice_reason"
|
|
24
25
|
require_relative "origination_detail"
|
|
25
26
|
require_relative "inferred_patient_metadata"
|
|
@@ -105,6 +106,8 @@ module CandidApiClient
|
|
|
105
106
|
attr_reader :referrals
|
|
106
107
|
# @return [String]
|
|
107
108
|
attr_reader :primary_service_facility_id
|
|
109
|
+
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>] Associated service facilities for this patient.
|
|
110
|
+
attr_reader :service_facilities
|
|
108
111
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason] If this value is defined, the customer will not be invoiced.
|
|
109
112
|
attr_reader :do_not_invoice_reason
|
|
110
113
|
# @return [Array<String>]
|
|
@@ -161,6 +164,7 @@ module CandidApiClient
|
|
|
161
164
|
# @param authorizations [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>]
|
|
162
165
|
# @param referrals [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>]
|
|
163
166
|
# @param primary_service_facility_id [String]
|
|
167
|
+
# @param service_facilities [Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>] Associated service facilities for this patient.
|
|
164
168
|
# @param do_not_invoice_reason [CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason] If this value is defined, the customer will not be invoiced.
|
|
165
169
|
# @param note_ids [Array<String>]
|
|
166
170
|
# @param tag_ids [Array<String>]
|
|
@@ -169,7 +173,7 @@ module CandidApiClient
|
|
|
169
173
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
170
174
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatient]
|
|
171
175
|
def initialize(name:, other_names:, birth_date:, biological_sex:, primary_address:, other_addresses:, other_telecoms:, contacts:, general_practitioners:, filing_order:, other_identifiers: OMIT, gender: OMIT,
|
|
172
|
-
social_security_number: OMIT, sexual_orientation: OMIT, pronouns: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, primary_telecom: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, non_insurance_payers: OMIT, non_insurance_payer_associations: OMIT, guarantor: OMIT, self_pay: OMIT, authorizations: OMIT, referrals: OMIT, primary_service_facility_id: OMIT, do_not_invoice_reason: OMIT, note_ids: OMIT, tag_ids: OMIT, origination_detail: OMIT, inferred_patient_metadata: OMIT, additional_properties: nil)
|
|
176
|
+
social_security_number: OMIT, sexual_orientation: OMIT, pronouns: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, primary_telecom: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, non_insurance_payers: OMIT, non_insurance_payer_associations: OMIT, guarantor: OMIT, self_pay: OMIT, authorizations: OMIT, referrals: OMIT, primary_service_facility_id: OMIT, service_facilities: OMIT, do_not_invoice_reason: OMIT, note_ids: OMIT, tag_ids: OMIT, origination_detail: OMIT, inferred_patient_metadata: OMIT, additional_properties: nil)
|
|
173
177
|
@name = name
|
|
174
178
|
@other_names = other_names
|
|
175
179
|
@other_identifiers = other_identifiers if other_identifiers != OMIT
|
|
@@ -208,6 +212,7 @@ module CandidApiClient
|
|
|
208
212
|
@authorizations = authorizations if authorizations != OMIT
|
|
209
213
|
@referrals = referrals if referrals != OMIT
|
|
210
214
|
@primary_service_facility_id = primary_service_facility_id if primary_service_facility_id != OMIT
|
|
215
|
+
@service_facilities = service_facilities if service_facilities != OMIT
|
|
211
216
|
@do_not_invoice_reason = do_not_invoice_reason if do_not_invoice_reason != OMIT
|
|
212
217
|
@note_ids = note_ids if note_ids != OMIT
|
|
213
218
|
@tag_ids = tag_ids if tag_ids != OMIT
|
|
@@ -249,6 +254,7 @@ module CandidApiClient
|
|
|
249
254
|
"authorizations": authorizations,
|
|
250
255
|
"referrals": referrals,
|
|
251
256
|
"primary_service_facility_id": primary_service_facility_id,
|
|
257
|
+
"service_facilities": service_facilities,
|
|
252
258
|
"do_not_invoice_reason": do_not_invoice_reason,
|
|
253
259
|
"note_ids": note_ids,
|
|
254
260
|
"tag_ids": tag_ids,
|
|
@@ -357,6 +363,10 @@ module CandidApiClient
|
|
|
357
363
|
CandidApiClient::PreEncounter::Patients::V1::Types::Referral.from_json(json_object: item)
|
|
358
364
|
end
|
|
359
365
|
primary_service_facility_id = struct["primary_service_facility_id"]
|
|
366
|
+
service_facilities = parsed_json["service_facilities"]&.map do |item|
|
|
367
|
+
item = item.to_json
|
|
368
|
+
CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility.from_json(json_object: item)
|
|
369
|
+
end
|
|
360
370
|
do_not_invoice_reason = struct["do_not_invoice_reason"]
|
|
361
371
|
note_ids = struct["note_ids"]
|
|
362
372
|
tag_ids = struct["tag_ids"]
|
|
@@ -407,6 +417,7 @@ module CandidApiClient
|
|
|
407
417
|
authorizations: authorizations,
|
|
408
418
|
referrals: referrals,
|
|
409
419
|
primary_service_facility_id: primary_service_facility_id,
|
|
420
|
+
service_facilities: service_facilities,
|
|
410
421
|
do_not_invoice_reason: do_not_invoice_reason,
|
|
411
422
|
note_ids: note_ids,
|
|
412
423
|
tag_ids: tag_ids,
|
|
@@ -464,6 +475,7 @@ module CandidApiClient
|
|
|
464
475
|
obj.authorizations&.is_a?(Array) != false || raise("Passed value for field obj.authorizations is not the expected type, validation failed.")
|
|
465
476
|
obj.referrals&.is_a?(Array) != false || raise("Passed value for field obj.referrals is not the expected type, validation failed.")
|
|
466
477
|
obj.primary_service_facility_id&.is_a?(String) != false || raise("Passed value for field obj.primary_service_facility_id is not the expected type, validation failed.")
|
|
478
|
+
obj.service_facilities&.is_a?(Array) != false || raise("Passed value for field obj.service_facilities is not the expected type, validation failed.")
|
|
467
479
|
obj.do_not_invoice_reason&.is_a?(CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason) != false || raise("Passed value for field obj.do_not_invoice_reason is not the expected type, validation failed.")
|
|
468
480
|
obj.note_ids&.is_a?(Array) != false || raise("Passed value for field obj.note_ids is not the expected type, validation failed.")
|
|
469
481
|
obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
|
|
@@ -20,6 +20,7 @@ require_relative "../../../common/types/canonical_non_insurance_payer_associatio
|
|
|
20
20
|
require_relative "guarantor"
|
|
21
21
|
require_relative "authorization"
|
|
22
22
|
require_relative "referral"
|
|
23
|
+
require_relative "patient_service_facility"
|
|
23
24
|
require_relative "do_not_invoice_reason"
|
|
24
25
|
require_relative "origination_detail"
|
|
25
26
|
require_relative "inferred_patient_metadata"
|
|
@@ -106,6 +107,8 @@ module CandidApiClient
|
|
|
106
107
|
attr_reader :referrals
|
|
107
108
|
# @return [String]
|
|
108
109
|
attr_reader :primary_service_facility_id
|
|
110
|
+
# @return [Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>] Associated service facilities for this patient.
|
|
111
|
+
attr_reader :service_facilities
|
|
109
112
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason] If this value is defined, the customer will not be invoiced.
|
|
110
113
|
attr_reader :do_not_invoice_reason
|
|
111
114
|
# @return [Array<String>]
|
|
@@ -163,6 +166,7 @@ module CandidApiClient
|
|
|
163
166
|
# @param authorizations [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Authorization>]
|
|
164
167
|
# @param referrals [Array<CandidApiClient::PreEncounter::Patients::V1::Types::Referral>]
|
|
165
168
|
# @param primary_service_facility_id [String]
|
|
169
|
+
# @param service_facilities [Array<CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility>] Associated service facilities for this patient.
|
|
166
170
|
# @param do_not_invoice_reason [CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason] If this value is defined, the customer will not be invoiced.
|
|
167
171
|
# @param note_ids [Array<String>]
|
|
168
172
|
# @param tag_ids [Array<String>]
|
|
@@ -171,7 +175,7 @@ module CandidApiClient
|
|
|
171
175
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
172
176
|
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatientWithMrn]
|
|
173
177
|
def initialize(mrn:, name:, other_names:, birth_date:, biological_sex:, primary_address:, other_addresses:, other_telecoms:, contacts:, general_practitioners:, filing_order:, other_identifiers: OMIT, gender: OMIT,
|
|
174
|
-
social_security_number: OMIT, sexual_orientation: OMIT, pronouns: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, primary_telecom: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, non_insurance_payers: OMIT, non_insurance_payer_associations: OMIT, guarantor: OMIT, self_pay: OMIT, authorizations: OMIT, referrals: OMIT, primary_service_facility_id: OMIT, do_not_invoice_reason: OMIT, note_ids: OMIT, tag_ids: OMIT, origination_detail: OMIT, inferred_patient_metadata: OMIT, additional_properties: nil)
|
|
178
|
+
social_security_number: OMIT, sexual_orientation: OMIT, pronouns: OMIT, race: OMIT, ethnicity: OMIT, disability_status: OMIT, marital_status: OMIT, deceased: OMIT, multiple_birth: OMIT, primary_telecom: OMIT, email: OMIT, electronic_communication_opt_in: OMIT, photo: OMIT, language: OMIT, external_provenance: OMIT, non_insurance_payers: OMIT, non_insurance_payer_associations: OMIT, guarantor: OMIT, self_pay: OMIT, authorizations: OMIT, referrals: OMIT, primary_service_facility_id: OMIT, service_facilities: OMIT, do_not_invoice_reason: OMIT, note_ids: OMIT, tag_ids: OMIT, origination_detail: OMIT, inferred_patient_metadata: OMIT, additional_properties: nil)
|
|
175
179
|
@mrn = mrn
|
|
176
180
|
@name = name
|
|
177
181
|
@other_names = other_names
|
|
@@ -211,6 +215,7 @@ module CandidApiClient
|
|
|
211
215
|
@authorizations = authorizations if authorizations != OMIT
|
|
212
216
|
@referrals = referrals if referrals != OMIT
|
|
213
217
|
@primary_service_facility_id = primary_service_facility_id if primary_service_facility_id != OMIT
|
|
218
|
+
@service_facilities = service_facilities if service_facilities != OMIT
|
|
214
219
|
@do_not_invoice_reason = do_not_invoice_reason if do_not_invoice_reason != OMIT
|
|
215
220
|
@note_ids = note_ids if note_ids != OMIT
|
|
216
221
|
@tag_ids = tag_ids if tag_ids != OMIT
|
|
@@ -253,6 +258,7 @@ module CandidApiClient
|
|
|
253
258
|
"authorizations": authorizations,
|
|
254
259
|
"referrals": referrals,
|
|
255
260
|
"primary_service_facility_id": primary_service_facility_id,
|
|
261
|
+
"service_facilities": service_facilities,
|
|
256
262
|
"do_not_invoice_reason": do_not_invoice_reason,
|
|
257
263
|
"note_ids": note_ids,
|
|
258
264
|
"tag_ids": tag_ids,
|
|
@@ -362,6 +368,10 @@ module CandidApiClient
|
|
|
362
368
|
CandidApiClient::PreEncounter::Patients::V1::Types::Referral.from_json(json_object: item)
|
|
363
369
|
end
|
|
364
370
|
primary_service_facility_id = struct["primary_service_facility_id"]
|
|
371
|
+
service_facilities = parsed_json["service_facilities"]&.map do |item|
|
|
372
|
+
item = item.to_json
|
|
373
|
+
CandidApiClient::PreEncounter::Patients::V1::Types::PatientServiceFacility.from_json(json_object: item)
|
|
374
|
+
end
|
|
365
375
|
do_not_invoice_reason = struct["do_not_invoice_reason"]
|
|
366
376
|
note_ids = struct["note_ids"]
|
|
367
377
|
tag_ids = struct["tag_ids"]
|
|
@@ -413,6 +423,7 @@ module CandidApiClient
|
|
|
413
423
|
authorizations: authorizations,
|
|
414
424
|
referrals: referrals,
|
|
415
425
|
primary_service_facility_id: primary_service_facility_id,
|
|
426
|
+
service_facilities: service_facilities,
|
|
416
427
|
do_not_invoice_reason: do_not_invoice_reason,
|
|
417
428
|
note_ids: note_ids,
|
|
418
429
|
tag_ids: tag_ids,
|
|
@@ -471,6 +482,7 @@ module CandidApiClient
|
|
|
471
482
|
obj.authorizations&.is_a?(Array) != false || raise("Passed value for field obj.authorizations is not the expected type, validation failed.")
|
|
472
483
|
obj.referrals&.is_a?(Array) != false || raise("Passed value for field obj.referrals is not the expected type, validation failed.")
|
|
473
484
|
obj.primary_service_facility_id&.is_a?(String) != false || raise("Passed value for field obj.primary_service_facility_id is not the expected type, validation failed.")
|
|
485
|
+
obj.service_facilities&.is_a?(Array) != false || raise("Passed value for field obj.service_facilities is not the expected type, validation failed.")
|
|
474
486
|
obj.do_not_invoice_reason&.is_a?(CandidApiClient::PreEncounter::Patients::V1::Types::DoNotInvoiceReason) != false || raise("Passed value for field obj.do_not_invoice_reason is not the expected type, validation failed.")
|
|
475
487
|
obj.note_ids&.is_a?(Array) != false || raise("Passed value for field obj.note_ids is not the expected type, validation failed.")
|
|
476
488
|
obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
|