Documentation / Pipelines
Egress pipelines
Publish resources to a REST API or a folder when they change.
An egress pipeline is an Apache® NiFi™ flow that checks the raw vault every few seconds and sends every new or changed resource that matches its trigger.
| Flow | What it does |
|---|---|
| Publish to a REST API | Sends each resource as JSON. Always this URL uses POST or PUT; FHIR® style uses PUT to <URL>/<Type>/<id>. Authentication: none, user name and password, or bearer token. Undeliverable resources go to a folder. |
| Publish to a folder | Writes each resource as a JSON file in a folder on the NiFi server, overwriting or keeping versions. |
| Trigger | Publishes when |
|---|---|
| Resources of one or more types change | Any resource of the chosen types is created or updated. |
| Resources of one type that match a search change | A resource of that type that matches the search parameters (FHIR syntax, for example gender=female&_lastUpdated=ge2026-01-01) is created or updated. |
Check trigger validates the trigger and shows how many resources match now. Also send the resources that already exist controls whether the existing matching resources are sent on the first run; otherwise only changes after deployment are sent.
Careful
Deleted resources are not published. The search filter needs the FHIR REST functions in the raw vault and supports the search parameters of the data source plus _id and _lastUpdated. A resource that is committed late with an older load time can be missed.