Class: OpenEHR::Terminology::OpenEHRTerminology

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

Instance Method Summary collapse

Constructor Details

#initializeOpenEHRTerminology

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

#conceptsObject



20
21
22
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 20

def concepts
  @terms['Concept']
end

#grouped_conceptsObject



28
29
30
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 28

def grouped_concepts
  @terms['GroupedConcept']
end

#groupersObject



24
25
26
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 24

def groupers
  @terms['Grouper']
end

#languagesObject



12
13
14
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 12

def languages
  @terms['Language']
end

#primary_rubricsObject



16
17
18
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 16

def primary_rubrics
  @terms['PrimaryRubric']
end

#terminology_identifiersObject



32
33
34
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 32

def terminology_identifiers
  @terms['TerminologyIdentifiers']
end

#territoriesObject



36
37
38
# File 'lib/open_ehr/terminology/open_ehr_terminology.rb', line 36

def territories
  @terms['Territory']
end