lib/sdp/importers/phin_vads_importer.rb
def import_valueset(oid)
        vset = vads_client.getValueSetByOid(oid).getValueSet
        vset = vset[0]
        versions = vads_client.getValueSetVersionsByValueSetOid(oid).getValueSetVersions
        versions.sort! { |a, b| a.versionNumber <=> b.versionNumber }
        versions.each do |ver|
          create_vs_and_responses(vset, ver)
        end
      end
# Import a valueset from PHIN VADS into the system
Import a valueset from PHIN VADS into the system
Import a valueset from PHIN VADS into the system
def import_valueset(oid)
        vset = vads_client.getValueSetByOid(oid).getValueSet
        vset = vset[0]
        versions = vads_client.getValueSetVersionsByValueSetOid(oid).getValueSetVersions
        versions.sort! { |a, b| a.versionNumber <=> b.versionNumber }
        versions.each do |ver|
          create_vs_and_responses(vset, ver)
        end
      end
def import_valueset ( oid ) vset = vads_client . getValueSetByOid ( oid ) . getValueSet vset = vset [ 0 ] versions = vads_client . getValueSetVersionsByValueSetOid ( oid ) . getValueSetVersions versions . sort! { | a , b | a . versionNumber <=> b . versionNumber } versions . each do | ver | create_vs_and_responses ( vset , ver ) end end
Import a valueset from PHIN VADS into the system
Import a valueset from PHIN VADS into the system
oid