Sha256: dac189e1a9920f59619a82558c5908895befce132459a6e8637aac9593cd7cb0

Contents?: true

Size: 864 Bytes

Versions: 26

Compression:

Stored size: 864 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../spec_helper'
include OpenEHR::RM::Support::Identification

describe TerminologyID do
  before(:each) do
    @terminology_id = TerminologyID.new(:value => 'ICD10(2003)')
  end

  it 'should be an instance of TerminologyID' do
    @terminology_id.should be_an_instance_of TerminologyID
  end

  it 's name should be ICD10' do
    @terminology_id.name.should == 'ICD10'
  end

  it 's version_id should be 2003' do
    @terminology_id.version_id.should == '2003'
  end

  it 's value should be ICD10(2003)' do
    @terminology_id.value.should == 'ICD10(2003)'
  end

  it 'should only name when version_id is nil' do
    @terminology_id.version_id = ''
    @terminology_id.value.should == 'ICD10'
  end

  it 'should has another constructor' do
    @terminology_id = TerminologyID.new(:name => 'SNOMED-CT')
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.7 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.6 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.5 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.4 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.3 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.2 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.1 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.2.0 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.6 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.5 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.4 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.3 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.2 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.1 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
openehr-1.1.0 spec/lib/openehr/rm/support/identification/terminology_id_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb
open_ehr-0.9.5 spec/lib/open_ehr/rm/support/identification/terminology_id_spec.rb