Class: FHIR::Timing

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

Defined Under Namespace

Classes: Repeat

Constant Summary collapse

SEARCH_PARAMS =
[]
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Timing.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Timing.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'event' => {'type'=>'dateTime', 'path'=>'Timing.event', 'min'=>0, 'max'=>Float::INFINITY},
  'repeat' => {'type'=>'Timing::Repeat', 'path'=>'Timing.repeat', 'min'=>0, 'max'=>1},
  'code' => {'valid_codes'=>{'http://hl7.org/fhir/v3/GTSAbbreviation'=>['BID', 'TID', 'QID', 'AM', 'PM', 'QD', 'QOD', 'Q4H', 'Q6H']}, 'type'=>'CodeableConcept', 'path'=>'Timing.code', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/timing-abbreviation'}}
}

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, #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

#codeObject

0-1 CodeableConcept



67
68
69
# File 'lib/fhir/types/Timing.rb', line 67

def code
  @code
end

#eventObject

0-* [ dateTime ]



65
66
67
# File 'lib/fhir/types/Timing.rb', line 65

def event
  @event
end

#extensionObject

0-* [ Extension ]



64
65
66
# File 'lib/fhir/types/Timing.rb', line 64

def extension
  @extension
end

#idObject

0-1 string



63
64
65
# File 'lib/fhir/types/Timing.rb', line 63

def id
  @id
end

#repeatObject

0-1 Timing::Repeat



66
67
68
# File 'lib/fhir/types/Timing.rb', line 66

def repeat
  @repeat
end