Changeset 264 for ruby/branches/0.5/lib


Ignore:
Timestamp:
Sep 14, 2009, 11:55:09 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

archetype id corrected

File:
1 edited

Legend:

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

    r262 r264  
    5353         
    5454          def initialize(args = {})
    55             super(args)
    5655            if args[:value].nil?
    5756              self.rm_originator = args[:rm_originator]
     
    6261              self.specialisation = args[:specialisation]
    6362            else
    64               self.value = args[:value]
     63              super(args)
    6564            end
    6665          end
     
    8483
    8584          def domain_concept
    86             return @concept_name + '-' + @specialisation
     85            if @specialisation.nil?
     86              return @concept_name
     87            else
     88              return @concept_name + '-' + @specialisation
     89            end
    8790          end
    8891
     
    131134            @specialisation = specialisation
    132135          end
     136
    133137          def version_id=(version_id)
    134138            raise ArgumentError, "version_id not valid" if version_id.nil? or version_id.empty?
Note: See TracChangeset for help on using the changeset viewer.