CapabilityStatement
Overview
The CapabilityStatement documents "a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation". This resource serves as the definitive source of truth for API capabilities.
Resource Schema
The CapabilityStatement resource includes key metadata about the FHIR server:
{
"resourceType": "CapabilityStatement",
"id": "us-core-server",
"status": "active",
"date": "2024-01-15",
"publisher": "Netsmart Technologies, Inc.",
"software": {
"name": "Netsmart FHIR Server",
"version": "1.1.15"
},
"fhirVersion": "4.0.1",
"format": ["application/fhir+json", "application/fhir+xml"],
"rest": [{
"mode": "server",
"resource": [
// Supported resources with operations and search parameters
]
}]
}
Operations
Read
Retrieves the CapabilityStatement for this FHIR server. No authorization is required for this operation.
HTTP Method: GET
URL: /metadata
Examples
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/uscore/v1/metadata \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/uscore/v1/metadata \
-H "Accept: application/fhir+json"
Integration Patterns
Discovering API Capabilities
- Retrieve CapabilityStatement - Always start by fetching
/metadata - Extract Supported Resources - Check
rest.resourcearray for available resources - Validate Operations - Verify supported operations for each resource type
- Check Search Parameters - Review
searchParamarrays for supported search criteria
Related Resources
The CapabilityStatement references all supported resources in this API. See the Resources page for detailed documentation of each resource type.
Supported Profiles
Profiles supported by this API are defined in the CapabilityStatement supportedProfile arrays. Common profiles include:
Error Handling
For common errors and troubleshooting guidance, see Common Errors.
Supported Formats
This API supports the following response formats:
application/fhir+json(default)application/fhir+xmlapplication/jsonapplication/xml