# class DoseHandler

- DoseHandler
- Reference
- Object

##
Defined in:

handlers/dose_handler.cr

##
Constant Summary

Log = `JosieHealth::Utils::Log`

##
Constructors

- .new(api_client : APIClient)

##
Instance Method Summary

- #get_help : String
- #handle_idose(user_id : String, dosage : String, substance : String, route : String, ago_time : String | Nil = nil, note_text : String = "") : String
- #handle_k_dose(user_id : String, dosage : String) : String
- #handle_raw_dose(user_id : String, raw_dose : String, ago_time : String | Nil = nil) : String

  Log dose using raw_dose string - API parses substance, route, annotation

- #handle_raw_tdose(user_id : String, timestamp_str : String, raw_dose : String) : String

  Log dose at specific timestamp using raw_dose string

- #handle_redose(user_id : String, override_dosage : String | Nil = nil) : String
- #handle_tdose(user_id : String, timestamp_str : String, dosage : String, substance : String, route : String, note_text : String = "") : String
- #handle_undose(user_id : String) : String

##
Constructor Detail

def self.new(api_client : APIClient) #

##
Instance Method Detail

def get_help : String #
def handle_idose(user_id : String, dosage : String, substance : String, route : String, ago_time : String | Nil = nil, note_text : String = "") : String #
def handle_k_dose(user_id : String, dosage : String) : String #
def handle_raw_dose(user_id : String, raw_dose : String, ago_time : String | Nil = nil) : String #

Log dose using raw_dose string - API parses substance, route, annotation

def handle_raw_tdose(user_id : String, timestamp_str : String, raw_dose : String) : String #

Log dose at specific timestamp using raw_dose string

def handle_redose(user_id : String, override_dosage : String | Nil = nil) : String #
def handle_tdose(user_id : String, timestamp_str : String, dosage : String, substance : String, route : String, note_text : String = "") : String #
def handle_undose(user_id : String) : String #