CapabilityStatement
Overview
The CapabilityStatement resource documents the capabilities (behaviors) of the Netsmart General Purpose R4 FHIR API. It serves as the authoritative source for understanding what resources, operations, search parameters, and extensions are supported by this API implementation.
Important: Always retrieve the current CapabilityStatement before implementing API integrations to ensure you're working with the most up-to-date capabilities.
Resource Schema
The CapabilityStatement follows the HL7 FHIR R4 CapabilityStatement specification.
Key elements include:
software- Information about the Netsmart software implementationrest.resource- Supported FHIR resources and their operationsrest.resource.searchParam- Supported search parameters for each resourcerest.resource.supportedProfile- FHIR profiles supported for each resourceformat- Supported content formats (JSON, XML, etc.)
Supported Profiles
This API supports the following FHIR profiles:
Operations
The CapabilityStatement resource supports the following operations:
Read
This operation retrieves the behaviors of the specified FHIR server. For this operation, there is no authorization requirement. The capability statement for each server is available to view by sending a GET to /metadata
Read Examples
- Production
- Preview
curl -X GET https://fhir.netsmartcloud.com/v4/metadata \
-H "Accept: application/fhir+json"
curl -X GET https://fhirtest.netsmartcloud.com/v4/metadata \
-H "Accept: application/fhir+json"
Examples
Response Structure
The CapabilityStatement response includes detailed information about API capabilities:
{
"resourceType": "CapabilityStatement",
"status": "active",
"date": "2024-01-15T10:30:00Z",
"publisher": "Netsmart Technologies, Inc.",
"software": {
"name": "Netsmart FHIR Server",
"version": "4.0.1"
},
"fhirVersion": "4.0.1",
"format": [
"application/fhir+json",
"json",
"application/fhir+xml",
"xml"
],
"rest": [
{
"mode": "server",
"resource": [
{
"type": "Patient",
"supportedProfile": [
"http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
],
"interaction": [
{"code": "read"},
{"code": "search-type"}
],
"searchParam": [
{
"name": "_id",
"type": "token",
"documentation": "Logical id of this artifact"
}
]
}
]
}
]
}
Integration Patterns
Capability Discovery Workflow
- Retrieve CapabilityStatement - Start every integration by fetching
/metadata - Parse Supported Resources - Extract available resource types from
rest.resource - Identify Operations - Check
interactionarrays for supported operations - Validate Search Parameters - Use
searchParamarrays to build valid queries - Check Profile Support - Verify required profiles in
supportedProfilearrays
Format Negotiation
Use the format array to determine supported content types:
# Request JSON format
curl -X GET https://fhir.netsmartcloud.com/v4/metadata \
-H "Accept: application/fhir+json"
# Request XML format
curl -X GET https://fhir.netsmartcloud.com/v4/metadata \
-H "Accept: application/fhir+xml"
Error Handling
For information about error responses when retrieving the CapabilityStatement, see Common Errors.
Relationships to Other Resources
The CapabilityStatement provides essential information for working with all other API resources:
- Extensions - Extension support is documented in resource profiles
- Resources - All resource capabilities are defined in the CapabilityStatement
- Operations - Custom operations are listed in the CapabilityStatement
Support
For questions about API capabilities or CapabilityStatement interpretation, contact Netsmart support through your designated support channels.