attach bill note to correct encounter (#4344)
[openemr.git] / portal / patient / _app_config.php
blob1886b316b36ea003c9e9ecc8374b57db52b5bcb5
1 <?php
3 /**
4 * @package Portal
6 * APPLICATION-WIDE CONFIGURATION SETTINGS
8 * This file contains application-wide configuration settings. The settings
9 * here will be the same regardless of the machine on which the app is running.
11 * This configuration should be added to version control.
13 * No settings should be added to this file that would need to be changed
14 * on a per-machine basic (ie local, staging or production). Any
15 * machine-specific settings should be added to _machine_config.php
17 * From phreeze package
18 * @license http://www.gnu.org/copyleft/lesser.html LGPL
22 /**
23 * APPLICATION ROOT DIRECTORY
24 * If the application doesn't detect this correctly then it can be set explicitly
26 if (!GlobalConfig::$APP_ROOT) {
27 GlobalConfig::$APP_ROOT = realpath("./");
30 /**
31 * check is needed to ensure asp_tags is not enabled
33 if (ini_get('asp_tags')) {
34 die('<h3>Server Configuration Problem: asp_tags is enabled, but is not compatible with Savant.</h3>' . '<p>You can disable asp_tags in .htaccess, php.ini or generate your app with another template engine such as Smarty.</p>');
37 /**
38 * INCLUDE PATH
39 * Adjust the include path as necessary so PHP can locate required libraries
41 set_include_path(GlobalConfig::$APP_ROOT . '/libs/' . PATH_SEPARATOR . GlobalConfig::$APP_ROOT . '/fwk/libs' . PATH_SEPARATOR . get_include_path());
43 /**
44 * COMPOSER AUTOLOADER
45 * Uncomment if Composer is being used to manage dependencies
47 // $loader = require 'vendor/autoload.php';
48 // $loader->setUseIncludePath(true);
50 /**
51 * SESSION CLASSES
52 * Any classes that will be stored in the session can be added here
53 * and will be pre-loaded on every page
55 //require_once "App/SecureApp.php";
57 /**
58 * RENDER ENGINE
59 * You can use any template system that implements
60 * IRenderEngine for the view layer.
61 * Phreeze provides pre-built
62 * implementations for Smarty, Savant and plain PHP.
64 require_once 'verysimple/Phreeze/SavantRenderEngine.php';
65 GlobalConfig::$TEMPLATE_ENGINE = 'SavantRenderEngine';
66 GlobalConfig::$TEMPLATE_PATH = GlobalConfig::$APP_ROOT . '/templates/';
68 /**
69 * ROUTE MAP
70 * The route map connects URLs to Controller+Method and additionally maps the
71 * wildcards to a named parameter so that they are accessible inside the
72 * Controller without having to parse the URL for parameters such as IDs
74 GlobalConfig::$ROUTE_MAP = array(
76 // default controller when no route specified
77 // 'GET:' => array('route' => 'Default.Home'),
78 // permission setting for p_acl:
79 // p_all - available to all
80 // p_limited - only the data that is pertinent to the patient is available
81 // p_none - not available for patients
82 // permission setting for p_reg:
83 // true - permission for patient registration
84 // false - no permission for patient registration
85 'GET:' => array(
86 'route' => 'Provider.Home',
87 'p_acl' => 'p_all',
88 'p_reg' => false
90 'GET:provider' => array(
91 'route' => 'Provider.Home',
92 'p_acl' => 'p_all',
93 'p_reg' => false
96 // Patient
97 'GET:patientdata' => array(
98 'route' => 'Patient.ListView',
99 'p_acl' => 'p_all', // Secured this at downstream function level
100 'p_reg' => true // Secured this at downstream function level
102 'GET:api/patientdata' => array(
103 'route' => 'Patient.Query',
104 'p_acl' => 'p_all', // Secured this at downstream function level
105 'p_reg' => true // Secured this at downstream function level
107 'POST:api/patient' => array(
108 'route' => 'Patient.Create',
109 'p_acl' => 'p_none',
110 'p_reg' => true
112 'GET:api/patient/(:num)' => array(
113 'route' => 'Patient.Read',
114 'params' => array(
115 'id' => 2
117 'p_acl' => 'p_limited',
118 'p_reg' => false
120 'PUT:api/patient/(:num)' => array(
121 'route' => 'Patient.Update',
122 'params' => array(
123 'id' => 2
125 'p_acl' => 'p_limited',
126 'p_reg' => false
128 'DELETE:api/patient/(:num)' => array(
129 'route' => 'Patient.Delete',
130 'params' => array(
131 'id' => 2
133 'p_acl' => 'p_limited',
134 'p_reg' => false
136 'PUT:api/portalpatient/(:num)' => array(
137 'route' => 'PortalPatient.Update',
138 'params' => array(
139 'id' => 2
141 'p_acl' => 'p_limited',
142 'p_reg' => false
144 'GET:api/portalpatient/(:num)' => array(
145 'route' => 'PortalPatient.Read',
146 'params' => array(
147 'id' => 2
149 'p_acl' => 'p_limited',
150 'p_reg' => false
153 // OnsiteDocument
154 'GET:onsitedocuments' => array(
155 'route' => 'OnsiteDocument.ListView',
156 'p_acl' => 'p_all', // Secured this at downstream function level
157 'p_reg' => false
159 'GET:onsitedocument/(:num)' => array(
160 'route' => 'OnsiteDocument.SingleView',
161 'params' => array(
162 'id' => 1
164 'p_acl' => 'p_all', // Secured this at downstream function level
165 'p_reg' => false
167 'GET:api/onsitedocuments' => array(
168 'route' => 'OnsiteDocument.Query',
169 'p_acl' => 'p_all', // Secured this at downstream function level
170 'p_reg' => false
172 'POST:api/onsitedocument' => array(
173 'route' => 'OnsiteDocument.Create',
174 'p_acl' => 'p_all', // Secured this at downstream function level
175 'p_reg' => false
177 'GET:api/onsitedocument/(:num)' => array(
178 'route' => 'OnsiteDocument.Read',
179 'params' => array(
180 'id' => 2
182 'p_acl' => 'p_all', // Secured this at downstream function level
183 'p_reg' => false
185 'PUT:api/onsitedocument/(:num)' => array(
186 'route' => 'OnsiteDocument.Update',
187 'params' => array(
188 'id' => 2
190 'p_acl' => 'p_all', // Secured this at downstream function level
191 'p_reg' => false
193 'DELETE:api/onsitedocument/(:num)' => array(
194 'route' => 'OnsiteDocument.Delete',
195 'params' => array(
196 'id' => 2
198 'p_acl' => 'p_all', // Secured this at downstream function level
199 'p_reg' => false
202 // OnsitePortalActivity
203 'GET:onsiteportalactivities' => array(
204 'route' => 'OnsitePortalActivity.ListView',
205 'p_acl' => 'p_none',
206 'p_reg' => false
208 'GET:api/onsiteportalactivities' => array(
209 'route' => 'OnsitePortalActivity.Query',
210 'p_acl' => 'p_all', // Secured this at downstream function level
211 'p_reg' => false
213 'POST:api/onsiteportalactivity' => array(
214 'route' => 'OnsitePortalActivity.Create',
215 'p_acl' => 'p_all', // Secured this at downstream function level
216 'p_reg' => false
218 'GET:api/onsiteportalactivity/(:num)' => array(
219 'route' => 'OnsitePortalActivity.Read',
220 'params' => array(
221 'id' => 2
223 'p_acl' => 'p_all', // Secured this at downstream function level
224 'p_reg' => false
226 'PUT:api/onsiteportalactivity/(:num)' => array(
227 'route' => 'OnsitePortalActivity.Update',
228 'params' => array(
229 'id' => 2
231 'p_acl' => 'p_all', // Secured this at downstream function level
232 'p_reg' => false
234 'DELETE:api/onsiteportalactivity/(:num)' => array(
235 'route' => 'OnsitePortalActivity.Delete',
236 'params' => array(
237 'id' => 2
239 'p_acl' => 'p_none',
240 'p_reg' => false
243 // OnsiteActivityView
244 'GET:onsiteactivityviews' => array(
245 'route' => 'OnsiteActivityView.ListView',
246 'p_acl' => 'p_none',
247 'p_reg' => false
249 'GET:api/onsiteactivityviews' => array(
250 'route' => 'OnsiteActivityView.Query',
251 'p_acl' => 'p_none',
252 'p_reg' => false
254 'GET:api/onsiteactivityview/(:any)' => array(
255 'route' => 'OnsiteActivityView.Read',
256 'params' => array(
257 'id' => 2
259 'p_acl' => 'p_none',
260 'p_reg' => false
263 // User no route no problem. leaving for now. 01/23/21
264 /*'GET:users' => array(
265 'route' => 'User.ListView',
266 'p_acl' => 'p_none',
267 'p_reg' => false
269 'GET:api/users' => array(
270 'route' => 'User.Query',
271 'p_acl' => 'p_all', // Secured this at downstream function level
272 'p_reg' => true // Secured this at downstream function level
274 'GET:api/user/(:num)' => array(
275 'route' => 'User.Read',
276 'params' => array(
277 'id' => 2
279 'p_acl' => 'p_none',
280 'p_reg' => false
281 ),*/
283 // catch any broken API urls
284 'GET:api/(:any)' => array(
285 'route' => 'Provider.ErrorApi404'
287 'PUT:api/(:any)' => array(
288 'route' => 'Provider.ErrorApi404'
290 'POST:api/(:any)' => array(
291 'route' => 'Provider.ErrorApi404'
293 'DELETE:api/(:any)' => array(
294 'route' => 'Provider.ErrorApi404'