class OpenEHR::RM::Support::Terminology::TerminologyAccess
Attributes
id[R]
Public Class Methods
new(args = {})
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 57 def initialize(args = {}) self.id = args[:id] end
Public Instance Methods
all_codes()
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 61 def all_codes raise NotImplementedError, "all_codes is not implemented" end
codes_for_group_id(group_id)
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 65 def codes_for_group_id(group_id) raise NotImplementedError, "codes_for_group_id is not implemented" end
codes_for_group_name(name, lang)
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 69 def codes_for_group_name(name, lang) raise NotImplementedError, "codes_for_group_name is not implemented" end
has_code_for_group_id(group_id, a_code)
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 73 def has_code_for_group_id(group_id, a_code) end
id=(id)
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 77 def id=(id) @terminology = Terminology.find_all_by_name(id) @id = id end
rubric_for_code(code, lang)
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 82 def rubric_for_code(code, lang) return Terminology.find(:first, :conditions => {:code => code, :lang => lang}) end
Private Instance Methods
id_exists()
click to toggle source
# File lib/open_ehr/rm/support/terminology.rb, line 88 def id_exists if id.nil? raise ArgumentError, "id must not be nil" elsif id.empty? raise ArgumentError, "id must not be empty" end end