Sha256: bbcb4fd9b6636c2fffc14cb6e74388d35f3a59b10b770e64cf4ba5bfad3d9250

Contents?: true

Size: 804 Bytes

Versions: 19

Compression:

Stored size: 804 Bytes

Contents

# ticket 188
require File.dirname(__FILE__) + '/../../../spec_helper'
require File.dirname(__FILE__) + '/parser_spec_helper'

describe ADLParser do
  context 'term bindings spec' do
    before(:all) do
      archetype = adl14_archetype('adl-test-entry.term_binding2.test.adl')
      @item = archetype.ontology.term_bindings['LNC205']
    end

    it 'key is path' do
      @item.should have_key '/data[at0002]/events[at0003]/data[at0001]/item[at0004]'
    end

    context 'term' do
      before(:all) do
        @term = @item['/data[at0002]/events[at0003]/data[at0001]/item[at0004]'][0]
      end

      it 'terminology id is LNC205' do
        @term.terminology_id.name.should == 'LNC205'
      end

      it 'code is 8310-5' do
        @term.code_string.should == '8310-5'
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

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