Changeset 356


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

refs #57 Observation

Location:
ruby/branches/0.5
Files:
1 added
2 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
  • ruby/branches/0.5/spec/lib/open_ehr/rm/composition/content/entry/shared_examples_spec.rb

    r355 r356  
    55shared_examples_for 'entry', :shared => true do
    66  before(:each) do
     7    @name = DvText.new(:value => 'entry package')
    78    @language = stub(CodePhrase, :code_string => 'ja')
    89    @encoding = stub(CodePhrase, :code_string => 'UTF-8')
Note: See TracChangeset for help on using the changeset viewer.