Infirmary Integrated: Electronic Health Record
(c) 2024, Ibi Keller (tanjera)
Infirmary Integrated is free and open-source software suite consisting of the Infirmary Integrated Simulator, Scenario Editor, and Development Tools designed to advance healthcare education for medical and nursing professionals and students. Developed as in-depth, accurate, and accessible educational tools, Infirmary Integrated can meet the needs of clinical simulators in emergency, critical care, obstetric, and many other medical and nursing specialties.
Infirmary Integrated's Electronic Health Record (EHR) is a simulated electronic health record for use in medical and nursing education.
Instructions for Setup
Instructions are provided with commands for setting up Infirmary Integrated's EHR on a fresh installation of Debian Linux. Commands are identical on Ubuntu and analogous to other Linux platforms (package managers and default directories may vary!). Instructions are analogous to other operating systems (e.g. Windows, Mac OS) but will have vastly different commands, programs, and installation paths. Some configuration may be necessary specific to your purposes. Many commands will need administrator (root
) access, obtained using sudo
.
Installing the project files (this will likely need administrator root
access):
tar -xzvf <path-to-downloaded-file>
sudo mv infirmary-integrated-ehr /var/www/
Setting up the installation files and installing dependencies:
cd /var/www/infirmary-integrated-ehr
cp .env.example .env
nano .env
... note: testing or evaluation purposes do not need changes here.php
, a few php
packages, composer
, and npm
... sqlite
is only needed if you are not using a separate datebase (e.g. MariaDB, PostgreSQL, etc.) ... the command is sudo apt install php php-curl php-xml php-sqlite3 npm composer
Setting up the installation's underlying Laravel framework (recommended not to be done as root
!):
composer update
to refresh composer's cachecomposer install
to fetch the necessary composer package dependenciesnpm install
to fetch the necessary npm package dependencesnpm update
to update npm packages to the newest version (alternatively, you can run npm audit fix
to just receive security updates)php artisan key:generate
to create your installation's cryptographic keyphp artisan migrate
to create your installation's database tables. If you are using SQLite (default), this will create your SQLite database as well.npm run build
to compile runtime scripts and packages- this also hosts a temporary web service that you can cancel/escape from using Ctrl-C
Preparing the installation as a web service:
storage
, bootstrap/cache
, and database
(if using sqlite
) directories need to be writable by the web server- this can be achieved with the command sudo chown -R www-data:www-data storage/ bootstrap/cache/ database/
The project is now ready to be hosted! For testing or evaluation purposes, running npm run build
will host your project locally but will not persist across reboots. For a persistent web service, you will need to set up a web server. Instructions for setting up a persistent web server are below, but you will still need to configure the installation with the following instructions.
Configuring Infirmary Integrated: Electronic Health Record
npm run build
for this purpose.http://localhost
or else you will need to navigate to the host's IP address.administrator
privileges as an intentional part of this setup process. All following users who register will receive minimal privileges.Optional: Setting up an nginx web server:
sudo apt install nginx php-fpm
sudo apt remove apache2
or stop and disable it with sudo systemctl stop apache2
and sudo systemctl disable apache2
.sites-available
directory with cp <path-to-downloaded-file> /etc/nginx/sites-available/infirmary-integrated-ehr
ln -s /etc/nginx/sites-available/infirmary-integrated-ehr /etc/nginx/sites-enabled/infirmary-integrated-ehr
sudo systemctl restart nginx
and confirm it is running with sudo systemctl status nginx
. To ensure that it restarts when the machine boots, enable it with sudo systemctl enable nginx
Optional: Setting up an Apache web server:
sudo apt install apache2 php-fpm
sudo apt remove nginx
or stop and disable it with sudo systemctl stop nginx
and sudo systemctl disable nginx
.sites-available
directory with cp <path-to-downloaded-file> /etc/apache2/sites-available/infirmary-integrated-ehr.conf
ln -s /etc/apache2/sites-available/infirmary-integrated-ehr.conf /etc/apache2/sites-enabled/infirmary-integrated-ehr.conf
sudo systemctl restart apache2
and confirm it is running with sudo systemctl status apache2
. To ensure that it restarts when the machine boots, enable it with sudo systemctl enable apache2
If exposing your web server to the internet, remember to utilize strong passwords and set up a firewall! ufw
is highly recommended and comes with a graphical frontend!
Enjoy!
Copyright 2024 Ibi Keller
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note: Laravel, the framework utilized for this project and its files in their original state are licensed under the MIT license. Copyright and licensing for the Laravel framework and its packages are as follows:
Copyright (c) Taylor Otwell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.