Class: ChangeHealthcare::Eligibility::SwaggerClient::Loop2100ASegmentsNM1AndPERNotesInformationSourceName
- Inherits:
-
Object
- Object
- ChangeHealthcare::Eligibility::SwaggerClient::Loop2100ASegmentsNM1AndPERNotesInformationSourceName
- Defined in:
- lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb
Instance Attribute Summary collapse
-
#centers_for_medicare_and_medicaid_plan_id ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=XV Centers for Medicare and Medicaid Services PlanID.
-
#contact_information ⇒ Object
Loop: 2100A, Segments: PER, Notes: Information Source Contact Information.
-
#employers_id ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=24 Employer’s Identification Number.
-
#entity_identifier ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM101 Notes: Entity Identifier Code.
-
#entity_type ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM102 Notes: Entity Type Qualifier.
-
#etin ⇒ Object
Returns the value of attribute etin.
-
#federal_taxpayers_id_number ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=FI Federal Taxpayer’s Identification Number.
-
#first_name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM104 Notes: Name First.
-
#last_name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM103 Notes: Name Last.
-
#middle_name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM105 Notes: Name Middle.
-
#naic ⇒ Object
Returns the value of attribute naic.
-
#name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM103 Notes: Organization Name.
-
#npi ⇒ Object
Returns the value of attribute npi.
-
#payor_identification ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=PI Payor Identification.
-
#suffix ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM107 Notes: Name Suffix.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Loop2100ASegmentsNM1AndPERNotesInformationSourceName
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Loop2100ASegmentsNM1AndPERNotesInformationSourceName
Initializes the object
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 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 99 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.transform_keys(&:to_sym) if attributes.key?(:centersForMedicareAndMedicaidPlanId) self.centers_for_medicare_and_medicaid_plan_id = attributes[:centersForMedicareAndMedicaidPlanId] end self.contact_information = attributes[:contactInformation] if attributes.key?(:contactInformation) self.employers_id = attributes[:employersId] if attributes.key?(:employersId) self.entity_identifier = attributes[:entityIdentifier] if attributes.key?(:entityIdentifier) self.entity_type = attributes[:entityType] if attributes.key?(:entityType) self.etin = attributes[:etin] if attributes.key?(:etin) self.federal_taxpayers_id_number = attributes[:federalTaxpayersIdNumber] if attributes.key?(:federalTaxpayersIdNumber) self.first_name = attributes[:firstName] if attributes.key?(:firstName) self.last_name = attributes[:lastName] if attributes.key?(:lastName) self.middle_name = attributes[:middleName] if attributes.key?(:middleName) self.naic = attributes[:naic] if attributes.key?(:naic) self.name = attributes[:name] if attributes.key?(:name) self.npi = attributes[:npi] if attributes.key?(:npi) self.payor_identification = attributes[:payorIdentification] if attributes.key?(:payorIdentification) self.suffix = attributes[:suffix] if attributes.key?(:suffix) end |
Instance Attribute Details
#centers_for_medicare_and_medicaid_plan_id ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=XV Centers for Medicare and Medicaid Services PlanID
18 19 20 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 18 def centers_for_medicare_and_medicaid_plan_id @centers_for_medicare_and_medicaid_plan_id end |
#contact_information ⇒ Object
Loop: 2100A, Segments: PER, Notes: Information Source Contact Information
21 22 23 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 21 def contact_information @contact_information end |
#employers_id ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=24 Employer’s Identification Number
24 25 26 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 24 def employers_id @employers_id end |
#entity_identifier ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM101 Notes: Entity Identifier Code
27 28 29 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 27 def entity_identifier @entity_identifier end |
#entity_type ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM102 Notes: Entity Type Qualifier
30 31 32 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 30 def entity_type @entity_type end |
#etin ⇒ Object
Returns the value of attribute etin.
32 33 34 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 32 def etin @etin end |
#federal_taxpayers_id_number ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=FI Federal Taxpayer’s Identification Number
35 36 37 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 35 def federal_taxpayers_id_number @federal_taxpayers_id_number end |
#first_name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM104 Notes: Name First
38 39 40 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 38 def first_name @first_name end |
#last_name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM103 Notes: Name Last
41 42 43 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 41 def last_name @last_name end |
#middle_name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM105 Notes: Name Middle
44 45 46 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 44 def middle_name @middle_name end |
#naic ⇒ Object
Returns the value of attribute naic.
32 33 34 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 32 def naic @naic end |
#name ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM103 Notes: Organization Name
47 48 49 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 47 def name @name end |
#npi ⇒ Object
Returns the value of attribute npi.
32 33 34 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 32 def npi @npi end |
#payor_identification ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM109 Notes: NM108=PI Payor Identification
50 51 52 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 50 def payor_identification @payor_identification end |
#suffix ⇒ Object
Loop: 2100A, Segments: NM1, Element: NM107 Notes: Name Suffix
53 54 55 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 53 def suffix @suffix end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 56 def self.attribute_map { 'centers_for_medicare_and_medicaid_plan_id': :centersForMedicareAndMedicaidPlanId, 'contact_information': :contactInformation, 'employers_id': :employersId, 'entity_identifier': :entityIdentifier, 'entity_type': :entityType, 'etin': :etin, 'federal_taxpayers_id_number': :federalTaxpayersIdNumber, 'first_name': :firstName, 'last_name': :lastName, 'middle_name': :middleName, 'naic': :naic, 'name': :name, 'npi': :npi, 'payor_identification': :payorIdentification, 'suffix': :suffix } end |
.swagger_types ⇒ Object
Attribute type mapping.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 77 def self.swagger_types { 'centers_for_medicare_and_medicaid_plan_id': :String, 'contact_information': :Loop2100ASegmentsPERNotesInformationSourceContactInformation, 'employers_id': :String, 'entity_identifier': :String, 'entity_type': :String, 'etin': :String, 'federal_taxpayers_id_number': :String, 'first_name': :String, 'last_name': :String, 'middle_name': :String, 'naic': :String, 'name': :String, 'npi': :String, 'payor_identification': :String, 'suffix': :String } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 152 def ==(o) return true if equal?(o) self.class == o.class && centers_for_medicare_and_medicaid_plan_id == o.centers_for_medicare_and_medicaid_plan_id && contact_information == o.contact_information && employers_id == o.employers_id && entity_identifier == o.entity_identifier && entity_type == o.entity_type && etin == o.etin && federal_taxpayers_id_number == o.federal_taxpayers_id_number && first_name == o.first_name && last_name == o.last_name && middle_name == o.middle_name && naic == o.naic && name == o.name && npi == o.npi && payor_identification == o.payor_identification && suffix == o.suffix end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 210 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
277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 277 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
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 188 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) ⇒ Boolean
175 176 177 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 175 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
181 182 183 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 181 def hash [centers_for_medicare_and_medicaid_plan_id, contact_information, employers_id, entity_identifier, entity_type, etin, federal_taxpayers_id_number, first_name, last_name, middle_name, naic, name, npi, payor_identification, suffix].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
140 141 142 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 140 def list_invalid_properties [] end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
256 257 258 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 256 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
262 263 264 265 266 267 268 269 270 271 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 262 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 ⇒ String
Returns the string representation of the object
250 251 252 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 250 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
146 147 148 |
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2100_a_segments_nm1_and_per_notes_information_source_name.rb', line 146 def valid? true end |