class ChangeHealthcare::Eligibility::SwaggerClient::InformationReceiverName

Loop: 2100B, Notes: Information Receiver Name

Attributes

address[RW]

Loop: 2100B, Segment: N3 and N4, Notes: Information Receiver Address

contact_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=CT Contact Number

device_pin_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=EL Electronic Device Pin Number

facility_id_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=1J Facility ID Number

facility_network_id_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=N7 Facility Network Identification Number

federal_taxpayer_identification_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=TJ Federal Taxpayer’s Identification Number

information_receiver_additional_identifier_state[RW]

Loop: 2100B, Segment: REF, Element: REF03, Notes: REF01=0B REF02=stateLicenceNumber Federal Taxpayer’s Identification Number

medicaid_provider_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=1D Medicaid Provider Number

medicare_provider_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=1C Medicare Provider Number

national_provider_identifier[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=HPI Centers for Medicare and Medicaid Services National Provider Identifier

prior_identifier_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=Q4 Prior Identifier Number

provider_plan_network_id_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=N5 Provider Plan Network Identification Number

social_security_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=SY Social Security Number

state_licence_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=0B State License Number

submitter_id_number[RW]

Loop: 2100B, Segment: REF, Element: REF02, Notes: REF01=EO Submitter Identification Number

Public Class Methods

attribute_map() click to toggle source

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

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 64
def self.attribute_map
  {
    'address': :address,
    'contact_number': :contactNumber,
    'device_pin_number': :devicePinNumber,
    'facility_id_number': :facilityIdNumber,
    'facility_network_id_number': :facilityNetworkIdNumber,
    'federal_taxpayer_identification_number': :federalTaxpayerIdentificationNumber,
    'information_receiver_additional_identifier_state': :informationReceiverAdditionalIdentifierState,
    'medicaid_provider_number': :medicaidProviderNumber,
    'medicare_provider_number': :medicareProviderNumber,
    'national_provider_identifier': :nationalProviderIdentifier,
    'prior_identifier_number': :priorIdentifierNumber,
    'provider_plan_network_id_number': :providerPlanNetworkIdNumber,
    'social_security_number': :socialSecurityNumber,
    'state_licence_number': :stateLicenceNumber,
    'submitter_id_number': :submitterIdNumber
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 107
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

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

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

  self.contact_number = attributes[:contactNumber] if attributes.key?(:contactNumber)

  self.device_pin_number = attributes[:devicePinNumber] if attributes.key?(:devicePinNumber)

  self.facility_id_number = attributes[:facilityIdNumber] if attributes.key?(:facilityIdNumber)

  self.facility_network_id_number = attributes[:facilityNetworkIdNumber] if attributes.key?(:facilityNetworkIdNumber)

  if attributes.key?(:federalTaxpayerIdentificationNumber)
    self.federal_taxpayer_identification_number = attributes[:federalTaxpayerIdentificationNumber]
  end

  if attributes.key?(:informationReceiverAdditionalIdentifierState)
    self.information_receiver_additional_identifier_state = attributes[:informationReceiverAdditionalIdentifierState]
  end

  self.medicaid_provider_number = attributes[:medicaidProviderNumber] if attributes.key?(:medicaidProviderNumber)

  self.medicare_provider_number = attributes[:medicareProviderNumber] if attributes.key?(:medicareProviderNumber)

  self.national_provider_identifier = attributes[:nationalProviderIdentifier] if attributes.key?(:nationalProviderIdentifier)

  self.prior_identifier_number = attributes[:priorIdentifierNumber] if attributes.key?(:priorIdentifierNumber)

  self.provider_plan_network_id_number = attributes[:providerPlanNetworkIdNumber] if attributes.key?(:providerPlanNetworkIdNumber)

  self.social_security_number = attributes[:socialSecurityNumber] if attributes.key?(:socialSecurityNumber)

  self.state_licence_number = attributes[:stateLicenceNumber] if attributes.key?(:stateLicenceNumber)

  self.submitter_id_number = attributes[:submitterIdNumber] if attributes.key?(:submitterIdNumber)
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 85
def self.swagger_types
  {
    'address': :Address,
    'contact_number': :String,
    'device_pin_number': :String,
    'facility_id_number': :String,
    'facility_network_id_number': :String,
    'federal_taxpayer_identification_number': :String,
    'information_receiver_additional_identifier_state': :String,
    'medicaid_provider_number': :String,
    'medicare_provider_number': :String,
    'national_provider_identifier': :String,
    'prior_identifier_number': :String,
    'provider_plan_network_id_number': :String,
    'social_security_number': :String,
    'state_licence_number': :String,
    'submitter_id_number': :String
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 162
def ==(o)
  return true if equal?(o)

  self.class == o.class &&
    address == o.address &&
    contact_number == o.contact_number &&
    device_pin_number == o.device_pin_number &&
    facility_id_number == o.facility_id_number &&
    facility_network_id_number == o.facility_network_id_number &&
    federal_taxpayer_identification_number == o.federal_taxpayer_identification_number &&
    information_receiver_additional_identifier_state == o.information_receiver_additional_identifier_state &&
    medicaid_provider_number == o.medicaid_provider_number &&
    medicare_provider_number == o.medicare_provider_number &&
    national_provider_identifier == o.national_provider_identifier &&
    prior_identifier_number == o.prior_identifier_number &&
    provider_plan_network_id_number == o.provider_plan_network_id_number &&
    social_security_number == o.social_security_number &&
    state_licence_number == o.state_licence_number &&
    submitter_id_number == o.submitter_id_number
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 220
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) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 287
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) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 198
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 { |v| _deserialize(Regexp.last_match(1), v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 185
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 191
def hash
  [address, contact_number, device_pin_number, facility_id_number, facility_network_id_number, federal_taxpayer_identification_number, information_receiver_additional_identifier_state, medicaid_provider_number, medicare_provider_number, national_provider_identifier, prior_identifier_number, provider_plan_network_id_number, social_security_number, state_licence_number, submitter_id_number].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 150
def list_invalid_properties
  []
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 266
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 272
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_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 260
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/change_healthcare/eligibility/swagger_client/models/information_receiver_name.rb, line 156
def valid?
  true
end