Changeset 403


Ignore:
Timestamp:
Jan 27, 2010, 12:05:30 AM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

refs #70

Location:
ruby/trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/lib/open_ehr/am/archetype/ontology.rb

    r402 r403  
    66          attr_accessor :constraint_codes, :specialisation_depth
    77          attr_accessor :term_attribute_names, :term_codes
    8           attr_accessor :terminologies_available
     8          attr_reader :terminologies_available
     9
     10          def initialize(args = { })
     11            self.terminologies_available = args[:terminologies_available]
     12            self.specialisation_depth = args[:specialisation_depth]
     13            self.term_codes = args[:term_codes]
     14            self.constraint_codes = args[:constraint_codes]
     15            self.term_attribute_names = args[:term_attribute_names]
     16          end
     17
     18          def terminologies_available=(terminologies_available)
     19            if terminologies_available.nil?
     20              raise ArgumentError, 'terminologies_available is mandatory'
     21            end
     22            @terminologies_available = terminologies_available
     23          end
    924
    1025          def constraint_binding(a_terminology, a_code)
Note: See TracChangeset for help on using the changeset viewer.