class RxNav::RxTerms
Public Class Methods
all_concepts()
click to toggle source
# File lib/rx_nav/rx_terms.rb, line 4 def all_concepts query = "/allconcepts" data = get_response_hash(query)[:min_concept_group] return data.map{ |c| RxNav::Concept.new(c) } end
all_info(id)
click to toggle source
# File lib/rx_nav/rx_terms.rb, line 10 def all_info id query = "/rxcui/#{id}/allinfo" data = get_response_hash(query)[:rxterms_properties] return RxNav::Concept.new(data) end
Private Class Methods
get_response_hash(query)
click to toggle source
# File lib/rx_nav/rx_terms.rb, line 18 def get_response_hash query RxNav.make_request('/RxTerms' + query)[:rxtermsdata] end