Sha256: abf00ac57d2bccf4f88ddd61d66828640afd8b7bf9894f0c8b8b7952c8f643ff

Contents?: true

Size: 577 Bytes

Versions: 8

Compression:

Stored size: 577 Bytes

Contents

module Tnql
  grammar Diagnosis
    rule diagnosis
      diagnosed_keyword conditions:diagnosis_conditions+
    end

    rule diagnosed_keyword
      space 'diagnosed' word_break
    end

    rule diagnosis_conditions
      diagnosisdate_range / diagnosisdate_detail / diagnosis_provider
    end

    rule diagnosisdate_range
      space 'between' space start:date_fragment space 'and' space finish:date_fragment <Nodes::DiagnosisDateRangeNode>
    end

    rule diagnosisdate_detail
      space ('in' / 'on') space date_fragment <Nodes::DiagnosisDetailNode>
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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