A simple and fast EMR system used in low resource settings.
# FEMR - Fast Electronic Medical Records
### Description
fEMR is a fast EMR solution for remote clinics who depend on speed and ease of use rather than complex features. Check out Team fEMR's website for more information and a live demo.
### Community
1. Slack
2. JIRA
3. Team FEMR
4. Confluence
### tEMR Community
1. JIRA
2. Cal Poly JIRA
### Dependencies
* Play Framework
### Contributing
For more information on contributing, please see the CONTRIBUTING.md file. For details regarding installation and deployment, continue reading.
### CI
This repo uses GitHub Actions workflows for continuous integration; see the Actions tab in GitHub. The Scala CI workflow runs `sbt test` whenever code is pushed or a pull request is made to the main branch. When a pull request is submitted to master, a Docker image is built for testing purposes. On a successful merge with master, the docker image will be published to dockerhub.
### Setting up weekly backup reminder
* It is very important for the administrator to backup local data to the remote database.
* A cronjob can be set up before a kit is deployed to automatically display a message once a week.
1. In the command line, type crontab -e
2. A text editor should appear.
3. Add the following line to this file: 0 11 * * 5 /util/WeeklyReminder.sh
4. This will display a reminder pop up at 11:00AM every Friday.
### S3 Backups
fEMR can create SQL dumps and upload them to an S3 bucket for offsite backups. For local Docker development you must provide AWS credentials and configure the bucket name in a `.env` file next to `docker-compose.yml`.
Required environment variables (example `.env` file):
AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY=YOUR_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN=OPTIONAL_IF_USING_TEMP_CREDS
AWS_REGION=us-west-2
S3_BACKUP_BUCKET=femr-kit-db-dumps-west
After populating `.env`, recreate the container(s):
```bash
docker compose down
docker compose up --build -d --force-recreate femr
```
I …