4 * API index page for receiving requests from the OpenEMR clinician requests.
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);