Sha256: af549314c25caa08d189c5509e89e5eac7ce2c4e8e171c7bf95967009780a69f

Contents?: true

Size: 719 Bytes

Versions: 8

Compression:

Stored size: 719 Bytes

Contents

module Tnql #:nodoc: all
  module Nodes
    module DiagnosisDateRangeNode
      def meta_data_item
        {
          'tumour.diagnosisdate' => {
            Tnql::LIMITS => [
              start.to_daterange.date1.try(:to_date).try(:iso8601),
              finish.to_daterange.date2.try(:to_date).try(:iso8601)
            ]
          }
        }
      end
    end

    module DiagnosisDetailNode
      def meta_data_item
        range = date_fragment.to_daterange

        {
          'tumour.diagnosisdate' => {
            Tnql::LIMITS => [
              range.date1.try(:to_date).try(:iso8601),
              range.date2.try(:to_date).try(:iso8601)
            ]
          }
        }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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