class OpenEHR::RM::Composition::EventContext
Attributes
end_time[RW]
location[R]
other_context[RW]
participations[R]
setting[R]
start_time[R]
Public Class Methods
new(args = { })
click to toggle source
Calls superclass method
# File lib/open_ehr/rm/composition.rb, line 60 def initialize(args = { }) super(args) self.start_time = args[:start_time] self.setting = args[:setting] self.end_time = args[:end_time] self.participations = args[:participations] self.location = args[:location] self.other_context = args[:other_context] end
Public Instance Methods
location=(location)
click to toggle source
# File lib/open_ehr/rm/composition.rb, line 91 def location=(location) if !location.nil? and location.empty? raise ArgumentError, 'location should not be empty' end @location = location end
participations=(participations)
click to toggle source
# File lib/open_ehr/rm/composition.rb, line 84 def participations=(participations) if !participations.nil? and participations.empty? raise ArgumentError, 'participations should not be empty' end @participations = participations end
setting=(setting)
click to toggle source
# File lib/open_ehr/rm/composition.rb, line 77 def setting=(setting) if setting.nil? raise ArgumentError, 'setting is mandatory' end @setting = setting end
start_time=(start_time)
click to toggle source
# File lib/open_ehr/rm/composition.rb, line 70 def start_time=(start_time) if start_time.nil? raise ArgumentError, 'start_time is mandatory' end @start_time = start_time end