Skip to main content

Client-Registry

info

The Instant OpenHIE architecture, codebase, and documentation are under active development and are subject to change. While we encourage adoption and extension of the Instant OpenHIE framework, we do not consider this ready for production use at this stage.

caution

This package is still under development

The Client Registry Package is a key component of Instant OpenHIE. Our reference technology is the Open Client Registry (OpenCR) service which has two dependencies:

Package functionality#

OpenCR provides a unique identifier for patients (clients) that links to all other already matched records from all submitting systems. Please see the documentation for more about client registries and OpenCR.

Deployment strategy#

OpenCR was already dockerised so we were able to re-use those images for our work in the client package.

We supplied a Docker Compose file for the setup and configuration of this application.

  1. Main docker-compose.yml file - sets up the base applications

For Kubernetes, we created deployment and service resource files for each component of each application. The setup is orchestrated by a kustomization.yml file for easy deployment.

Client Registry Package Dev guide#

For testing purposes, this package can be run independently. Below are some notes of how to do this. The recommended way to run Instant OpenHIE is described here.

Select a deployment target below and follow the getting started steps in setting up this package.

Before proceeding, ensure that you are in the root Instant OpenHIE directory.

From the working directory, execute the follow:

yarn docker:instant init -t docker client

This command will start up the core package depedency first. Then it will create all the Client pacakge services and print out their logs in the terminal.

View running Docker resources#

Execute the below commands to see the running Docker containers and the state that they are in.

To display all containers:

docker ps -a

To stop the containers, use the command:

yarn docker:instant down -t docker client

To completely remove all project components, use the following option:

yarn docker:instant destroy -t docker client

OpenCR config#

Configuring OpenCR can be done via a config file or environment variables. In the Instant OpenHIE context, a config file seems to be the easiest method. This involves adding a new config file into the OpenCR config directory of the container's volume. Then restart the OpenCR instance for the new config to take effect.