Ignore:
Timestamp:
Aug 6, 2009, 1:20:05 AM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

adjust for rails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5.0/lib/open_ehr/rm/support/identification.rb

    r158 r167  
    22# http://www.openehr.org/uml/release-1.0.1/Browsable/_9_0_76d0249_1109331021343_528780_2066Report.html
    33# Ticket refs #39
    4 module OpenEHR
     4module OpenEhr
    55  module RM
    66    module Support
    77      module Identification
    8 
    9         class Object_ID
     8        class ObjectId
    109          attr_reader :value
    1110
     
    2322        end # of ObjectID
    2423
    25         class Object_Ref
     24        class ObjectRef
    2625          attr_reader :namespace, :type, :id
    2726
     
    4847        end
    4948
    50         class Archetype_ID < Object_ID
     49        class ArchetypeId < ObjectId
    5150          attr_reader :domain_concept, :rm_name, :rm_entity, :rm_originator, :specialisation, :version_id
    5251
     
    9190        end
    9291
    93         class Terminology_ID < Object_ID
     92        class TerminologyId < ObjectId
    9493          attr_reader :name, :version_id
    9594
     
    130129        end # of Terminology_ID
    131130
    132         class Generic_ID < Object_ID
     131        class GenericId < ObjectId
    133132          attr_reader :scheme
    134133
     
    144143        end # of Generic_ID
    145144
    146         class Template_ID < Object_ID
    147 
    148         end
    149 
    150         class UID_Based_ID < Object_ID
     145        class TemplateId < ObjectId
     146
     147        end
     148
     149        class UidBasedId < ObjectId
    151150          def initialize(value)
    152151            super(value)
     
    174173        end
    175174
    176         class Object_Version_ID < UID_Based_ID
     175        class ObjectVersionId < UidBasedId
    177176          attr_reader :object_id, :creating_system_id, :version_tree_id
    178177
     
    184183            super(value)
    185184            if /^(\w+)::(\w+)::((\d|\.)+)$/ =~ value
    186               self.object_id = UID.new($1)
    187               self.creating_system_id = UID.new($2)
    188               self.version_tree_id = Version_Tree_ID.new($3)
     185              self.object_id = Uid.new($1)
     186              self.creating_system_id = Uid.new($2)
     187              self.version_tree_id = VersionTreeId.new($3)
    189188            else
    190189              raise ArgumentError, 'invalid format'
     
    216215        end
    217216
    218         class Locatable_Ref < Object_Ref
     217        class LocatableRef < ObjectRef
    219218          attr_reader :namespace, :type, :id, :path
    220219
     
    234233        end
    235234
    236         class Party_Ref < Object_Ref
     235        class PartyRef < ObjectRef
    237236
    238237          def type=(type)
     
    243242        end
    244243
    245         class Access_Group_Ref < Object_Ref
     244        class AccessGroupRef < ObjectRef
    246245          def type=(type)
    247246            raise ArgumentError, 'type invalid' unless type == 'ACCESS_GROUP'
     
    250249        end
    251250
    252         class Hier_Object_ID < UID_Based_ID
    253 
    254         end
    255 
    256         class Version_Tree_ID
     251        class HierObjectId < UidBasedId
     252
     253        end
     254
     255        class VersionTreeId
    257256          attr_reader :value, :trunk_version, :branch_number, :branch_version
    258257
     
    303302        end
    304303
    305         class UID
     304        class Uid
    306305          attr_reader :value
    307306
     
    316315        end
    317316
    318         class UUID < UID
    319 
    320         end
    321 
    322         class Internet_ID <UID
     317        class Uuid < Uid
     318
     319        end
     320
     321        class InternetId <Uid
    323322         
    324323        end
    325324
    326         class ISO_OID <UID
     325        class IsoOid <Uid
    327326
    328327        end       
Note: See TracChangeset for help on using the changeset viewer.