Documentation / Pipelines

Monitor: FHIR® servers

Availability and response time of the FHIR servers of the bulk pipelines, and the Smile CDR Admin API.

The FHIR servers tab of the Monitor page shows the source servers of Bulk extract from a FHIR server pipelines and the target servers of Bulk push to a FHIR server pipelines: one entry per base URL, however many pipelines use it, with links to those pipelines. The suite polls each one in the background (every 30 seconds unless set otherwise; 5 to 3600) with the user name and password of one of its pipelines, a deployed one first, and keeps the last 480 samples in memory. The time range and live updates of the page apply.

FHIR server typeWhat the suite reads
GenericThe capability statement (/metadata): whether the server answers, its response time, the software and its version, the FHIR version, the number of resource types and whether it offers $export. The full statement is read every 5 minutes, a summary in between.
Smile CDRThe same, and with an Admin API port also the Smile CDR JSON Admin API on that port of the same host, with the same http or https and the same user: the Smile CDR and HAPI FHIR versions, the nodes and their modules with their status, every health check, the node's metrics (database connections, active searches, HTTP responses) and the batch jobs (bulk export, bulk import, reindex and others).
TabShows
OverviewWhether the FHIR endpoint is up and the share of polls it answered, response time, software, FHIR version, resource types and $export; for Smile CDR also the modules started, health checks, database connections, active searches and running batch jobs. Charts of response time (FHIR endpoint and Admin API), availability, HTTP responses per minute (2xx, 4xx, 5xx), database connections, searches and batch jobs, and failing health checks.
Nodes and modulesSmile CDR: every node and module with its type, status, port and health checks. Stopped modules are dimmed.
Health checksSmile CDR: every health check with its node, module, result and message, failing ones first.
MetricsSmile CDR: per module the database connections, active searches and HTTP responses (totals and per minute). Below, every metric of the node drawn by its kind, over the time range of the page: gauges as dials (from 0 to the highest value in the range, or to 100 % for a percentage) with a trend line; meters as events per minute with the total; timers as mean and 95th percentile duration with calls per minute; counters as change per minute; histograms as mean and 95th percentile. Smile CDR names its metrics <group>/<metric>: the Group of metrics pull-down chooses the group to show (or all groups), and each chart is titled with the part after the /. Each kind shows 24 at first; All metrics as a table lists the current values. The history of the metrics is kept in memory with the other samples.
Batch jobsSmile CDR: the latest batch jobs of each module that has them: type, status, created, started, ended, records processed, errors and the time left of a running job.

Set the server type and the Admin API port in the pipeline, under Source FHIR server or Target FHIR server. The flows themselves do not use them. The Smile CDR user needs the ACCESS_ADMIN_JSON, VIEW_MODULE_STATUS, VIEW_METRICS and VIEW_BATCH_JOBS permissions; a part the user may not read is named above the tabs and the other parts are still shown.

Users who are not administrators see only the servers of pipelines on data sources they may open. Poll this server, the interval and Poll now need the pipelines:manage permission.

Note

The FHIR server and its Admin API must be reachable from the suite server, which may sit in another network than NiFi™. User names and passwords stay on the suite server; they are never sent to the browser.

localhost: in the Docker installation the suite and NiFi each run in their own container, where localhost is that container, not your computer. For a FHIR server on the same computer, use host.docker.internal in the base URL (for example http://host.docker.internal:8000/). When a base URL on localhost does not answer, the monitor tries 127.0.0.1, [::1] and, in a container, host.docker.internal, and says which one answered.