Class: VericredClient::Plan

Inherits:
Object
  • Object
show all
Defined in:
lib/vericred_client/models/plan.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Plan

Initializes the object

Parameters:

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

    Model attributes in the form of hash



491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
# File 'lib/vericred_client/models/plan.rb', line 491

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

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}

  if attributes.has_key?(:'adult_dental')
    self.adult_dental = attributes[:'adult_dental']
  end

  if attributes.has_key?(:'age29_rider')
    self.age29_rider = attributes[:'age29_rider']
  end

  if attributes.has_key?(:'ambulance')
    self.ambulance = attributes[:'ambulance']
  end

  if attributes.has_key?(:'benefits_summary_url')
    self.benefits_summary_url = attributes[:'benefits_summary_url']
  end

  if attributes.has_key?(:'buy_link')
    self.buy_link = attributes[:'buy_link']
  end

  if attributes.has_key?(:'carrier_name')
    self.carrier_name = attributes[:'carrier_name']
  end

  if attributes.has_key?(:'child_dental')
    self.child_dental = attributes[:'child_dental']
  end

  if attributes.has_key?(:'child_eyewear')
    self.child_eyewear = attributes[:'child_eyewear']
  end

  if attributes.has_key?(:'child_eye_exam')
    self.child_eye_exam = attributes[:'child_eye_exam']
  end

  if attributes.has_key?(:'customer_service_phone_number')
    self.customer_service_phone_number = attributes[:'customer_service_phone_number']
  end

  if attributes.has_key?(:'durable_medical_equipment')
    self.durable_medical_equipment = attributes[:'durable_medical_equipment']
  end

  if attributes.has_key?(:'diagnostic_test')
    self.diagnostic_test = attributes[:'diagnostic_test']
  end

  if attributes.has_key?(:'display_name')
    self.display_name = attributes[:'display_name']
  end

  if attributes.has_key?(:'dp_rider')
    self.dp_rider = attributes[:'dp_rider']
  end

  if attributes.has_key?(:'drug_formulary_url')
    self.drug_formulary_url = attributes[:'drug_formulary_url']
  end

  if attributes.has_key?(:'effective_date')
    self.effective_date = attributes[:'effective_date']
  end

  if attributes.has_key?(:'expiration_date')
    self.expiration_date = attributes[:'expiration_date']
  end

  if attributes.has_key?(:'emergency_room')
    self.emergency_room = attributes[:'emergency_room']
  end

  if attributes.has_key?(:'family_drug_deductible')
    self.family_drug_deductible = attributes[:'family_drug_deductible']
  end

  if attributes.has_key?(:'family_drug_moop')
    self.family_drug_moop = attributes[:'family_drug_moop']
  end

  if attributes.has_key?(:'family_medical_deductible')
    self.family_medical_deductible = attributes[:'family_medical_deductible']
  end

  if attributes.has_key?(:'family_medical_moop')
    self.family_medical_moop = attributes[:'family_medical_moop']
  end

  if attributes.has_key?(:'fp_rider')
    self.fp_rider = attributes[:'fp_rider']
  end

  if attributes.has_key?(:'generic_drugs')
    self.generic_drugs = attributes[:'generic_drugs']
  end

  if attributes.has_key?(:'habilitation_services')
    self.habilitation_services = attributes[:'habilitation_services']
  end

  if attributes.has_key?(:'hios_issuer_id')
    self.hios_issuer_id = attributes[:'hios_issuer_id']
  end

  if attributes.has_key?(:'home_health_care')
    self.home_health_care = attributes[:'home_health_care']
  end

  if attributes.has_key?(:'hospice_service')
    self.hospice_service = attributes[:'hospice_service']
  end

  if attributes.has_key?(:'hsa_eligible')
    self.hsa_eligible = attributes[:'hsa_eligible']
  end

  if attributes.has_key?(:'id')
    self.id = attributes[:'id']
  end

  if attributes.has_key?(:'imaging')
    self.imaging = attributes[:'imaging']
  end

  if attributes.has_key?(:'in_network_ids')
    if (value = attributes[:'in_network_ids']).is_a?(Array)
      self.in_network_ids = value
    end
  end

  if attributes.has_key?(:'individual_drug_deductible')
    self.individual_drug_deductible = attributes[:'individual_drug_deductible']
  end

  if attributes.has_key?(:'individual_drug_moop')
    self.individual_drug_moop = attributes[:'individual_drug_moop']
  end

  if attributes.has_key?(:'individual_medical_deductible')
    self.individual_medical_deductible = attributes[:'individual_medical_deductible']
  end

  if attributes.has_key?(:'individual_medical_moop')
    self.individual_medical_moop = attributes[:'individual_medical_moop']
  end

  if attributes.has_key?(:'inpatient_birth')
    self.inpatient_birth = attributes[:'inpatient_birth']
  end

  if attributes.has_key?(:'inpatient_facility')
    self.inpatient_facility = attributes[:'inpatient_facility']
  end

  if attributes.has_key?(:'inpatient_mental_health')
    self.inpatient_mental_health = attributes[:'inpatient_mental_health']
  end

  if attributes.has_key?(:'inpatient_physician')
    self.inpatient_physician = attributes[:'inpatient_physician']
  end

  if attributes.has_key?(:'inpatient_substance')
    self.inpatient_substance = attributes[:'inpatient_substance']
  end

  if attributes.has_key?(:'level')
    self.level = attributes[:'level']
  end

  if attributes.has_key?(:'logo_url')
    self.logo_url = attributes[:'logo_url']
  end

  if attributes.has_key?(:'name')
    self.name = attributes[:'name']
  end

  if attributes.has_key?(:'network_size')
    self.network_size = attributes[:'network_size']
  end

  if attributes.has_key?(:'non_preferred_brand_drugs')
    self.non_preferred_brand_drugs = attributes[:'non_preferred_brand_drugs']
  end

  if attributes.has_key?(:'on_market')
    self.on_market = attributes[:'on_market']
  end

  if attributes.has_key?(:'off_market')
    self.off_market = attributes[:'off_market']
  end

  if attributes.has_key?(:'out_of_network_coverage')
    self.out_of_network_coverage = attributes[:'out_of_network_coverage']
  end

  if attributes.has_key?(:'out_of_network_ids')
    if (value = attributes[:'out_of_network_ids']).is_a?(Array)
      self.out_of_network_ids = value
    end
  end

  if attributes.has_key?(:'outpatient_facility')
    self.outpatient_facility = attributes[:'outpatient_facility']
  end

  if attributes.has_key?(:'outpatient_mental_health')
    self.outpatient_mental_health = attributes[:'outpatient_mental_health']
  end

  if attributes.has_key?(:'outpatient_physician')
    self.outpatient_physician = attributes[:'outpatient_physician']
  end

  if attributes.has_key?(:'outpatient_substance')
    self.outpatient_substance = attributes[:'outpatient_substance']
  end

  if attributes.has_key?(:'plan_market')
    self.plan_market = attributes[:'plan_market']
  end

  if attributes.has_key?(:'plan_type')
    self.plan_type = attributes[:'plan_type']
  end

  if attributes.has_key?(:'preferred_brand_drugs')
    self.preferred_brand_drugs = attributes[:'preferred_brand_drugs']
  end

  if attributes.has_key?(:'prenatal_postnatal_care')
    self.prenatal_postnatal_care = attributes[:'prenatal_postnatal_care']
  end

  if attributes.has_key?(:'preventative_care')
    self.preventative_care = attributes[:'preventative_care']
  end

  if attributes.has_key?(:'premium_subsidized')
    self.premium_subsidized = attributes[:'premium_subsidized']
  end

  if attributes.has_key?(:'premium')
    self.premium = attributes[:'premium']
  end

  if attributes.has_key?(:'primary_care_physician')
    self.primary_care_physician = attributes[:'primary_care_physician']
  end

  if attributes.has_key?(:'rehabilitation_services')
    self.rehabilitation_services = attributes[:'rehabilitation_services']
  end

  if attributes.has_key?(:'service_area_id')
    self.service_area_id = attributes[:'service_area_id']
  end

  if attributes.has_key?(:'skilled_nursing')
    self.skilled_nursing = attributes[:'skilled_nursing']
  end

  if attributes.has_key?(:'specialist')
    self.specialist = attributes[:'specialist']
  end

  if attributes.has_key?(:'specialty_drugs')
    self.specialty_drugs = attributes[:'specialty_drugs']
  end

  if attributes.has_key?(:'urgent_care')
    self.urgent_care = attributes[:'urgent_care']
  end

end

Instance Attribute Details

#adult_dentalObject

Does the plan provide dental coverage for adults?



137
138
139
# File 'lib/vericred_client/models/plan.rb', line 137

def adult_dental
  @adult_dental
end

#age29_riderObject

Returns the value of attribute age29_rider.



140
141
142
# File 'lib/vericred_client/models/plan.rb', line 140

def age29_rider
  @age29_rider
end

#ambulanceObject

Benefits string for ambulance coverage



143
144
145
# File 'lib/vericred_client/models/plan.rb', line 143

def ambulance
  @ambulance
end

#benefits_summary_urlObject

Link to the summary of benefits and coverage (SBC) document.



146
147
148
# File 'lib/vericred_client/models/plan.rb', line 146

def benefits_summary_url
  @benefits_summary_url
end

Link to a location to purchase the plan.



149
150
151
# File 'lib/vericred_client/models/plan.rb', line 149

def buy_link
  @buy_link
end

#carrier_nameObject

Name of the insurance carrier



152
153
154
# File 'lib/vericred_client/models/plan.rb', line 152

def carrier_name
  @carrier_name
end

#child_dentalObject

Does the plan provide dental coverage for children?



155
156
157
# File 'lib/vericred_client/models/plan.rb', line 155

def child_dental
  @child_dental
end

#child_eye_examObject

Child eye exam benefits summary



161
162
163
# File 'lib/vericred_client/models/plan.rb', line 161

def child_eye_exam
  @child_eye_exam
end

#child_eyewearObject

Child eyewear benefits summary



158
159
160
# File 'lib/vericred_client/models/plan.rb', line 158

def child_eyewear
  @child_eyewear
end

#customer_service_phone_numberObject

Phone number to contact the insurance carrier



164
165
166
# File 'lib/vericred_client/models/plan.rb', line 164

def customer_service_phone_number
  @customer_service_phone_number
end

#diagnostic_testObject

Diagnostic tests benefit summary



170
171
172
# File 'lib/vericred_client/models/plan.rb', line 170

def diagnostic_test
  @diagnostic_test
end

#display_nameObject

Alternate name for the Plan



173
174
175
# File 'lib/vericred_client/models/plan.rb', line 173

def display_name
  @display_name
end

#dp_riderObject

Is this a domestic plan?



176
177
178
# File 'lib/vericred_client/models/plan.rb', line 176

def dp_rider
  @dp_rider
end

#drug_formulary_urlObject

Link to the summary of drug benefits for the plan



179
180
181
# File 'lib/vericred_client/models/plan.rb', line 179

def drug_formulary_url
  @drug_formulary_url
end

#durable_medical_equipmentObject

Benefits summary for durable medical equipment



167
168
169
# File 'lib/vericred_client/models/plan.rb', line 167

def durable_medical_equipment
  @durable_medical_equipment
end

#effective_dateObject

Effective date of coverage.



182
183
184
# File 'lib/vericred_client/models/plan.rb', line 182

def effective_date
  @effective_date
end

#emergency_roomObject

Description of costs when visiting the ER



188
189
190
# File 'lib/vericred_client/models/plan.rb', line 188

def emergency_room
  @emergency_room
end

#expiration_dateObject

Expiration date of coverage.



185
186
187
# File 'lib/vericred_client/models/plan.rb', line 185

def expiration_date
  @expiration_date
end

#family_drug_deductibleObject

Deductible for drugs when a family is on the plan.



191
192
193
# File 'lib/vericred_client/models/plan.rb', line 191

def family_drug_deductible
  @family_drug_deductible
end

#family_drug_moopObject

Maximum out-of-pocket for drugs when a family is on the plan



194
195
196
# File 'lib/vericred_client/models/plan.rb', line 194

def family_drug_moop
  @family_drug_moop
end

#family_medical_deductibleObject

Deductible when a family is on the plan



197
198
199
# File 'lib/vericred_client/models/plan.rb', line 197

def family_medical_deductible
  @family_medical_deductible
end

#family_medical_moopObject

Maximum out-of-pocket when a family is on the plan



200
201
202
# File 'lib/vericred_client/models/plan.rb', line 200

def family_medical_moop
  @family_medical_moop
end

#fp_riderObject

Is this a family plan?



203
204
205
# File 'lib/vericred_client/models/plan.rb', line 203

def fp_rider
  @fp_rider
end

#generic_drugsObject

Cost for generic drugs



206
207
208
# File 'lib/vericred_client/models/plan.rb', line 206

def generic_drugs
  @generic_drugs
end

#habilitation_servicesObject

Habilitation services benefits summary



209
210
211
# File 'lib/vericred_client/models/plan.rb', line 209

def habilitation_services
  @habilitation_services
end

#hios_issuer_idObject

Returns the value of attribute hios_issuer_id.



212
213
214
# File 'lib/vericred_client/models/plan.rb', line 212

def hios_issuer_id
  @hios_issuer_id
end

#home_health_careObject

Home health care benefits summary



215
216
217
# File 'lib/vericred_client/models/plan.rb', line 215

def home_health_care
  @home_health_care
end

#hospice_serviceObject

Hospice service benefits summary



218
219
220
# File 'lib/vericred_client/models/plan.rb', line 218

def hospice_service
  @hospice_service
end

#hsa_eligibleObject

Is the plan HSA eligible?



221
222
223
# File 'lib/vericred_client/models/plan.rb', line 221

def hsa_eligible
  @hsa_eligible
end

#idObject

Government-issued HIOS plan ID



224
225
226
# File 'lib/vericred_client/models/plan.rb', line 224

def id
  @id
end

#imagingObject

Benefits summary for imaging coverage



227
228
229
# File 'lib/vericred_client/models/plan.rb', line 227

def imaging
  @imaging
end

#in_network_idsObject

List of NPI numbers for Providers passed in who accept this Plan



230
231
232
# File 'lib/vericred_client/models/plan.rb', line 230

def in_network_ids
  @in_network_ids
end

#individual_drug_deductibleObject

Deductible for drugs when an individual is on the plan



233
234
235
# File 'lib/vericred_client/models/plan.rb', line 233

def individual_drug_deductible
  @individual_drug_deductible
end

#individual_drug_moopObject

Maximum out-of-pocket for drugs when an individual is on the plan



236
237
238
# File 'lib/vericred_client/models/plan.rb', line 236

def individual_drug_moop
  @individual_drug_moop
end

#individual_medical_deductibleObject

Deductible when an individual is on the plan



239
240
241
# File 'lib/vericred_client/models/plan.rb', line 239

def individual_medical_deductible
  @individual_medical_deductible
end

#individual_medical_moopObject

Maximum out-of-pocket when an individual is on the plan



242
243
244
# File 'lib/vericred_client/models/plan.rb', line 242

def individual_medical_moop
  @individual_medical_moop
end

#inpatient_birthObject

Inpatient birth benefits summary



245
246
247
# File 'lib/vericred_client/models/plan.rb', line 245

def inpatient_birth
  @inpatient_birth
end

#inpatient_facilityObject

Cost under the plan for an inpatient facility



248
249
250
# File 'lib/vericred_client/models/plan.rb', line 248

def inpatient_facility
  @inpatient_facility
end

#inpatient_mental_healthObject

Inpatient mental helath benefits summary



251
252
253
# File 'lib/vericred_client/models/plan.rb', line 251

def inpatient_mental_health
  @inpatient_mental_health
end

#inpatient_physicianObject

Cost under the plan for an inpatient physician



254
255
256
# File 'lib/vericred_client/models/plan.rb', line 254

def inpatient_physician
  @inpatient_physician
end

#inpatient_substanceObject

Inpatient substance abuse benefits summary



257
258
259
# File 'lib/vericred_client/models/plan.rb', line 257

def inpatient_substance
  @inpatient_substance
end

#levelObject

Plan metal grouping (e.g. platinum, gold, silver, etc)



260
261
262
# File 'lib/vericred_client/models/plan.rb', line 260

def level
  @level
end

#logo_urlObject

Link to a copy of the insurance carrier’s logo



263
264
265
# File 'lib/vericred_client/models/plan.rb', line 263

def logo_url
  @logo_url
end

#nameObject

Marketing name of the plan



266
267
268
# File 'lib/vericred_client/models/plan.rb', line 266

def name
  @name
end

#network_sizeObject

Total number of Providers in network



269
270
271
# File 'lib/vericred_client/models/plan.rb', line 269

def network_size
  @network_size
end

#non_preferred_brand_drugsObject

Cost under the plan for non-preferred brand drugs



272
273
274
# File 'lib/vericred_client/models/plan.rb', line 272

def non_preferred_brand_drugs
  @non_preferred_brand_drugs
end

#off_marketObject

Is the plan off-market?



278
279
280
# File 'lib/vericred_client/models/plan.rb', line 278

def off_market
  @off_market
end

#on_marketObject

Is the plan on-market?



275
276
277
# File 'lib/vericred_client/models/plan.rb', line 275

def on_market
  @on_market
end

#out_of_network_coverageObject

Does this plan provide any out of network coverage?



281
282
283
# File 'lib/vericred_client/models/plan.rb', line 281

def out_of_network_coverage
  @out_of_network_coverage
end

#out_of_network_idsObject

List of NPI numbers for Providers passed in who do not accept this Plan



284
285
286
# File 'lib/vericred_client/models/plan.rb', line 284

def out_of_network_ids
  @out_of_network_ids
end

#outpatient_facilityObject

Benefits summary for outpatient facility coverage



287
288
289
# File 'lib/vericred_client/models/plan.rb', line 287

def outpatient_facility
  @outpatient_facility
end

#outpatient_mental_healthObject

Benefits summary for outpatient mental health coverage



290
291
292
# File 'lib/vericred_client/models/plan.rb', line 290

def outpatient_mental_health
  @outpatient_mental_health
end

#outpatient_physicianObject

Benefits summary for outpatient physician coverage



293
294
295
# File 'lib/vericred_client/models/plan.rb', line 293

def outpatient_physician
  @outpatient_physician
end

#outpatient_substanceObject

Outpatient substance abuse benefits summary



296
297
298
# File 'lib/vericred_client/models/plan.rb', line 296

def outpatient_substance
  @outpatient_substance
end

#plan_marketObject

Market in which the plan is offered (on_marketplace, shop, etc)



299
300
301
# File 'lib/vericred_client/models/plan.rb', line 299

def plan_market
  @plan_market
end

#plan_typeObject

Category of the plan (e.g. EPO, HMO, PPO, POS, Indemnity)



302
303
304
# File 'lib/vericred_client/models/plan.rb', line 302

def plan_type
  @plan_type
end

#preferred_brand_drugsObject

Cost under the plan for perferred brand drugs



305
306
307
# File 'lib/vericred_client/models/plan.rb', line 305

def preferred_brand_drugs
  @preferred_brand_drugs
end

#premiumObject

Cumulative premium amount



317
318
319
# File 'lib/vericred_client/models/plan.rb', line 317

def premium
  @premium
end

#premium_subsidizedObject

Cumulative premium amount after subsidy



314
315
316
# File 'lib/vericred_client/models/plan.rb', line 314

def premium_subsidized
  @premium_subsidized
end

#prenatal_postnatal_careObject

Inpatient substance abuse benefits summary



308
309
310
# File 'lib/vericred_client/models/plan.rb', line 308

def prenatal_postnatal_care
  @prenatal_postnatal_care
end

#preventative_careObject

Benefits summary for preventative care



311
312
313
# File 'lib/vericred_client/models/plan.rb', line 311

def preventative_care
  @preventative_care
end

#primary_care_physicianObject

Cost under the plan to visit a Primary Care Physician



320
321
322
# File 'lib/vericred_client/models/plan.rb', line 320

def primary_care_physician
  @primary_care_physician
end

#rehabilitation_servicesObject

Benefits summary for rehabilitation services



323
324
325
# File 'lib/vericred_client/models/plan.rb', line 323

def rehabilitation_services
  @rehabilitation_services
end

#service_area_idObject

Foreign key for service area



326
327
328
# File 'lib/vericred_client/models/plan.rb', line 326

def service_area_id
  @service_area_id
end

#skilled_nursingObject

Benefits summary for skilled nursing services



329
330
331
# File 'lib/vericred_client/models/plan.rb', line 329

def skilled_nursing
  @skilled_nursing
end

#specialistObject

Cost under the plan to visit a specialist



332
333
334
# File 'lib/vericred_client/models/plan.rb', line 332

def specialist
  @specialist
end

#specialty_drugsObject

Cost under the plan for specialty drugs



335
336
337
# File 'lib/vericred_client/models/plan.rb', line 335

def specialty_drugs
  @specialty_drugs
end

#urgent_careObject

Benefits summary for urgent care



338
339
340
# File 'lib/vericred_client/models/plan.rb', line 338

def urgent_care
  @urgent_care
end

Class Method Details

.attribute_mapObject

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



342
343
344
345
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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'lib/vericred_client/models/plan.rb', line 342

def self.attribute_map
  {
    :'adult_dental' => :'adult_dental',
    :'age29_rider' => :'age29_rider',
    :'ambulance' => :'ambulance',
    :'benefits_summary_url' => :'benefits_summary_url',
    :'buy_link' => :'buy_link',
    :'carrier_name' => :'carrier_name',
    :'child_dental' => :'child_dental',
    :'child_eyewear' => :'child_eyewear',
    :'child_eye_exam' => :'child_eye_exam',
    :'customer_service_phone_number' => :'customer_service_phone_number',
    :'durable_medical_equipment' => :'durable_medical_equipment',
    :'diagnostic_test' => :'diagnostic_test',
    :'display_name' => :'display_name',
    :'dp_rider' => :'dp_rider',
    :'drug_formulary_url' => :'drug_formulary_url',
    :'effective_date' => :'effective_date',
    :'expiration_date' => :'expiration_date',
    :'emergency_room' => :'emergency_room',
    :'family_drug_deductible' => :'family_drug_deductible',
    :'family_drug_moop' => :'family_drug_moop',
    :'family_medical_deductible' => :'family_medical_deductible',
    :'family_medical_moop' => :'family_medical_moop',
    :'fp_rider' => :'fp_rider',
    :'generic_drugs' => :'generic_drugs',
    :'habilitation_services' => :'habilitation_services',
    :'hios_issuer_id' => :'hios_issuer_id',
    :'home_health_care' => :'home_health_care',
    :'hospice_service' => :'hospice_service',
    :'hsa_eligible' => :'hsa_eligible',
    :'id' => :'id',
    :'imaging' => :'imaging',
    :'in_network_ids' => :'in_network_ids',
    :'individual_drug_deductible' => :'individual_drug_deductible',
    :'individual_drug_moop' => :'individual_drug_moop',
    :'individual_medical_deductible' => :'individual_medical_deductible',
    :'individual_medical_moop' => :'individual_medical_moop',
    :'inpatient_birth' => :'inpatient_birth',
    :'inpatient_facility' => :'inpatient_facility',
    :'inpatient_mental_health' => :'inpatient_mental_health',
    :'inpatient_physician' => :'inpatient_physician',
    :'inpatient_substance' => :'inpatient_substance',
    :'level' => :'level',
    :'logo_url' => :'logo_url',
    :'name' => :'name',
    :'network_size' => :'network_size',
    :'non_preferred_brand_drugs' => :'non_preferred_brand_drugs',
    :'on_market' => :'on_market',
    :'off_market' => :'off_market',
    :'out_of_network_coverage' => :'out_of_network_coverage',
    :'out_of_network_ids' => :'out_of_network_ids',
    :'outpatient_facility' => :'outpatient_facility',
    :'outpatient_mental_health' => :'outpatient_mental_health',
    :'outpatient_physician' => :'outpatient_physician',
    :'outpatient_substance' => :'outpatient_substance',
    :'plan_market' => :'plan_market',
    :'plan_type' => :'plan_type',
    :'preferred_brand_drugs' => :'preferred_brand_drugs',
    :'prenatal_postnatal_care' => :'prenatal_postnatal_care',
    :'preventative_care' => :'preventative_care',
    :'premium_subsidized' => :'premium_subsidized',
    :'premium' => :'premium',
    :'primary_care_physician' => :'primary_care_physician',
    :'rehabilitation_services' => :'rehabilitation_services',
    :'service_area_id' => :'service_area_id',
    :'skilled_nursing' => :'skilled_nursing',
    :'specialist' => :'specialist',
    :'specialty_drugs' => :'specialty_drugs',
    :'urgent_care' => :'urgent_care'
  }
end

.swagger_typesObject

Attribute type mapping.



416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
# File 'lib/vericred_client/models/plan.rb', line 416

def self.swagger_types
  {
    :'adult_dental' => :'BOOLEAN',
    :'age29_rider' => :'BOOLEAN',
    :'ambulance' => :'String',
    :'benefits_summary_url' => :'String',
    :'buy_link' => :'String',
    :'carrier_name' => :'String',
    :'child_dental' => :'BOOLEAN',
    :'child_eyewear' => :'String',
    :'child_eye_exam' => :'String',
    :'customer_service_phone_number' => :'String',
    :'durable_medical_equipment' => :'String',
    :'diagnostic_test' => :'String',
    :'display_name' => :'String',
    :'dp_rider' => :'BOOLEAN',
    :'drug_formulary_url' => :'String',
    :'effective_date' => :'String',
    :'expiration_date' => :'String',
    :'emergency_room' => :'String',
    :'family_drug_deductible' => :'String',
    :'family_drug_moop' => :'String',
    :'family_medical_deductible' => :'String',
    :'family_medical_moop' => :'String',
    :'fp_rider' => :'BOOLEAN',
    :'generic_drugs' => :'String',
    :'habilitation_services' => :'String',
    :'hios_issuer_id' => :'String',
    :'home_health_care' => :'String',
    :'hospice_service' => :'String',
    :'hsa_eligible' => :'BOOLEAN',
    :'id' => :'String',
    :'imaging' => :'String',
    :'in_network_ids' => :'Array<Integer>',
    :'individual_drug_deductible' => :'String',
    :'individual_drug_moop' => :'String',
    :'individual_medical_deductible' => :'String',
    :'individual_medical_moop' => :'String',
    :'inpatient_birth' => :'String',
    :'inpatient_facility' => :'String',
    :'inpatient_mental_health' => :'String',
    :'inpatient_physician' => :'String',
    :'inpatient_substance' => :'String',
    :'level' => :'String',
    :'logo_url' => :'String',
    :'name' => :'String',
    :'network_size' => :'Integer',
    :'non_preferred_brand_drugs' => :'String',
    :'on_market' => :'BOOLEAN',
    :'off_market' => :'BOOLEAN',
    :'out_of_network_coverage' => :'BOOLEAN',
    :'out_of_network_ids' => :'Array<Integer>',
    :'outpatient_facility' => :'String',
    :'outpatient_mental_health' => :'String',
    :'outpatient_physician' => :'String',
    :'outpatient_substance' => :'String',
    :'plan_market' => :'String',
    :'plan_type' => :'String',
    :'preferred_brand_drugs' => :'String',
    :'prenatal_postnatal_care' => :'String',
    :'preventative_care' => :'String',
    :'premium_subsidized' => :'Float',
    :'premium' => :'Float',
    :'primary_care_physician' => :'String',
    :'rehabilitation_services' => :'String',
    :'service_area_id' => :'String',
    :'skilled_nursing' => :'String',
    :'specialist' => :'String',
    :'specialty_drugs' => :'String',
    :'urgent_care' => :'String'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
# File 'lib/vericred_client/models/plan.rb', line 790

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      adult_dental == o.adult_dental &&
      age29_rider == o.age29_rider &&
      ambulance == o.ambulance &&
      benefits_summary_url == o.benefits_summary_url &&
      buy_link == o.buy_link &&
      carrier_name == o.carrier_name &&
      child_dental == o.child_dental &&
      child_eyewear == o.child_eyewear &&
      child_eye_exam == o.child_eye_exam &&
      customer_service_phone_number == o.customer_service_phone_number &&
      durable_medical_equipment == o.durable_medical_equipment &&
      diagnostic_test == o.diagnostic_test &&
      display_name == o.display_name &&
      dp_rider == o.dp_rider &&
      drug_formulary_url == o.drug_formulary_url &&
      effective_date == o.effective_date &&
      expiration_date == o.expiration_date &&
      emergency_room == o.emergency_room &&
      family_drug_deductible == o.family_drug_deductible &&
      family_drug_moop == o.family_drug_moop &&
      family_medical_deductible == o.family_medical_deductible &&
      family_medical_moop == o.family_medical_moop &&
      fp_rider == o.fp_rider &&
      generic_drugs == o.generic_drugs &&
      habilitation_services == o.habilitation_services &&
      hios_issuer_id == o.hios_issuer_id &&
      home_health_care == o.home_health_care &&
      hospice_service == o.hospice_service &&
      hsa_eligible == o.hsa_eligible &&
      id == o.id &&
      imaging == o.imaging &&
      in_network_ids == o.in_network_ids &&
      individual_drug_deductible == o.individual_drug_deductible &&
      individual_drug_moop == o.individual_drug_moop &&
      individual_medical_deductible == o.individual_medical_deductible &&
      individual_medical_moop == o.individual_medical_moop &&
      inpatient_birth == o.inpatient_birth &&
      inpatient_facility == o.inpatient_facility &&
      inpatient_mental_health == o.inpatient_mental_health &&
      inpatient_physician == o.inpatient_physician &&
      inpatient_substance == o.inpatient_substance &&
      level == o.level &&
      logo_url == o.logo_url &&
      name == o.name &&
      network_size == o.network_size &&
      non_preferred_brand_drugs == o.non_preferred_brand_drugs &&
      on_market == o.on_market &&
      off_market == o.off_market &&
      out_of_network_coverage == o.out_of_network_coverage &&
      out_of_network_ids == o.out_of_network_ids &&
      outpatient_facility == o.outpatient_facility &&
      outpatient_mental_health == o.outpatient_mental_health &&
      outpatient_physician == o.outpatient_physician &&
      outpatient_substance == o.outpatient_substance &&
      plan_market == o.plan_market &&
      plan_type == o.plan_type &&
      preferred_brand_drugs == o.preferred_brand_drugs &&
      prenatal_postnatal_care == o.prenatal_postnatal_care &&
      preventative_care == o.preventative_care &&
      premium_subsidized == o.premium_subsidized &&
      premium == o.premium &&
      primary_care_physician == o.primary_care_physician &&
      rehabilitation_services == o.rehabilitation_services &&
      service_area_id == o.service_area_id &&
      skilled_nursing == o.skilled_nursing &&
      specialist == o.specialist &&
      specialty_drugs == o.specialty_drugs &&
      urgent_care == o.urgent_care
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



899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
# File 'lib/vericred_client/models/plan.rb', line 899

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 =~ /^(true|t|yes|y|1)$/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 = VericredClient.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



965
966
967
968
969
970
971
972
973
974
975
976
977
# File 'lib/vericred_client/models/plan.rb', line 965

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



878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
# File 'lib/vericred_client/models/plan.rb', line 878

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.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


865
866
867
# File 'lib/vericred_client/models/plan.rb', line 865

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



871
872
873
# File 'lib/vericred_client/models/plan.rb', line 871

def hash
  [adult_dental, age29_rider, ambulance, benefits_summary_url, buy_link, carrier_name, child_dental, child_eyewear, child_eye_exam, customer_service_phone_number, durable_medical_equipment, diagnostic_test, display_name, dp_rider, drug_formulary_url, effective_date, expiration_date, emergency_room, family_drug_deductible, family_drug_moop, family_medical_deductible, family_medical_moop, fp_rider, generic_drugs, habilitation_services, hios_issuer_id, home_health_care, hospice_service, hsa_eligible, id, imaging, in_network_ids, individual_drug_deductible, individual_drug_moop, individual_medical_deductible, individual_medical_moop, inpatient_birth, inpatient_facility, inpatient_mental_health, inpatient_physician, inpatient_substance, level, logo_url, name, network_size, non_preferred_brand_drugs, on_market, off_market, out_of_network_coverage, out_of_network_ids, outpatient_facility, outpatient_mental_health, outpatient_physician, outpatient_substance, plan_market, plan_type, preferred_brand_drugs, prenatal_postnatal_care, preventative_care, premium_subsidized, premium, primary_care_physician, rehabilitation_services, service_area_id, skilled_nursing, specialist, specialty_drugs, urgent_care].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properies with the reasons



777
778
779
780
# File 'lib/vericred_client/models/plan.rb', line 777

def list_invalid_properties
  invalid_properties = Array.new
  return 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



945
946
947
# File 'lib/vericred_client/models/plan.rb', line 945

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



951
952
953
954
955
956
957
958
959
# File 'lib/vericred_client/models/plan.rb', line 951

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.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



939
940
941
# File 'lib/vericred_client/models/plan.rb', line 939

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



784
785
786
# File 'lib/vericred_client/models/plan.rb', line 784

def valid?
  return true
end