Fixes #5877 Comlink Telehealth Module (#5878)
[openemr.git] / interface / modules / custom_modules / oe-module-comlink-telehealth / public / index.php
blob509eb60067cd2022c4e97d51ea6b24aa37816428
1 <?php
3 /**
4 * API index page for receiving requests from the OpenEMR clinician requests.
6 * @package openemr
7 * @link http://www.open-emr.org
8 * @author Stephen Nielson <snielson@discoverandchange.com>
9 * @copyright Copyright (c) 2022 Comlink Inc <https://comlinkinc.com/>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 // since we are working inside the portal we have to use the portal session verification logic here...
14 require_once "../../../../globals.php";
16 use Comlink\OpenEMR\Modules\TeleHealthModule\Bootstrap;
18 $kernel = $GLOBALS['kernel'];
19 $bootstrap = new Bootstrap($kernel->getEventDispatcher(), $kernel);
20 $roomController = $bootstrap->getTeleconferenceRoomController(false);
22 $action = $_REQUEST['action'] ?? '';
23 $queryVars = $_REQUEST ?? [];
24 $queryVars['pid'] = $_SESSION['pid'] ?? null;
25 $queryVars['authUser'] = $_SESSION['authUser'] ?? null;
26 $roomController->dispatch($action, $queryVars);
27 exit;