candidhealth 0.36.0 → 0.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7e992a2b12bd9431fb6effc7495b7b5529c6d36b5f46624afbe8da9df35d16e
4
- data.tar.gz: 50b43204c9b97e31aa10efeee3b5b3d2bd99f3f5bdea2521eeef75028d55fd56
3
+ metadata.gz: cc0e45f487633d57ec0804eceea6f9e3e59cedd4de6a76154a0d05101d8faf28
4
+ data.tar.gz: e7426b55f0cd839ee70bcf8d6aecf8d1aaf7444a40a34ae9c1b9f0b9003f6926
5
5
  SHA512:
6
- metadata.gz: d8f070e1852e25e4e0bfd41c4ddf535e8553ad8de824f568f806ad4c5157c383387687bc6240c4ee1d0f88b4235b556daa08f0056ad43b18102a4e435500ecba
7
- data.tar.gz: 3b55ca3ba0073c634f59c636ae655b91205d3655acba19a383300bb4b5c318a46429734f8805b47d001413a1558bbee7a0e4eff8941b5c4f422c19d123d9e1ea
6
+ metadata.gz: 7c0adebaf3e1040541d8aa563277ca615926c3adef8e0120fc24361f3699c5a23bb930bc38198c982ef99a0b24b5c43f6dfb779ac6c2d2063899f2a06b5b1911
7
+ data.tar.gz: '07738643a69d3a00d69a9a4ebac08834b25722e0eb220b9cca66978051539374505c94d401b682e73cc21c9f9026d3be604d49d2ea550004a76230106079d593'
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module Commons
5
+ module Types
6
+ class BillingProviderCommercialLicenseType
7
+ LICENSED_CLINICAL_SOCIAL_WORKER = "0"
8
+ LICENSED_PROFESSIONAL_COUNSELOR = "A"
9
+ LICENSED_MARRIAGE_AND_FAMILY_COUNSELOR = "B"
10
+ LICENSED_CLINICAL_ALCOHOL_AND_DRUG_COUNSELOR = "C"
11
+ PSYCHOLOGIST = "D"
12
+ PSYCHIATRIC_NURSE = "E"
13
+ PSYCHIATRIST = "F"
14
+ CHILD_ADOLESCENT_PSYCHIATRIST = "G"
15
+ PHYSICIAN_ASSISTANT = "H"
16
+ NURSE_CNP = "I"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -392,6 +392,7 @@ module CandidApiClient
392
392
  V_2 = "V2"
393
393
  V_3 = "V3"
394
394
  XE = "XE"
395
+ XS = "XS"
395
396
  end
396
397
  end
397
398
  end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module Contracts
8
+ module V2
9
+ module Types
10
+ class ContractInvalidExpirationDateError
11
+ # @return [String]
12
+ attr_reader :message
13
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
14
+ attr_reader :additional_properties
15
+ # @return [Object]
16
+ attr_reader :_field_set
17
+ protected :_field_set
18
+
19
+ OMIT = Object.new
20
+
21
+ # @param message [String]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [CandidApiClient::Contracts::V2::Types::ContractInvalidExpirationDateError]
24
+ def initialize(message:, additional_properties: nil)
25
+ @message = message
26
+ @additional_properties = additional_properties
27
+ @_field_set = { "message": message }
28
+ end
29
+
30
+ # Deserialize a JSON object to an instance of ContractInvalidExpirationDateError
31
+ #
32
+ # @param json_object [String]
33
+ # @return [CandidApiClient::Contracts::V2::Types::ContractInvalidExpirationDateError]
34
+ def self.from_json(json_object:)
35
+ struct = JSON.parse(json_object, object_class: OpenStruct)
36
+ message = struct["message"]
37
+ new(message: message, additional_properties: struct)
38
+ end
39
+
40
+ # Serialize an instance of ContractInvalidExpirationDateError to a JSON object
41
+ #
42
+ # @return [String]
43
+ def to_json(*_args)
44
+ @_field_set&.to_json
45
+ end
46
+
47
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
48
+ # hash and check each fields type against the current object's property
49
+ # definitions.
50
+ #
51
+ # @param obj [Object]
52
+ # @return [Void]
53
+ def self.validate_raw(obj:)
54
+ obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -28,7 +28,7 @@ module CandidApiClient
28
28
  # @return [CandidApiClient::Diagnoses::Types::Diagnosis]
29
29
  # @example
30
30
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
31
- # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", name: "string", code_type: ABF, code: "string" })
31
+ # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", code_type: ABF, code: "string" })
32
32
  def create(request:, request_options: nil)
33
33
  response = @request_client.conn.post do |req|
34
34
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -137,7 +137,7 @@ module CandidApiClient
137
137
  # @return [CandidApiClient::Diagnoses::Types::Diagnosis]
138
138
  # @example
139
139
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
140
- # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", name: "string", code_type: ABF, code: "string" })
140
+ # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", code_type: ABF, code: "string" })
141
141
  def create(request:, request_options: nil)
142
142
  Async do
143
143
  response = @request_client.conn.post do |req|
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../../../commons/types/street_address_long_zip"
4
+ require_relative "../../../commons/types/billing_provider_commercial_license_type"
4
5
  require "ostruct"
5
6
  require "json"
6
7
 
@@ -31,6 +32,9 @@ module CandidApiClient
31
32
  attr_reader :npi
32
33
  # @return [String]
33
34
  attr_reader :taxonomy_code
35
+ # @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
36
+ # Provider Commercial Number
37
+ attr_reader :provider_commercial_license_type
34
38
  # @return [String] If the provider is an individual, this should be set instead of organization
35
39
  # name
36
40
  attr_reader :first_name
@@ -53,6 +57,8 @@ module CandidApiClient
53
57
  # given to the payer on an IRS W-9 form completed during contracting.
54
58
  # @param npi [String]
55
59
  # @param taxonomy_code [String]
60
+ # @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
61
+ # Provider Commercial Number
56
62
  # @param first_name [String] If the provider is an individual, this should be set instead of organization
57
63
  # name
58
64
  # @param last_name [String] If the provider is an individual, this should be set instead of organization
@@ -61,12 +67,15 @@ module CandidApiClient
61
67
  # name
62
68
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
63
69
  # @return [CandidApiClient::EncounterProviders::V2::Types::BillingProvider]
64
- def initialize(address:, tax_id:, npi:, taxonomy_code: OMIT, first_name: OMIT, last_name: OMIT,
65
- organization_name: OMIT, additional_properties: nil)
70
+ def initialize(address:, tax_id:, npi:, taxonomy_code: OMIT, provider_commercial_license_type: OMIT,
71
+ first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
66
72
  @address = address
67
73
  @tax_id = tax_id
68
74
  @npi = npi
69
75
  @taxonomy_code = taxonomy_code if taxonomy_code != OMIT
76
+ if provider_commercial_license_type != OMIT
77
+ @provider_commercial_license_type = provider_commercial_license_type
78
+ end
70
79
  @first_name = first_name if first_name != OMIT
71
80
  @last_name = last_name if last_name != OMIT
72
81
  @organization_name = organization_name if organization_name != OMIT
@@ -76,6 +85,7 @@ module CandidApiClient
76
85
  "tax_id": tax_id,
77
86
  "npi": npi,
78
87
  "taxonomy_code": taxonomy_code,
88
+ "provider_commercial_license_type": provider_commercial_license_type,
79
89
  "first_name": first_name,
80
90
  "last_name": last_name,
81
91
  "organization_name": organization_name
@@ -100,6 +110,7 @@ module CandidApiClient
100
110
  tax_id = struct["tax_id"]
101
111
  npi = struct["npi"]
102
112
  taxonomy_code = struct["taxonomy_code"]
113
+ provider_commercial_license_type = struct["provider_commercial_license_type"]
103
114
  first_name = struct["first_name"]
104
115
  last_name = struct["last_name"]
105
116
  organization_name = struct["organization_name"]
@@ -108,6 +119,7 @@ module CandidApiClient
108
119
  tax_id: tax_id,
109
120
  npi: npi,
110
121
  taxonomy_code: taxonomy_code,
122
+ provider_commercial_license_type: provider_commercial_license_type,
111
123
  first_name: first_name,
112
124
  last_name: last_name,
113
125
  organization_name: organization_name,
@@ -133,6 +145,7 @@ module CandidApiClient
133
145
  obj.tax_id.is_a?(String) != false || raise("Passed value for field obj.tax_id is not the expected type, validation failed.")
134
146
  obj.npi.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
135
147
  obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
148
+ 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.")
136
149
  obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
137
150
  obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
138
151
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../../../commons/types/street_address_long_zip"
4
+ require_relative "../../../commons/types/billing_provider_commercial_license_type"
4
5
  require "ostruct"
5
6
  require "json"
6
7
 
@@ -31,6 +32,9 @@ module CandidApiClient
31
32
  attr_reader :npi
32
33
  # @return [String]
33
34
  attr_reader :taxonomy_code
35
+ # @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
36
+ # Provider Commercial Number
37
+ attr_reader :provider_commercial_license_type
34
38
  # @return [String] If the provider is an individual, this should be set instead of organization
35
39
  # name
36
40
  attr_reader :first_name
@@ -53,6 +57,8 @@ module CandidApiClient
53
57
  # given to the payer on an IRS W-9 form completed during contracting.
54
58
  # @param npi [String]
55
59
  # @param taxonomy_code [String]
60
+ # @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
61
+ # Provider Commercial Number
56
62
  # @param first_name [String] If the provider is an individual, this should be set instead of organization
57
63
  # name
58
64
  # @param last_name [String] If the provider is an individual, this should be set instead of organization
@@ -61,12 +67,15 @@ module CandidApiClient
61
67
  # name
62
68
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
63
69
  # @return [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate]
64
- def initialize(address: OMIT, tax_id: OMIT, npi: OMIT, taxonomy_code: OMIT, first_name: OMIT,
65
- last_name: OMIT, organization_name: OMIT, additional_properties: nil)
70
+ def initialize(address: OMIT, tax_id: OMIT, npi: OMIT, taxonomy_code: OMIT,
71
+ provider_commercial_license_type: OMIT, first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
66
72
  @address = address if address != OMIT
67
73
  @tax_id = tax_id if tax_id != OMIT
68
74
  @npi = npi if npi != OMIT
69
75
  @taxonomy_code = taxonomy_code if taxonomy_code != OMIT
76
+ if provider_commercial_license_type != OMIT
77
+ @provider_commercial_license_type = provider_commercial_license_type
78
+ end
70
79
  @first_name = first_name if first_name != OMIT
71
80
  @last_name = last_name if last_name != OMIT
72
81
  @organization_name = organization_name if organization_name != OMIT
@@ -76,6 +85,7 @@ module CandidApiClient
76
85
  "tax_id": tax_id,
77
86
  "npi": npi,
78
87
  "taxonomy_code": taxonomy_code,
88
+ "provider_commercial_license_type": provider_commercial_license_type,
79
89
  "first_name": first_name,
80
90
  "last_name": last_name,
81
91
  "organization_name": organization_name
@@ -100,6 +110,7 @@ module CandidApiClient
100
110
  tax_id = struct["tax_id"]
101
111
  npi = struct["npi"]
102
112
  taxonomy_code = struct["taxonomy_code"]
113
+ provider_commercial_license_type = struct["provider_commercial_license_type"]
103
114
  first_name = struct["first_name"]
104
115
  last_name = struct["last_name"]
105
116
  organization_name = struct["organization_name"]
@@ -108,6 +119,7 @@ module CandidApiClient
108
119
  tax_id: tax_id,
109
120
  npi: npi,
110
121
  taxonomy_code: taxonomy_code,
122
+ provider_commercial_license_type: provider_commercial_license_type,
111
123
  first_name: first_name,
112
124
  last_name: last_name,
113
125
  organization_name: organization_name,
@@ -133,6 +145,7 @@ module CandidApiClient
133
145
  obj.tax_id&.is_a?(String) != false || raise("Passed value for field obj.tax_id is not the expected type, validation failed.")
134
146
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
135
147
  obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
148
+ 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.")
136
149
  obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
137
150
  obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
138
151
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "../../../commons/types/street_address_long_zip"
4
4
  require_relative "../../../commons/types/qualifier_code"
5
+ require_relative "../../../commons/types/billing_provider_commercial_license_type"
5
6
  require "ostruct"
6
7
  require "json"
7
8
 
@@ -22,6 +23,9 @@ module CandidApiClient
22
23
  attr_reader :taxonomy_code
23
24
  # @return [CandidApiClient::Commons::Types::QualifierCode]
24
25
  attr_reader :qualifier
26
+ # @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
27
+ # Provider Commercial Number
28
+ attr_reader :provider_commercial_license_type
25
29
  # @return [String] If the provider is an individual, this should be set instead of organization
26
30
  # name
27
31
  attr_reader :first_name
@@ -45,6 +49,8 @@ module CandidApiClient
45
49
  # @param npi [String]
46
50
  # @param taxonomy_code [String]
47
51
  # @param qualifier [CandidApiClient::Commons::Types::QualifierCode]
52
+ # @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
53
+ # Provider Commercial Number
48
54
  # @param first_name [String] If the provider is an individual, this should be set instead of organization
49
55
  # name
50
56
  # @param last_name [String] If the provider is an individual, this should be set instead of organization
@@ -54,13 +60,16 @@ module CandidApiClient
54
60
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
55
61
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
56
62
  def initialize(provider_id:, address:, npi:, tax_id: OMIT, taxonomy_code: OMIT, qualifier: OMIT,
57
- first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
63
+ provider_commercial_license_type: OMIT, first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
58
64
  @provider_id = provider_id
59
65
  @address = address
60
66
  @tax_id = tax_id if tax_id != OMIT
61
67
  @npi = npi
62
68
  @taxonomy_code = taxonomy_code if taxonomy_code != OMIT
63
69
  @qualifier = qualifier if qualifier != OMIT
70
+ if provider_commercial_license_type != OMIT
71
+ @provider_commercial_license_type = provider_commercial_license_type
72
+ end
64
73
  @first_name = first_name if first_name != OMIT
65
74
  @last_name = last_name if last_name != OMIT
66
75
  @organization_name = organization_name if organization_name != OMIT
@@ -72,6 +81,7 @@ module CandidApiClient
72
81
  "npi": npi,
73
82
  "taxonomy_code": taxonomy_code,
74
83
  "qualifier": qualifier,
84
+ "provider_commercial_license_type": provider_commercial_license_type,
75
85
  "first_name": first_name,
76
86
  "last_name": last_name,
77
87
  "organization_name": organization_name
@@ -98,6 +108,7 @@ module CandidApiClient
98
108
  npi = struct["npi"]
99
109
  taxonomy_code = struct["taxonomy_code"]
100
110
  qualifier = struct["qualifier"]
111
+ provider_commercial_license_type = struct["provider_commercial_license_type"]
101
112
  first_name = struct["first_name"]
102
113
  last_name = struct["last_name"]
103
114
  organization_name = struct["organization_name"]
@@ -108,6 +119,7 @@ module CandidApiClient
108
119
  npi: npi,
109
120
  taxonomy_code: taxonomy_code,
110
121
  qualifier: qualifier,
122
+ provider_commercial_license_type: provider_commercial_license_type,
111
123
  first_name: first_name,
112
124
  last_name: last_name,
113
125
  organization_name: organization_name,
@@ -135,6 +147,7 @@ module CandidApiClient
135
147
  obj.npi.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
136
148
  obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
137
149
  obj.qualifier&.is_a?(CandidApiClient::Commons::Types::QualifierCode) != false || raise("Passed value for field obj.qualifier is not the expected type, validation failed.")
150
+ 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.")
138
151
  obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
139
152
  obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
140
153
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")