Hospital systems connected to Kenya's Social Health Authority: eligibility, pre-auth, claims and remittance, set up per facility.

Project Summary

  • Client: Kenyan hospitals
  • Industry: healthcare
  • My role: Integration Engineer
  • Core tasks: Integration architecture, Claims engine, SHA rule sets, Reconciliation
  • Appointed date: Sep 2026
  • Completion: Ongoing

When Kenya replaced NHIF with the Social Health Authority (SHA), every hospital had to change how it confirms cover, seeks approval and gets paid. Claims now flow through the Digital Health Agency's Health Information Exchange, with new rules, new benefit packages and new reasons for rejection. Every hospital's systems and contracts differ, so each integration has to be fitted to the facility.

What I built

  • Eligibility and visit authorisation. Confirm a patient's SHA cover at registration, before services are delivered.
  • Pre-authorisation. Submit requests with supporting documents and track the decisions.
  • eClaims submission. Map visits, billed lines and diagnoses into the HIE eClaims format and submit them.
  • Rules before submission. SHA benefit-package rules, transcribed from the official guides and versioned by effective date, catch likely rejections before a claim leaves the hospital.
  • Callbacks and reconciliation. Handle out-of-order and duplicate status callbacks, recover from lost responses, and reconcile remittances against what was billed.
  • Per-facility configuration. Each hospital's payer setup, facility registry code and rule-set version are configured, not hard-coded.

Under the hood

The adapters speak the HIE's REST/JSON APIs (multipart for pre-authorisation) and FHIR R4 for shared health records with per-visit consent tokens. Credentials live in a secret manager, every request and decision is audited, and the request mappers are contract-tested against schemas from the published eClaims and pre-authorisation API specifications. Until a facility completes onboarding, claims can be produced as an audited hand-over pack for the SHA portal.

The result

Hospitals get claims that are checked before submission and payments they can reconcile, instead of rejections discovered weeks later.

Tech stack

Backend
  • TypeScript
  • Node.js
Data
  • MongoDB
Integrations
  • DHA HIE eClaims API
  • FHIR R4
  • OAuth 2.0
Other
  • JSON Schema contract tests

What I did

  • Designed the payer adapter and claims-engine architecture
  • Built the eClaims and pre-authorisation request mappers
  • Transcribed SHA benefit rules into versioned, testable rule sets
  • Built callback handling, reconciliation and remittance matching

Key decisions

  • Payer adapters selected per hospital through configuration
  • Rules versioned by effective date so policy changes don't break history
  • Contract tests against the published API schemas

Challenges

  • Out-of-order and duplicate callbacks from the payer
  • Recovering claims whose submission response was lost
  • Turning prose benefit guides into machine-checkable rules
  • Frequent SHA policy and benefit-package changes

Have a similar problem to solve? Let's talk.

Start a conversation