Class: ChangeHealthcare::ProfessionalClaims::SwaggerClient::OtherSubscriberInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OtherSubscriberInformation

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 117

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.transform_keys(&:to_sym)

  self.benefits_assignment_certification_indicator = attributes[:benefitsAssignmentCertificationIndicator] if attributes.key?(:benefitsAssignmentCertificationIndicator)

  self.claim_filing_indicator_code = attributes[:claimFilingIndicatorCode] if attributes.key?(:claimFilingIndicatorCode)

  if attributes.key?(:claimLevelAdjustments) && (value = attributes[:claimLevelAdjustments]).is_a?(Array)
    self.claim_level_adjustments = value
  end

  self.individual_relationship_code = attributes[:individualRelationshipCode] if attributes.key?(:individualRelationshipCode)

  self.insurance_group_or_policy_number = attributes[:insuranceGroupOrPolicyNumber] if attributes.key?(:insuranceGroupOrPolicyNumber)

  self.insurance_type_code = attributes[:insuranceTypeCode] if attributes.key?(:insuranceTypeCode)

  self.medicare_outpatient_adjudication = attributes[:medicareOutpatientAdjudication] if attributes.key?(:medicareOutpatientAdjudication)

  self.non_covered_charge_amount = attributes[:nonCoveredChargeAmount] if attributes.key?(:nonCoveredChargeAmount)

  self.other_insured_group_name = attributes[:otherInsuredGroupName] if attributes.key?(:otherInsuredGroupName)

  self.other_payer_billing_provider = attributes[:otherPayerBillingProvider] if attributes.key?(:otherPayerBillingProvider)

  self.other_payer_name = attributes[:otherPayerName] if attributes.key?(:otherPayerName)

  if attributes.key?(:otherPayerReferringProvider) && (value = attributes[:otherPayerReferringProvider]).is_a?(Array)
    self.other_payer_referring_provider = value
  end

  self.other_payer_rendering_provider = attributes[:otherPayerRenderingProvider] if attributes.key?(:otherPayerRenderingProvider)

  self.other_payer_service_facility_location = attributes[:otherPayerServiceFacilityLocation] if attributes.key?(:otherPayerServiceFacilityLocation)

  self.other_payer_supervising_provider = attributes[:otherPayerSupervisingProvider] if attributes.key?(:otherPayerSupervisingProvider)

  self.other_subscriber_name = attributes[:otherSubscriberName] if attributes.key?(:otherSubscriberName)

  self.patient_signature_generated_for_patient = attributes[:patientSignatureGeneratedForPatient] if attributes.key?(:patientSignatureGeneratedForPatient)

  self.payer_paid_amount = attributes[:payerPaidAmount] if attributes.key?(:payerPaidAmount)

  self.payment_responsibility_level_code = attributes[:paymentResponsibilityLevelCode] if attributes.key?(:paymentResponsibilityLevelCode)

  self.release_of_information_code = attributes[:releaseOfInformationCode] if attributes.key?(:releaseOfInformationCode)

  self.remaining_patient_liability = attributes[:remainingPatientLiability] if attributes.key?(:remainingPatientLiability)
end

Instance Attribute Details

#benefits_assignment_certification_indicatorObject

Allowed Values are: 'N' No, 'W' Not Applicable, 'Y' Yes



20
21
22
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 20

def benefits_assignment_certification_indicator
  @benefits_assignment_certification_indicator
end

#claim_filing_indicator_codeObject

Allowed Values are: '11' Other Non-Federal Programs, '12' Preferred Provider Organization (PPO), '13' Point of Service (POS), '14' Exclusive Provider Organization (EPO), '15' Indemnity Insurance, '16' Health Maintenance Organization (HMO) Medicare Risk, '17' Dental Maintenance Organization, 'AM' Automobile Medical, 'BL' Blue Cross/Blue Shield, 'CH' Champus, 'CI' Commercial Insurance Co., 'DS' Disability, 'FI' Federal Employees Program, 'HM' Health Maintenance Organization, 'LM' Liability Medical, 'MA' Medicare Part A, 'MB' Medicare Part B, 'MC' Medicare Part C, 'OF' Other Federal Program, 'TV' Title V, 'VA' Veterans Affairs Plan, 'WC' Workers’ Compensation Health Claim, 'ZZ' Mutually Defined



23
24
25
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 23

def claim_filing_indicator_code
  @claim_filing_indicator_code
end

#claim_level_adjustmentsObject

Returns the value of attribute claim_level_adjustments.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def claim_level_adjustments
  @claim_level_adjustments
end

#individual_relationship_codeObject

Allowed Values are: '01' Spouse, '02' Self, '19' Child, '20' Employee, '21' Unknown, '39' Organ Donor, '40' Cadaver Donor, '53' Life Partner, 'G8' Other Relationship



29
30
31
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 29

def individual_relationship_code
  @individual_relationship_code
end

#insurance_group_or_policy_numberObject

Returns the value of attribute insurance_group_or_policy_number.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def insurance_group_or_policy_number
  @insurance_group_or_policy_number
end

#insurance_type_codeObject

Allowed Values are: '12' Medicare Secondary Working Aged Beneficiary or Spouse with Employer Group Health Plan, '13' Medicare Secondary End-Stage Renal Disease Beneficiary in the Mandated Coordination Period, '14' Medicare Secondary, No-fault Insurance including Auto is Primary, '15' Medicare Secondary Worker’s Compensation, '16' Medicare Secondary Public Health Service (PHS)or Other Federal Agency'41' Medicare Secondary Black Lung, '42' Medicare Secondary Veteran’s Administration, '43' Medicare Secondary Disabled Beneficiary Under Age 65 with Large Group Health Plan (LGHP), '47' Medicare Secondary, Other Liability Insurance is Primary



32
33
34
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 32

def insurance_type_code
  @insurance_type_code
end

#medicare_outpatient_adjudicationObject

Returns the value of attribute medicare_outpatient_adjudication.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def medicare_outpatient_adjudication
  @medicare_outpatient_adjudication
end

#non_covered_charge_amountObject

Returns the value of attribute non_covered_charge_amount.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def non_covered_charge_amount
  @non_covered_charge_amount
end

#other_insured_group_nameObject

Returns the value of attribute other_insured_group_name.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_insured_group_name
  @other_insured_group_name
end

#other_payer_billing_providerObject

Returns the value of attribute other_payer_billing_provider.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_payer_billing_provider
  @other_payer_billing_provider
end

#other_payer_nameObject

Returns the value of attribute other_payer_name.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_payer_name
  @other_payer_name
end

#other_payer_referring_providerObject

Returns the value of attribute other_payer_referring_provider.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_payer_referring_provider
  @other_payer_referring_provider
end

#other_payer_rendering_providerObject

Returns the value of attribute other_payer_rendering_provider.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_payer_rendering_provider
  @other_payer_rendering_provider
end

#other_payer_service_facility_locationObject

Returns the value of attribute other_payer_service_facility_location.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_payer_service_facility_location
  @other_payer_service_facility_location
end

#other_payer_supervising_providerObject

Returns the value of attribute other_payer_supervising_provider.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_payer_supervising_provider
  @other_payer_supervising_provider
end

#other_subscriber_nameObject

Returns the value of attribute other_subscriber_name.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def other_subscriber_name
  @other_subscriber_name
end

#patient_signature_generated_for_patientObject

Returns the value of attribute patient_signature_generated_for_patient.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def patient_signature_generated_for_patient
  @patient_signature_generated_for_patient
end

#payer_paid_amountObject

Returns the value of attribute payer_paid_amount.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def payer_paid_amount
  @payer_paid_amount
end

#payment_responsibility_level_codeObject

Allowed Values are: 'A' Payer Responsibility Four, 'B' Payer Responsibility Five, 'C' Payer Responsibility Six, 'D' Payer Responsibility Seven, 'E' Payer Responsibility Eight, 'F' Payer Responsibility Nine, 'G' Payer Responsibility Ten, 'H' Payer Responsibility Eleven, 'P' Primary, 'S' Secondary, 'T' Tertiary, , 'U' Unknown



35
36
37
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 35

def payment_responsibility_level_code
  @payment_responsibility_level_code
end

#release_of_information_codeObject

Allowed Values are: 'I' Informed Consent to Release Medical Information for Conditions or Diagnoses Regulated by Federal Statutes, 'Y' Yes, Provider has a Signed Statement Permitting Release of Medical Billing Data Related to a Claim



38
39
40
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 38

def release_of_information_code
  @release_of_information_code
end

#remaining_patient_liabilityObject

Returns the value of attribute remaining_patient_liability.



25
26
27
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 25

def remaining_patient_liability
  @remaining_patient_liability
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 62

def self.attribute_map
  {
    benefits_assignment_certification_indicator: :benefitsAssignmentCertificationIndicator,
    claim_filing_indicator_code: :claimFilingIndicatorCode,
    claim_level_adjustments: :claimLevelAdjustments,
    individual_relationship_code: :individualRelationshipCode,
    insurance_group_or_policy_number: :insuranceGroupOrPolicyNumber,
    insurance_type_code: :insuranceTypeCode,
    medicare_outpatient_adjudication: :medicareOutpatientAdjudication,
    non_covered_charge_amount: :nonCoveredChargeAmount,
    other_insured_group_name: :otherInsuredGroupName,
    other_payer_billing_provider: :otherPayerBillingProvider,
    other_payer_name: :otherPayerName,
    other_payer_referring_provider: :otherPayerReferringProvider,
    other_payer_rendering_provider: :otherPayerRenderingProvider,
    other_payer_service_facility_location: :otherPayerServiceFacilityLocation,
    other_payer_supervising_provider: :otherPayerSupervisingProvider,
    other_subscriber_name: :otherSubscriberName,
    patient_signature_generated_for_patient: :patientSignatureGeneratedForPatient,
    payer_paid_amount: :payerPaidAmount,
    payment_responsibility_level_code: :paymentResponsibilityLevelCode,
    release_of_information_code: :releaseOfInformationCode,
    remaining_patient_liability: :remainingPatientLiability
  }
end

.swagger_typesObject

Attribute type mapping.



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
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 89

def self.swagger_types
  {
    benefits_assignment_certification_indicator: :String,
    claim_filing_indicator_code: :String,
    claim_level_adjustments: :'Array<ClaimAdjustment>',
    individual_relationship_code: :String,
    insurance_group_or_policy_number: :String,
    insurance_type_code: :String,
    medicare_outpatient_adjudication: :MedicareOutpatientAdjudication,
    non_covered_charge_amount: :String,
    other_insured_group_name: :String,
    other_payer_billing_provider: :OtherPayerBillingProvider,
    other_payer_name: :OtherPayerName,
    other_payer_referring_provider: :'Array<OtherPayerReferringProvider>',
    other_payer_rendering_provider: :OtherPayerRenderingProvider,
    other_payer_service_facility_location: :OtherPayerServiceFacilityLocation,
    other_payer_supervising_provider: :OtherPayerSupervisingProvider,
    other_subscriber_name: :OtherSubscriberName,
    patient_signature_generated_for_patient: :BOOLEAN,
    payer_paid_amount: :String,
    payment_responsibility_level_code: :String,
    release_of_information_code: :String,
    remaining_patient_liability: :String
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 280

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    benefits_assignment_certification_indicator == other.benefits_assignment_certification_indicator &&
    claim_filing_indicator_code == other.claim_filing_indicator_code &&
    claim_level_adjustments == other.claim_level_adjustments &&
    individual_relationship_code == other.individual_relationship_code &&
    insurance_group_or_policy_number == other.insurance_group_or_policy_number &&
    insurance_type_code == other.insurance_type_code &&
    medicare_outpatient_adjudication == other.medicare_outpatient_adjudication &&
    non_covered_charge_amount == other.non_covered_charge_amount &&
    other_insured_group_name == other.other_insured_group_name &&
    other_payer_billing_provider == other.other_payer_billing_provider &&
    other_payer_name == other.other_payer_name &&
    other_payer_referring_provider == other.other_payer_referring_provider &&
    other_payer_rendering_provider == other.other_payer_rendering_provider &&
    other_payer_service_facility_location == other.other_payer_service_facility_location &&
    other_payer_supervising_provider == other.other_payer_supervising_provider &&
    other_subscriber_name == other.other_subscriber_name &&
    patient_signature_generated_for_patient == other.patient_signature_generated_for_patient &&
    payer_paid_amount == other.payer_paid_amount &&
    payment_responsibility_level_code == other.payment_responsibility_level_code &&
    release_of_information_code == other.release_of_information_code &&
    remaining_patient_liability == other.remaining_patient_liability
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 347

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = SwaggerClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



414
415
416
417
418
419
420
421
422
423
424
425
426
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 414

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 323

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
                          _deserialize(Regexp.last_match(1), v)
                        end)
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


309
310
311
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 309

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



315
316
317
318
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 315

def hash
  [benefits_assignment_certification_indicator, claim_filing_indicator_code, claim_level_adjustments,
   individual_relationship_code, insurance_group_or_policy_number, insurance_type_code, medicare_outpatient_adjudication, non_covered_charge_amount, other_insured_group_name, other_payer_billing_provider, other_payer_name, other_payer_referring_provider, other_payer_rendering_provider, other_payer_service_facility_location, other_payer_supervising_provider, other_subscriber_name, patient_signature_generated_for_patient, payer_paid_amount, payment_responsibility_level_code, release_of_information_code, remaining_patient_liability].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



172
173
174
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 172

def list_invalid_properties
  []
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



393
394
395
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 393

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



399
400
401
402
403
404
405
406
407
408
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 399

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = send(attr)
    next if value.nil?

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



387
388
389
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 387

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/change_healthcare/professional_claims/swagger_client/models/other_subscriber_information.rb', line 178

def valid?
  benefits_assignment_certification_indicator_validator = EnumAttributeValidator.new('String', %w[N W Y])
  return false unless benefits_assignment_certification_indicator_validator.valid?(@benefits_assignment_certification_indicator)

  claim_filing_indicator_code_validator = EnumAttributeValidator.new('String',
                                                                     %w[11 12 13 14 15 16 17 AM BL CH CI DS FI HM LM
                                                                        MA MB MC OF TV VA WC ZZ])
  return false unless claim_filing_indicator_code_validator.valid?(@claim_filing_indicator_code)

  individual_relationship_code_validator = EnumAttributeValidator.new('String',
                                                                      %w[01 18 19 20 21 39 40 53 G8])
  return false unless individual_relationship_code_validator.valid?(@individual_relationship_code)

  insurance_type_code_validator = EnumAttributeValidator.new('String',
                                                             %w[12 13 14 15 16 41 42 43 47])
  return false unless insurance_type_code_validator.valid?(@insurance_type_code)

  payment_responsibility_level_code_validator = EnumAttributeValidator.new('String',
                                                                           %w[A B C D E F G H P S T U])
  return false unless payment_responsibility_level_code_validator.valid?(@payment_responsibility_level_code)

  release_of_information_code_validator = EnumAttributeValidator.new('String', %w[I Y])
  return false unless release_of_information_code_validator.valid?(@release_of_information_code)

  true
end