break;
    case 'delete':
        if (!empty($request_uri[3])) {
            $urlData['id'] = $request_uri[3];
            if (is_numeric($urlData['id'])) {
                $operations->delete($urlData['id']);
                if (IS_AJAX === true) {
                    $result = array('success' => $operations->result['success'], 'messages' => $operations->result['message'], 'hospId' => $operations->result['hospId']);
                    echo json_encode($result);
                    die;
                } else {
                    header('Location: /operations/?hospId=' . $operations->result['hospId']);
                    die;
                }
            }
        }
        break;
    case 'fileDelete':
        if (!empty($request_uri[3])) {
            $urlData['id'] = $request_uri[3];
            if (is_numeric($urlData['id'])) {
                $operations->fileDelete($urlData['id']);
            }
        }
        break;
    case 'getOperationsCount':
        $result['operationsCount'] = $operations->getHospsCount((int) $request_uri[3]);
        echo json_encode($result);
        die;
}
$result = $operations->result;