candidhealth 0.34.9 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candidhealth/credentialing/client.rb +30 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +410 -0
- data/lib/candidhealth/credentialing/v_2/types/credentialing_span_status.rb +17 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +196 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/encounters/v_4/client.rb +16 -18
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +2 -10
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +17 -2
- data/lib/candidhealth/organization_providers/v_3/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +4 -4
- data/lib/candidhealth/service_lines/v_2/client.rb +28 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +19 -1
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1 -0
- data/lib/candidhealth.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +3 -1
- metadata +7 -3
- data/lib/candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb +0 -62
@@ -0,0 +1,196 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../organization_providers/v_3/types/organization_provider_v_2"
|
4
|
+
require_relative "../../../payers/v_3/types/payer"
|
5
|
+
require "date"
|
6
|
+
require_relative "../../../commons/types/regions"
|
7
|
+
require_relative "credentialing_span_status"
|
8
|
+
require "ostruct"
|
9
|
+
require "json"
|
10
|
+
|
11
|
+
module CandidApiClient
|
12
|
+
module Credentialing
|
13
|
+
module V2
|
14
|
+
module Types
|
15
|
+
class ProviderCredentialingSpan
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :provider_credentialing_span_id
|
18
|
+
# @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2] The rendering provider covered by the credentialing span.
|
19
|
+
attr_reader :rendering_provider
|
20
|
+
# @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2] The practice location at which the rendering provider is covered by the
|
21
|
+
# credentialing span.
|
22
|
+
attr_reader :contracting_provider
|
23
|
+
# @return [CandidApiClient::Payers::V3::Types::Payer] The payer doing the credentialing.
|
24
|
+
attr_reader :payer
|
25
|
+
# @return [Date] Start date of the credentialing span.
|
26
|
+
attr_reader :start_date
|
27
|
+
# @return [Date] End date of the credentialing span.
|
28
|
+
attr_reader :end_date
|
29
|
+
# @return [CandidApiClient::Commons::Types::Regions] The states covered by the credentialing span. A span may be national and cover
|
30
|
+
# all states.
|
31
|
+
attr_reader :regions
|
32
|
+
# @return [Date] Date that the credential paperwork was submitted.
|
33
|
+
attr_reader :submitted_date
|
34
|
+
# @return [CandidApiClient::Credentialing::V2::Types::CredentialingSpanStatus] Status of the credentialing span.
|
35
|
+
attr_reader :credentialing_status
|
36
|
+
# @return [Date] Date that the payer loaded the credentialing span into their system.
|
37
|
+
attr_reader :payer_loaded_date
|
38
|
+
# @return [String] Source of the credentialing span.
|
39
|
+
attr_reader :source
|
40
|
+
# @return [String] Provider ID for the related medallion payer enrollment.
|
41
|
+
attr_reader :medallion_payer_enrollment_id
|
42
|
+
# @return [Boolean] Is the credentialing span enabled?
|
43
|
+
attr_reader :is_enabled
|
44
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
45
|
+
attr_reader :additional_properties
|
46
|
+
# @return [Object]
|
47
|
+
attr_reader :_field_set
|
48
|
+
protected :_field_set
|
49
|
+
|
50
|
+
OMIT = Object.new
|
51
|
+
|
52
|
+
# @param provider_credentialing_span_id [String]
|
53
|
+
# @param rendering_provider [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2] The rendering provider covered by the credentialing span.
|
54
|
+
# @param contracting_provider [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2] The practice location at which the rendering provider is covered by the
|
55
|
+
# credentialing span.
|
56
|
+
# @param payer [CandidApiClient::Payers::V3::Types::Payer] The payer doing the credentialing.
|
57
|
+
# @param start_date [Date] Start date of the credentialing span.
|
58
|
+
# @param end_date [Date] End date of the credentialing span.
|
59
|
+
# @param regions [CandidApiClient::Commons::Types::Regions] The states covered by the credentialing span. A span may be national and cover
|
60
|
+
# all states.
|
61
|
+
# @param submitted_date [Date] Date that the credential paperwork was submitted.
|
62
|
+
# @param credentialing_status [CandidApiClient::Credentialing::V2::Types::CredentialingSpanStatus] Status of the credentialing span.
|
63
|
+
# @param payer_loaded_date [Date] Date that the payer loaded the credentialing span into their system.
|
64
|
+
# @param source [String] Source of the credentialing span.
|
65
|
+
# @param medallion_payer_enrollment_id [String] Provider ID for the related medallion payer enrollment.
|
66
|
+
# @param is_enabled [Boolean] Is the credentialing span enabled?
|
67
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
68
|
+
# @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan]
|
69
|
+
def initialize(provider_credentialing_span_id:, rendering_provider:, contracting_provider:, payer:, regions:, credentialing_status:, source:, is_enabled:,
|
70
|
+
start_date: OMIT, end_date: OMIT, submitted_date: OMIT, payer_loaded_date: OMIT, medallion_payer_enrollment_id: OMIT, additional_properties: nil)
|
71
|
+
@provider_credentialing_span_id = provider_credentialing_span_id
|
72
|
+
@rendering_provider = rendering_provider
|
73
|
+
@contracting_provider = contracting_provider
|
74
|
+
@payer = payer
|
75
|
+
@start_date = start_date if start_date != OMIT
|
76
|
+
@end_date = end_date if end_date != OMIT
|
77
|
+
@regions = regions
|
78
|
+
@submitted_date = submitted_date if submitted_date != OMIT
|
79
|
+
@credentialing_status = credentialing_status
|
80
|
+
@payer_loaded_date = payer_loaded_date if payer_loaded_date != OMIT
|
81
|
+
@source = source
|
82
|
+
@medallion_payer_enrollment_id = medallion_payer_enrollment_id if medallion_payer_enrollment_id != OMIT
|
83
|
+
@is_enabled = is_enabled
|
84
|
+
@additional_properties = additional_properties
|
85
|
+
@_field_set = {
|
86
|
+
"provider_credentialing_span_id": provider_credentialing_span_id,
|
87
|
+
"rendering_provider": rendering_provider,
|
88
|
+
"contracting_provider": contracting_provider,
|
89
|
+
"payer": payer,
|
90
|
+
"start_date": start_date,
|
91
|
+
"end_date": end_date,
|
92
|
+
"regions": regions,
|
93
|
+
"submitted_date": submitted_date,
|
94
|
+
"credentialing_status": credentialing_status,
|
95
|
+
"payer_loaded_date": payer_loaded_date,
|
96
|
+
"source": source,
|
97
|
+
"medallion_payer_enrollment_id": medallion_payer_enrollment_id,
|
98
|
+
"is_enabled": is_enabled
|
99
|
+
}.reject do |_k, v|
|
100
|
+
v == OMIT
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Deserialize a JSON object to an instance of ProviderCredentialingSpan
|
105
|
+
#
|
106
|
+
# @param json_object [String]
|
107
|
+
# @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan]
|
108
|
+
def self.from_json(json_object:)
|
109
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
110
|
+
parsed_json = JSON.parse(json_object)
|
111
|
+
provider_credentialing_span_id = struct["provider_credentialing_span_id"]
|
112
|
+
if parsed_json["rendering_provider"].nil?
|
113
|
+
rendering_provider = nil
|
114
|
+
else
|
115
|
+
rendering_provider = parsed_json["rendering_provider"].to_json
|
116
|
+
rendering_provider = CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2.from_json(json_object: rendering_provider)
|
117
|
+
end
|
118
|
+
if parsed_json["contracting_provider"].nil?
|
119
|
+
contracting_provider = nil
|
120
|
+
else
|
121
|
+
contracting_provider = parsed_json["contracting_provider"].to_json
|
122
|
+
contracting_provider = CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2.from_json(json_object: contracting_provider)
|
123
|
+
end
|
124
|
+
if parsed_json["payer"].nil?
|
125
|
+
payer = nil
|
126
|
+
else
|
127
|
+
payer = parsed_json["payer"].to_json
|
128
|
+
payer = CandidApiClient::Payers::V3::Types::Payer.from_json(json_object: payer)
|
129
|
+
end
|
130
|
+
start_date = (Date.parse(parsed_json["start_date"]) unless parsed_json["start_date"].nil?)
|
131
|
+
end_date = (Date.parse(parsed_json["end_date"]) unless parsed_json["end_date"].nil?)
|
132
|
+
if parsed_json["regions"].nil?
|
133
|
+
regions = nil
|
134
|
+
else
|
135
|
+
regions = parsed_json["regions"].to_json
|
136
|
+
regions = CandidApiClient::Commons::Types::Regions.from_json(json_object: regions)
|
137
|
+
end
|
138
|
+
submitted_date = (Date.parse(parsed_json["submitted_date"]) unless parsed_json["submitted_date"].nil?)
|
139
|
+
credentialing_status = struct["credentialing_status"]
|
140
|
+
payer_loaded_date = unless parsed_json["payer_loaded_date"].nil?
|
141
|
+
Date.parse(parsed_json["payer_loaded_date"])
|
142
|
+
end
|
143
|
+
source = struct["source"]
|
144
|
+
medallion_payer_enrollment_id = struct["medallion_payer_enrollment_id"]
|
145
|
+
is_enabled = struct["is_enabled"]
|
146
|
+
new(
|
147
|
+
provider_credentialing_span_id: provider_credentialing_span_id,
|
148
|
+
rendering_provider: rendering_provider,
|
149
|
+
contracting_provider: contracting_provider,
|
150
|
+
payer: payer,
|
151
|
+
start_date: start_date,
|
152
|
+
end_date: end_date,
|
153
|
+
regions: regions,
|
154
|
+
submitted_date: submitted_date,
|
155
|
+
credentialing_status: credentialing_status,
|
156
|
+
payer_loaded_date: payer_loaded_date,
|
157
|
+
source: source,
|
158
|
+
medallion_payer_enrollment_id: medallion_payer_enrollment_id,
|
159
|
+
is_enabled: is_enabled,
|
160
|
+
additional_properties: struct
|
161
|
+
)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Serialize an instance of ProviderCredentialingSpan to a JSON object
|
165
|
+
#
|
166
|
+
# @return [String]
|
167
|
+
def to_json(*_args)
|
168
|
+
@_field_set&.to_json
|
169
|
+
end
|
170
|
+
|
171
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
172
|
+
# hash and check each fields type against the current object's property
|
173
|
+
# definitions.
|
174
|
+
#
|
175
|
+
# @param obj [Object]
|
176
|
+
# @return [Void]
|
177
|
+
def self.validate_raw(obj:)
|
178
|
+
obj.provider_credentialing_span_id.is_a?(String) != false || raise("Passed value for field obj.provider_credentialing_span_id is not the expected type, validation failed.")
|
179
|
+
CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2.validate_raw(obj: obj.rendering_provider)
|
180
|
+
CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2.validate_raw(obj: obj.contracting_provider)
|
181
|
+
CandidApiClient::Payers::V3::Types::Payer.validate_raw(obj: obj.payer)
|
182
|
+
obj.start_date&.is_a?(Date) != false || raise("Passed value for field obj.start_date is not the expected type, validation failed.")
|
183
|
+
obj.end_date&.is_a?(Date) != false || raise("Passed value for field obj.end_date is not the expected type, validation failed.")
|
184
|
+
CandidApiClient::Commons::Types::Regions.validate_raw(obj: obj.regions)
|
185
|
+
obj.submitted_date&.is_a?(Date) != false || raise("Passed value for field obj.submitted_date is not the expected type, validation failed.")
|
186
|
+
obj.credentialing_status.is_a?(CandidApiClient::Credentialing::V2::Types::CredentialingSpanStatus) != false || raise("Passed value for field obj.credentialing_status is not the expected type, validation failed.")
|
187
|
+
obj.payer_loaded_date&.is_a?(Date) != false || raise("Passed value for field obj.payer_loaded_date is not the expected type, validation failed.")
|
188
|
+
obj.source.is_a?(String) != false || raise("Passed value for field obj.source is not the expected type, validation failed.")
|
189
|
+
obj.medallion_payer_enrollment_id&.is_a?(String) != false || raise("Passed value for field obj.medallion_payer_enrollment_id is not the expected type, validation failed.")
|
190
|
+
obj.is_enabled.is_a?(Boolean) != false || raise("Passed value for field obj.is_enabled is not the expected type, validation failed.")
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "provider_credentialing_span"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Credentialing
|
9
|
+
module V2
|
10
|
+
module Types
|
11
|
+
class ProviderCredentialingSpanPage
|
12
|
+
# @return [Array<CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan>]
|
13
|
+
attr_reader :items
|
14
|
+
# @return [String]
|
15
|
+
attr_reader :prev_page_token
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :next_page_token
|
18
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
attr_reader :additional_properties
|
20
|
+
# @return [Object]
|
21
|
+
attr_reader :_field_set
|
22
|
+
protected :_field_set
|
23
|
+
|
24
|
+
OMIT = Object.new
|
25
|
+
|
26
|
+
# @param items [Array<CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan>]
|
27
|
+
# @param prev_page_token [String]
|
28
|
+
# @param next_page_token [String]
|
29
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
|
+
# @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage]
|
31
|
+
def initialize(items:, prev_page_token: OMIT, next_page_token: OMIT, additional_properties: nil)
|
32
|
+
@items = items
|
33
|
+
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
34
|
+
@next_page_token = next_page_token if next_page_token != OMIT
|
35
|
+
@additional_properties = additional_properties
|
36
|
+
@_field_set = {
|
37
|
+
"items": items,
|
38
|
+
"prev_page_token": prev_page_token,
|
39
|
+
"next_page_token": next_page_token
|
40
|
+
}.reject do |_k, v|
|
41
|
+
v == OMIT
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# Deserialize a JSON object to an instance of ProviderCredentialingSpanPage
|
46
|
+
#
|
47
|
+
# @param json_object [String]
|
48
|
+
# @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage]
|
49
|
+
def self.from_json(json_object:)
|
50
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
51
|
+
parsed_json = JSON.parse(json_object)
|
52
|
+
items = parsed_json["items"]&.map do |item|
|
53
|
+
item = item.to_json
|
54
|
+
CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: item)
|
55
|
+
end
|
56
|
+
prev_page_token = struct["prev_page_token"]
|
57
|
+
next_page_token = struct["next_page_token"]
|
58
|
+
new(
|
59
|
+
items: items,
|
60
|
+
prev_page_token: prev_page_token,
|
61
|
+
next_page_token: next_page_token,
|
62
|
+
additional_properties: struct
|
63
|
+
)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Serialize an instance of ProviderCredentialingSpanPage to a JSON object
|
67
|
+
#
|
68
|
+
# @return [String]
|
69
|
+
def to_json(*_args)
|
70
|
+
@_field_set&.to_json
|
71
|
+
end
|
72
|
+
|
73
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
74
|
+
# hash and check each fields type against the current object's property
|
75
|
+
# definitions.
|
76
|
+
#
|
77
|
+
# @param obj [Object]
|
78
|
+
# @return [Void]
|
79
|
+
def self.validate_raw(obj:)
|
80
|
+
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
81
|
+
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
82
|
+
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -257,7 +257,6 @@ module CandidApiClient
|
|
257
257
|
# related to the patient's pregnancy.
|
258
258
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
259
259
|
# Code indicating the reason why a request was delayed
|
260
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
261
260
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
262
261
|
# @param _field_set [Object]
|
263
262
|
# @param patient [Hash] Contains the identification information of the individual receiving medical
|
@@ -531,6 +530,7 @@ module CandidApiClient
|
|
531
530
|
# instances cannot be created for the same schema on an encounter.Request of type Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>, as a Hash
|
532
531
|
# * :schema_id (String)
|
533
532
|
# * :content (Hash{String => Object})
|
533
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
534
534
|
# @param request_options [CandidApiClient::RequestOptions]
|
535
535
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
536
536
|
# @example
|
@@ -556,10 +556,11 @@ module CandidApiClient
|
|
556
556
|
# guarantor: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } },
|
557
557
|
# external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] },
|
558
558
|
# tag_ids: ["string"],
|
559
|
-
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }]
|
559
|
+
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
560
|
+
# referral_number: "string"
|
560
561
|
# )
|
561
562
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
562
|
-
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil,
|
563
|
+
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, request_options: nil)
|
563
564
|
response = @request_client.conn.post do |req|
|
564
565
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
565
566
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -590,7 +591,6 @@ module CandidApiClient
|
|
590
591
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
591
592
|
last_menstrual_period_date: last_menstrual_period_date,
|
592
593
|
delay_reason_code: delay_reason_code,
|
593
|
-
referral_number: referral_number,
|
594
594
|
additional_properties: additional_properties,
|
595
595
|
_field_set: _field_set,
|
596
596
|
patient: patient,
|
@@ -613,7 +613,8 @@ module CandidApiClient
|
|
613
613
|
guarantor: guarantor,
|
614
614
|
external_claim_submission: external_claim_submission,
|
615
615
|
tag_ids: tag_ids,
|
616
|
-
schema_instances: schema_instances
|
616
|
+
schema_instances: schema_instances,
|
617
|
+
referral_number: referral_number
|
617
618
|
}.compact
|
618
619
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
619
620
|
request_options: request_options)}/api/encounters/v4"
|
@@ -634,7 +635,7 @@ module CandidApiClient
|
|
634
635
|
# - Referring Provider
|
635
636
|
# - Subscriber Primary
|
636
637
|
# - Subscriber Secondary
|
637
|
-
# -
|
638
|
+
# - Referral Number
|
638
639
|
# - Responsible Party
|
639
640
|
# - Guarantor
|
640
641
|
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
@@ -743,7 +744,6 @@ module CandidApiClient
|
|
743
744
|
# related to the patient's pregnancy.
|
744
745
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
745
746
|
# Code indicating the reason why a request was delayed
|
746
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
747
747
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
748
748
|
# @param _field_set [Object]
|
749
749
|
# @param pre_encounter_patient_id [String]
|
@@ -930,7 +930,7 @@ module CandidApiClient
|
|
930
930
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }]
|
931
931
|
# )
|
932
932
|
def create_from_pre_encounter_patient(external_id:, patient_authorized_release:,
|
933
|
-
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:, pre_encounter_appointment_ids:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil,
|
933
|
+
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:, pre_encounter_appointment_ids:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, request_options: nil)
|
934
934
|
response = @request_client.conn.post do |req|
|
935
935
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
936
936
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -961,7 +961,6 @@ module CandidApiClient
|
|
961
961
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
962
962
|
last_menstrual_period_date: last_menstrual_period_date,
|
963
963
|
delay_reason_code: delay_reason_code,
|
964
|
-
referral_number: referral_number,
|
965
964
|
additional_properties: additional_properties,
|
966
965
|
_field_set: _field_set,
|
967
966
|
pre_encounter_patient_id: pre_encounter_patient_id,
|
@@ -1617,7 +1616,6 @@ module CandidApiClient
|
|
1617
1616
|
# related to the patient's pregnancy.
|
1618
1617
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
1619
1618
|
# Code indicating the reason why a request was delayed
|
1620
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
1621
1619
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
1622
1620
|
# @param _field_set [Object]
|
1623
1621
|
# @param patient [Hash] Contains the identification information of the individual receiving medical
|
@@ -1891,6 +1889,7 @@ module CandidApiClient
|
|
1891
1889
|
# instances cannot be created for the same schema on an encounter.Request of type Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>, as a Hash
|
1892
1890
|
# * :schema_id (String)
|
1893
1891
|
# * :content (Hash{String => Object})
|
1892
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
1894
1893
|
# @param request_options [CandidApiClient::RequestOptions]
|
1895
1894
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
1896
1895
|
# @example
|
@@ -1916,10 +1915,11 @@ module CandidApiClient
|
|
1916
1915
|
# guarantor: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } },
|
1917
1916
|
# external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] },
|
1918
1917
|
# tag_ids: ["string"],
|
1919
|
-
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }]
|
1918
|
+
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
1919
|
+
# referral_number: "string"
|
1920
1920
|
# )
|
1921
1921
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
1922
|
-
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil,
|
1922
|
+
provider_accepts_assignment:, billable_status:, patient:, billing_provider:, rendering_provider:, responsible_party:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, referring_provider: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, subscriber_primary: nil, subscriber_secondary: nil, prior_authorization_number: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, guarantor: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, referral_number: nil, request_options: nil)
|
1923
1923
|
Async do
|
1924
1924
|
response = @request_client.conn.post do |req|
|
1925
1925
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1951,7 +1951,6 @@ module CandidApiClient
|
|
1951
1951
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
1952
1952
|
last_menstrual_period_date: last_menstrual_period_date,
|
1953
1953
|
delay_reason_code: delay_reason_code,
|
1954
|
-
referral_number: referral_number,
|
1955
1954
|
additional_properties: additional_properties,
|
1956
1955
|
_field_set: _field_set,
|
1957
1956
|
patient: patient,
|
@@ -1974,7 +1973,8 @@ module CandidApiClient
|
|
1974
1973
|
guarantor: guarantor,
|
1975
1974
|
external_claim_submission: external_claim_submission,
|
1976
1975
|
tag_ids: tag_ids,
|
1977
|
-
schema_instances: schema_instances
|
1976
|
+
schema_instances: schema_instances,
|
1977
|
+
referral_number: referral_number
|
1978
1978
|
}.compact
|
1979
1979
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1980
1980
|
request_options: request_options)}/api/encounters/v4"
|
@@ -1996,7 +1996,7 @@ module CandidApiClient
|
|
1996
1996
|
# - Referring Provider
|
1997
1997
|
# - Subscriber Primary
|
1998
1998
|
# - Subscriber Secondary
|
1999
|
-
# -
|
1999
|
+
# - Referral Number
|
2000
2000
|
# - Responsible Party
|
2001
2001
|
# - Guarantor
|
2002
2002
|
# Utilizing this endpoint opts you into automatic updating of the encounter when
|
@@ -2105,7 +2105,6 @@ module CandidApiClient
|
|
2105
2105
|
# related to the patient's pregnancy.
|
2106
2106
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
2107
2107
|
# Code indicating the reason why a request was delayed
|
2108
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
2109
2108
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
2110
2109
|
# @param _field_set [Object]
|
2111
2110
|
# @param pre_encounter_patient_id [String]
|
@@ -2292,7 +2291,7 @@ module CandidApiClient
|
|
2292
2291
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }]
|
2293
2292
|
# )
|
2294
2293
|
def create_from_pre_encounter_patient(external_id:, patient_authorized_release:,
|
2295
|
-
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:, pre_encounter_appointment_ids:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil,
|
2294
|
+
benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, pre_encounter_patient_id:, pre_encounter_appointment_ids:, billing_provider:, rendering_provider:, diagnoses:, place_of_service_code:, date_of_service: nil, end_date_of_service: nil, appointment_type: nil, existing_medications: nil, vitals: nil, interventions: nil, pay_to_address: nil, synchronicity: nil, additional_information: nil, service_authorization_exception_code: nil, admission_date: nil, discharge_date: nil, onset_of_current_illness_or_symptom_date: nil, last_menstrual_period_date: nil, delay_reason_code: nil, additional_properties: nil, _field_set: nil, initial_referring_provider: nil, supervising_provider: nil, service_facility: nil, clinical_notes: nil, billing_notes: nil, patient_histories: nil, service_lines: nil, external_claim_submission: nil, tag_ids: nil, schema_instances: nil, request_options: nil)
|
2296
2295
|
Async do
|
2297
2296
|
response = @request_client.conn.post do |req|
|
2298
2297
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -2324,7 +2323,6 @@ module CandidApiClient
|
|
2324
2323
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
2325
2324
|
last_menstrual_period_date: last_menstrual_period_date,
|
2326
2325
|
delay_reason_code: delay_reason_code,
|
2327
|
-
referral_number: referral_number,
|
2328
2326
|
additional_properties: additional_properties,
|
2329
2327
|
_field_set: _field_set,
|
2330
2328
|
pre_encounter_patient_id: pre_encounter_patient_id,
|
@@ -141,6 +141,8 @@ module CandidApiClient
|
|
141
141
|
# Multiple schema
|
142
142
|
# instances cannot be created for the same schema on an encounter.
|
143
143
|
attr_reader :schema_instances
|
144
|
+
# @return [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
145
|
+
attr_reader :referral_number
|
144
146
|
# @return [String] A client-specified unique ID to associate with this encounter;
|
145
147
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
146
148
|
# This field should not contain PHI.
|
@@ -233,8 +235,6 @@ module CandidApiClient
|
|
233
235
|
# @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
234
236
|
# Code indicating the reason why a request was delayed
|
235
237
|
attr_reader :delay_reason_code
|
236
|
-
# @return [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
237
|
-
attr_reader :referral_number
|
238
238
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
239
239
|
attr_reader :additional_properties
|
240
240
|
# @return [Object]
|
@@ -319,6 +319,7 @@ module CandidApiClient
|
|
319
319
|
# @param schema_instances [Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>] Key-value pairs that must adhere to a schema created via the Custom Schema API.
|
320
320
|
# Multiple schema
|
321
321
|
# instances cannot be created for the same schema on an encounter.
|
322
|
+
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
322
323
|
# @param external_id [String] A client-specified unique ID to associate with this encounter;
|
323
324
|
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
324
325
|
# This field should not contain PHI.
|
@@ -391,11 +392,10 @@ module CandidApiClient
|
|
391
392
|
# related to the patient's pregnancy.
|
392
393
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
393
394
|
# Code indicating the reason why a request was delayed
|
394
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
395
395
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
396
396
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
397
397
|
def initialize(encounter_id:, claims:, patient:, billing_provider:, rendering_provider:, service_facility:,
|
398
|
-
responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT,
|
398
|
+
responsible_party:, url:, diagnoses:, clinical_notes:, patient_histories:, patient_payments:, tags:, owner_of_next_action:, submission_origin:, schema_instances:, external_id:, patient_authorized_release:, benefits_assigned_to_provider:, provider_accepts_assignment:, billable_status:, patient_control_number: OMIT, guarantor: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, prior_authorization_number: OMIT, billing_notes: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, coding_attribution: OMIT, work_queue_id: OMIT, work_queue_membership_activated_at: OMIT, referral_number: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, additional_properties: nil)
|
399
399
|
@patient_control_number = patient_control_number if patient_control_number != OMIT
|
400
400
|
@encounter_id = encounter_id
|
401
401
|
@claims = claims
|
@@ -430,6 +430,7 @@ module CandidApiClient
|
|
430
430
|
@owner_of_next_action = owner_of_next_action
|
431
431
|
@submission_origin = submission_origin
|
432
432
|
@schema_instances = schema_instances
|
433
|
+
@referral_number = referral_number if referral_number != OMIT
|
433
434
|
@external_id = external_id
|
434
435
|
@date_of_service = date_of_service if date_of_service != OMIT
|
435
436
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
@@ -454,7 +455,6 @@ module CandidApiClient
|
|
454
455
|
end
|
455
456
|
@last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
|
456
457
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
457
|
-
@referral_number = referral_number if referral_number != OMIT
|
458
458
|
@additional_properties = additional_properties
|
459
459
|
@_field_set = {
|
460
460
|
"patient_control_number": patient_control_number,
|
@@ -487,6 +487,7 @@ module CandidApiClient
|
|
487
487
|
"owner_of_next_action": owner_of_next_action,
|
488
488
|
"submission_origin": submission_origin,
|
489
489
|
"schema_instances": schema_instances,
|
490
|
+
"referral_number": referral_number,
|
490
491
|
"external_id": external_id,
|
491
492
|
"date_of_service": date_of_service,
|
492
493
|
"end_date_of_service": end_date_of_service,
|
@@ -506,8 +507,7 @@ module CandidApiClient
|
|
506
507
|
"discharge_date": discharge_date,
|
507
508
|
"onset_of_current_illness_or_symptom_date": onset_of_current_illness_or_symptom_date,
|
508
509
|
"last_menstrual_period_date": last_menstrual_period_date,
|
509
|
-
"delay_reason_code": delay_reason_code
|
510
|
-
"referral_number": referral_number
|
510
|
+
"delay_reason_code": delay_reason_code
|
511
511
|
}.reject do |_k, v|
|
512
512
|
v == OMIT
|
513
513
|
end
|
@@ -626,6 +626,7 @@ module CandidApiClient
|
|
626
626
|
item = item.to_json
|
627
627
|
CandidApiClient::CustomSchemas::V1::Types::SchemaInstance.from_json(json_object: item)
|
628
628
|
end
|
629
|
+
referral_number = struct["referral_number"]
|
629
630
|
external_id = struct["external_id"]
|
630
631
|
date_of_service = (Date.parse(parsed_json["date_of_service"]) unless parsed_json["date_of_service"].nil?)
|
631
632
|
end_date_of_service = unless parsed_json["end_date_of_service"].nil?
|
@@ -668,7 +669,6 @@ module CandidApiClient
|
|
668
669
|
Date.parse(parsed_json["last_menstrual_period_date"])
|
669
670
|
end
|
670
671
|
delay_reason_code = struct["delay_reason_code"]
|
671
|
-
referral_number = struct["referral_number"]
|
672
672
|
new(
|
673
673
|
patient_control_number: patient_control_number,
|
674
674
|
encounter_id: encounter_id,
|
@@ -700,6 +700,7 @@ module CandidApiClient
|
|
700
700
|
owner_of_next_action: owner_of_next_action,
|
701
701
|
submission_origin: submission_origin,
|
702
702
|
schema_instances: schema_instances,
|
703
|
+
referral_number: referral_number,
|
703
704
|
external_id: external_id,
|
704
705
|
date_of_service: date_of_service,
|
705
706
|
end_date_of_service: end_date_of_service,
|
@@ -720,7 +721,6 @@ module CandidApiClient
|
|
720
721
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
721
722
|
last_menstrual_period_date: last_menstrual_period_date,
|
722
723
|
delay_reason_code: delay_reason_code,
|
723
|
-
referral_number: referral_number,
|
724
724
|
additional_properties: struct
|
725
725
|
)
|
726
726
|
end
|
@@ -769,6 +769,7 @@ module CandidApiClient
|
|
769
769
|
obj.owner_of_next_action.is_a?(CandidApiClient::Encounters::V4::Types::EncounterOwnerOfNextActionType) != false || raise("Passed value for field obj.owner_of_next_action is not the expected type, validation failed.")
|
770
770
|
obj.submission_origin.is_a?(CandidApiClient::Encounters::V4::Types::EncounterSubmissionOriginType) != false || raise("Passed value for field obj.submission_origin is not the expected type, validation failed.")
|
771
771
|
obj.schema_instances.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
772
|
+
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
772
773
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
773
774
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
774
775
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
@@ -789,7 +790,6 @@ module CandidApiClient
|
|
789
790
|
obj.onset_of_current_illness_or_symptom_date&.is_a?(Date) != false || raise("Passed value for field obj.onset_of_current_illness_or_symptom_date is not the expected type, validation failed.")
|
790
791
|
obj.last_menstrual_period_date&.is_a?(Date) != false || raise("Passed value for field obj.last_menstrual_period_date is not the expected type, validation failed.")
|
791
792
|
obj.delay_reason_code&.is_a?(CandidApiClient::Commons::Types::DelayReasonCode) != false || raise("Passed value for field obj.delay_reason_code is not the expected type, validation failed.")
|
792
|
-
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
793
793
|
end
|
794
794
|
end
|
795
795
|
end
|
@@ -109,8 +109,6 @@ module CandidApiClient
|
|
109
109
|
# @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
110
110
|
# Code indicating the reason why a request was delayed
|
111
111
|
attr_reader :delay_reason_code
|
112
|
-
# @return [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
113
|
-
attr_reader :referral_number
|
114
112
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
115
113
|
attr_reader :additional_properties
|
116
114
|
# @return [Object]
|
@@ -191,11 +189,10 @@ module CandidApiClient
|
|
191
189
|
# related to the patient's pregnancy.
|
192
190
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
193
191
|
# Code indicating the reason why a request was delayed
|
194
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
195
192
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
196
193
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterBase]
|
197
194
|
def initialize(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
198
|
-
provider_accepts_assignment:, billable_status:, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT,
|
195
|
+
provider_accepts_assignment:, billable_status:, date_of_service: OMIT, end_date_of_service: OMIT, appointment_type: OMIT, existing_medications: OMIT, vitals: OMIT, interventions: OMIT, pay_to_address: OMIT, synchronicity: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, additional_properties: nil)
|
199
196
|
@external_id = external_id
|
200
197
|
@date_of_service = date_of_service if date_of_service != OMIT
|
201
198
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
@@ -220,7 +217,6 @@ module CandidApiClient
|
|
220
217
|
end
|
221
218
|
@last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
|
222
219
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
223
|
-
@referral_number = referral_number if referral_number != OMIT
|
224
220
|
@additional_properties = additional_properties
|
225
221
|
@_field_set = {
|
226
222
|
"external_id": external_id,
|
@@ -242,8 +238,7 @@ module CandidApiClient
|
|
242
238
|
"discharge_date": discharge_date,
|
243
239
|
"onset_of_current_illness_or_symptom_date": onset_of_current_illness_or_symptom_date,
|
244
240
|
"last_menstrual_period_date": last_menstrual_period_date,
|
245
|
-
"delay_reason_code": delay_reason_code
|
246
|
-
"referral_number": referral_number
|
241
|
+
"delay_reason_code": delay_reason_code
|
247
242
|
}.reject do |_k, v|
|
248
243
|
v == OMIT
|
249
244
|
end
|
@@ -298,7 +293,6 @@ module CandidApiClient
|
|
298
293
|
Date.parse(parsed_json["last_menstrual_period_date"])
|
299
294
|
end
|
300
295
|
delay_reason_code = struct["delay_reason_code"]
|
301
|
-
referral_number = struct["referral_number"]
|
302
296
|
new(
|
303
297
|
external_id: external_id,
|
304
298
|
date_of_service: date_of_service,
|
@@ -320,7 +314,6 @@ module CandidApiClient
|
|
320
314
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
321
315
|
last_menstrual_period_date: last_menstrual_period_date,
|
322
316
|
delay_reason_code: delay_reason_code,
|
323
|
-
referral_number: referral_number,
|
324
317
|
additional_properties: struct
|
325
318
|
)
|
326
319
|
end
|
@@ -359,7 +352,6 @@ module CandidApiClient
|
|
359
352
|
obj.onset_of_current_illness_or_symptom_date&.is_a?(Date) != false || raise("Passed value for field obj.onset_of_current_illness_or_symptom_date is not the expected type, validation failed.")
|
360
353
|
obj.last_menstrual_period_date&.is_a?(Date) != false || raise("Passed value for field obj.last_menstrual_period_date is not the expected type, validation failed.")
|
361
354
|
obj.delay_reason_code&.is_a?(CandidApiClient::Commons::Types::DelayReasonCode) != false || raise("Passed value for field obj.delay_reason_code is not the expected type, validation failed.")
|
362
|
-
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
363
355
|
end
|
364
356
|
end
|
365
357
|
end
|