Metadata-Version: 2.4
Name: hl7-fhir-bridge-mcp
Version: 0.1.1
Summary: HL7 v2 / FHIR healthcare-messaging bridge to ONE OS / CSOAI — parse, map HL7v2->FHIR, validate, govern PHI (HIPAA/MDR). CSOAI Layer-0 legacy-bridge family.
Author: CSOAI-ORG
License: MIT
License-File: LICENSE
Requires-Python: >=3.10
Requires-Dist: mcp>=1.28.0
Requires-Dist: pydantic>=2.0.0
Description-Content-Type: text/markdown

# HL7 / FHIR Bridge MCP

mcp-name: io.github.CSOAI-ORG/hl7-fhir-bridge-mcp

Part of the **CSOAI Layer-0 legacy-bridge family** (sibling of `cobol-bridge-mcp`). Bridges healthcare legacy messaging (HL7 v2 pipe-delimited) and modern **FHIR** to ONE OS / CSOAI, and **governs PHI**.

## Tools
- `parse_hl7v2(message)` — message type + key patient fields from a pipe-delimited HL7 v2 message.
- `hl7_to_fhir(message)` — map HL7 v2 → a minimal FHIR R4 message Bundle (Patient + MessageHeader).
- `validate_fhir(resource_json)` — well-formed JSON + resourceType + basic shape.
- `govern_phi(message_or_fhir)` — detect PHI, surface HIPAA/MDR/GDPR-Art.9 risk + data-minimisation advice; attestable on the CSOAI ledger.

## Run
```bash
pip install -e .
python server.py        # stdio MCP server
```

The win: legacy HL7 / FHIR clinical data → CSOAI PHI governance/attestation → ONE OS. Pairs with `hipaa-compliance-mcp` + `healthcare-ai-governance-mcp` + `eu-ai-act-compliance-mcp` (Annex I medical devices).
