Sha256: 809702563126a0d89da5666a6baf4f6a4249b6dd98aacfa0a1651f40606bf1b9

Contents?: true

Size: 1.21 KB

Versions: 17

Compression:

Stored size: 1.21 KB

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'OpenEHRTerminology' do
  before(:each) do
    @term = OpenEHR::Terminology::OpenEHRTerminology.new
  end

  it 'should parse and return languages' do
    @term.languages[0].should == {'code' => 'af', 'Description' => 'Afrikaans'}
  end

  it 'should parse and return primary rubrics' do
    @term.primary_rubrics[0].should == {'Id' => '0', 'Language' => 'en'}
  end

  it 'should parse and return concepts' do
    @term.concepts[0].should == {'Rubric' => 'self', 'Language' => 'en',
      'ConceptID' => '0'}
  end

  it 'should parse and return groupers' do
    @term.groupers[0].should == {'id' => '0', 'ConceptID' => '154'}
  end

  it 'should parse and return grouped_concepts' do
    @term.grouped_concepts[0].should == {'ChildID' => '0', 'GrouperID' => '1'}
  end

  it 'should parse and return terminology identifiers' do
    @term.terminology_identifiers[0].should ==
      {'VSAB' => 'AIR93', 'Authority' => 'UMLS2003AA',
      'SourceName' => 'AI/RHEUM,1993'}
  end

  it 'should parse and return territory' do
    @term.territories[0].should == 
      {'Text' => 'Afghanistan', 'ThreeLetter'=>'AFG',
      'NumericCode' => '004', 'TwoLetter' => 'AF'}
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

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