By default display error messages are disabled in Smart Hospital that is the reason every time if there is an error occurs system is showing a 500 error message. This is due to the Smart Hospital environment being set for production. To enable the display error message you should change the Smart Hospital environment from production to development.
Please make the following changes in code files to change the environment -
Open file \index.php in any editor carefully from your installation folder and finddefine('ENVIRONMENT', 'production');
and change it todefine('ENVIRONMENT', 'development');
Be aware that in development mode you may see some errors and deprecation warnings, for this reason, it’s always recommended to set the environment to “production”.
Do not forget to turn it back to production when you have finished the error checking or debugging