Sha256: 8275fb82b71c471aa9a53b85d1f56965feb1369431538ce795db59fd78d25a7a

Contents?: true

Size: 1.1 KB

Versions: 71

Compression:

Stored size: 1.1 KB

Contents

module HQMF
  
  module Converter
  
    class SimpleDataCriteria < HQMF::DataCriteria

      attr_accessor :precondition_id

      def self.from_data_criteria(data_criteria)
        HQMF::Converter::SimpleDataCriteria.new(data_criteria.id, data_criteria.title, data_criteria.display_name, data_criteria.description, data_criteria.code_list_id, 
          data_criteria.children_criteria, data_criteria.derivation_operator, data_criteria.definition,data_criteria.status, data_criteria.value, data_criteria.field_values, 
          data_criteria.effective_time, data_criteria.inline_code_list,data_criteria.negation,data_criteria.negation_code_list_id,data_criteria.temporal_references, data_criteria.subset_operators, data_criteria.specific_occurrence,data_criteria.specific_occurrence_const)
      end

      def assign_precondition(precondtion_id)
        return if (@precondtion_id == precondtion_id)
        raise "Cannot assign a second precondition to a data criteria" if @precondition_id
        @precondition_id = precondtion_id
        @id = "#{@id}_precondition_#{precondtion_id}"
      end
      
    end
  end
  
  
end

Version data entries

71 entries across 71 versions & 3 rubygems

Version Path
health-data-standards-3.5.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.6 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.5 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.4 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.3 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.2 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.1 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.4.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.12 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.3.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.11 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.10 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.8 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.7 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.6 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.5 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.4 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.3 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.2 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-3.2.1 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb