fix: ccda zip import and php warnings and deprecations (#7416)
[openemr.git] / library / patientvalidation.inc.php
blob35ce196a3e8f5275d3a1aaa6caeadd69373c409b
1 <?php
3 /* +-----------------------------------------------------------------------------+
5 * Function to check if Patientvalidation hook is active
7 * Copyright 2016 matrix israel
8 * LICENSE: This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 3
11 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see
18 * http://www.gnu.org/licenses/licenses.html#GPL
21 * @package OpenEMR
22 * @author Dror Golan <drorgo@matrix.co.il>
23 * @link https://www.open-emr.org
24 * +------------------------------------------------------------------------------+
29 //Check if new patient is added to hooks
30 function checkIfPatientValidationHookIsActive()
32 $module_query = sqlStatement("SELECT * FROM modules WHERE mod_name= 'Patientvalidation' and mod_active=1");
34 if (sqlNumRows($module_query)) {
35 //if you want to check inactive active hook please uncheck the following comment
36 //$s = "<div style='margin-bottom:10px; border:1px solid black;padding: 5px 5px 5px 5px;width:300px;background-color: #79bbff'><center> " . xl("You are using patient validation module") . "</center></div>";
37 // echo $s;
38 return true;
39 } else {
40 return false;