geniusrw / rhie
PHP Package to integration with Rwanda HIE platform
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:project
pkg:composer/geniusrw/rhie
Requires
- php: ^8.0
- symfony/http-client: ^7.3
- vlucas/phpdotenv: ^5.6
This package is not auto-updated.
Last update: 2025-10-18 11:03:41 UTC
README
Installation
Run the following command to install the package using composer
composer require geniusrw/rhie
or download the zip from github
Setup the package
Setting required configuration
-
Configuration information Make sure to have the config folder in your root project
Copy the hie.php.example file name it to hie.php into you config folder -
Environment information Rename .env.example file to .env file and change required values to match you setup
-
Using the package to get Patient's UPID
<?php
require_once "vendor/autoload.php";
use Geniusrw\Rhie\HieClient;
$patient = HieClient::getUpid("xxxxxxxxxxxxxxxx", "NID");
The above code will return the Patient RhiePatient Object or null when the identifier is not found
Supported Document Type
- NID
- NID_APPLICATION
- UPI(stands for UPID)
Requesting Insurance Portal Information
- Make sure the .env file hold required params
RHIP_URL=URL_PREFIX
RHIP_KEY=APP_KEY
RHIP_ORIGIN=APP_ORIGIN
Those parameters should be marched with real values shared from RHIP Team.
- Check for CBHI Elibility
<?php
require_once "vendor/autoload.php";
use Geniusrw\Rhie\Rhip\RhipClient;
define("GENIUS_RHIE_BASE_PATH", __DIR__);
$patient = RhipClient::checkCbhiEligibity("xxxxxxxxxxxxxxxx");