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

adjust for rails

Location:
ruby/branches/0.5.0/lib/open_ehr/rm/support
Files:
5 edited

Legend:

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

    r85 r167  
    22# and am, I will integrated to /lib/models/assumed_types.rb.
    33# By Shinji KOBAYASHI, 2008-07-20
    4 module OpenEHR
     4module OpenEhr
    55  module RM
    66    module Support
    7       module Assumed_Types
     7      module AssumedTypes
    88        class Interval
    99          attr_accessor :lower, :upper
  • ruby/branches/0.5.0/lib/open_ehr/rm/support/definition.rb

    r4 r167  
    1 module OpenEHR
     1module OpenEhr
    22  module RM
    33    module Support
    44      module Definition
    5         module Basic_Definition
     5        module BasicDefinition
    66          CR = "\015"
    77          LF = "\012"
    88        end
    9         class OpenEHR_Definitions
    10           include Basic_Definition         
     9        class OpenEHRDefinitions
     10          include BasicDefinition
    1111        end
    1212      end
  • 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       
  • ruby/branches/0.5.0/lib/open_ehr/rm/support/measurement.rb

    r90 r167  
    1 module OpenEHR
     1module OpenEhr
    22  module RM
    33    module Support
    44      module Measurement
    5         class Measurement_Service
     5        class MeasurementService
    66        end
    7         module External_Environment_Access
     7        module ExternalEnvironmentAccess
    88          def eea_terminology_svc
    99          end
  • ruby/branches/0.5.0/lib/open_ehr/rm/support/terminology.rb

    r4 r167  
    11
    2 module OpenEHR
     2module OpenEhr
    33  module RM
    44    module Support
    55      module Terminology
    6         class Code_Set_Access
     6        class CodeSetAccess
    77          def all_codes
    88            raise NotImplementedError, "all_codes must be implemented"
     
    1818          end
    1919        end
    20         module OpenEHR_Code_Set_Identifier
     20        module OpenEhrCodeSetIdentifier
    2121          CODE_SET_ID_CHARACER_SETS = "character sets".freeze
    2222          CODE_SET_ID_COMPRESSION_ALGORITHMS = "compression algorithms".freeze
     
    2929          end
    3030        end
    31         module OpenEHR_Terminology_Group_Identifiers
     31        module OpenEhrTerminologyGroupIdentifiers
    3232          GROUP_ID_ATTESTATION_REASON = "attestation reason".freeze
    3333          GROUP_ID_AUDIT_CHANGE_TYPE = "audit change type".freeze
     
    4646          TERMINOLOGY_ID = "openehr".freeze
    4747        end
    48         class Terminology_Access
     48        class TerminologyAccess
    4949          def all_codes
    5050            raise NotImplementedError, "all_codes is not implemented"
     
    7474          end
    7575        end
    76         class Terminology_Service
    77           include OpenEHR_Code_Set_Identifier, OpenEHR_Terminology_Group_Identifiers
     76        class TerminologyService
     77          include OpenEhrCodeSetIdentifier, OpenEhrTerminologyGroupIdentifiers
    7878          def code_set(name)
    7979            raise NotImplementedError, "code_set is not implemented"
Note: See TracChangeset for help on using the changeset viewer.