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
cqm-parsers-4.1.1.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-4.1.0.2 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-4.1.0.1 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-4.1.0.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-4.0.0.1 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-3.2.0.2 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-4.0.0.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-3.2.0.1 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-3.2.0.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-3.1.1.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-3.1.0.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-3.0.0.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-2.0.1 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-0.2.4 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-2.0.0 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-4.3.5 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-0.2.3 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-4.3.4 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
cqm-parsers-0.2.2 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
health-data-standards-4.3.3 lib/hqmf-parser/converter/pass1/simple_data_criteria.rb