Back to Resources

HIE Implementation Guide: HMIS to HIE Integration

A complete implementation guide for HMIS integration teams connecting with the Health Information Exchange (HIE) — Client Registry, Facility Registry, Health Worker Registry and Claims systems.

Following these guidelines ensures your HMIS interfaces correctly with the HIE's critical components. Comptracks Systems built this guide from real-world SHA integration projects to help engineering teams plan and scope their own implementation.

Priority Levels

IconLevelDescription
🔴CriticalEssential functionality — must be implemented
🟠StandardExpected functionality — should be implemented
🟢AdvancedEnhanced functionality — optional features

🔧 Core Requirements

Use Official APIs Critical

RequirementDetails
API SourceUse only APIs provided through the official portal
No Third-PartyAvoid unofficial interfaces or middleware
Data ExchangeAll communication through official channels only

Best Practices: maintain up-to-date API documentation, implement proper authentication and security, monitor API usage and performance.

Direct HMIS Integration Critical

RequirementDetails
ImplementationDirect integration within HMIS itself
No MiddlewareNo external components or third-party systems
Native FunctionalityAll features built into the HMIS

👤 Client Registry Integration

1. Patient Registration Standard

FeatureImplementation Details
Registration FormImplement patient registration functionality
ID SearchSearch by ID number capability
PIN ManagementSet default PIN, enable PIN changes
User AwarenessInform patients about PIN for Afyayangu login

2. Patient Search Critical

ParameterRequiredDescription
ID NumberYesNational identification number
Full NameYesComplete patient name
Date of BirthYesPatient's date of birth
Phone NumberNoContact phone number
Other IdentifiersNoAs per API documentation

Enable comprehensive search functionality, display accurate results, and implement error handling for failed searches.

3. Patient Data Decryption Critical

ComponentRequirement
Decryption KeysUse AfyaLink-provided keys
Data SecurityEncrypt all sensitive information
Key ManagementSecure storage with access controls
Audit LoggingLog all decryption activities

4. Patient Data Mapping & Storage Standard

FieldTypeDescription
CR IDStringClient Registry identifier
ID NumberStringNational ID
Full NamesStringComplete patient name
Date of BirthDatePatient DOB
GenderEnumPatient gender
Phone NumberStringContact number

Store patient details locally after a successful search to eliminate repeated API calls, and map all required fields accurately.

5. Update Patient Standard

FeatureDetails
Update FunctionalityEnable information updates
EncryptionSend updates with encrypted PIN
ValidationValidate all update requests
Change TrackingTrack all patient modifications

6. Dependents Handling Standard

Dependent TypeAction
SpouseStore and display as next of kin
ChildrenRegister as dependents
RelationshipsMap family connections clearly

7. Consent Workflow Advanced

Capture patient consent before processing requests, store consent linked to patient records, comply with privacy laws and regulations, and implement age-appropriate consent mechanisms.

🔍 Eligibility Check

1. Search Patient Eligibility Critical

Implement eligibility search functionality with clear visual status indicators, and show reasons and solutions when a patient is ineligible.

2. SHA Patient Visit Critical

Process flow: verify eligibility → initialize SHA visit → capture required parameters → confirm visit creation.

3. Display SHA Scheme Eligibility Standard

SchemeDisplay Requirements
SHIFStatus, coverage period, benefit limits
ECCIF & PCIFActive periods, waiting periods
POMFEligibility status, coverage details
ECDFActive coverage, benefit information

Use color-coded eligibility status and easy-to-read benefit displays, with detailed information on hover or click.

🏥 Facility Registry Integration

1. Search Facility Critical

ParameterDescription
Facility CodeUnique facility identifier
Facility NameOfficial facility name
LocationGeographic location
LevelFacility level (primary, secondary, tertiary)

2. Save Facility Details Standard

Store facility name, level, codes, location and contact details locally in the HMIS database, implement caching to reduce API calls, and ensure proper data mapping.

3. Use Facility Details Standard

Populate the organization resource in claims, ensure consistent facility information, and implement data validation and fallback mechanisms.

👨‍⚕️ Health Worker Registry Integration

1. Search Practitioner Critical

Search by ID number, registration number, or practitioner name.

2. Save Practitioner Details Standard

Store full names, license numbers, registration number, ID number and specialization.

3. Use Practitioner Details Standard

Populate the practitioner resource in claims, keep information consistent across claims, and handle updates and missing data appropriately.

💼 Claims Integration

1. SHA Codes Mapping Critical

Map SHA codes to your local database, keep coding consistent for SHA visits, validate codes before submission, and handle code version changes.

2. Map Preauth Services Critical

Flag services requiring preauthorization with visual indicators during service selection, and block the service until preauth is confirmed.

3. Send PreAuth Check Critical

Process flow: identify service requiring preauth → collect required information → submit preauth request → process and store response → proceed based on authorization status.

4. SHA Intervention Amounts Standard

Display the SHA payable amount per intervention using locally stored data, update amounts regularly, and indicate patient vs. SHA responsibility.

5. ICD-11 Search Critical

ApproachBenefits
API-based with cachingAlways current, minimal storage
Local databaseFast, offline capability
HybridOptimal performance and accuracy

6. Build Claim Bundle (Registries) Standard

Assemble patient information, facility details, and practitioner information from local storage, along with current visit details and system-generated claim metadata.

7. Build Claim Bundle (SHR, Services & Diagnosis) Critical

Include primary and secondary diagnoses (ICD-11), all procedures rendered, prescribed medications, and any additional required clinical information.

8. Claim Submission Standard

Validate claim data completeness, submit the claim to the HIE, receive and process the response, store the claim ID for tracking, and provide status feedback.

9. Poll Claim Status Critical

Regularly check status using the claim ID, handle all status codes appropriately, display clear visual indicators, and enable resubmission for rejections.

🚀 Advanced Features

Facility Level Context Advanced

Customize workflows based on facility capabilities, show appropriate options by facility level, hide unavailable features, and provide facility-specific guidance.

Service Filtering By Facility Level Advanced

Filter services by facility level, show only relevant services, prevent selection of unavailable services, and implement referral workflows.

✅ Production Readiness Requirements

To be eligible for production deployment, a system must complete 100% of all Critical (🔴) and Standard (🟠) components. Advanced (🟢) features are optional enhancements and are not required for production.

Integration AreaRequired Components
Core Requirements2
Client Registry6
Eligibility Check3
Facility Registry3
Health Worker Registry3
Claims Integration9
Total Required26
✅ Ready for Production: all 26 Critical and Standard components completed.
⚠️ Not Ready for Production: any Critical or Standard component incomplete.
Need a hand implementing this? Comptracks Systems' HMIS SHA Integration team handles Client Registry, Facility Registry, Health Worker Registry and Claims integration end-to-end. Get in touch.