Sha256: b56fdcb49c76a8174a98c0f497a53ab11888efbcea23cc0e3187d95523a9bea5

Contents?: true

Size: 664 Bytes

Versions: 8

Compression:

Stored size: 664 Bytes

Contents

module Tnql #:nodoc: all
  module Nodes
    module ProviderNameNode
      def meta_data_item
        # default to provider
        key = provider_type.text_value == 'cancer network' ? 'cn_ukacrname' : 'providername'
        {
          "diagnosis.#{key}" => {
            Tnql::BEGINS => name.text_value.upcase,
            :interval => interval
          }
        }
      end
    end

    module ProviderCodeNode
      def meta_data_item
        # default to provider
        key = provider_type.text_value == 'cancer network' ? 'cn_ukacr' : 'providercode'
        { "diagnosis.#{key}" => { Tnql::EQUALS => code.text_value.upcase } }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tnql-1.1.2 lib/tnql/nodes/provider.rb
tnql-1.1.1 lib/tnql/nodes/provider.rb
tnql-1.1.0 lib/tnql/nodes/provider.rb
tnql-1.0.4 lib/tnql/nodes/provider.rb
tnql-1.0.3 lib/tnql/nodes/provider.rb
tnql-1.0.2 lib/tnql/nodes/provider.rb
tnql-1.0.1 lib/tnql/nodes/provider.rb
tnql-1.0.0 lib/tnql/nodes/provider.rb