# class QueryHandler

- QueryHandler
- Reference
- Object

##
Defined in:

handlers/query_handler.cr

##
Constant Summary

FORMULATION_MODIFIERS = `["xr", "ir", "er", "sr", "cr", "la", "xl"]`

  Formulation modifiers that should be displayed with substance name, not as annotation

##
Constructors

- .new(api_client : APIClient)

##
Instance Method Summary

- #get_help_queries : String
- #handle_aliases : String
- #handle_annotate(user_id : String, note_text : String) : String
- #handle_doseslogged(user_id : String) : String
- #handle_grepdose(user_id : String, substance : String, n : Int32 | Nil = nil, roa : String | Nil = nil) : String
- #handle_help : String
- #handle_howhighami(user_id : String) : String
- #handle_last_substance(user_id : String, substance : String) : String
- #handle_lastdose(user_id : String, n : Int32 | Nil = nil) : String
- #handle_listdose(user_id : String, n : Int32 = 5) : String
- #handle_listdrugs(user_id : String) : String
- #handle_tally(user_id : String, substance : String) : String

##
Constructor Detail

def self.new(api_client : APIClient) #

##
Instance Method Detail

def get_help_queries : String #
def handle_aliases : String #
def handle_annotate(user_id : String, note_text : String) : String #
def handle_doseslogged(user_id : String) : String #
def handle_grepdose(user_id : String, substance : String, n : Int32 | Nil = nil, roa : String | Nil = nil) : String #
def handle_help : String #
def handle_howhighami(user_id : String) : String #
def handle_last_substance(user_id : String, substance : String) : String #
def handle_lastdose(user_id : String, n : Int32 | Nil = nil) : String #
def handle_listdose(user_id : String, n : Int32 = 5) : String #
def handle_listdrugs(user_id : String) : String #
def handle_tally(user_id : String, substance : String) : String #