Configuring the International Patient Summary in the Reference Application.

Table of contents

Getting Started with the International Patient Summary

The International Patient Summary (IPS) module provides functionality for fetching, storing, and retrieving FHIR International Patient Summaries within the OpenMRS ecosystem. This module is designed to operate in a headless manner, meaning it does not include any user interface components.

How to Configure the Backend for the International Patient Summary on the Reference Application


  1. Navigate to the OpenMRS GitHub repository.

screencapture-google-search-2024-11-18-08_30_51.png
Access the repository
  1. Clone the repository

clone application.png
Clone the repository

In this illustration the repository is cloned on Gitpod. Therefore, click on configure your own repository to start the Gitpod machine

click on configure your own repository.png
Configure repository

The repository is searched under Gitpod and user clicks on the continue button. The workspace will start successfully.

machine started successfully.png
Reference application cloned successfully

The following repository o3-distro/distro at IPS-MPI ยท I-TECH-UW/o3-distro has the required International Summary Patient artefacts that should be added to the Reference application currently running on the Gitpod instance. See illustration below

  1. click on the committed changes for the artefacts.

access artefacts.png
Accessing IPS artefact
  1. Click on the Files changed.

changed files.png
Files changed

These artefact changes are required to be made under our demo reference application currently running on Gitpod.

  1. The first artefact is the IPS version OMOD found under the distro/distro.properties copy the OMOD artefact.

ips version.png
IPS version
  1. Click on the and paste under the same path of the cloned instance .

add ips version.png
IPS OMOD
  1. The second artefact is the IPS Snapshot version found under distro/pom.xml copy the artefact.

ipms pom.png
IPS Snapshot
  1. Paste the artefact under properties in distro/pom.xml of the cloned instance.

pom ips version.png
Paste artefact
  1. Copy the repository.

This repository should be replaced with the relevant repository for the OpenMRS distribution. In this illustration, the Digital Initiatives Group at ITECH repository is used.

repo3.png
Repository
  1. Paste the repository under the cloned instance.

pom repo.png
Paste repository
  1. Copy the IPS ESM App.

ips esm app.png
Copy ESM IPS app
  1. Paste the esm-ips-app under frontend/spa-assemble-config.json in the cloned instance.

esm app.png
Paste App
  1. Click on the docker-compose.yml file and copy the command to start-up the back end.

build backed 2.png
Build backend image

The backend image will be built successfully

ย 

built success.png
Image built successfully
  1. Open a new terminal. change directory to the front end module and build the module.

frontend.png
Change directory to frontend module
  1. copy the command to start-up the back end and run under the front -end terminal.

build frontend.png
Build module

The frontend image will be built successfully

ย 

screencapture-openmrs-openmrsdistrore-mhczfp9vzqe-ws-eu116-gitpod-io-2024-11-18-21_14_11.png
Module built successfully
  1. Open a new terminal and execute the command docker compose up

docker compose up.png
Startup docker containers

The images will be started successfully.

images running.png
Containers started successfully
  1. Click on the ports tab and expose the port for the backend link to be publicly accessible.

Clicking on the padlock icon exposes the port

unlock.png
Expose port
  1. Click on the link to access the backend.

click link.png
Click link
  1. Remove the path to access the back-end.

remove spa home.png
Remove frontend path
  1. Enter login credentials and click on login button.

The backend might take a while to initialize the database. Please wait for the process to complete.

login be.png
Login

To set up the IPS module, you need to configure the following global properties in your OpenMRS instance. The table below shows the properties and their descriptions.

Property

Description

Property

Description

ips.url

The URL of the FHIR server endpoint that returns the IPS.

ย 

Example: https://hapi.fhir.org/baseR4/Patient/$summary

ips.concept

The concept mapping or UUID of the complex concept used to store the IPS.

ips.identifierType.uuid

The UUID of the identifier type used to query the server for the IPS.

  1. To configure the above properties, we shall create an IPS concept so that we get the UUID that will store the IPS. To create the concept, the Dictionary menu item then click on Add New Concept.

ย 

add new concept.png
Access concept dictionary
  1. Fill in the Concept Name, Class , Datatype and click on the Save Concept button.

creating new concept.png
Enter concept metadata
  1. Upon successful creation of the concept, copy the UUID.

UUID.png
Copy the concept UUID
  1. Click on the administrator menu.

administrator 2.png
Click on the administrator menu item
  1. Click on Settings under Maintenance

settings admin.png
Click settings
  1. Click on Ips, paste the Complex complex UUID that was copied. The Identifiertype Uuid and Url remain the same. Click on the Save button. The global properties saved successfully.

2ea7aa8d-702c-46d5-9db2-81e1c4847377.png
Paste UUID for the IPS Concept and save
global properties.png
Global property saved successfully.

The https://hapi.fhir.org/baseR4/Patient Url access the FHIR cenral server patient summary. Upon filtering the Hapi fhir server by the patient identifier 32/34/43/46, The https://hapi.fhir.org/baseR4/Patient?identifier=32/34/43/46 returns a patient who has an IPS.

patient fhir.png
Hapi FHIR Server patient resources
url 2.png
Filter by patient identifier

How to Configure the Frontend of the Reference Application to display the International Patient Summary for a patient

  1. Click on the Url under the ports tab.

access fe 1.png
Access frontend
  1. Enter the Username and click on the Continue button.

access fe.png
Enter username and continue
  1. Enter the Password and click on the Login button

access fe 3.png
Enter password and login
  1. Select location.

access fe 34.png
Select location and confirm
  1. Search patient

search pat.png
Search for a patient
  1. Click on Actions.

click on actions.png
Click Action
  1. Click on Edit Patient Details.

edit patient details.png
Click edit patient details
  1. Click configure

click configure.png
Click configure
  1. Select checkbox and configure

select old identification number.png
Click configure identifiers
  1. Update patient

update patient.png
Click update patient
updated successfully.png
  1. To access the IPS click on the Hamburger menu at the top left.

menu item.png
Click menu item
  1. Click on Patient History

Patient history.png
Click patient history
  1. Click on Refresh. The IPS will be displayed under the Patient History.

In the event the IPS is not displayed upon clicking on Refresh, refresh the browser itself.

click refresh.png
Click refresh
ips displayed successfully.png
International Patient Summary is displayed

ย