Ignore:
Timestamp:
Nov 17, 2009, 10:23:20 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #57 Observation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/composition/content/entry.rb

    r355 r356  
    6565            end
    6666          end
    67          
     67
     68          class Observation < CareEntry
     69            attr_reader :data
     70            attr_accessor :state
     71
     72            def initialize(args = { })
     73              super(args)
     74              self.data = args[:data]
     75              self.state = args[:state]
     76            end
     77
     78            def data=(data)
     79              raise ArgumentError, 'data are mandatory' if data.nil?
     80              @data = data
     81            end
     82          end
     83
    6884          class Action < CareEntry
    6985            attr_accessor :description, :time
Note: See TracChangeset for help on using the changeset viewer.