node-wire-fhir-epic
Epic FHIR R4 connector for Node Wire. Lets an agent or app read and search patients, search encounters, and create and search document references in an Epic EHR. It connects as a SMART on FHIR backend service (OAuth 2.0 client credentials with a signed JWT).
Part of Node Wire. Every call runs through the Node Wire runtime, so it gets input validation, retries with a circuit breaker, scope policy, a shared error taxonomy, and OpenTelemetry tracing. A Node Wire host exposes each action over REST, gRPC and MCP.
Install
pip install node-wire-fhir-epic
This pulls in node-wire-runtime. Pre-releases
are published as X.Y.ZbN; install one with pip install --pre node-wire-fhir-epic. To install
every connector at once, use node-wire-connectors.
The wheel is pure Python (py3-none-any) and installs on CPython 3.11, 3.12 and 3.13 on any
OS and CPU.
Actions
The connector registers as fhir_epic. MCP tool names are <connector_id>_<action>, with
dots replaced by underscores.
| Action | MCP tool | What it does |
|---|---|---|
read_patient |
fhir_epic_read_patient |
Reads one Patient by ID ({"resource_id": "..."}) |
search_patients |
fhir_epic_search_patients |
Finds Patients by ID list or by name and birth date |
search_encounter |
fhir_epic_search_encounter |
Finds a patient's Encounters, optionally filtered by status and date |
create_document_reference |
fhir_epic_create_document_reference |
Writes a clinical document (a DocumentReference with attachment) for a patient |
search_document_reference |
fhir_epic_search_document_reference |
Finds DocumentReferences with FHIR search parameters |
Arguments accept common aliases that language models produce, such as patientId for
resource_id. search_encounter requires a patient filter and refuses to call Epic without one.
Configuration
Add the connector to config/connectors.yaml:
connectors:
fhir_epic:
enabled: true
exposed_via: ["rest", "grpc", "mcp"]
auth:
provider: oauth2
grant_method: private_key_jwt
token_url_secret: EPIC_TOKEN_URL
client_id_secret: EPIC_CLIENT_ID
private_key_secret: EPIC_PRIVATE_KEY
kid_secret: EPIC_KID
algorithm: RS384
Secrets are read through the configured secret provider (environment variables by default):
| Variable | Purpose |
|---|---|
EPIC_FHIR_BASE_URL |
Base URL of the Epic FHIR R4 endpoint |
EPIC_TOKEN_URL |
OAuth 2.0 token endpoint |
EPIC_CLIENT_ID |
Client ID of the backend app registered with Epic |
EPIC_KID |
Key ID of the public key registered with Epic |
EPIC_PRIVATE_KEY |
RSA private key (PEM) that signs the client assertion |
Usage
Set NW_ALLOWED_CONNECTORS=fhir_epic (comma-separate several). Node Wire loads only the
connectors listed there, and discovers them through the node_wire.connectors entry point.
A Node Wire host (the REST, gRPC or MCP server, or ConnectorFactory) then builds the connector
from the configuration above. See Use a connector.
Security notes
Logs record the operation mode, HTTP status and result counts, never request parameters or FHIR resource bodies. See Privacy.
Documentation
- Node Wire on GitHub: source, issues and full documentation
- Connector reference
- Configuration
- Error codes
- Changelog
License
Apache-2.0. See LICENSE.
Metadata
Release files for node-wire-fhir-epic 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| node_wire_fhir_epic-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for node_wire_fhir_epic-1.1.0-py3-none-any.whl |
Release files / node_wire_fhir_epic-1.1.0-py3-none-any.whl
| Download URL | node_wire_fhir_epic-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6639dd033f60acc1f5fdd08524c3fd2ec71bf487c3fcb52909034b4c634a524b
|
|
BLAKE2b-256 checksum How to use checksums |
98d399445a1bb92eef8e4e8109022daf884f3b465784fbb63e65ae25668d79d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for node-wire-fhir-epic 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for node_wire_fhir_epic-1.1.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.