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