Sha256: 3f1d4953b0b5a31a03b5ba978743c50bd907babe81cddb1603538174bd6a8e22

Contents?: true

Size: 806 Bytes

Versions: 10

Compression:

Stored size: 806 Bytes

Contents

require 'spec_helper'
require 'conceptql/nodes/icd10'

describe ConceptQL::Nodes::Icd10 do
  it 'behaves itself' do
    ConceptQL::Nodes::Icd10.new.must_behave_like(:source_vocabulary_node)
  end

  subject do
    ConceptQL::Nodes::Icd10.new
  end

  describe '#table' do
    it 'should be condition_occurrence' do
      subject.table.must_equal :condition_occurrence
    end
  end

  describe '#concept_column' do
    it 'should be condition_concept_id' do
      subject.concept_column.must_equal :condition_concept_id
    end
  end

  describe '#source_column' do
    it 'should be condition_source_valuej' do
      subject.source_column.must_equal :condition_source_value
    end
  end

  describe '#vocabulary_id' do
    it 'should be 34' do
      subject.vocabulary_id.must_equal 34
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
conceptql-0.1.1 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.1.0 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.9 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.8 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.7 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.6 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.5 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.4 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.3 spec/conceptql/nodes/icd10_spec.rb
conceptql-0.0.1 spec/conceptql/nodes/icd10_spec.rb