Changeset 331 for ruby/branches/0.5/lib/open_ehr/rm/common
- Timestamp:
- Nov 5, 2009, 9:42:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/common/change_control.rb
r216 r331 88 88 89 89 def contribution=(contribution) 90 raise ArgumentError, "contribution should not be nil" if contribution.nil? or contribution.type.empty? 91 @contribution = contribution 90 if contribution.nil? or contribution.type.empty? 91 raise ArgumentError, "contribution is invalid" 92 end 93 if contribution.type == 'CONTRIBUTION' 94 @contribution = contribution 95 else 96 raise ArgumentError, 'contribution is invalid' 97 end 92 98 end 93 99 94 100 def owner_id 95 return HierObjectI d.new(@uid.object_id.value)101 return HierObjectID.new(:value => @uid.value) 96 102 end 97 103 … … 101 107 102 108 def canonical_form 103 raise NotImplementedError, 'canonical form not implemented'109 raise NotImplementedError, 'canonical form is not determined' 104 110 end 105 111 end
Note:
See TracChangeset
for help on using the changeset viewer.