Synthetic monitoring for healthcare APIs means probing FHIR endpoints on a schedule with a request that never asks for a patient. The probe reads metadata, checks the body, and records status and time, so a broken endpoint shows up before users report it.
Digital health founders and hospital CTOs whose apps depend on a FHIR base get the probe design here: what it sends, what it checks, where it runs, and how a failure holds the channel.
What is synthetic monitoring for FHIR endpoints?
Synthetic monitoring for FHIR endpoints is a scheduled probe that calls a FHIR base the way the integration would, without reading patient data. It sends GET [base]/metadata, checks that a CapabilityStatement with the expected fhirVersion comes back, and records status and duration, so a failure shows up before real traffic finds it.
Proving a FHIR endpoint is up without reading a patient?
We send a metadata or empty-result probe and store status and time, with no MRN on the request.
Agnotic Technologies never puts an MRN or any other patient identifier on the probe. A checked response to the metadata call is the proof the endpoint is up.
- Metadata: GET [base]/metadata, or the vendor's CapabilityStatement URL.
- Named search: a query the vendor documents as returning no patient, used only if metadata is not enough.
- Record: HTTP status, duration, endpoint name. Not a Bundle of patients.
A probe is not a load test and not a trace. It sends one small request on a schedule, and a person still acts on the result through the on-call runbook.
What must the probe never send?
The probe must never send a patient identifier, a name, or a production access token that can read a chart. Agnotic uses a monitor credential limited to metadata.
- Forbidden: MRN, name, birth date, any resource read by patient.
- Credential: metadata only, rotated, named on the audit row.
What does FHIR say the metadata call returns?
FHIR R4 defines GET [base]/metadata as the capabilities interaction, and the server must return a resource describing the endpoint's functionality. That makes it the natural probe target: it proves FHIR is answering without touching a patient.
FHIR R4 defines the capabilities interaction as GET [base]/metadata, and says applications SHALL return a resource that describes the functionality of the server end-point.
The same page of the specification says a 404 from GET [base]/metadata means FHIR, or the requested version, is not supported at that URL. A 404 on metadata is therefore not a slow server. It means the probe is pointed at something that is not a FHIR base for that version, often after a URL or proxy change.
The mode parameter can ask for other views, but the specification lets servers ignore it and return the full CapabilityStatement. The probe sends a plain request with no mode, so every server answers it the same way.
Which parts of the CapabilityStatement should the probe check?
The probe should check that the body is a CapabilityStatement and that its fhirVersion matches what the integration expects. A 200 status alone can come from a sign-in page or a proxy error page.
In FHIR R4, a CapabilityStatement must carry status, kind, fhirVersion and at least one supported format.
- resourceType: CapabilityStatement, not HTML and not an OperationOutcome.
- fhirVersion: the version your integration was built against.
- format: includes the format your client sends, such as JSON.
- software: recorded when present, so a vendor upgrade shows up in the log.
Agnotic keeps the expected values in configuration per endpoint, so a sandbox probe and a production probe never share a check by accident.
What counts as a pass, and what counts as a fail?
A pass is a 200 with a CapabilityStatement that matches the expected checks, inside the time limit agreed with the client. Anything else fails, and the result records which kind of failure it was.
- Pass: 200, CapabilityStatement, expected fhirVersion, within the time limit.
- Fail, not FHIR: a 404, or a 200 whose body is not a CapabilityStatement.
- Fail, credential: a 401 or 403, when the endpoint requires a token for metadata.
- Fail, server: any 5xx status, or a timeout.
- Warn: a pass slower than the agreed limit, recorded but not failing the channel on its own.
The time limit comes from the client's own baseline for that endpoint, not a generic figure. A base that is always slow needs a different limit from one that is usually quick.
Should the probe carry a credential?
The probe should carry no credential if the server serves metadata without one, and only a narrow monitor credential if it does not. A production token that can read charts never goes on a probe.
45 CFR 164.312(a)(1) requires technical policies and procedures that allow access to systems holding electronic protected health information only to persons or software programs that have been granted access rights.
Where the vendor requires a token for metadata, Agnotic registers a separate monitor client, limits it to what the probe calls, and rotates it on the client's schedule. Its name appears on every audit row it creates.
Where should the probe run from?
The probe should run from the same network path the real integration uses, and optionally from a second point outside it. One location says whether the endpoint is up for your integration; two say which side the fault is on.
- Inside path: the integration host or the same VPN, so firewall and certificate problems show up.
- Outside path: a second runner on a different network, for comparison only.
- Both fail: the fault is likely at the vendor or the endpoint.
- Only inside fails: the fault is likely your network, certificate store or proxy.
Agnotic labels every result with its runner, so comparing the two paths takes one query rather than a search through logs.
How should a failed probe fail the channel?
A failed probe should set the endpoint state to failed, so the integration queues outbound work instead of sending into an endpoint that cannot answer. Paging stays with the runbook.
- Step 1, record: the probe writes the failure class and the time.
- Step 2, confirm: the number of consecutive failures agreed with the client sets the endpoint state to failed.
- Step 3, hold: the channel checks that state before sending, and queues instead.
- Step 4, recover: the first passing probe clears the state, and the queue drains in order.
Agnotic does not fail the channel on a single miss. One dropped request should not hold a results queue.
Planned maintenance is the exception to plan for. When the vendor announces a window, the probe keeps running and recording, and the client decides in advance whether the channel holds or keeps trying during it.
Which endpoints need their own probe?
Every FHIR base the integration calls in production needs its own probe, because one healthy base says nothing about another. Multi-tenant vendors often give each customer a separate base URL.
- One probe per customer base URL, named after the customer and the environment.
- Sandbox probes kept apart from production, each with its own expected fhirVersion.
- A note of which channels depend on each base, so a failed probe holds the right queues.
- Retired bases removed from the schedule on the day they leave the configuration.
Agnotic builds the probe list from the same configuration that holds the integration's endpoints. A base added to the integration gets its probe in the same change.
Each probe's results record what is needed to see a trend for that endpoint, and nothing that could identify a patient. The response body is checked in memory and then discarded, never written to disk.
- Endpoint name and environment.
- Time sent, duration and HTTP status.
- Failure class, from the pass and fail rules.
- fhirVersion and software version seen, when present.
- Runner location: inside or outside path.
A worked example: a FHIR base behind a hospital proxy
A worked example: an app reads from a hospital's FHIR base through the hospital's reverse proxy. The first version of the probe only checked for a 200 status, and it kept passing.
One night the proxy's session settings changed, and requests started getting a 200 with an HTML sign-in page. The app's real calls failed, while the status-only probe stayed green.
Agnotic changed the probe to check resourceType and fhirVersion. The next run failed with the class 'not FHIR', the channel queued its work, and the runbook paged the named primary.
The fix was one change to the check, not a new monitoring tool.
How do you test the probe itself?
You test the probe by making it fail on purpose, once for each failure class, in a non-production environment. A probe that has never failed has never been tested.
- Wrong path: point it at a URL that returns 404.
- Wrong body: a stub that returns 200 with HTML.
- Revoked credential: a disabled monitor token, where one is used.
- Server error: a stub that returns 503 and then recovers, to check the queue drains.
Agnotic repeats these tests after any change to the probe or to the proxy in front of the endpoint, because either can change what a failure looks like.
What are the common mistakes with synthetic monitoring?
The common mistakes with synthetic monitoring either leak data or hide a failure. Agnotic checks for these before a probe goes live.
- Probing a test patient in production, which is still a patient read.
- Storing response bodies for later debugging.
- Treating any 200 as a pass.
- Reusing the integration's own production token on the probe.
- Running only from an outside monitoring network, so firewall faults are missed.
- Leaving a retired base on the schedule, so its failures teach people to ignore the probe.
How can Agnotic help with synthetic monitoring?
Agnotic builds the probe, its checks and the endpoint state for the client's FHIR integration, from the same configuration that lists the endpoints. Failures reach a person through the client's existing on-call rota and runbook.
Metadata, status, time
A probe with no patient, checked against the expected CapabilityStatement, wired into interface monitoring.
Related reading on Agnotic
More on FHIR integration, alerting and interface monitoring.


