lib/sdp/importers/phin_vads_importer.rb
def import_versions(vs)
        logger.debug 'updating valueset versions '
        vset = vs[:valueset]
        versions = vs[:versions] || []
        versions.sort! { |a, b| a.versionNumber <=> b.versionNumber }
        versions = [versions.last] if params[:use_latest]
        versions.each do |ver|
          create_vs_and_responses(vset, ver)
        end
      end
# Import the versions of a valueset into the system
Import the versions of a valueset into the system
Import the versions of a valueset into the system
def import_versions(vs)
        logger.debug 'updating valueset versions '
        vset = vs[:valueset]
        versions = vs[:versions] || []
        versions.sort! { |a, b| a.versionNumber <=> b.versionNumber }
        versions = [versions.last] if params[:use_latest]
        versions.each do |ver|
          create_vs_and_responses(vset, ver)
        end
      end
def import_versions ( vs ) logger . debug 'updating valueset versions ' vset = vs [ :valueset ] versions = vs [ :versions ] || [ ] versions . sort! { | a , b | a . versionNumber <=> b . versionNumber } versions = [ versions . last ] if params [ :use_latest ] versions . each do | ver | create_vs_and_responses ( vset , ver ) end end
Import the versions of a valueset into the system
Import the versions of a valueset into the system
vs