- Local Demo Setup Guide
This document details instructions on how to quickly get up and running with a local demo deployment of the REMS Integration Prototype environment. This is primarily meant for non-technical users interested in exploring the prototype on their own machine with minimal setup.
Note: If you are looking to contribute or make code changes, please see the full Developer Environment Setup.
Note: If you are looking to just have more control or configuration options with Docker in your local environment, see the configurable install.
The following REMS components will be deployed in Docker locally:
- test-ehr
- request-generator
- rems-admin
- rems-setup
- pims (Pharmacy Information Management System)
- rems-smart-on-fhir
- rems-intermediary
See this section from the developer setup guide for more information. Most computers will meet the minimum requirements.
-
Use git to clone or download and extract the zip of the rems-setup repository.
-
In your terminal, navigate to the rems-setup directory.
cd rems-setup
-
Start Docker Compose application
cd rems-setup # Need to execute commands in directory with corresponding docker-compose.yml file located in the REMS repository docker compose up
Note, if you are using an M1/M2 mac, you'll need to prepend
docker compose
commands withCOMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DOCKER_DEFAULT_PLATFORM=linux/arm64
.cd rems-setup # Need to execute commands in directory with corresponding docker-compose.yml file located in the REMS repository COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DOCKER_DEFAULT_PLATFORM=linux/arm64 docker compose up
See this guide to generate a test request.
Obtain Value Set Authority Center (VSAC) API key
The UMLS Value Set Authority Center provides several value sets that the REMS SMART app uses to automatically fill out forms using information from the patient record. Providing a VSAC API key is optional, but will enable this feature.
See this section from the developer setup guide for more information on obtaining an API key.
Once an API key is obtained, see the following section for information on how to use it.
Set up your local environment with your VSAC credentials (VSAC_API_KEY
) and Docker Compose project name (COMPOSE_PROJECT_NAME
). You can accomplish this easily by modifying the .env
file in this repository.
See the setting environment variables section for more information.
Note: How you set environment and path variables may vary depending on your operating system and terminal used.
docker compose down
or if on M1/M2 Mac use
docker compose -f docker-compose-m1.yml down
To remove all images, volumes, and artifacts set up during the install, run the following commands
docker image prune -a
docker volume prune
docker network prune
docker compose build --no-cache --pull [<service_name1> <service_name2> ...]
docker compose --force-recreate [<service_name1> <service_name2> ...]
# Options:
# --force-recreate Recreate containers even if their configuration and image haven't changed.
# --build Build images before starting containers.
# --pull Pull published images before building images.
# --no-cache Do not use cache when building the image.
# [<service_name1> <service_name2> ...] Services to recreate, not specifying any service will rebuild and recreate all services
See the documentation here.