medical treatment algorithms