Class: OpenEHR::RM::Support::Terminology::TerminologyAccess

Inherits:
Object
  • Object
show all
Defined in:
lib/open_ehr/rm/support/terminology.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ TerminologyAccess

Returns a new instance of TerminologyAccess.



57
58
59
# File 'lib/open_ehr/rm/support/terminology.rb', line 57

def initialize(args = {})
  self.id = args[:id]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



55
56
57
# File 'lib/open_ehr/rm/support/terminology.rb', line 55

def id
  @id
end

Instance Method Details

#all_codesObject

Raises:

  • (NotImplementedError)


61
62
63
# 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) ⇒ Object

Raises:

  • (NotImplementedError)


65
66
67
# 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) ⇒ Object

Raises:

  • (NotImplementedError)


69
70
71
# 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) ⇒ Object



73
74
75
# File 'lib/open_ehr/rm/support/terminology.rb', line 73

def has_code_for_group_id(group_id, a_code)
  
end

#rubric_for_code(code, lang) ⇒ Object



82
83
84
85
# 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