LogoFHIR-FLI

FHIR ANT Capabilities

FHIR ANT implements a broad set of the FHIR R4 specification, as R4B (4.3.0). Here's what's supported. The server's own CapabilityStatement (GET /metadata) is the full list.

FHIR REST API#

CRUD Operations#

OperationMethodEndpointNotes
Create POST /<type> Auto-generates ID if not provided
ReadGET/<type>/<id>
Update PUT /<type>/<id> Auto-versions with timestamp; creates the resource if the id is new
Patch PATCH /<type>/<id> JSON Patch (RFC 6902); FHIRPath Patch is refused (415)
DeleteDELETE/<type>/<id>
Conditional Create POST /<type> Via If-None-Exist header
Version-aware Update PUT /<type>/<id> Via If-Match header (412 on a version mismatch)
Conditional Update PUT /<type>?<criteria> Via search criteria
Conditional Delete DELETE /<type> Via query parameters
FeatureDetails
GET searchGET /<type>?param=value
POST searchPOST /<type>/_search
System search GET /?<params>, POST /_search (requires _type)
String paramsStarts-with matching
Token params system|code , :text , :in , :not-in , :of-type modifiers
Reference params Direct and chained (.), reverse chaining (_has)
Date params eq , ne , lt , gt , le , ge , sa , eb , ap prefixes
Number paramsNumeric prefixes
Quantity paramsValue, system, code
URI params:above, :below modifiers
Composite paramsMultiple components
_include Forward includes with :iterate and wildcard (*)
_revinclude Reverse includes with :iterate and wildcard (*)
_sortSingle and multi-field sorting
_count / _offsetPagination
_totalnone, estimate, accurate
_summary true, false, text, data, count
_elementsReturn only specified fields (adds SUBSETTED tag)
_filterFilter expressions
_contained false only (contained resources are not indexed)
Prefer: handling=strict Unknown parameters are reported instead of ignored

History#

EndpointDescription
GET /<type>/<id>/_historyInstance history
GET /<type>/<id>/_history/<vid>Version read
GET /<type>/_historyType history
GET /_historySystem history
_since / _at parametersFilter by date

Bundles#

  • Transaction bundles — atomic, all-or-nothing with urn:uuid resolution. Entries are processed in the order the spec sets (DELETE, then POST, then PUT/PATCH, then GET), and two entries naming the same resource fail the transaction
  • Batch bundles — independent operations
  • Full urn:uuid cross-reference resolution within transactions, and conditional references (Patient?identifier=...)
  • A transaction's plain creates are written to the store together, up to 100 at a time; a create that reads first (a conditional create, a conditional reference) still sees every write before it

Compartments#

Compartment$everythingCompartment Search
PatientYesYes
EncounterYesYes
PractitionerYesYes
RelatedPersonYesYes
DeviceYesYes

Operations#

OperationEndpointDescription
$validate POST /$validate, POST /<type>/$validate Resource validation
$everything GET /<type>/<id>/$everything Patient/compartment everything
$document GET /Composition/<id>/$document Generate document Bundle
$meta GET /<type>/<id>/$meta Get resource metadata
$meta-add POST /<type>/<id>/$meta-add Add metadata
$meta-delete POST /<type>/<id>/$meta-delete Remove metadata
$fhirpath GET/POST /$fhirpath Evaluate FHIRPath expressions
$transform POST /$transform FHIR Mapping Language transforms
$cqlPOST /$cqlEvaluate CQL
$evaluate POST /Library/<id>/$evaluate, POST /Library/$evaluate Evaluate a CQL Library (stored, by canonical URL, or inline)
$immds-forecast POST /$immds-forecast Immunization forecast, CDC CDSi logic
$immds-forecast-who POST /$immds-forecast-who Immunization forecast, WHO EPI logic
$reindex POST /$reindex, GET /$reindex-status Rebuild the search index after a SearchParameter is added (asynchronous)
$backup POST /$backup Export all data, encrypted under a passphrase you supply (an encrypted SQLite file, or with format=bundle an encrypted Bundle)
$restore POST /$restore Import an encrypted backup or a plain FHIR Bundle

Terminology#

OperationEndpoint
$validate-code GET/POST /CodeSystem/<id>/$validate-code
$validate-code GET/POST /ValueSet/<id>/$validate-code
$lookupGET/POST /CodeSystem/<id>/$lookup
$expandGET/POST /ValueSet/<id>/$expand
$subsumesGET/POST /CodeSystem/<id>/$subsumes
$translateGET/POST /ConceptMap/<id>/$translate
$preferred-idGET/POST /NamingSystem/$preferred-id

Instance-level and type-level variants are both supported.

Bulk Data Export#

EndpointDescription
GET /$exportSystem-level export
GET /Patient/$exportPatient-level export
GET /Group/<id>/$exportGroup-level export
GET /$export-poll-status/<id>Poll export status
DELETE /$export-poll-status/<id>Cancel export
GET /$export-file/<id>/<file>Download NDJSON file

Supports _type, _since, _typeFilter, and _outputFormat parameters. _elements, patient and includeAssociatedData are refused (400) unless the request sends Prefer: handling=lenient, which ignores them. Export files are encrypted at rest on the server.

Subscriptions#

R4 Subscriptions with the rest-hook and websocket channel types. Notifications are sent after the write commits. For a websocket subscription, connect to GET /ws and send bind <id>.

File Scanning#

With --clamd-host set (CLI and Docker), every file a client's resource carries is scanned by ClamAV before it is stored; a match is refused (422), and a file the scanner cannot answer for is refused (503). $restore is not scanned yet. The app has no scanner.

Content Negotiation#

  • Accept: application/fhir+json (default). JSON only: XML is refused (406)
  • _format parameter
  • _pretty=true for formatted output
  • Prefer: return=minimal, return=representation, return=OperationOutcome, respond-async
  • If-Modified-Since, If-None-Match, If-Match headers

Metadata#

  • GET /metadata — Full CapabilityStatement with all supported resources, search parameters, operations, and security information
  • GET /.well-known/smart-configuration — SMART on FHIR discovery document
  • GET /health — Server health check (status, uptime, version, database connectivity)