candidhealth 0.43.1 → 0.46.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/billing_notes/v_2/client.rb +2 -2
- data/lib/candidhealth/charge_capture/v_1/client.rb +479 -559
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +200 -190
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -44
- data/lib/candidhealth/commons/types/street_address_optional_base.rb +99 -0
- data/lib/candidhealth/commons/types/street_address_short_zip_optional.rb +107 -0
- data/lib/candidhealth/contracts/v_2/client.rb +18 -34
- data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +18 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +6 -44
- data/lib/candidhealth/diagnoses/client.rb +4 -14
- data/lib/candidhealth/eligibility/v_2/client.rb +4 -4
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +0 -6
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +160 -0
- data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb +134 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounters/v_4/client.rb +259 -293
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +23 -13
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +26 -184
- data/lib/candidhealth/expected_network_status/v_1/client.rb +12 -18
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +53 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +13 -10
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
- data/lib/candidhealth/fee_schedules/v_3/client.rb +12 -68
- data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +3 -3
- data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +2 -2
- data/lib/candidhealth/guarantor/v_1/client.rb +4 -4
- data/lib/candidhealth/import_invoice/v_1/client.rb +6 -28
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +179 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -20
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +6 -24
- data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +6 -22
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +6 -22
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +6 -22
- data/lib/candidhealth/organization_providers/v_3/client.rb +4 -4
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +2 -2
- data/lib/candidhealth/patient_payments/v_4/client.rb +8 -38
- data/lib/candidhealth/patient_refunds/v_1/client.rb +8 -40
- data/lib/candidhealth/payer_plan_groups/v_1/client.rb +6 -30
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +32 -44
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +4 -4
- data/lib/candidhealth/pre_encounter/common/types/base_model.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +24 -34
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/images/v_1/client.rb +20 -20
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +6 -6
- data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -28
- data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +14 -14
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +56 -68
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +8 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +8 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +16 -16
- data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +16 -16
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +4 -4
- data/lib/candidhealth/service_facility/client.rb +2 -2
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update_with_optional_address.rb +113 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
- data/lib/candidhealth/superbills/v_1/client.rb +4 -6
- data/lib/candidhealth/tasks/v_3/client.rb +6 -34
- data/lib/candidhealth/write_offs/v_1/client.rb +2 -24
- data/lib/environment.rb +4 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +11 -1
- metadata +13 -3
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb +0 -112
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
44
44
|
# @example
|
45
45
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
46
|
-
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
46
|
+
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
47
47
|
def update_referring_provider(encounter_id:, request:, request_options: nil)
|
48
48
|
response = @request_client.conn.patch do |req|
|
49
49
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -79,7 +79,7 @@ module CandidApiClient
|
|
79
79
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
80
80
|
# @example
|
81
81
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
82
|
-
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
82
|
+
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
83
83
|
def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
84
84
|
response = @request_client.conn.patch do |req|
|
85
85
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -114,7 +114,7 @@ module CandidApiClient
|
|
114
114
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
115
115
|
# @example
|
116
116
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
117
|
-
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
117
|
+
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
118
118
|
def update_supervising_provider(encounter_id:, request:, request_options: nil)
|
119
119
|
response = @request_client.conn.patch do |req|
|
120
120
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -149,7 +149,7 @@ module CandidApiClient
|
|
149
149
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
150
150
|
# @example
|
151
151
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
152
|
-
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
152
|
+
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
153
153
|
def update_ordering_provider(service_line_id:, request:, request_options: nil)
|
154
154
|
response = @request_client.conn.patch do |req|
|
155
155
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -184,7 +184,7 @@ module CandidApiClient
|
|
184
184
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
185
185
|
# @example
|
186
186
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
187
|
-
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
187
|
+
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
188
188
|
def create_referring_provider(encounter_id:, request:, request_options: nil)
|
189
189
|
response = @request_client.conn.post do |req|
|
190
190
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -220,7 +220,7 @@ module CandidApiClient
|
|
220
220
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
221
221
|
# @example
|
222
222
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
223
|
-
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
223
|
+
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
224
224
|
def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
225
225
|
response = @request_client.conn.post do |req|
|
226
226
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -255,7 +255,7 @@ module CandidApiClient
|
|
255
255
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
256
256
|
# @example
|
257
257
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
258
|
-
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
258
|
+
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
259
259
|
def create_supervising_provider(encounter_id:, request:, request_options: nil)
|
260
260
|
response = @request_client.conn.post do |req|
|
261
261
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -290,7 +290,7 @@ module CandidApiClient
|
|
290
290
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
291
291
|
# @example
|
292
292
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
293
|
-
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
293
|
+
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
294
294
|
def create_ordering_provider(service_line_id:, request:, request_options: nil)
|
295
295
|
response = @request_client.conn.post do |req|
|
296
296
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -416,7 +416,7 @@ module CandidApiClient
|
|
416
416
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
417
417
|
# @example
|
418
418
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
419
|
-
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
419
|
+
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
420
420
|
def update_referring_provider(encounter_id:, request:, request_options: nil)
|
421
421
|
Async do
|
422
422
|
response = @request_client.conn.patch do |req|
|
@@ -454,7 +454,7 @@ module CandidApiClient
|
|
454
454
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
455
455
|
# @example
|
456
456
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
457
|
-
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
457
|
+
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
458
458
|
def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
459
459
|
Async do
|
460
460
|
response = @request_client.conn.patch do |req|
|
@@ -491,7 +491,7 @@ module CandidApiClient
|
|
491
491
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
492
492
|
# @example
|
493
493
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
494
|
-
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
494
|
+
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
495
495
|
def update_supervising_provider(encounter_id:, request:, request_options: nil)
|
496
496
|
Async do
|
497
497
|
response = @request_client.conn.patch do |req|
|
@@ -528,7 +528,7 @@ module CandidApiClient
|
|
528
528
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
529
529
|
# @example
|
530
530
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
531
|
-
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
531
|
+
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
532
532
|
def update_ordering_provider(service_line_id:, request:, request_options: nil)
|
533
533
|
Async do
|
534
534
|
response = @request_client.conn.patch do |req|
|
@@ -565,7 +565,7 @@ module CandidApiClient
|
|
565
565
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
566
566
|
# @example
|
567
567
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
568
|
-
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
568
|
+
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
569
569
|
def create_referring_provider(encounter_id:, request:, request_options: nil)
|
570
570
|
Async do
|
571
571
|
response = @request_client.conn.post do |req|
|
@@ -603,7 +603,7 @@ module CandidApiClient
|
|
603
603
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
604
604
|
# @example
|
605
605
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
606
|
-
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
606
|
+
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
607
607
|
def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
608
608
|
Async do
|
609
609
|
response = @request_client.conn.post do |req|
|
@@ -640,7 +640,7 @@ module CandidApiClient
|
|
640
640
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
641
641
|
# @example
|
642
642
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
643
|
-
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
643
|
+
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
644
644
|
def create_supervising_provider(encounter_id:, request:, request_options: nil)
|
645
645
|
Async do
|
646
646
|
response = @request_client.conn.post do |req|
|
@@ -677,7 +677,7 @@ module CandidApiClient
|
|
677
677
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
678
678
|
# @example
|
679
679
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
680
|
-
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "
|
680
|
+
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "npi" })
|
681
681
|
def create_ordering_provider(service_line_id:, request:, request_options: nil)
|
682
682
|
Async do
|
683
683
|
response = @request_client.conn.post do |req|
|
data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../commons/types/street_address_short_zip_optional"
|
4
|
+
require_relative "../../../commons/types/billing_provider_commercial_license_type"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
module EncounterProviders
|
10
|
+
module V2
|
11
|
+
module Types
|
12
|
+
# The billing provider is the provider or business entity submitting the claim.
|
13
|
+
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
14
|
+
# rendering provider.
|
15
|
+
# From a payer's perspective, this represents the person or entity being
|
16
|
+
# reimbursed.
|
17
|
+
# When a contract exists with the target payer, the billing provider should be the
|
18
|
+
# entity contracted with the payer.
|
19
|
+
# In some circumstances, this will be an individual provider. In that case, submit
|
20
|
+
# that provider's NPI and the
|
21
|
+
# tax ID (TIN) that the provider gave to the payer during contracting.
|
22
|
+
# In other cases, the billing entity will be a medical group. If so, submit the
|
23
|
+
# group NPI and the group's tax ID.
|
24
|
+
# Box 33 on the CMS-1500 claim form.
|
25
|
+
# The address fields here are optional.
|
26
|
+
class BillingProviderUpdateWithOptionalAddress
|
27
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional]
|
28
|
+
attr_reader :address
|
29
|
+
# @return [String] If the provider has a contract with insurance, this must be the same tax ID
|
30
|
+
# given to the payer on an IRS W-9 form completed during contracting.
|
31
|
+
attr_reader :tax_id
|
32
|
+
# @return [String]
|
33
|
+
attr_reader :npi
|
34
|
+
# @return [String]
|
35
|
+
attr_reader :taxonomy_code
|
36
|
+
# @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
|
37
|
+
# Provider Commercial Number
|
38
|
+
attr_reader :provider_commercial_license_type
|
39
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
40
|
+
# name
|
41
|
+
attr_reader :first_name
|
42
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
43
|
+
# name
|
44
|
+
attr_reader :last_name
|
45
|
+
# @return [String] If the provider is an organization, this should be set instead of first + last
|
46
|
+
# name
|
47
|
+
attr_reader :organization_name
|
48
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
49
|
+
attr_reader :additional_properties
|
50
|
+
# @return [Object]
|
51
|
+
attr_reader :_field_set
|
52
|
+
protected :_field_set
|
53
|
+
|
54
|
+
OMIT = Object.new
|
55
|
+
|
56
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional]
|
57
|
+
# @param tax_id [String] If the provider has a contract with insurance, this must be the same tax ID
|
58
|
+
# given to the payer on an IRS W-9 form completed during contracting.
|
59
|
+
# @param npi [String]
|
60
|
+
# @param taxonomy_code [String]
|
61
|
+
# @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
|
62
|
+
# Provider Commercial Number
|
63
|
+
# @param first_name [String] If the provider is an individual, this should be set instead of organization
|
64
|
+
# name
|
65
|
+
# @param last_name [String] If the provider is an individual, this should be set instead of organization
|
66
|
+
# name
|
67
|
+
# @param organization_name [String] If the provider is an organization, this should be set instead of first + last
|
68
|
+
# name
|
69
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
70
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdateWithOptionalAddress]
|
71
|
+
def initialize(address: OMIT, tax_id: OMIT, npi: OMIT, taxonomy_code: OMIT,
|
72
|
+
provider_commercial_license_type: OMIT, first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
|
73
|
+
@address = address if address != OMIT
|
74
|
+
@tax_id = tax_id if tax_id != OMIT
|
75
|
+
@npi = npi if npi != OMIT
|
76
|
+
@taxonomy_code = taxonomy_code if taxonomy_code != OMIT
|
77
|
+
if provider_commercial_license_type != OMIT
|
78
|
+
@provider_commercial_license_type = provider_commercial_license_type
|
79
|
+
end
|
80
|
+
@first_name = first_name if first_name != OMIT
|
81
|
+
@last_name = last_name if last_name != OMIT
|
82
|
+
@organization_name = organization_name if organization_name != OMIT
|
83
|
+
@additional_properties = additional_properties
|
84
|
+
@_field_set = {
|
85
|
+
"address": address,
|
86
|
+
"tax_id": tax_id,
|
87
|
+
"npi": npi,
|
88
|
+
"taxonomy_code": taxonomy_code,
|
89
|
+
"provider_commercial_license_type": provider_commercial_license_type,
|
90
|
+
"first_name": first_name,
|
91
|
+
"last_name": last_name,
|
92
|
+
"organization_name": organization_name
|
93
|
+
}.reject do |_k, v|
|
94
|
+
v == OMIT
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# Deserialize a JSON object to an instance of
|
99
|
+
# BillingProviderUpdateWithOptionalAddress
|
100
|
+
#
|
101
|
+
# @param json_object [String]
|
102
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdateWithOptionalAddress]
|
103
|
+
def self.from_json(json_object:)
|
104
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
105
|
+
parsed_json = JSON.parse(json_object)
|
106
|
+
if parsed_json["address"].nil?
|
107
|
+
address = nil
|
108
|
+
else
|
109
|
+
address = parsed_json["address"].to_json
|
110
|
+
address = CandidApiClient::Commons::Types::StreetAddressShortZipOptional.from_json(json_object: address)
|
111
|
+
end
|
112
|
+
tax_id = struct["tax_id"]
|
113
|
+
npi = struct["npi"]
|
114
|
+
taxonomy_code = struct["taxonomy_code"]
|
115
|
+
provider_commercial_license_type = struct["provider_commercial_license_type"]
|
116
|
+
first_name = struct["first_name"]
|
117
|
+
last_name = struct["last_name"]
|
118
|
+
organization_name = struct["organization_name"]
|
119
|
+
new(
|
120
|
+
address: address,
|
121
|
+
tax_id: tax_id,
|
122
|
+
npi: npi,
|
123
|
+
taxonomy_code: taxonomy_code,
|
124
|
+
provider_commercial_license_type: provider_commercial_license_type,
|
125
|
+
first_name: first_name,
|
126
|
+
last_name: last_name,
|
127
|
+
organization_name: organization_name,
|
128
|
+
additional_properties: struct
|
129
|
+
)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Serialize an instance of BillingProviderUpdateWithOptionalAddress to a JSON
|
133
|
+
# object
|
134
|
+
#
|
135
|
+
# @return [String]
|
136
|
+
def to_json(*_args)
|
137
|
+
@_field_set&.to_json
|
138
|
+
end
|
139
|
+
|
140
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
141
|
+
# hash and check each fields type against the current object's property
|
142
|
+
# definitions.
|
143
|
+
#
|
144
|
+
# @param obj [Object]
|
145
|
+
# @return [Void]
|
146
|
+
def self.validate_raw(obj:)
|
147
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZipOptional.validate_raw(obj: obj.address)
|
148
|
+
obj.tax_id&.is_a?(String) != false || raise("Passed value for field obj.tax_id is not the expected type, validation failed.")
|
149
|
+
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
150
|
+
obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
|
151
|
+
obj.provider_commercial_license_type&.is_a?(CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType) != false || raise("Passed value for field obj.provider_commercial_license_type is not the expected type, validation failed.")
|
152
|
+
obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
153
|
+
obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
154
|
+
obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../commons/types/street_address_short_zip_optional"
|
4
|
+
require_relative "../../../commons/types/qualifier_code"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
module EncounterProviders
|
10
|
+
module V2
|
11
|
+
module Types
|
12
|
+
class InitialReferringProviderUpdateWithOptionalAddress
|
13
|
+
# @return [String] A National Provider Identifier is a unique 10-digit identification
|
14
|
+
# number issued to health care providers in the United States
|
15
|
+
attr_reader :npi
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :taxonomy_code
|
18
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional]
|
19
|
+
attr_reader :address
|
20
|
+
# @return [CandidApiClient::Commons::Types::QualifierCode]
|
21
|
+
attr_reader :qualifier
|
22
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
23
|
+
# name
|
24
|
+
attr_reader :first_name
|
25
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
26
|
+
# name
|
27
|
+
attr_reader :last_name
|
28
|
+
# @return [String] If the provider is an organization, this should be set instead of first + last
|
29
|
+
# name
|
30
|
+
attr_reader :organization_name
|
31
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
32
|
+
attr_reader :additional_properties
|
33
|
+
# @return [Object]
|
34
|
+
attr_reader :_field_set
|
35
|
+
protected :_field_set
|
36
|
+
|
37
|
+
OMIT = Object.new
|
38
|
+
|
39
|
+
# @param npi [String] A National Provider Identifier is a unique 10-digit identification
|
40
|
+
# number issued to health care providers in the United States
|
41
|
+
# @param taxonomy_code [String]
|
42
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional]
|
43
|
+
# @param qualifier [CandidApiClient::Commons::Types::QualifierCode]
|
44
|
+
# @param first_name [String] If the provider is an individual, this should be set instead of organization
|
45
|
+
# name
|
46
|
+
# @param last_name [String] If the provider is an individual, this should be set instead of organization
|
47
|
+
# name
|
48
|
+
# @param organization_name [String] If the provider is an organization, this should be set instead of first + last
|
49
|
+
# name
|
50
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
51
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress]
|
52
|
+
def initialize(npi: OMIT, taxonomy_code: OMIT, address: OMIT, qualifier: OMIT, first_name: OMIT,
|
53
|
+
last_name: OMIT, organization_name: OMIT, additional_properties: nil)
|
54
|
+
@npi = npi if npi != OMIT
|
55
|
+
@taxonomy_code = taxonomy_code if taxonomy_code != OMIT
|
56
|
+
@address = address if address != OMIT
|
57
|
+
@qualifier = qualifier if qualifier != OMIT
|
58
|
+
@first_name = first_name if first_name != OMIT
|
59
|
+
@last_name = last_name if last_name != OMIT
|
60
|
+
@organization_name = organization_name if organization_name != OMIT
|
61
|
+
@additional_properties = additional_properties
|
62
|
+
@_field_set = {
|
63
|
+
"npi": npi,
|
64
|
+
"taxonomy_code": taxonomy_code,
|
65
|
+
"address": address,
|
66
|
+
"qualifier": qualifier,
|
67
|
+
"first_name": first_name,
|
68
|
+
"last_name": last_name,
|
69
|
+
"organization_name": organization_name
|
70
|
+
}.reject do |_k, v|
|
71
|
+
v == OMIT
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Deserialize a JSON object to an instance of
|
76
|
+
# InitialReferringProviderUpdateWithOptionalAddress
|
77
|
+
#
|
78
|
+
# @param json_object [String]
|
79
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress]
|
80
|
+
def self.from_json(json_object:)
|
81
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
82
|
+
parsed_json = JSON.parse(json_object)
|
83
|
+
npi = struct["npi"]
|
84
|
+
taxonomy_code = struct["taxonomy_code"]
|
85
|
+
if parsed_json["address"].nil?
|
86
|
+
address = nil
|
87
|
+
else
|
88
|
+
address = parsed_json["address"].to_json
|
89
|
+
address = CandidApiClient::Commons::Types::StreetAddressShortZipOptional.from_json(json_object: address)
|
90
|
+
end
|
91
|
+
qualifier = struct["qualifier"]
|
92
|
+
first_name = struct["first_name"]
|
93
|
+
last_name = struct["last_name"]
|
94
|
+
organization_name = struct["organization_name"]
|
95
|
+
new(
|
96
|
+
npi: npi,
|
97
|
+
taxonomy_code: taxonomy_code,
|
98
|
+
address: address,
|
99
|
+
qualifier: qualifier,
|
100
|
+
first_name: first_name,
|
101
|
+
last_name: last_name,
|
102
|
+
organization_name: organization_name,
|
103
|
+
additional_properties: struct
|
104
|
+
)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Serialize an instance of InitialReferringProviderUpdateWithOptionalAddress to a
|
108
|
+
# JSON object
|
109
|
+
#
|
110
|
+
# @return [String]
|
111
|
+
def to_json(*_args)
|
112
|
+
@_field_set&.to_json
|
113
|
+
end
|
114
|
+
|
115
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
116
|
+
# hash and check each fields type against the current object's property
|
117
|
+
# definitions.
|
118
|
+
#
|
119
|
+
# @param obj [Object]
|
120
|
+
# @return [Void]
|
121
|
+
def self.validate_raw(obj:)
|
122
|
+
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
123
|
+
obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
|
124
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZipOptional.validate_raw(obj: obj.address)
|
125
|
+
obj.qualifier&.is_a?(CandidApiClient::Commons::Types::QualifierCode) != false || raise("Passed value for field obj.qualifier is not the expected type, validation failed.")
|
126
|
+
obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
127
|
+
obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
128
|
+
obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../commons/types/street_address_short_zip_optional"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module EncounterProviders
|
9
|
+
module V2
|
10
|
+
module Types
|
11
|
+
class ReferringProviderUpdateWithOptionalAddress
|
12
|
+
# @return [String] A National Provider Identifier is a unique 10-digit identification
|
13
|
+
# number issued to health care providers in the United States
|
14
|
+
attr_reader :npi
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :taxonomy_code
|
17
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional]
|
18
|
+
attr_reader :address
|
19
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
20
|
+
# name
|
21
|
+
attr_reader :first_name
|
22
|
+
# @return [String] If the provider is an individual, this should be set instead of organization
|
23
|
+
# name
|
24
|
+
attr_reader :last_name
|
25
|
+
# @return [String] If the provider is an organization, this should be set instead of first + last
|
26
|
+
# name
|
27
|
+
attr_reader :organization_name
|
28
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
+
attr_reader :additional_properties
|
30
|
+
# @return [Object]
|
31
|
+
attr_reader :_field_set
|
32
|
+
protected :_field_set
|
33
|
+
|
34
|
+
OMIT = Object.new
|
35
|
+
|
36
|
+
# @param npi [String] A National Provider Identifier is a unique 10-digit identification
|
37
|
+
# number issued to health care providers in the United States
|
38
|
+
# @param taxonomy_code [String]
|
39
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional]
|
40
|
+
# @param first_name [String] If the provider is an individual, this should be set instead of organization
|
41
|
+
# name
|
42
|
+
# @param last_name [String] If the provider is an individual, this should be set instead of organization
|
43
|
+
# name
|
44
|
+
# @param organization_name [String] If the provider is an organization, this should be set instead of first + last
|
45
|
+
# name
|
46
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdateWithOptionalAddress]
|
48
|
+
def initialize(npi: OMIT, taxonomy_code: OMIT, address: OMIT, first_name: OMIT, last_name: OMIT,
|
49
|
+
organization_name: OMIT, additional_properties: nil)
|
50
|
+
@npi = npi if npi != OMIT
|
51
|
+
@taxonomy_code = taxonomy_code if taxonomy_code != OMIT
|
52
|
+
@address = address if address != OMIT
|
53
|
+
@first_name = first_name if first_name != OMIT
|
54
|
+
@last_name = last_name if last_name != OMIT
|
55
|
+
@organization_name = organization_name if organization_name != OMIT
|
56
|
+
@additional_properties = additional_properties
|
57
|
+
@_field_set = {
|
58
|
+
"npi": npi,
|
59
|
+
"taxonomy_code": taxonomy_code,
|
60
|
+
"address": address,
|
61
|
+
"first_name": first_name,
|
62
|
+
"last_name": last_name,
|
63
|
+
"organization_name": organization_name
|
64
|
+
}.reject do |_k, v|
|
65
|
+
v == OMIT
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Deserialize a JSON object to an instance of
|
70
|
+
# ReferringProviderUpdateWithOptionalAddress
|
71
|
+
#
|
72
|
+
# @param json_object [String]
|
73
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdateWithOptionalAddress]
|
74
|
+
def self.from_json(json_object:)
|
75
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
76
|
+
parsed_json = JSON.parse(json_object)
|
77
|
+
npi = struct["npi"]
|
78
|
+
taxonomy_code = struct["taxonomy_code"]
|
79
|
+
if parsed_json["address"].nil?
|
80
|
+
address = nil
|
81
|
+
else
|
82
|
+
address = parsed_json["address"].to_json
|
83
|
+
address = CandidApiClient::Commons::Types::StreetAddressShortZipOptional.from_json(json_object: address)
|
84
|
+
end
|
85
|
+
first_name = struct["first_name"]
|
86
|
+
last_name = struct["last_name"]
|
87
|
+
organization_name = struct["organization_name"]
|
88
|
+
new(
|
89
|
+
npi: npi,
|
90
|
+
taxonomy_code: taxonomy_code,
|
91
|
+
address: address,
|
92
|
+
first_name: first_name,
|
93
|
+
last_name: last_name,
|
94
|
+
organization_name: organization_name,
|
95
|
+
additional_properties: struct
|
96
|
+
)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Serialize an instance of ReferringProviderUpdateWithOptionalAddress to a JSON
|
100
|
+
# object
|
101
|
+
#
|
102
|
+
# @return [String]
|
103
|
+
def to_json(*_args)
|
104
|
+
@_field_set&.to_json
|
105
|
+
end
|
106
|
+
|
107
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
108
|
+
# hash and check each fields type against the current object's property
|
109
|
+
# definitions.
|
110
|
+
#
|
111
|
+
# @param obj [Object]
|
112
|
+
# @return [Void]
|
113
|
+
def self.validate_raw(obj:)
|
114
|
+
obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
115
|
+
obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
|
116
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZipOptional.validate_raw(obj: obj.address)
|
117
|
+
obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
118
|
+
obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
119
|
+
obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|