🏥
📚 Complete Guide

NPHIES Integration Toolkit

Everything You Need to Integrate Your Hospital/Clinic with NPHIES

📄 22 pages · ⏱️ 28 min read · 🆓 Free

A comprehensive technical guide for implementing NPHIES integration in a Saudi hospital or clinic. Covers FHIR R4, eligibility check, pre-authorization, claim submission, payment reconciliation. With code examples.

1

The 4 Core NPHIES Transactions

1. Eligibility Check

Verify patient is covered before providing service.

POST /CoverageEligibilityRequest
{
  "resourceType": "CoverageEligibilityRequest",
  "patient": "Patient/12345",
  "insurer": "Organization/BUPA",
  "servicedDate": "2026-05-14",
  ...
}

2. Pre-Authorization

For major procedures before performing them.

POST /Claim?use=preauthorization
{
  "resourceType": "Claim",
  "use": "preauthorization",
  ...
}

3. Claim Submission

After service, submit the claim.

POST /Claim
{
  "resourceType": "Claim",
  "patient": "Patient/12345",
  "diagnosis": [{...ICD-10 code...}],
  "item": [{...CPT codes + drugs...}],
  ...
}

4. Payment Reconciliation

Receive remittance from payer.

GET /PaymentReconciliation?_id=PR-12345
2

Setup Step by Step

  1. Register hospital/clinic in CCHI portal
  2. Obtain Provider ID from NPHIES
  3. Generate X.509 certificate for digital signature
  4. Register certificate in NPHIES portal
  5. Test in NPHIES Sandbox environment
  6. Setup ICD-10 mapping table (if running ICD-9)
  7. Setup SFDA drug codes database (40K+ drugs)
  8. Setup HL7 → FHIR converter (if LIS/RIS present)
  9. Test end-to-end (eligibility → claim → payment)
  10. Go-live
3

Essential Mapping Tables

ICD-9 → ICD-10

ICD-9ICD-10Description
250.00E11.9Type 2 diabetes without complications
401.9I10Essential hypertension
786.50R07.9Chest pain unspecified
......14,000+ codes

Full mapping table available from ZATCA + WHO. Softloomer NPHIES module comes with 14K+ mappings preloaded.

SFDA Drug Codes

SFDA IDDrugStrength
10001Panadol500mg
......40K+ drugs
4

Common Errors and Solutions

Error 401: Authentication Failed

Cause: Certificate expired or wrong client_id. Fix: renew certificate + verify NPHIES portal registration.

Error 422: Validation Failed

Cause: FHIR resource format wrong. Fix: validate against NPHIES FHIR Implementation Guide.

Error 429: Rate Limit Exceeded

Cause: More than 100 requests/minute. Fix: implement queue + exponential backoff.

Claim Rejected: Missing ICD-10

Cause: Diagnosis not in ICD-10 format. Fix: mapping table conversion before submission.

5

Performance Tips

  • Cache eligibility results for 24 hours — they won't change
  • Batch claim submission — submit in chunks of 100 instead of one by one
  • Async processing — pre-authorization takes 1-3 days, do polling instead of sync waiting
  • Webhook integration — NPHIES supports webhooks for payment events
  • Monitoring — track submission success rate, rejection reasons, processing time
📬

Get new guides first

Subscribe to Softloomer newsletter. New technical guides monthly, no spam.

Need help implementing?

We're a certified Odoo Partner serving the Gulf. Book a free 30-minute discovery session.

📅 Book Session
WhatsApp