Sha256: 656190e4f76261541f7ea96e34d63d3cfa7dd1403c3e6e10ba9052546525ea65

Contents?: true

Size: 834 Bytes

Versions: 16

Compression:

Stored size: 834 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'
require File.dirname(__FILE__) + '/parser_spec_helper'
include ::OpenEHR::RM::DataTypes::Text
require 'openehr/am/openehr_profile/data_types/text'
include ::OpenEHR::AM::OpenEHRProfile::DataTypes::Text

describe ADLParser do
  describe DvCodedText do
    before(:all) do
      archetype = adl14_archetype('adl-test-composition.dv_coded_text.test.adl')
      @c_code_phrase = archetype.definition.attributes[0].children[0].
        attributes[0].children[0]
    end

    it 'is an instance of CCodePhrase' do
      @c_code_phrase.should be_an_instance_of CCodePhrase
    end

    it 'terminology is openehr' do
      @c_code_phrase.terminology_id.value.should == 'openehr'
    end

    it 'code list is 431' do
      @c_code_phrase.code_list.should == ['431']
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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