Changeset 356
- Timestamp:
- Nov 17, 2009, 10:23:20 PM (14 years ago)
- 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 65 65 end 66 66 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 68 84 class Action < CareEntry 69 85 attr_accessor :description, :time -
ruby/branches/0.5/spec/lib/open_ehr/rm/composition/content/entry/shared_examples_spec.rb
r355 r356 5 5 shared_examples_for 'entry', :shared => true do 6 6 before(:each) do 7 @name = DvText.new(:value => 'entry package') 7 8 @language = stub(CodePhrase, :code_string => 'ja') 8 9 @encoding = stub(CodePhrase, :code_string => 'UTF-8')
Note:
See TracChangeset
for help on using the changeset viewer.