Sha256: e07d3cfa769fad0217c82edc1d75991ee89545e3c47cfcaafd3fe8e2d08d4ef9

Contents?: true

Size: 713 Bytes

Versions: 17

Compression:

Stored size: 713 Bytes

Contents

require 'rubygems'
require 'xmlsimple'
#require 'ActiveSupport'

module OpenEHR
  module Terminology
    class OpenEHRTerminology
      def initialize
        @terms = XmlSimple.xml_in(File.open('doc/openehr_terminology.xml'))
      end

      def languages
        @terms['Language']
      end

      def primary_rubrics
        @terms['PrimaryRubric']
      end

      def concepts
        @terms['Concept']
      end

      def groupers
        @terms['Grouper']
      end

      def grouped_concepts
        @terms['GroupedConcept']
      end

      def terminology_identifiers
        @terms['TerminologyIdentifiers']
      end

      def territories
        @terms['Territory']
      end
    end 
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
openehr-1.1.6 lib/openehr/terminology/open_ehr_terminology.rb
openehr-1.1.5 lib/openehr/terminology/open_ehr_terminology.rb
openehr-1.1.4 lib/openehr/terminology/open_ehr_terminology.rb
openehr-1.1.3 lib/openehr/terminology/open_ehr_terminology.rb
openehr-1.1.2 lib/openehr/terminology/open_ehr_terminology.rb
openehr-1.1.1 lib/openehr/terminology/open_ehr_terminology.rb
openehr-1.1.0 lib/openehr/terminology/open_ehr_terminology.rb
open_ehr-1.0.2 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-1.0.1 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-1.0.0 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.9.5 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.9.4 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.9.3 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.9.2 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.9.1 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.9.0 lib/open_ehr/terminology/open_ehr_terminology.rb
open_ehr-0.6.1 lib/open_ehr/terminology/open_ehr_terminology.rb