-
Notifications
You must be signed in to change notification settings - Fork 0
/
cancel_telehealth_session.php
41 lines (28 loc) · 1.13 KB
/
cancel_telehealth_session.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/*
*
* @package OpenEMR Telehealth Module
* @link https://lifemesh.ai/telehealth/
*
* @author Sherwin Gaddis <[email protected]>
* @copyright Copyright (c) 2021 Lifemesh Corp <[email protected]>
* @license GNU General Public License 3
*
*/
require_once dirname(__DIR__, 3) . "/globals.php";
require_once "controller/Container.php";
use OpenEMR\Common\Csrf\CsrfUtils;
use OpenEMR\Common\Uuid\UniqueInstallationUuid;
if (!CsrfUtils::verifyCsrfToken($_GET["csrf_token"], 'lifemesh')) {
CsrfUtils::csrfNotVerified();
}
// no acl check since this needs to be accessed by entire practice from calendar
/** @var TYPE_NAME $eventid */
$eventid = $_GET['eid'];
$action = new OpenEMR\Modules\LifeMesh\Container();
$credentials = $action->getDatabase();
$accountinfo = $credentials->getCredentials();
$encryptedaccountinfo = base64_encode($accountinfo[1] . ":" . $accountinfo[0]);
$cancel = $action->getAppDispatch();
$uniqueInstallationId = UniqueInstallationUuid::getUniqueInstallationUuid();
echo text($cancel->cancelSession($encryptedaccountinfo, $eventid, $uniqueInstallationId,'cancelSession'));