Skip to main content
Glama
nbrain-saudi-nphies-fhir

nbrain-saudi-nphies-fhir

nbrain-saudi-nphies-fhir — Saudi CHI NPHIES HL7 FHIR R4 Claim & Clinical Validator + MCP Server

Engineered by Eng. Nadeem Mohamed Badr El-Din at NBrain (منظومة إن برين — nbra.in).

nbrain-saudi-nphies-fhir bridges Clinical Medical AI and Saudi Government Compliance by providing a fast, zero-dependency offline validator, synthetic test-bundle generator, and Model Context Protocol (MCP) server for Saudi Arabia's National Platform for Health and Insurance Exchange Services (نفيس — NPHIES, Council of Health Insurance CHI):

  • HL7 FHIR R4 (4.0.1) Message Bundle Conformance: Verifies Bundle.type == "message", entry[0] as ksa-message-header, NPHIES ksa-message-events coding (claim-request, priorauth-request, eligibility-request), and mandatory nphies.sa StructureDefinition profile URLs (ksa-institutional-claim, ksa-oral-claim, ksa-professional-claim, ksa-vision-claim).

  • Saudi National ID (1XXXXXXXXX) & Iqama (2XXXXXXXXX) Luhn Checksum Validator: Exact 10-digit Saudi Civil/Residency Modulo-10 validation.

  • Clinical Radiology, ICD-10-AM & Dental FDI (11–48 / 51–85) Coding Checks: Catches missing ICD-10-AM diagnoses, invalid dental FDI tooth numbers on oral-claim bundles, and missing Patient / Organization / Coverage references before NPHIES sandbox submission.

  • Zero-Drift Decimal (SAR) Claim Line Reconciliation: Audits every Claim.item (quantity × unitPrice × factor + tax == net) against Claim.total.value to prevent financial rejection errors (BV-00142).

Try Live in Browser (Zero Signup)

Related MCP server: Claims Quality MCP Server

Run Tests

PYTHONPATH=src python -m unittest discover -s tests -v

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables progressive discovery and management of FHIR healthcare resources through intent-based grouping, with support for creating/validating resources, converting between formats, and transforming medical PDFs to FHIR DocumentReference resources.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible AI clients to validate healthcare claims data quality by running completeness, integrity, and temporal checks on CSV files via five callable tools, including profiling and full scans.
      -