Class: CandidApiClient::FeeSchedules::V3::Types::DimensionMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb

Overview

Dimension matching for a service line

Constant Summary collapse

OMIT =
Object.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payer:, geography:, organization_billing_provider:, date_of_service:, cpt_code:, modifiers:, license_type:, facility_type_code:, network_types:, additional_properties: nil) ⇒ CandidApiClient::FeeSchedules::V3::Types::DimensionMatch



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 58

def initialize(payer:, geography:, organization_billing_provider:, date_of_service:, cpt_code:, modifiers:,
               license_type:, facility_type_code:, network_types:, additional_properties: nil)
  @payer = payer
  @geography = geography
  @organization_billing_provider = organization_billing_provider
  @date_of_service = date_of_service
  @cpt_code = cpt_code
  @modifiers = modifiers
  @license_type = license_type
  @facility_type_code = facility_type_code
  @network_types = network_types
  @additional_properties = additional_properties
  @_field_set = {
    "payer": payer,
    "geography": geography,
    "organization_billing_provider": organization_billing_provider,
    "date_of_service": date_of_service,
    "cpt_code": cpt_code,
    "modifiers": modifiers,
    "license_type": license_type,
    "facility_type_code": facility_type_code,
    "network_types": network_types
  }
end

Instance Attribute Details

#additional_propertiesOpenStruct (readonly)

Returns Additional properties unmapped to the current class definition.

Returns:

  • (OpenStruct)

    Additional properties unmapped to the current class definition



40
41
42
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 40

def additional_properties
  @additional_properties
end

#cpt_codeCandidApiClient::FeeSchedules::V3::Types::MatchCptCode (readonly)



30
31
32
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 30

def cpt_code
  @cpt_code
end

#date_of_serviceCandidApiClient::FeeSchedules::V3::Types::MatchDate (readonly)



28
29
30
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 28

def date_of_service
  @date_of_service
end

#facility_type_codeCandidApiClient::FeeSchedules::V3::Types::MatchFacilityTypeCode (readonly)



36
37
38
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 36

def facility_type_code
  @facility_type_code
end

#geographyCandidApiClient::FeeSchedules::V3::Types::MatchGeo (readonly)



24
25
26
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 24

def geography
  @geography
end

#license_typeCandidApiClient::FeeSchedules::V3::Types::MatchLicenseType (readonly)



34
35
36
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 34

def license_type
  @license_type
end

#modifiersCandidApiClient::FeeSchedules::V3::Types::MatchModifiers (readonly)



32
33
34
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 32

def modifiers
  @modifiers
end

#network_typesCandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes (readonly)



38
39
40
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 38

def network_types
  @network_types
end

#organization_billing_providerCandidApiClient::FeeSchedules::V3::Types::MatchProvider (readonly)



26
27
28
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 26

def organization_billing_provider
  @organization_billing_provider
end

#payerCandidApiClient::FeeSchedules::V3::Types::MatchPayer (readonly)



22
23
24
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 22

def payer
  @payer
end

Class Method Details

.from_json(json_object:) ⇒ CandidApiClient::FeeSchedules::V3::Types::DimensionMatch

Deserialize a JSON object to an instance of DimensionMatch

Parameters:

  • json_object (String)

Returns:



87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 87

def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  parsed_json = JSON.parse(json_object)
  if parsed_json["payer"].nil?
    payer = nil
  else
    payer = parsed_json["payer"].to_json
    payer = CandidApiClient::FeeSchedules::V3::Types::MatchPayer.from_json(json_object: payer)
  end
  if parsed_json["geography"].nil?
    geography = nil
  else
    geography = parsed_json["geography"].to_json
    geography = CandidApiClient::FeeSchedules::V3::Types::MatchGeo.from_json(json_object: geography)
  end
  if parsed_json["organization_billing_provider"].nil?
    organization_billing_provider = nil
  else
    organization_billing_provider = parsed_json["organization_billing_provider"].to_json
    organization_billing_provider = CandidApiClient::FeeSchedules::V3::Types::MatchProvider.from_json(json_object: organization_billing_provider)
  end
  if parsed_json["date_of_service"].nil?
    date_of_service = nil
  else
    date_of_service = parsed_json["date_of_service"].to_json
    date_of_service = CandidApiClient::FeeSchedules::V3::Types::MatchDate.from_json(json_object: date_of_service)
  end
  if parsed_json["cpt_code"].nil?
    cpt_code = nil
  else
    cpt_code = parsed_json["cpt_code"].to_json
    cpt_code = CandidApiClient::FeeSchedules::V3::Types::MatchCptCode.from_json(json_object: cpt_code)
  end
  if parsed_json["modifiers"].nil?
    modifiers = nil
  else
    modifiers = parsed_json["modifiers"].to_json
    modifiers = CandidApiClient::FeeSchedules::V3::Types::MatchModifiers.from_json(json_object: modifiers)
  end
  if parsed_json["license_type"].nil?
    license_type = nil
  else
    license_type = parsed_json["license_type"].to_json
    license_type = CandidApiClient::FeeSchedules::V3::Types::MatchLicenseType.from_json(json_object: license_type)
  end
  if parsed_json["facility_type_code"].nil?
    facility_type_code = nil
  else
    facility_type_code = parsed_json["facility_type_code"].to_json
    facility_type_code = CandidApiClient::FeeSchedules::V3::Types::MatchFacilityTypeCode.from_json(json_object: facility_type_code)
  end
  if parsed_json["network_types"].nil?
    network_types = nil
  else
    network_types = parsed_json["network_types"].to_json
    network_types = CandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes.from_json(json_object: network_types)
  end
  new(
    payer: payer,
    geography: geography,
    organization_billing_provider: organization_billing_provider,
    date_of_service: date_of_service,
    cpt_code: cpt_code,
    modifiers: modifiers,
    license_type: license_type,
    facility_type_code: facility_type_code,
    network_types: network_types,
    additional_properties: struct
  )
end

.validate_raw(obj:) ⇒ Void

Leveraged for Union-type generation, validate_raw attempts to parse the given

hash and check each fields type against the current object's property
definitions.

Parameters:

  • obj (Object)

Returns:

  • (Void)


171
172
173
174
175
176
177
178
179
180
181
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 171

def self.validate_raw(obj:)
  CandidApiClient::FeeSchedules::V3::Types::MatchPayer.validate_raw(obj: obj.payer)
  CandidApiClient::FeeSchedules::V3::Types::MatchGeo.validate_raw(obj: obj.geography)
  CandidApiClient::FeeSchedules::V3::Types::MatchProvider.validate_raw(obj: obj.organization_billing_provider)
  CandidApiClient::FeeSchedules::V3::Types::MatchDate.validate_raw(obj: obj.date_of_service)
  CandidApiClient::FeeSchedules::V3::Types::MatchCptCode.validate_raw(obj: obj.cpt_code)
  CandidApiClient::FeeSchedules::V3::Types::MatchModifiers.validate_raw(obj: obj.modifiers)
  CandidApiClient::FeeSchedules::V3::Types::MatchLicenseType.validate_raw(obj: obj.license_type)
  CandidApiClient::FeeSchedules::V3::Types::MatchFacilityTypeCode.validate_raw(obj: obj.facility_type_code)
  CandidApiClient::FeeSchedules::V3::Types::MatchNetworkTypes.validate_raw(obj: obj.network_types)
end

Instance Method Details

#to_json(*_args) ⇒ String

Serialize an instance of DimensionMatch to a JSON object

Returns:

  • (String)


161
162
163
# File 'lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb', line 161

def to_json(*_args)
  @_field_set&.to_json
end