Ask a FHIR server what it can do and it should answer with a CapabilityStatement, returned from /metadata. Commercial servers generate one by default, listing all the resources, request types, search parameters and operations they support.
As far as the server knows, that list is accurate. Problems arise when there are things happening that the server doesn’t know about.
Here are two ways this happens.
1. A proxy in front of the server
Most production setups route requests through a proxy or gateway. To anyone calling the API, the proxy is effectively the FHIR server. Every request passes through it first.
The proxy often restricts what’s allowed. It blocks resource types the solution doesn’t use, rejects some search parameters and operations, and limits write access to certain resource types or certain users.
The server never sees any of this, so none of it appears in the CapabilityStatement. A solution might expose 15 resource types while its CapabilityStatement claims to support all of them, with full read and write access.
2. Operations the server has never heard of
A custom operation only appears in the CapabilityStatement if the server has an OperationDefinition for it. Without one, the server has no record that the operation exists. This is common when the operation is built in the proxy rather than the server itself.
The people who read a CapabilityStatement are client developers, integration partners and testing tools. Without knowing any better they will assume it to be accurate. If it’s not, they stop trusting the CapabilityStatement and go back to asking by email.
Signs to look for:
- A proxy or API gateway that passes /metadata straight through to the server
- A CapabilityStatement listing far more resource types than the solution uses
- Custom operations with no matching OperationDefinition on the server
- Write restrictions in the gateway that the CapabilityStatement doesn’t mention
- Integration partners asking by email what the API supports
---
I work with teams on a project, retainer or fractional basis. Learn more →