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