Class: OpenEHR::RM::Support::Terminology::TerminologyAccess
- Inherits:
-
Object
- Object
- OpenEHR::RM::Support::Terminology::TerminologyAccess
- Defined in:
- lib/open_ehr/rm/support/terminology.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #all_codes ⇒ Object
- #codes_for_group_id(group_id) ⇒ Object
- #codes_for_group_name(name, lang) ⇒ Object
- #has_code_for_group_id(group_id, a_code) ⇒ Object
-
#initialize(args = {}) ⇒ TerminologyAccess
constructor
A new instance of TerminologyAccess.
- #rubric_for_code(code, lang) ⇒ Object
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
#id ⇒ Object
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_codes ⇒ Object
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
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
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 |