3 use OpenEMR\Common\Crypto\CryptoGen
;
5 // globals that require more security
6 // The set of globals below can only be modified directly in this script (ie. can not be set while using OpenEMR) and
7 // they will be encrypted while stored in globals object in memory (to not allow overriding of the global if bad actor
8 // somehow gets access to globals).
9 // note that need to skip this block of code during upgrading (or else will have database issues since no keys table)
10 if (empty($GLOBALS['ongoing_sql_upgrade'])) {
11 $cryptoGen = new CryptoGen();
12 // Print command for spooling to printers, used by statements.inc.php
13 // This is the command to be used for printing (without the filename).
14 // The word following "-P" should be the name of your printer. This
15 // example is designed for 8.5x11-inch paper with 1-inch margins,
16 // 10 CPI, 6 LPI, 65 columns, 54 lines per page.
17 // If lpr services are installed on Windows this setting will be similar
18 // Otherwise configure it as needed (print /d:PRN) might be an option for Windows parallel printers
19 $GLOBALS['more_secure']['print_command'] = 'lpr -P HPLaserjet6P -o cpi=10 -o lpi=6 -o page-left=72 -o page-top=72';
20 //Enscript command used by Hylafax.
21 $GLOBALS['more_secure']['hylafax_enscript'] = 'enscript -M Letter -B -e^ --margins=36:36:36:36';
22 foreach ($GLOBALS['more_secure'] as $key => $value) {
23 $GLOBALS['more_secure'][$key] = $cryptoGen->encryptStandard($value);
27 //used differently by different applications, intuit programs only like numbers
28 $GLOBALS['oer_config']['ofx']['bankid'] = "123456789";
30 //you can use this to match to an existing account in you accounting application
31 $GLOBALS['oer_config']['ofx']['acctid'] = "123456789";
33 //use FL for FLORIDA compatible format, leave blank for default
34 $GLOBALS['oer_config']['prescriptions']['format'] = "";
36 // Document storage repository document root. Must include a trailing slash.
37 $GLOBALS['oer_config']['documents']['repopath'] = $GLOBALS['OE_SITE_DIR'] . "/documents/";
38 $GLOBALS['oer_config']['documents']['file_command_path'] = "/usr/bin/file";
40 //Name of prescription graphic in interface/pic/ directory without preceding slash. Can be JPEG or PNG, normally 3 inches wide.
41 $GLOBALS['oer_config']['prescriptions']['logo_pic'] = "Rx.png";
43 // Name of signature graphic in interface/pic/ directory without preceding
44 // slash. Normally 3 inches wide. This filename may include the string
45 // "{userid}" to indicate the numeric ID of the user, so that prescriptions
46 // can print with the correct provider's signature if you have multiple
47 // providers. Also signature images are used only for faxed prescriptions,
48 // not printed prescriptions.
49 $GLOBALS['oer_config']['prescriptions']['sig_pic'] = "sig.png";
50 //Option to used signature graphic or not
51 $GLOBALS['oer_config']['prescriptions']['use_signature'] = false;
53 // To print the prescription medication area on a grey background:
54 $GLOBALS['oer_config']['prescriptions']['shading'] = false;
56 // only works with hylafax sendfax client, and sendfax must be in PATH
57 // assign 'sendfax' to turn fax sending on
58 $GLOBALS['oer_config']['prescriptions']['sendfax'] = '';
60 // asign a value here if there is any prefix needed to get dialing tone
61 // you can also append a comma to add a one second delay
62 // i.e. 9, will dial 9 for external tone, and wait a second.
63 $GLOBALS['oer_config']['prescriptions']['prefix'] = '';
65 // Similarly for bottle labels if you are dispensing drugs. Note that paper
66 // size here or for prescriptions may be an array (0, 0, width, height).
67 // As above, these measurements are in points.
68 $GLOBALS['oer_config']['druglabels']['paper_size'] = array(0, 0, 216, 216);
69 $GLOBALS['oer_config']['druglabels']['left'] = 18;
70 $GLOBALS['oer_config']['druglabels']['right'] = 18;
71 $GLOBALS['oer_config']['druglabels']['top'] = 18;
72 $GLOBALS['oer_config']['druglabels']['bottom'] = 18;
73 $GLOBALS['oer_config']['druglabels']['logo_pic'] = 'druglogo.png';
74 $GLOBALS['oer_config']['druglabels']['disclaimer'] =
75 'Caution: Federal law prohibits dispensing without a prescription. ' .
76 'Use only as directed.';
78 //don't alter below this line unless you are an advanced user and know what you are doing
80 $GLOBALS['oer_config']['prescriptions']['logo'] = dirname(__FILE__
) .
81 "/../../interface/pic/" . $GLOBALS['oer_config']['prescriptions']['logo_pic'];
82 $GLOBALS['oer_config']['prescriptions']['signature'] = dirname(__FILE__
) .
83 "/../../interface/pic/" . $GLOBALS['oer_config']['prescriptions']['sig_pic'];
85 $GLOBALS['oer_config']['druglabels']['logo'] = dirname(__FILE__
) .
86 "/../../interface/pic/" . $GLOBALS['oer_config']['druglabels']['logo_pic'];
88 $GLOBALS['oer_config']['documents']['repository'] = $GLOBALS['oer_config']['documents']['repopath'];