Skip to content

Abstract

The aim of the centralized visualization module is to provide a uniform display of e-prescriptions. The service creates a standardized PDF document from an e-prescription data record in accordance with CHMED16A (prescription revision 2) and the specifications of the Swiss e-prescription initiative.

Installation

Local installation as Standalone-App (Windows, MacOS X and Linux)

The service endpoint is provided by a standalone application (Electron Application|https://www.electronjs.org/) that is downloaded and installed locally. The application periodically checks the repository to see if an update is available. If this is the case, the provided version will be downloaded and installed. This approach offers the advantage of always having the latest version and thus ensuring that the e-prescription is created in accordance with the latest specifications.

After the installation, the application is started and a REST enpoint is exposed under port number 3000: http://localhost:3000/health

Installations on desktop environments

  1. On MacOS
  • Open the latest release from here
  • Click on Mac arm to download the latest binary
  • Double click on the downloaded file to install
  • Drag the app to the applications folder
  • Start the ERX application
  • Since the application is not installed from app store, you will need to click on the following pop. POP
  • Click on Open to open the application
  • the application is now running in the background, there is no UI that can be seen.
  • To verify that the application is running, open your browser and go to http://localhost:3000/health
  1. On Windows
  • Open the latest release from here
  • Click on Windows Installer to download the latest binary
  • Double click on the downloaded file to install
  • Since signing the application is work in process at the moment, you will need to click:
  • Click on More info to open the application POP
  • Click on Run anyway to open the application POP
  • Start the ERX application
  • To verify that the application is running, open your browser and go to http://localhost:3000/health
  1. On Linux Desktop
  • Open the latest release from here
  • Click on Linux AppImage to download the latest binary
  • Double click on the downloaded file to install
  • Start the ERX application
  • To verify that the application is running, open your browser and go to http://localhost:3000/health

3.1 Linux Server

  • Check the latest release from here
  • Copy this script to the server (depending on the package manager you use, download the correct copy the correct script)
  • Change permissions to execute it with chmod +x erx-appimage-installer.sh
  • Edit the script to the correct verion -APP_VERSION in the top.
  • Run the script with ./erx-appimage-installer.sh

The script will install all the necessary dependencies and will download the specified version of the application and run it.

Install with Docker Container and Helm Chart

The difference between the Desktop and Docker is that the Desktop version handles the auto-updates, while the Docker version needs to be updated manually by pulling the latest image and recreating the container.

Pull the image:

bash
docker pull healthinfonetag/erx-app:latest

Or pull a specific version:

bash
docker pull healthinfonetag/erx-app:v1.12.5

Run the container

bash
docker run --rm -p 3000:3000 healthinfonetag/erx-app:latest

The service will be available at http://localhost:3000 The erx-app accepts the environment variable LOG_LEVEL (default: info).

Avaiblable levels:

LevelDescription
errorOnly errors
warnErrors and warnings
infoGeneral information (default)
httpHTTP request logging
verboseMore detailed information
debugDebug-level details
sillyEverything

Compatibility

We do support the following linux distros: Debian, Ubuntu,Rocky 10, Rocky 9, Open SUSE Leap,Alma Linux 10, CentOS Stream 10, Fedora 42. Supported Docker Version: 20.x+

Upgrade process (only Standalone-App)

Once the application is installed, upgrade on every platform happens on every start automatically in the background and periodically if the application is running. Keep in mind the upgrade process will download the upgrade in the background, but the installation will block the service until the upgrade is done (no requests will be performed during the installation process and generally the service will be down during the upgrade).

version 1.0.0