Class: ChangeHealthcare::Eligibility::SwaggerClient::Loop2000CD2100CDSegmentNM1REFDMGINSMPIPRVNotesResponseMember

Inherits:
Object
  • Object
show all
Defined in:
lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Loop2000CD2100CDSegmentNM1REFDMGINSMPIPRVNotesResponseMember

Initializes the object

Parameters:

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

    Model attributes in the form of hash



185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
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
247
248
249
250
251
252
253
254
255
256
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 185

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.birth_sequence_number = attributes[:birthSequenceNumber] if attributes.key?(:birthSequenceNumber)

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.key?(:healthCareDiagnosisCodes)
    if (value = attributes[:healthCareDiagnosisCodes]).is_a?(Array)
      self.health_care_diagnosis_codes = value
    end
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  self.unique_health_identifier = attributes[:uniqueHealthIdentifier] if attributes.key?(:uniqueHealthIdentifier)
end

Instance Attribute Details

#addressObject

Loop: 2000/2100, Segment: N3 and N4 Element: INS04, Notes: Maintenance Reason Code



18
19
20
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 18

def address
  @address
end

#birth_sequence_numberObject

Loop: 2000/2100, Segment: INS, Element: INS17, Notes: Birth Sequence Number Use to indicate the birth order in the event of multiple births in association with the birth date supplied in DMG02



21
22
23
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 21

def birth_sequence_number
  @birth_sequence_number
end

#date_of_birthObject

Loop: 2000/2100, Segment: DMG, Element: DMG02, Notes: Date of Birth



24
25
26
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 24

def date_of_birth
  @date_of_birth
end

#date_time_periodObject

Loop: 2000/2100, Segment: MPI, Element: MPI07, Notes: MPI106=D8 Date Time Period



27
28
29
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 27

def date_time_period
  @date_time_period
end

#date_time_period_format_qualifierObject

Loop: 2000/2100, Segment: MPI, Element: MPI06, Notes: Date Time Period Format Qualifier



30
31
32
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 30

def date_time_period_format_qualifier
  @date_time_period_format_qualifier
end

#descriptionObject

Loop: 2000/2100, Segment: MPI, Element: MPI04, Notes: Description



33
34
35
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 33

def description
  @description
end

#employment_status_codeObject

Loop: 2000/2100, Segment: MPI, Element: MPI02, Notes: Employment Status Code



36
37
38
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 36

def employment_status_code
  @employment_status_code
end

#end_date_time_periodObject

Loop: 2000/2100, Segment: MPI, Element: MPI08, Notes: MPI106=RD8 Date Time Period



39
40
41
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 39

def end_date_time_period
  @end_date_time_period
end

#entity_identifierObject

Loop: 2000/2100, Segment: NM1, Element: NM101, Notes: entityIdentifier



42
43
44
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 42

def entity_identifier
  @entity_identifier
end

#entity_typeObject

Loop: 2000/2100, Segment: NM1, Element: NM102, Notes: entityType



45
46
47
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 45

def entity_type
  @entity_type
end

#first_nameObject

Loop: 2000/2100, Segment: NM1, Element: NM104, Notes: First Name



48
49
50
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 48

def first_name
  @first_name
end

#genderObject

Loop: 2000/2100, Segment: DMG, Element: DMG03, Notes: gender



51
52
53
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 51

def gender
  @gender
end

#government_service_affiliation_codeObject

Loop: 2000/2100, Segment: MPI, Element: MPI03, Notes: Government Service Affiliation Code



54
55
56
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 54

def government_service_affiliation_code
  @government_service_affiliation_code
end

#group_numberObject

Loop: 2000/2100, Segment: REF, Element: REF02, Notes: REF01=6P Group Number



57
58
59
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 57

def group_number
  @group_number
end

#health_care_diagnosis_codesObject

Returns the value of attribute health_care_diagnosis_codes.



59
60
61
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 59

def health_care_diagnosis_codes
  @health_care_diagnosis_codes
end

#information_status_codeObject

Loop: 2000/2100, Segment: MPI, Element: MPI01, Notes: Information Status Code



62
63
64
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 62

def information_status_code
  @information_status_code
end

#insured_indicatorObject

Loop: 2000/2100, Segment: INS, Element: INS01, Notes: Insured Indicator



65
66
67
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 65

def insured_indicator
  @insured_indicator
end

#last_nameObject

Loop: 2000/2100, Segment: NM1, Element: NM103, Notes: Last Name



68
69
70
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 68

def last_name
  @last_name
end

#maintenance_reason_codeObject

Loop: 2000/2100, Segment: INS, Element: INS04, Notes: Maintenance Reason Code



71
72
73
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 71

def maintenance_reason_code
  @maintenance_reason_code
end

#maintenance_type_codeObject

Loop: 2000/2100, Segment: INS, Element: INS03, Notes: Maintenance Type Code



74
75
76
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 74

def maintenance_type_code
  @maintenance_type_code
end

#member_idObject

Loop: 2000/2100, Segment: NM1, Element: NM109, Notes: NM108=MI Member Identification Number



77
78
79
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 77

def member_id
  @member_id
end

#middle_nameObject

Loop: 2000/2100, Segment: NM1 Element: NM105, Notes: Middle Name



80
81
82
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 80

def middle_name
  @middle_name
end

#military_service_rank_codeObject

Loop: 2000/2100, Segment: MPI, Element: MPI05, Notes: Military Service Rank Code



83
84
85
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 83

def military_service_rank_code
  @military_service_rank_code
end

#plan_numberObject

Loop: 2000/2100, Segment: REF, Element: REF02, Notes: REF01=18 Plan Number



86
87
88
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 86

def plan_number
  @plan_number
end

#providerObject

Loop: 2000/2100, Segment: PRV, Notes: Provider Information



89
90
91
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 89

def provider
  @provider
end

#relation_to_subscriberObject

Loop: 2000/2100, Segment: INS, Element: INS02, Notes: Individual Relationship Code



92
93
94
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 92

def relation_to_subscriber
  @relation_to_subscriber
end

#relation_to_subscriber_codeObject

Loop: 2000/2100, Segment: INS, Element: INS02, Notes: Individual Relationship Code



95
96
97
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 95

def relation_to_subscriber_code
  @relation_to_subscriber_code
end

#ssnObject

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



98
99
100
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 98

def ssn
  @ssn
end

#start_date_time_periodObject

Loop: 2000/2100, Segment: MPI, Element: MPI08, Notes: MPI106=RD8 Date Time Period



101
102
103
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 101

def start_date_time_period
  @start_date_time_period
end

#suffixObject

Loop: 2000/2100, Segment: NM1, Element: NM107, Notes: suffix



104
105
106
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 104

def suffix
  @suffix
end

#unique_health_identifierObject

Loop: 2000/2100, Segment: NM1, Element: NM109, Notes: NM108=II uniqueHealthIdentifier



107
108
109
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 107

def unique_health_identifier
  @unique_health_identifier
end

Class Method Details

.attribute_mapObject

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



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
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 110

def self.attribute_map
  {
    'address': :address,
    'birth_sequence_number': :birthSequenceNumber,
    'date_of_birth': :dateOfBirth,
    'date_time_period': :dateTimePeriod,
    'date_time_period_format_qualifier': :dateTimePeriodFormatQualifier,
    'description': :description,
    'employment_status_code': :employmentStatusCode,
    'end_date_time_period': :endDateTimePeriod,
    'entity_identifier': :entityIdentifier,
    'entity_type': :entityType,
    'first_name': :firstName,
    'gender': :gender,
    'government_service_affiliation_code': :governmentServiceAffiliationCode,
    'group_number': :groupNumber,
    'health_care_diagnosis_codes': :healthCareDiagnosisCodes,
    'information_status_code': :informationStatusCode,
    'insured_indicator': :insuredIndicator,
    'last_name': :lastName,
    'maintenance_reason_code': :maintenanceReasonCode,
    'maintenance_type_code': :maintenanceTypeCode,
    'member_id': :memberId,
    'middle_name': :middleName,
    'military_service_rank_code': :militaryServiceRankCode,
    'plan_number': :planNumber,
    'provider': :provider,
    'relation_to_subscriber': :relationToSubscriber,
    'relation_to_subscriber_code': :relationToSubscriberCode,
    'ssn': :ssn,
    'start_date_time_period': :startDateTimePeriod,
    'suffix': :suffix,
    'unique_health_identifier': :uniqueHealthIdentifier
  }
end

.swagger_typesObject

Attribute type mapping.



147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 147

def self.swagger_types
  {
    'address': :Address,
    'birth_sequence_number': :String,
    'date_of_birth': :Date,
    'date_time_period': :String,
    'date_time_period_format_qualifier': :String,
    'description': :String,
    'employment_status_code': :String,
    'end_date_time_period': :String,
    'entity_identifier': :String,
    'entity_type': :String,
    'first_name': :String,
    'gender': :String,
    'government_service_affiliation_code': :String,
    'group_number': :String,
    'health_care_diagnosis_codes': :'Array<HealthCareDiagnosisCode>',
    'information_status_code': :String,
    'insured_indicator': :String,
    'last_name': :String,
    'maintenance_reason_code': :String,
    'maintenance_type_code': :String,
    'member_id': :String,
    'middle_name': :String,
    'military_service_rank_code': :String,
    'plan_number': :String,
    'provider': :Loop2100BCDSegmentNM1PRVNotesProvider,
    'relation_to_subscriber': :String,
    'relation_to_subscriber_code': :String,
    'ssn': :String,
    'start_date_time_period': :String,
    'suffix': :String,
    'unique_health_identifier': :String
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



272
273
274
275
276
277
278
279
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
306
307
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 272

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

  self.class == o.class &&
    address == o.address &&
    birth_sequence_number == o.birth_sequence_number &&
    date_of_birth == o.date_of_birth &&
    date_time_period == o.date_time_period &&
    date_time_period_format_qualifier == o.date_time_period_format_qualifier &&
    description == o.description &&
    employment_status_code == o.employment_status_code &&
    end_date_time_period == o.end_date_time_period &&
    entity_identifier == o.entity_identifier &&
    entity_type == o.entity_type &&
    first_name == o.first_name &&
    gender == o.gender &&
    government_service_affiliation_code == o.government_service_affiliation_code &&
    group_number == o.group_number &&
    health_care_diagnosis_codes == o.health_care_diagnosis_codes &&
    information_status_code == o.information_status_code &&
    insured_indicator == o.insured_indicator &&
    last_name == o.last_name &&
    maintenance_reason_code == o.maintenance_reason_code &&
    maintenance_type_code == o.maintenance_type_code &&
    member_id == o.member_id &&
    middle_name == o.middle_name &&
    military_service_rank_code == o.military_service_rank_code &&
    plan_number == o.plan_number &&
    provider == o.provider &&
    relation_to_subscriber == o.relation_to_subscriber &&
    relation_to_subscriber_code == o.relation_to_subscriber_code &&
    ssn == o.ssn &&
    start_date_time_period == o.start_date_time_period &&
    suffix == o.suffix &&
    unique_health_identifier == o.unique_health_identifier
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



346
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
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 346

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



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

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



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

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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


311
312
313
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 311

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



317
318
319
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 317

def hash
  [address, birth_sequence_number, date_of_birth, date_time_period, date_time_period_format_qualifier, description, employment_status_code, end_date_time_period, entity_identifier, entity_type, first_name, gender, government_service_affiliation_code, group_number, health_care_diagnosis_codes, information_status_code, insured_indicator, last_name, maintenance_reason_code, maintenance_type_code, member_id, middle_name, military_service_rank_code, plan_number, provider, relation_to_subscriber, relation_to_subscriber_code, ssn, start_date_time_period, suffix, unique_health_identifier].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



260
261
262
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 260

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



392
393
394
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 392

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



398
399
400
401
402
403
404
405
406
407
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 398

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



386
387
388
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 386

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



266
267
268
# File 'lib/change_healthcare/eligibility/swagger_client/models/loop_2000_cd2100_cd_segment_nm1_ref_dmg_ins_mpi_prv_notes_response_member.rb', line 266

def valid?
  true
end