Documents Module: Added features for document SHA-1 checks and document encryption.
[openemr.git] / library / ssi.inc
blobdbe56df10e200f9fb2be0dc727c57971ac025ea6
1 <?php
2 // Copyright (C) 2008 Phyaura, LLC <info@phyaura.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9         include_once('../../interface/globals.php');
11 function getRelayHealthLink() {
12         $result = sqlQuery("select ssi_relayhealth from users where id={$_SESSION['authUserID']};");
13         $trimmed = trim($result['ssi_relayhealth']);
14         if (!empty($trimmed)) {
15                 return '<a href="../jump_to_RelayHealth.php" target="_new" class="navitem" id="rh_link">Relay Health</a>';
16         } else {
17                 // default link
18                 return '<a href="https://app.relayhealth.com/welcome.asp?bid=phyaura" target="_new" class="navitem" id="rh_link">Relay Health</a>';
19         }