Skip to main content
Glama
nbrain-dicom-sr-ihe-air

nbrain-dicom-sr-ihe-air

nbrain-dicom-sr-ihe-air — Radiology AI DICOM PS3.16 TID 1500, IHE AI Results (AIR) & HL7 FHIR R4 Bidirectional Engine + MCP Server

License: MIT Python 3.10+ MCP Registry

Engineered by Eng. Nadeem Mohamed Badr El-Din at NBrain (منظومة إن برين — nbra.in) to bridge clinical deep-learning models (such as Nabd Masr 14-pathology Thoracic CXR and MedCore CephTrace 29-landmark cephalometrics) into hospital PACS and EHR systems without clinical coding drift.

Standards Implemented

  1. DICOM PS3.5 Section B.2 (2.25.<UUID-int>): Deterministic UUIDv5-backed DICOM UID generation (<= 64 chars, strict no-leading-zero component enforcement).

  2. DICOM PS3.16 Template TID 1500 (Measurement Report) & PS3.18 DICOMweb JSON (application/dicom+json): Encodes AI algorithm provenance (TID 1001 Device Observer), 2D SCOORD bounding boxes / landmarks, calibrated Decimal probabilities, and quantitative angular/linear measurements (SNA, SNB, ANB, FMA, IMPA).

  3. IHE AI Results (AIR) Safety Profile: Enforces CompletionFlag = "COMPLETE" and VerificationFlag = "UNVERIFIED" on autonomous AI outputs so unreviewed machine inferences never masquerade as radiologist-signed reports.

  4. HL7 DICOM-SR to FHIR R4 Implementation Guide: Deterministically translates TID 1500 reports into FHIR R4 transaction Bundles (ImagingStudy + Device + coded Observations with SNOMED-CT / RadLex / LOINC / UCUM + preliminary DiagnosticReport).

Related MCP server: smart-mcp-server

Quick Verification

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

Available Tools

4 tools
build_ihe_air_tid1500_srCInspect

Build a DICOMweb PS3.18 JSON Structured Report (TID 1500 & IHE AI Results AIR) from AI pathology findings and/or cephalometric measurements.

Inputs: patient_id (required), algorithm_name (required), algorithm_version (required), referenced_sop_uid (required), +4 more.

translate_dicom_sr_to_fhir_r4AInspect

Translate an IHE AIR TID 1500 DICOMweb Structured Report into an HL7 FHIR R4 transaction Bundle (ImagingStudy + Device + Observations + preliminary DiagnosticReport).

Inputs: sr_json (required).

validate_ihe_air_srAInspect

Audit a DICOMweb Structured Report JSON against IHE AI Results (AIR) patient-safety rules and DICOM TID 1500 invariants.

Inputs: sr_json (required).

validate_or_mint_dicom_uidAInspect

Validate an existing DICOM UID (PS3.5 <=64 chars, no leading zeros) or deterministically mint a 2.25. UID from a seed.

Inputs: uid, seed.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool occupies a distinct slot in the pipeline: build (findings→SR), validate (audit SR), translate (SR→FHIR), and UID minting/validation. The descriptors clearly disambiguate direction and object of each operation, so misselection is unlikely.

    Naming Consistency4/5

    All names are snake_case with a leading verb (translate_, validate_or_mint_, build_, validate_), which is a predictable pattern. Minor deviations: the compound 'validate_or_mint' verb and varying suffix phrasing (target format spelled out only in some names) make lengths inconsistent.

    Tool Count4/5

    Four tools is a lean but sensible scope for a narrow build-validate-translate pipeline plus a UID helper. The UID utility is somewhat tangential, but nothing feels redundant.

    Completeness4/5

    The build→validate→translate lifecycle is fully covered, with UID handling as a supporting operation. Gaps remain on the output side: there is no validation for the produced FHIR R4 Bundle and no way to fetch or extract measurements back out of an existing SR.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to query, read, download, and move medical imaging data on DICOM servers (PACS, VNA) including patient searches, study retrieval, PDF report extraction, and image transfer to AI endpoints for analysis.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to securely interact with FHIR R4 servers for clinical decision support workflows, including PlanDefinition execution, FHIR resource management, terminology services, and Questionnaire/StructureMap transformation via Matchbox.
      1
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables standardized PACS-AI integration through the Model Context Protocol, providing medical imaging workflows with DICOMweb transport, hierarchical PHI de-identification, and AI model orchestration.
      Apache 2.0