def to_model
      dcs = all_data_criteria.compact.collect(&:to_model)
      sdc = source_data_criteria.compact.collect(&:to_model)
      pcs = all_population_criteria.compact.collect(&:to_model)
      HQMF::Document.new(@id, @id, @hqmf_set_id, @hqmf_version_number, @cms_id,
                         title, description, pcs, dcs, sdc,
                         @attributes, @measure_period, @populations,
                         populations_cql_map=@populations_cql_map, cql_measure_library=@cql_measure_library, observations=@observations)
    end
def to_model
      dcs = all_data_criteria.compact.collect(&:to_model)
      sdc = source_data_criteria.compact.collect(&:to_model)
      pcs = all_population_criteria.compact.collect(&:to_model)
      HQMF::Document.new(@id, @id, @hqmf_set_id, @hqmf_version_number, @cms_id,
                         title, description, pcs, dcs, sdc,
                         @attributes, @measure_period, @populations,
                         populations_cql_map=@populations_cql_map, cql_measure_library=@cql_measure_library, observations=@observations)
    end
Create a new HQMF2CQL::Document instance by parsing the given HQMF contents.
 Generates this classes hqmf-model equivalent.