Ingress pipelines
Deploy an Apache® NiFi™ flow that loads data into the raw vault.
Choose Add Ingress, pick the flow, the data source (and what to serve) and the integration server in the pipeline editor, and fill in the settings. Deploy uploads the flow to NiFi and fills in its parameters; tick Start after deploying to start it at once.
The editor
The page for Add Ingress (and Edit and Duplicate) shows the pipeline as a row of connected steps:
| Step | Choose |
|---|---|
| Flow | What the pipeline does. Each flow is a tile with a short description. The flow of an existing pipeline cannot be changed. |
| Data source | The vault the pipeline is connected to (with its FHIR® version). |
| Serve | Only for the FHIR REST API facade: serve the raw vault, the MDM golden records or an anonymized vault. For an anonymized vault you also choose which one. |
| Integration server | The Apache NiFi server that runs the flow, with its status. Servers are added in Pipelines > Settings. |
Select a step to open its choices as tiles; picking one moves on to the next step. A step with nothing chosen yet has a dashed outline. Once the pipeline is deployed, its data source and server are locked until you remove it from the server. Below the steps are the name, the settings of the flow in groups, and Advanced: database connection, a section that is closed until you open it. It holds the database host, port, user and password that NiFi uses; leave them blank to connect the way the data source does. The JDBC driver is not asked here: it is set once for all pipelines in Pipelines > Settings > Database drivers.
| Flow | What it does |
|---|---|
| FHIR REST API facade | A FHIR REST endpoint with the full RESTful API of the data source's FHIR version: read, vread, create, update, patch, delete, history, conditional requests, batch and transaction, search on every official search parameter (modifiers, chains, _has, _filter, _include, paging), compartments, $everything, $validate, $meta, asynchronous requests (Prefer: respond-async) and subscriptions (rest-hook). It stores everything in the raw vault and keeps a search index there, so searches stay fast on large vaults. Works on FHIR R4, R4B and R5 data sources. Serve chooses the raw vault, the MDM golden records or an anonymized vault made from the data source (the golden records and the anonymized vault are read only: MDM and the anonymization pipeline maintain them); Read only makes the raw-vault endpoint refuse writes (405). Deploy installs or updates the REST functions in that schema unless you untick the option. To run the same flow several times with different settings, add one pipeline per deployment or use Duplicate; ports and folders already in use are refused. FHIR server id * shows every resource in the data source; one id shows only the resources stored under it. |
| FHIR JSON API | An HTTP endpoint that accepts FHIR resources and Bundles as JSON. Anything that cannot be loaded goes to a reject folder. |
| Bulk NDJSON files | Scans a folder on the NiFi server for .ndjson, .jsonl and gzip files, loads every line and moves finished files to a done folder. |
| Bulk extract from a FHIR server | Reads from any FHIR server with Basic authentication. Read from the server lists its resource types; choose all or some, add optional search criteria (for example _lastUpdated=ge2024-01-01). Uses $export when the server offers it, otherwise paged search; downloads and loads run in parallel (1 to 32 threads). FHIR server type (Generic or Smile CDR) and, for Smile CDR, the optional Admin API port tell the Monitor page what it can read: see Monitor: FHIR servers. |
| Setting | Meaning |
|---|---|
| Advanced: database connection | Closed by default. Blank host, port, user and password use those of the data source. A dedicated database account with only the rights the flow needs is better. Use the host name as NiFi reaches it when the data source says localhost. |
| JDBC driver | Set once for all pipelines in Pipelines > Settings > Database drivers: the full path of the PostgreSQL® JDBC jar on the NiFi server. The suite cannot check that it exists. |
| Folders | Paths on the NiFi server, not on your computer. |
| Button | Does |
|---|---|
| Deploy | Uploads the flow and sets its parameters. A previous deployment of the same pipeline is replaced. |
| Start / Stop | Starts or stops the flow on NiFi. |
| Refresh | Reads the current state from NiFi. |
| Remove from server | Stops and deletes the flow and its parameter context on NiFi. |
| Delete | Deletes the pipeline (only when it is not deployed). |
The database password is given to NiFi as a sensitive parameter. A server that cannot be reached, a wrong driver path or a port that is already used shows as failed or invalid with NiFi's message.