Class: OpenEHR::Terminology::OpenEHRTerminology
- Inherits:
-
Object
- Object
- OpenEHR::Terminology::OpenEHRTerminology
- Defined in:
- lib/open_ehr/terminology/open_ehr_terminology.rb
Instance Method Summary collapse
- #concepts ⇒ Object
- #grouped_concepts ⇒ Object
- #groupers ⇒ Object
-
#initialize ⇒ OpenEHRTerminology
constructor
A new instance of OpenEHRTerminology.
- #languages ⇒ Object
- #primary_rubrics ⇒ Object
- #terminology_identifiers ⇒ Object
- #territories ⇒ Object
Constructor Details
#initialize ⇒ OpenEHRTerminology
Returns a new instance of OpenEHRTerminology.
8 9 10 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 8 def initialize @terms = XmlSimple.xml_in(File.open('doc/openehr_terminology.xml')) end |
Instance Method Details
#concepts ⇒ Object
20 21 22 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 20 def concepts @terms['Concept'] end |
#grouped_concepts ⇒ Object
28 29 30 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 28 def grouped_concepts @terms['GroupedConcept'] end |
#groupers ⇒ Object
24 25 26 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 24 def groupers @terms['Grouper'] end |
#languages ⇒ Object
12 13 14 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 12 def languages @terms['Language'] end |
#primary_rubrics ⇒ Object
16 17 18 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 16 def primary_rubrics @terms['PrimaryRubric'] end |
#terminology_identifiers ⇒ Object
32 33 34 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 32 def terminology_identifiers @terms['TerminologyIdentifiers'] end |
#territories ⇒ Object
36 37 38 |
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 36 def territories @terms['Territory'] end |