Integration with medical laboratory equipment into an Electronic Medical Record (EMR) system is crucial for seamless data exchange, reducing manual input errors, and improving workflow efficiency in healthcare facilities. To address this challenge, Ksatria Medical Systems (KMS) provides the LIS Agent.
The LIS Agent is a Java application designed to connect to a database and perform various tasks, especially to connect to laboratory equipment to fetch and update the examination results.
This guide provides step-by-step instructions to set up the application, configure it to run automatically on Windows startup, set environment variables, and run in the background.
Java 21 JDK installed on the client computer.
Microsoft SQL Server 2014 Service Pack 2 (SP2) installed on the client computer.
Administrator access to set environment variables.
The Application Files from KMS Team
Create a folder for the LIS Agent, e.g., C:\Program Files\LIS Agent
.
Copy the following files into this folder:
agent-0.0.1-SNAPSHOT.jar
(The LIS Agent application JAR file)
start-lis-agent.bat
(Batch script to start the application)
To ensure the application can access the necessary configuration, set the following environment variables:
Step 1: Open System Properties
- Right-click "This PC" or "My Computer", then select "Properties".
- Click on "Advanced system settings".
- Click on the "Environment Variables" button.
- Alternatively, you can use search and find the "Edit the system environment variables".
Step 2: Add New Variables
- Under "System variables" or "User variables", click "New".
- Add the following variables one by one:
- LIS_DB_HOST =
localhost
- LIS_DB_NAME =
[your_database_name]
- LIS_DB_USERNAME = [your_database_username]
- LIS_DB_PASSWORD =
[your_database_password]
- LIS_HIS_AUTH_URL =
https://[your_subdomain].ksatria.cloud/api/online/registration
- LIS_HIS_LAB_URL =
https://[your_subdomain].ksatria.cloud/api/lab
- Click "OK" to save changes.
To run the application automatically when Windows starts:
Step 1: Create a Shortcut
- Right-click on
start-lis-agent.bat
, then select "Create shortcut".Step 2: Add the Shortcut to the Startup Folder
- Press
Win + R
to open the Run dialog.- Type
shell:startup
and press Enter to open the Startup folder.- Move or copy the shortcut into this folder.
Once the computer starts, the start-lis-agent.bat
script will execute automatically, setting the environment variables and launching the Java application in the background.
To manually start the application:
Double-click start-lis-agent.bat
.
The LIS Agent will begin running in the background.
To confirm that the application is running:
Open Task Manager (Ctrl + Shift + Esc
) and check for a Java process.
Review application logs for any errors or status messages.
If the application does not start, check the following:
Ensure Java 21 JDK is installed and added to the system PATH.
Ensure Microsoft SQL Server 2014 Service Pack 2 (SP2) is installed.
Verify that the environment variables are set correctly.
Ensure the JAR file exists in the specified folder (C:\Program Files\LIS Agent
).
By following these steps, the LIS Agent application will run automatically on Windows startup, leveraging environment variables for seamless configuration.
If you need assistance, contact your system administrator or the development team.
Note: This article credit to I Nyoman Surya Pradipta who create the README files regarding the LIS Agent Setup and Configuration