Class: FHIR::CoverageEligibilityResponse::Insurance::Item::Benefit

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb

Constant Summary collapse

MULTIPLE_TYPES =
{
  'allowed' => ['unsignedInt', 'string', 'Money'],
  'used' => ['unsignedInt', 'string', 'Money']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Benefit.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Benefit.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Benefit.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/benefit-type'=>['benefit', 'deductible', 'visit', 'room', 'copay', 'copay-percent', 'copay-maximum', 'vision-exam', 'vision-glasses', 'vision-contacts', 'medical-primarycare', 'pharmacy-dispense']}, 'type'=>'CodeableConcept', 'path'=>'Benefit.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/benefit-type'}},
  'allowedUnsignedInt' => {'type'=>'unsignedInt', 'path'=>'Benefit.allowed[x]', 'min'=>0, 'max'=>1},
  'allowedString' => {'type'=>'string', 'path'=>'Benefit.allowed[x]', 'min'=>0, 'max'=>1},
  'allowedMoney' => {'type'=>'Money', 'path'=>'Benefit.allowed[x]', 'min'=>0, 'max'=>1},
  'usedUnsignedInt' => {'type'=>'unsignedInt', 'path'=>'Benefit.used[x]', 'min'=>0, 'max'=>1},
  'usedString' => {'type'=>'string', 'path'=>'Benefit.used[x]', 'min'=>0, 'max'=>1},
  'usedMoney' => {'type'=>'Money', 'path'=>'Benefit.used[x]', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#allowedMoneyObject

0-1 Money



106
107
108
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 106

def allowedMoney
  @allowedMoney
end

#allowedStringObject

0-1 string



105
106
107
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 105

def allowedString
  @allowedString
end

#allowedUnsignedIntObject

0-1 unsignedInt



104
105
106
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 104

def allowedUnsignedInt
  @allowedUnsignedInt
end

#extensionObject

0-* [ Extension ]



101
102
103
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 101

def extension
  @extension
end

#idObject

0-1 string



100
101
102
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 100

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



102
103
104
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 102

def modifierExtension
  @modifierExtension
end

#typeObject

1-1 CodeableConcept



103
104
105
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 103

def type
  @type
end

#usedMoneyObject

0-1 Money



109
110
111
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 109

def usedMoney
  @usedMoney
end

#usedStringObject

0-1 string



108
109
110
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 108

def usedString
  @usedString
end

#usedUnsignedIntObject

0-1 unsignedInt



107
108
109
# File 'lib/fhir_models/fhir/resources/CoverageEligibilityResponse.rb', line 107

def usedUnsignedInt
  @usedUnsignedInt
end