Sha256: fe01eb94569469ed762adb820488f9c95693bfcfbb75ec3bd7414eb28eec9c33
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
require 'inferno/repositories/in_memory_repository' module Inferno module Repositories class ValueSets < InMemoryRepository # @return [Hash] a Hash where the keys are vs urls and the values are vs def select_by_url(urls) all_by_id.slice(*urls) end def select_by_binding_strength(strengths) all.select { |vs| strengths.include?(vs.strength) } end def find(url) super || raise(UnknownValueSetException, url) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onc_certification_g10_test_kit-7.0.1 | lib/inferno/repositiories/value_sets.rb |
onc_certification_g10_test_kit-7.0.0 | lib/inferno/repositiories/value_sets.rb |