Class: FHIR::Claim::Onset

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

Constant Summary collapse

MULTIPLE_TYPES =
{
  'time' => ['date', 'Period']
}
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Onset.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Onset.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Onset.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'timeDate' => {'type'=>'date', 'path'=>'Onset.time[x]', 'min'=>0, 'max'=>1},
  'timePeriod' => {'type'=>'Period', 'path'=>'Onset.time[x]', 'min'=>0, 'max'=>1},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/ex-onsettype'=>['LXM', 'SYM', 'LMN']}, 'type'=>'Coding', 'path'=>'Onset.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/ex-onsettype'}}
}

Instance Attribute Summary collapse

Method Summary

Methods included from Xml

from_xml, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #validate

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

#extensionObject

0-* [ Extension ]



232
233
234
# File 'lib/fhir/resources/Claim.rb', line 232

def extension
  @extension
end

#idObject

0-1 id



231
232
233
# File 'lib/fhir/resources/Claim.rb', line 231

def id
  @id
end

#modifierExtensionObject

0-* [ Extension ]



233
234
235
# File 'lib/fhir/resources/Claim.rb', line 233

def modifierExtension
  @modifierExtension
end

#timeDateObject

0-1 date



234
235
236
# File 'lib/fhir/resources/Claim.rb', line 234

def timeDate
  @timeDate
end

#timePeriodObject

0-1 Period



235
236
237
# File 'lib/fhir/resources/Claim.rb', line 235

def timePeriod
  @timePeriod
end

#typeObject

0-1 Coding



236
237
238
# File 'lib/fhir/resources/Claim.rb', line 236

def type
  @type
end