Changeset 128 for ruby/trunk/lib/models/rm
- Timestamp:
- May 26, 2009, 7:18:08 PM (15 years ago)
- Location:
- ruby/trunk/lib/models/rm
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/models/rm/common/archetyped.rb
r112 r128 16 16 class Pathable 17 17 attr_accessor :parent 18 18 19 def initialize(parent = nil) 19 20 @parent = parent 20 21 end 22 21 23 def item_at_path(path) 22 24 raise NotImplementError, "item_at_path must be implemented" 23 25 end 26 24 27 def items_at_path(path) 25 28 raise NotImplementError, "items_at_path must be implemented" 26 29 end 30 27 31 def path_exists?(path) 28 32 raise NotImplementError, "path_exists? must be implemented" 29 33 end 34 30 35 def path_of_item(item) 31 36 raise NotImplementError, "path_of_item must be implemented" 32 37 end 38 33 39 def path_unique(path) 34 40 raise NotImplementError, "path_unique must be implemented" … … 40 46 attr_reader :archetype_node_id, :name, :links 41 47 attr_accessor :uid, :archetype_details, :feeder_audit 48 42 49 def initialize(archetype_node_id, name, links, parent=nil, uid=nil, archetype_details=nil, feeder_audit=nil) 43 50 super(parent) -
ruby/trunk/lib/models/rm/data_structure.rb
r123 r128 3 3 # http://www.openehr.org/uml/release-1.0.1/Browsable/_9_5_1_76d0249_1140447518205_872539_864Report.html 4 4 # refs #59 5 module Data_Structures 6 class Data_Structure 7 def as_hierarchy 8 raise NotImplementError, "as_hirarchy must be implemented" 9 end 10 end 11 end 5 6 module OpenEHR 7 module RM 8 module Data_Structures 9 class Data_Structure < OpenEHR::RM::Common::Archetyped::Locatable 10 def as_hierarchy 11 raise NotImplementedError, "as_hirarchy must be implemented" 12 end 13 end 14 end # of Data_Structures 15 end # of RM 16 end # of OpenEHR
Note:
See TracChangeset
for help on using the changeset viewer.