API Documentation
The FHIR Validation Service API validates FHIR resources (STU3, R4, R4B, R5) against the core specification or one included Implementation Guide (IG) package, and manages stored IG packages and validator contexts. This page is based on the OpenAPI definition (API version 1.0.0), which the documentation site also renders as a full reference; when the two disagree, the OpenAPI file wins.
Base URL: http://localhost:8880 (replace with your server). To install the service, see Installation Guide.
Conventions
- Errors are RFC 9457 problem documents (
application/problem+json), see Problem. Every 4xx from validation is problem JSON, whateverAcceptasks for. - Correlation id: every response carries an
X-Request-Idheader. Error bodies repeat it ascorrelationId. - FHIR version path parameter (
{version}):STU3,R4,R4BorR5, case-insensitive. A deployment may serve fewer (FV_ENABLED_FHIR_VERSIONS);GET /healthlists the served versions. Anything else is rejected with anunsupported-fhir-versionproblem. - IG package references in query parameters are
name#version. URL-encode#as%23: an unencoded#is cut off by the client. - Propagation: administrative changes are committed to the shared database and applied by every instance within the propagation window, without restarts.
- Overload: when an instance is at its admission limit, or not ready, it answers 503 with a
Retry-Afterheader. Retry after that many seconds, on the same or another instance. - Limits: a request body may be at most
FV_HTTP_MAX_BODY_MB(20 MB by default). IG uploads are limited instead byFV_PACKAGE_MAX_COMPRESSED_MB(50 MB by default). - Rate limits: validation requests are limited per API key and per organisation, per rolling minute. Above
a limit the answer is 429
rate-limitedwithRetry-After; responses to a limited key carryRateLimit-*headers. See API Throttling and Rate Limits.
Authentication
API keys are sent as Authorization: Bearer <key>. Every key belongs to an organisation.
| Operations | Key required |
|---|---|
Validation and package reads (/dependencies, /conformance) |
a VALIDATE or ADMIN key |
Upload or register an IG, POST/PATCH/DELETE /{version}/validator, PATCH /igs/{name}/{version} |
an ADMIN key, from an allowed network when FV_AUTH_ADMIN_CIDRS is set |
| Health and metrics | none |
In the tables below, validate means a VALIDATE or ADMIN key, and admin an ADMIN key.
/metrics and /health need no key and show package names, revisions and counts. If that matters in your
deployment, restrict them at the reverse proxy to your monitoring network.
- 401
unauthorized: no valid key (missing, malformed, unknown, revoked or expired); the response doesn't say which, and carriesWWW-Authenticate: Bearer. - 403
forbidden: the key's role doesn't allow the operation, the key's organisation is deactivated, an ownership transfer by a caller that isn't a system organisation administrator, or (administrative operations) a client address outsideFV_AUTH_ADMIN_CIDRS.
Organisations and sharing. Stored IG packages and validator contexts are owned by an organisation and are either
shareable (usable by every caller) or private (the owner and the system organisation only). A package or context the
caller may not use is answered exactly like one that does not exist (404 package-not-found); a dependency the
caller may not use gives 424 dependency-not-found without naming it.
Public mode. An operator can turn access control off for a whole deployment (FV_GLOBAL_DISABLED_ACL_SECURITY).
No operation then needs a key and the Authorization header is ignored: validation and package reads run as the
trial validator key, administrative operations as the system administrator key. The admin network allowlist still
applies. Packages and contexts are always stored as shareable (shareable: false is ignored with a warning in
warnings), and GET /health reports security.aclSecurity: "disabled".
Endpoints
| Method | Path | Purpose | Auth |
|---|---|---|---|
| GET | /health |
Detailed health report | none |
| GET | /health/liveness |
Liveness probe | none |
| GET | /health/readiness |
Readiness probe | none |
| GET | /metrics |
Prometheus metrics | none |
| POST | /{version}/validate |
Validate a FHIR resource | validate |
| POST | /{version}/validator |
Include a stored IG version (build a validator context) | admin |
| PATCH | /{version}/validator |
Change sharing, ownership or terminology of a context | admin |
| DELETE | /{version}/validator |
Exclude an included IG version | admin |
| POST | /igs/upload |
Upload and store an IG package | admin |
| POST | /igs/register |
Fetch and store an IG package | admin |
| PATCH | /igs/{name}/{version} |
Change sharing or transfer ownership of a stored package | admin |
| GET | /igs/{name}/{version}/dependencies |
Dependencies of a stored IG package | validate |
| GET | /igs/{name}/{version}/conformance |
File listing of a stored IG package (deprecated) | validate |
Health and metrics
GET /health
Detailed health report: database connectivity, the readiness report, the terminology allowlist state, the served FHIR
versions and inactive contexts, and the access control state. Operation id healthApiHealth.
| Status | Body |
|---|---|
| 200 | HealthResponse: service is healthy |
| 503 | HealthResponse: service is unhealthy |
GET /health/liveness
Liveness probe: reports only that the process is alive, and never depends on the database or validators. Operation id
healthApiLiveness.
| Status | Body |
|---|---|
| 200 | {"status": "UP", "timestamp": 1761465600000} (timestamp is int64 epoch milliseconds) |
GET /health/readiness
Readiness probe. 200 when this instance can serve traffic: the database is reachable, every enabled FHIR version
has a usable validator (none out of date), and the instance is not draining. Otherwise 503 with the reasons.
Use it for readiness probes and load balancer health checks. Operation id healthApiReadiness.
| Status | Body |
|---|---|
| 200 | ReadinessResponse: ready |
| 503 | ReadinessResponse: not ready, see reasons |
GET /metrics
Prometheus metrics in the text exposition format (text/plain). Operation id metricsApiScrape. Among them:
- validation:
fv_validations_total(by outcome),fv_validation_seconds,fv_validation_pending,fv_validations_tx_source_total(by terminology source) - validator contexts:
fv_validator_ready,fv_validator_contexts,fv_snapshot_package_size_bytes,fv_config_revision - shared package definitions:
fv_packages_shared_entries,fv_packages_shared_expanded_bytes,fv_packages_shared_retained_estimate_bytes,fv_packages_shared_lookups_total - terminology code cache:
fv_tx_code_cache_size,fv_tx_code_cache_misses_total,fv_tx_code_cache_invalidations_total
Scrape the endpoint for the full set.
Validation
POST /{version}/validate
Validate a FHIR resource against exactly one included IG package (the ig parameter), its dependencies and the core
specification, or against the core specification alone when ig is absent. Validation never builds a context: name
an IG version that was included with POST /{version}/validator. Operation id
validationApiValidate.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
version |
path | yes | FHIR version: STU3, R4, R4B or R5 |
ig |
query | no | The one IG package to validate against: name#version, name#latest or name (at most 256 characters). Without a version, or with latest, the highest included version you may use is chosen and the response reports it. A version series such as name#1.2.x is rejected (400). The trial validator key, and every caller in public mode, can name shareable packages only |
profile |
query | no | Comma-separated canonical URLs of profiles to validate against, in addition to meta.profile. Each must be defined by the chosen ig package, its dependencies or the core specification (the core specification only when ig is absent), and is matched exactly against url or url\|version. Profiles are never downloaded. At most 10 distinct profiles, each at most 1024 characters |
tx |
query | no | Terminology server for this request only: an http(s) base URL, at most 512 characters, without query, fragment or user info. It must be on the HL7 terminology registry's allowlist for this FHIR version; no call is made to a server that is not allowed. The resource itself is never sent to the server. Not allowed with txMode=none |
txMode |
query | no | Terminology mode for this request only: none, server or ecosystem (exact lower-case values). Absent: the context's mode, or server when only tx is given |
Request body (required): the resource, as application/json or application/fhir+json, or as
application/xml, application/fhir+xml or text/xml.
Response format follows the Accept header:
Accept |
Response body |
|---|---|
absent, */* or application/json |
ValidationResponse |
application/fhir+json |
FHIR OperationOutcome (JSON) |
application/fhir+xml or application/xml |
FHIR OperationOutcome (XML) |
Response headers (200)
| Header | Description |
|---|---|
X-Validation-Context |
The IG package (name#version) the result came from, or base for the core-only context |
X-Validation-Context-Owner |
Short name of the organisation owning the context (the system organisation for base) |
X-Validation-Context-Shareable |
true or false |
X-Tx-Mode |
Terminology mode used: none, server or ecosystem |
X-Tx-Server |
Base URL of the terminology server used. For ecosystem, the tx value or the context's server; absent when the registry's default server is used, and for none |
X-Tx-Source |
request (tx or txMode given) or context (the context's default) |
RateLimit-Limit |
The per-minute limit (the key's or its organisation's) that leaves the least room. Only for a rate-limited key, and on every response to it, not only 200 |
RateLimit-Remaining |
Requests still allowed in the current rolling minute, after this one |
RateLimit-Reset |
Seconds until the allowance next grows |
Terminology. A context whose terminology mode is server or ecosystem checks codes that can't be decided from
its packages with an allowlisted terminology server. A code that could not be checked (server unavailable, time budget
used up, no permitted server) is reported as a warning, never an error, and the answer is still 200.
The context's setting is the default. tx and txMode choose another setting for one request, without a rebuild.
With D the context's setting (none for the base context and for a context without one):
| Request | Setting used |
|---|---|
| neither | D |
only tx |
D's mode if it is server or ecosystem, otherwise server; with server tx |
txMode=server |
server tx, otherwise D's server (400 invalid-request when there is neither) |
txMode=ecosystem |
the registry's routing, with tx (or D's server, if D is ecosystem) as the default server |
txMode=none |
no terminology server (400 invalid-request together with tx) |
Responses
| Status | Meaning |
|---|---|
| 200 | Validation completed, whether the resource is valid or not: check valid or the OperationOutcome issues |
| 400 | invalid-resource (the body is not FHIR, with issues); invalid-request (e.g. a malformed ig, profile limits, an ig package for another FHIR version, a stored version that is not included for this FHIR version, a malformed tx or txMode, or tx with txMode=none); unknown-profile (a requested profile is not available, with unresolvedProfiles; nothing is validated); tx-server-not-registered (the tx server is not on the allowlist for this FHIR version) |
| 401 | unauthorized |
| 403 | forbidden: the key's organisation is deactivated |
| 404 | package-not-found: the ig package is not stored, or the caller may not use it |
| 406 | not-acceptable |
| 413 | payload-too-large: body larger than FV_HTTP_MAX_BODY_MB |
| 415 | unsupported-media-type |
| 424 | dependency-not-found: a dependency of the ig package is not available to the caller (not named) |
| 429 | rate-limited: the key's or its organisation's per-minute limit was reached, with Retry-After. Nothing is validated and the request counts towards no limit; see API Throttling and Rate Limits |
| 500 | internal-error |
| 503 | not-ready (an included context is still being built or rebuilt, or the instance is still starting), overloaded, with Retry-After; tx-registry-unavailable (tx given, and no registry list was ever obtained) |
Examples
A resource with two errors, against the core specification. The answer is 200 with "valid": false:
curl -X POST http://localhost:8880/R4/validate \
-H "Authorization: Bearer $FV_VALIDATOR_API_KEY" \
-H 'Content-Type: application/fhir+json' \
--data '{"resourceType":"Patient","active":true,"gender":"unknown-value","birthDate":"2020-13-45"}'
{
"valid": false,
"messages": [
{"severity": "ERROR", "location": "Patient.gender",
"message": "Unknown code 'http://hl7.org/fhir/administrative-gender#unknown-value'"},
{"severity": "ERROR", "location": "Patient.gender",
"message": "The value provided ('unknown-value') was not found in the value set 'AdministrativeGender' (http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1), and a code is required from this value set ..."},
{"severity": "ERROR", "location": "Patient.birthDate", "message": "Not a valid date format: '2020-13-45'"},
{"severity": "WARNING", "location": "Patient",
"message": "Constraint failed: dom-6: 'A resource should have narrative for robust management' (defined in http://hl7.org/fhir/StructureDefinition/DomainResource) (Best Practice Recommendation)"}
],
"fhirVersion": "R4",
"appliedProfiles": [],
"igPackage": null,
"igOwner": "system",
"igShareable": true
}
A warning alone does not make a resource invalid: {"resourceType":"Patient","active":true} answers "valid": true
with the dom-6 warning above, because it has no narrative (text).
The same request with -H 'Accept: application/fhir+json' answers a FHIR OperationOutcome. Each message becomes an
issue: severity in lower case, diagnostics holding the message, expression the FHIRPath location, location
the path plus the line and column in the request body, and the validator's message id in details and an extension
(first issue shown; extensions shortened):
{
"resourceType": "OperationOutcome",
"issue": [
{
"extension": [
{"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-line", "valueInteger": 1},
{"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-issue-col", "valueInteger": 65},
{"url": "http://hl7.org/fhir/StructureDefinition/operationoutcome-message-id", "valueString": "Terminology_PassThrough_TX_Message"}
],
"severity": "error",
"code": "processing",
"details": {"coding": [{"system": "http://hl7.org/fhir/java-core-messageId", "code": "Terminology_PassThrough_TX_Message"}]},
"diagnostics": "Unknown code 'http://hl7.org/fhir/administrative-gender#unknown-value'",
"location": ["Patient.gender", "Line[1] Col[65]"],
"expression": ["Patient.gender"]
}
]
}
Against an included IG, and checking codes offline for this request only:
curl -X POST 'http://localhost:8880/R4/validate?ig=hl7.fhir.dk.core%233.4.0&txMode=none' \
-H "Authorization: Bearer $FV_VALIDATOR_API_KEY" \
-H 'Content-Type: application/fhir+json' \
--data @patient.json
The response then carries X-Validation-Context: hl7.fhir.dk.core#3.4.0, X-Tx-Mode: none and
X-Tx-Source: request, and the body reports "igPackage": "hl7.fhir.dk.core#3.4.0".
Validator contexts
These operations need an ADMIN key. A change applies to every instance within the propagation window.
POST /{version}/validator
Include a stored IG version: adds a pinned validator context for igPackageId#igPackageVersion on every instance.
Other versions of the same package stay included and usable through ?ig=. Including a version that is already
included changes nothing, and the response reports the existing owner and sharing. Nothing is downloaded. Operation id
validatorApiIncludeIg.
Request body (required, application/json):
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
igPackageId |
string | yes, unless igPackages |
Package name | |
igPackages |
array of {igPackageId, igPackageVersion} |
no | One or two IG packages, instead of igPackageId/igPackageVersion. Two entries build one context from both IGs and their dependencies, keyed A#a\|B#b in the order given; see Two-IG contexts |
|
igPackageVersion |
string | no | latest |
An exact version, latest (the highest stored version), or a version series N.x, N.x.x or N.N.x (the highest matching stored version your organisation may use). The context is pinned to that concrete version; storing a newer matching version later does not change it |
shareable |
boolean | no | true |
Sharing of a newly included context. false is allowed only when your organisation owns the package (or you are the system organisation). Ignored, with a warning, when the context is already included |
terminology |
TerminologySettings | no | Terminology setting of the new context: its default, which a validation request can override with tx/txMode. Ignored, with a warning, for an already included context; change it with PATCH (no rebuild) |
Responses
| Status | Meaning |
|---|---|
| 200 | IG included: IncludeResponse |
| 400 | invalid-request (e.g. the package does not declare this FHIR version, a malformed version, or a highest series match for another FHIR version; both body forms, or 0 or more than 2 igPackages); tx-server-not-registered (the terminology server is not in the HL7 terminology registry for this FHIR version); dependency-conflict (two IGs need different versions of one package) |
| 401 | unauthorized |
| 403 | forbidden |
| 404 | package-not-found: not stored, no version matching the series, or not usable by the caller |
| 409 | alias-conflict: another two-IG context already starts with the same IG |
| 413 | package-too-large: the context would not fit in this instance's heap (refused before it is committed) |
| 422 | fhir-version-disabled: the FHIR version is supported but not enabled (FV_ENABLED_FHIR_VERSIONS) |
| 424 | dependency-not-found: a dependency is not available to the caller (not named) |
| 500 | internal-error |
| 503 | tx-registry-unavailable (the registry's list was never obtained and the server is not on the built-in fallback list), overloaded |
Two-IG contexts
A context can hold two IGs, like the validator CLI's repeated -ig:
curl -H "Authorization: Bearer $FV_ADMIN_API_KEY" -H 'Content-Type: application/json' --data '{"igPackages":[
{"igPackageId":"hl7.fhir.dk.core","igPackageVersion":"3.4.0"},
{"igPackageId":"dk.ehealth.sundhed.fhir.ig.core"}]}' http://localhost:8880/R4/validator
- The key is
A#a|B#bin the order given (at most 256 characters); the response'sigPackageslists both IGs with their concrete versions, andaliaseslistsB#b|A#aandA#a. - Validate with
ig=A#a|B#borig=B#b|A#a(URL-encode#as%23and|as%7C): the key is looked up first, then the reversed pair.X-Validation-Contextreports the key. ig=A#a(exact version) reaches the two-IG context only while no single-IG contextA#ais included;ig=Aandig=A#latestonly look at single-IG contexts. A first IG can start only one two-IG context per FHIR version (alias-conflict).- When the IGs need different versions of the same package the include is refused (
dependency-conflict), except forhl7.terminology*andhl7.fhir.uv.extensions*, where the highest version is used and named inwarnings. That exception covers dependencies only: when one of the two IGs is itself such a package and the other IG needs a higher version of it, the include is refused, because the IGs you name are always in the context in the version you name. - PATCH and DELETE take the key or the reversed pair; a single
name#versionnever addresses a two-IG context."shareable": falseneeds ownership of both IG packages.
curl -H "Authorization: Bearer $FV_ADMIN_API_KEY" -H 'Content-Type: application/json' \
--data '{"igPackageId":"hl7.fhir.dk.core","igPackageVersion":"3.4.0","terminology":{"mode":"none"}}' \
http://localhost:8880/R4/validator
PATCH /{version}/validator
Change sharing, ownership or terminology of an included context. The context's owner or the system organisation may
change shareable; only the system organisation may transfer ownership (owner) to another active organisation.
Access changes take effect without a rebuild. A terminology change doesn't rebuild the context either: it
applies from the next validation on every instance, within the propagation window, and setting the same terminology
again changes nothing. Also works for a context that is inactive because its FHIR version is not enabled: the change is
stored and applies when the version is enabled again. Operation id
validatorApiChangeIncludedIg.
Parameters: version (path), ig (query, required): the exact included version, name#version; no latest.
Request body (required): AccessChangeRequest.
Responses (checked in this order: 404, 403, 400)
| Status | Meaning |
|---|---|
| 200 | Changed: IncludeAccessResponse |
| 404 | package-not-found: not included, or the caller is neither the owner nor the system organisation |
| 403 | forbidden: a transfer by a caller that isn't the system organisation |
| 400 | invalid-request (body, unknown or inactive target organisation, a private context of a package owned by another organisation, a malformed terminology setting); tx-server-not-registered |
| 401 | unauthorized |
| 500 | internal-error |
| 503 | tx-registry-unavailable, overloaded |
curl -X PATCH -H "Authorization: Bearer $FV_ADMIN_API_KEY" -H 'Content-Type: application/json' \
--data '{"terminology":{"mode":"ecosystem"}}' \
'http://localhost:8880/R4/validator?ig=hl7.fhir.dk.core%233.4.0'
DELETE /{version}/validator
Exclude one name#version from the included set on every instance. The package stays stored, and its terminology
setting is deleted with the context. Validation requests naming it are refused with 400 invalid-request until it is
included again. Also works for a context that is inactive because its FHIR version is not enabled. Operation id
validatorApiExcludeIg.
Parameters: version (path), ig (query, required): the exact version to exclude, name#version; no latest.
| Status | Meaning |
|---|---|
| 200 | Excluded: ExcludeResponse |
| 400 | invalid-request |
| 401 | unauthorized |
| 403 | forbidden |
| 404 | package-not-found: not included, or the caller's organisation doesn't own its context and isn't the system organisation |
| 500 | internal-error |
| 503 | overloaded |
curl -X DELETE -H "Authorization: Bearer $FV_ADMIN_API_KEY" \
'http://localhost:8880/R4/validator?ig=hl7.fhir.dk.core%233.4.0'
IG packages
POST /igs/upload
Upload and store an IG package, owned by the caller's organisation. Uploading a name#version that another
organisation stored gives 409 conflict, unless the caller is the system organisation; a replacement keeps the stored
owner and sharing. Operation id igPackageApiUploadIg.
Request body (required, multipart/form-data):
| Field | Required | Description |
|---|---|---|
file |
yes | The IG package archive (.tgz), at most FV_HTTP_MAX_BODY_MB. Accepted part types: application/octet-stream, application/gzip, application/x-gzip, application/x-tar, application/x-compressed-tar |
shareable |
no | true (default) or false. Ignored when the version is already stored |
Responses
| Status | Meaning |
|---|---|
| 200 | Package stored: IgRegistrationResponse |
| 400 | invalid-request: invalid request or package |
| 401 | unauthorized |
| 403 | forbidden |
| 409 | conflict: another organisation stored this name#version |
| 413 | package-too-large, payload-too-large |
| 422 | package-unsafe: path traversal, too many entries, or too high an expansion ratio |
| 500 | internal-error |
| 503 | overloaded, with Retry-After |
curl -H "Authorization: Bearer $FV_ADMIN_API_KEY" \
-F "file=@hl7.fhir.dk.core-3.4.0.tgz;type=application/gzip" \
http://localhost:8880/igs/upload
POST /igs/register
Fetch and store an IG package, from the configured package registries (by name and version) or from an approved
https URL (downloadUrl). Downloads are limited to the hosts in FV_PACKAGE_SOURCES; any other host is refused
(package-source-not-allowed) without an outbound request. Operation id igPackageApiRegisterIg.
With name and no version (or latest), the registries are asked for the highest released version: if it is already
stored it is returned without downloading it again, otherwise it is downloaded and stored (with its dependencies when
includeDependency is true). If no registry can be consulted or none lists the package, the highest stored version
the caller may use is returned with a warning; 404 when there is none. A version series (1.2.x, 1.x.x) resolves
to the highest matching registry release and then behaves exactly like a registration of that version.
Every package newly stored by the call, downloaded dependencies included, is owned by the caller's organisation with
shareable from the request (the package licence is not used). A version that is already stored keeps its owner and
sharing, and is answered 404 when the caller may not use it. A downloadUrl archive whose name#version another
organisation stored gives 409 conflict.
Request body (required, application/json):
| Field | Type | Default | Description |
|---|---|---|---|
downloadUrl |
string (uri) | Approved https URL of the package archive | |
name |
string | Package name, e.g. hl7.fhir.us.core |
|
version |
string | latest |
An exact version, latest, or a version series N.x, N.x.x or N.N.x (x or X; a release wins over a pre-release). At most 64 characters |
includeDependency |
boolean | true |
Also fetch the package's dependencies (declared series or latest are resolved the same way) |
shareable |
boolean | true |
Sharing of every package newly stored by this call |
Responses
| Status | Meaning |
|---|---|
| 200 | Package stored or returned: IgRegistrationResponse |
| 400 | invalid-request (e.g. a malformed version), package-source-not-allowed |
| 401 | unauthorized |
| 403 | forbidden |
| 404 | package-not-found |
| 409 | conflict |
| 413 | package-too-large |
| 422 | package-unsafe |
| 500 | internal-error |
| 503 | overloaded, with Retry-After |
curl -H "Authorization: Bearer $FV_ADMIN_API_KEY" -H 'Content-Type: application/json' \
--data '{"name":"hl7.fhir.dk.core","version":"3.4.0"}' \
http://localhost:8880/igs/register
PATCH /igs/{name}/{version}
Change sharing or transfer ownership of a stored IG package. The owner or the system organisation may change
shareable; only the system organisation may transfer ownership (owner) to another active organisation. Takes
effect on every instance within the propagation window; no validator context is rebuilt. Operation id
igPackageApiChangeAccess.
Request body (required): AccessChangeRequest.
Responses (checked in this order: 404, 403, 400)
| Status | Meaning |
|---|---|
| 200 | Changed: IgAccessResponse |
| 404 | package-not-found: not stored, or the caller is neither the owner nor the system organisation |
| 403 | forbidden: a transfer by a caller that isn't the system organisation |
| 400 | invalid-request: body, unknown or inactive target organisation |
| 401 | unauthorized |
| 500 | internal-error |
| 503 | overloaded |
curl -X PATCH -H "Authorization: Bearer $FV_ADMIN_API_KEY" -H 'Content-Type: application/json' \
--data '{"shareable":false}' http://localhost:8880/igs/acme.core/1.0.0
GET /igs/{name}/{version}/dependencies
Declared dependencies of a stored IG package. Operation id igPackageApiGetDependenciesGraph.
| Status | Body |
|---|---|
| 200 | {"name": "<package>", "version": "<version>", "dependencies": ["<string>", ...]} |
| 401 | unauthorized |
| 403 | forbidden |
| 404 | package-not-found |
| 500 | internal-error |
| 503 | overloaded |
GET /igs/{name}/{version}/conformance
Deprecated. Despite its path, this is not a conformance report: it lists the files in a stored IG package. There is no replacement endpoint and no removal date yet; to inspect a package's contents, open the archive itself (for example from the package registry).
Operation id igPackageApiGenerateConformanceReport.
| Status | Body |
|---|---|
| 200 | {"name": "<package>", "version": "<version>", "files": ["<string>", ...]} |
| 401 | unauthorized |
| 403 | forbidden |
| 404 | package-not-found |
| 500 | internal-error |
| 503 | overloaded |
Schemas
ValidationResponse
| Field | Type | Description |
|---|---|---|
valid |
boolean | Whether the resource passed validation |
messages |
array of ValidationMessage | Issues found |
fhirVersion |
string | FHIR version used |
appliedProfiles |
array of string | Profiles resolved and applied: the requested ones in request order, then resolvable meta.profile entries; each once, never an unresolved URL |
igPackage |
string, nullable | The concrete IG package (name#version) used; null for the base context |
igOwner |
string | Short name of the organisation owning the context (the system organisation for base) |
igShareable |
boolean | Whether the context is shareable (true for base) |
ValidationMessage
| Field | Type | Description |
|---|---|---|
severity |
string | FATAL, ERROR, WARNING or INFORMATION |
location |
string | Where in the resource |
message |
string | Description of the issue |
TerminologySettings
| Field | Type | Required | Description |
|---|---|---|---|
mode |
string | yes | none: codes are checked only against the context's packages and built-in code systems, with no outbound request. server: codes that can't be decided locally are checked with server. ecosystem: each code system is routed to the server the HL7 terminology registry names for it; server, when set, replaces the registry's default server (tx.fhir.org) |
server |
string | for server |
Base URL, exactly as the registry lists it (at most 512 characters; not allowed for none) |
Servers must be open servers listed by the HL7 terminology registry for the FHIR version. The registry lists none for STU3 and R4B. No other properties are allowed.
AccessChangeRequest
At least one property; no others allowed.
| Field | Type | Description |
|---|---|---|
shareable |
boolean | New sharing |
owner |
string | Transfer to this organisation (short name, ^[A-Za-z0-9_-]{2,32}$). System organisation administrators only; the target must exist and be active |
terminology |
TerminologySettings | New terminology setting (PATCH /{version}/validator only) |
IncludeResponse
| Field | Type | Description |
|---|---|---|
status |
string | success |
fhirVersion |
string | FHIR version whose configuration changed |
key |
object | The context pinned: fhirVersion, igPackage (concrete name#version) |
requestedVersion |
string | The igPackageVersion sent (latest, an exact version or a series) |
revision |
int64 | Committed configuration revision |
included |
array of string | Packages included |
resolved |
array of string | Packages resolved as dependencies |
terminology |
TerminologySettings | The context's terminology setting |
owner |
string | Owning organisation (may be another organisation when it was already included) |
shareable |
boolean | The context's sharing |
warnings |
array of string | Warnings, if any |
ExcludeResponse
| Field | Type | Description |
|---|---|---|
status |
string | success |
fhirVersion |
string | FHIR version whose configuration changed |
revision |
int64 | Committed configuration revision |
excluded |
string | The name#version excluded |
included |
array of string | Versions still included |
warnings |
array of string | Warnings, if any |
IncludeAccessResponse
| Field | Type | Description |
|---|---|---|
status |
string | success |
fhirVersion |
string | FHIR version |
igPackage |
string | name#version |
revision |
int64 | Committed configuration revision |
terminology |
TerminologySettings | The context's terminology setting |
owner |
string | Short name of the owning organisation |
shareable |
boolean | true when every caller may use it |
warnings |
array of string | Warnings, if any |
IgRegistrationResponse
| Field | Type | Description |
|---|---|---|
status |
string | success |
name |
string | Package name |
version |
string | The concrete version stored or returned |
requestedVersion |
string | The version sent (latest, exact or a series); absent for downloadUrl and upload |
downloaded |
boolean | true when the archive was fetched in this call |
owner |
string | Short name of the organisation owning the stored package |
shareable |
boolean | The stored package's sharing (unchanged when it was already stored) |
warnings |
array of string | Warnings, if any |
IgAccessResponse
| Field | Type | Description |
|---|---|---|
status |
string | success |
name |
string | Package name |
version |
string | Package version |
owner |
string | Short name of the owning organisation |
shareable |
boolean | true when every caller may use it |
warnings |
array of string | Present when shareable: false was ignored because access control is disabled |
HealthResponse
| Field | Type | Description |
|---|---|---|
status |
string | UP or DOWN |
timestamp |
int64 | Epoch milliseconds |
postgres.status |
string | UP or DOWN |
postgres.responseTime |
int64 | Database round trip |
postgres.error |
string | Present when the database is unreachable |
readiness |
ReadinessResponse | The readiness report |
terminology.registry |
string | The HL7 terminology registry (fixed) |
terminology.allowlist |
object | Per FHIR version: source (registry, stored-registry or built-in), fetchedAt, registryLastUpdate, servers (count), reason. Readiness does not depend on it |
fhirVersions.served |
array of string | FHIR versions this instance serves |
fhirVersions.inactiveContexts |
object | Stored contexts that are inactive: count, private (counted only, never named), items (the first 100 shareable ones: fhirVersion, igPackage, owner, reason = fhir-version-disabled) |
security.aclSecurity |
string | enabled or disabled (public mode) |
ReadinessResponse
| Field | Type | Description |
|---|---|---|
status |
string | UP or DOWN |
timestamp |
int64 | Epoch milliseconds |
catalogRevision |
int64 | The package catalog revision this instance has loaded |
versions |
object | Per FHIR version: appliedRevision, latestRevision, base (state, packages, packageBytes) and contexts (keyed name#version: kind pinned, state ACTIVE, BUILDING, STALE or ABSENT, appliedRevision, packages, packageBytes, lastUsed, reason, terminology {mode, server}) |
reasons |
array of string | Why the instance is not ready |
contexts lists only contexts that are shareable and whose packages are all shareable; the others are summarised in
privateContexts (count, and states per state). Owners are never listed. Readiness counts the base and pinned
contexts only.
Problem
RFC 9457 problem details, media type application/problem+json.
| Field | Type | Required | Description |
|---|---|---|---|
type |
string (uri) | yes | Stable problem type, see below |
title |
string | yes | Short summary |
status |
integer | yes | HTTP status code |
detail |
string | no | Curated, safe text; never exception messages, class names or stack traces |
correlationId |
string | yes | Same as the X-Request-Id response header |
issues |
array of ValidationMessage | no | Present only for type invalid-resource |
unresolvedProfiles |
array of string | no | Present only for type unknown-profile: every requested entry that did not resolve, after trimming and de-duplication, in request order |
scope |
string | no | Present only for type rate-limited: key or organisation, the limit that was reached |
limit |
integer | no | Present only for type rate-limited: that per-minute limit |
retryAfterSeconds |
integer | no | Present only for type rate-limited: the same value as Retry-After |
{
"type": "https://nazrulworld.github.io/fhir-validation-service/problems/package-not-found",
"title": "Package not found",
"status": 404,
"correlationId": "3f1c2a9e-5b7d-4e2a-9c1f-8d6b0a4e7c21"
}
Every problem type is https://nazrulworld.github.io/fhir-validation-service/problems/<type>; the <type>
values are listed below.
Problem types
| Type | Status | Meaning | What to do |
|---|---|---|---|
invalid-request |
400 | The request is malformed: a parameter, a body field or a combination of them | Read detail and fix the request |
invalid-resource |
400 | The body is not a FHIR resource that can be parsed; issues says why |
Fix the resource's syntax. A resource that parses but is invalid answers 200 with "valid": false instead |
dependency-conflict |
400 | The two IGs of a two-IG include need different versions of the same package; conflicts names each package and the version each IG needs |
Include IG versions that agree on their dependencies. Differences in hl7.terminology* and hl7.fhir.uv.extensions* dependencies are not conflicts; an IG you name is never replaced by another version of itself |
unknown-profile |
400 | A requested profile is not defined by the chosen IG, its dependencies or the core specification; unresolvedProfiles lists them. Nothing is validated |
Check the URLs, or name the ig that defines them |
unsupported-fhir-version |
400 | The {version} path segment is not STU3, R4, R4B or R5, or this deployment doesn't serve it |
See fhirVersions.served in GET /health |
package-source-not-allowed |
400 | downloadUrl names a host that is not in FV_PACKAGE_SOURCES |
Use a registry name, or ask the operator to allow the host |
tx-server-not-registered |
400 | The terminology server is not on the HL7 registry's allowlist for this FHIR version | Use a server the registry lists, written exactly as listed |
unauthorized |
401 | No valid API key (missing, malformed, unknown, revoked or expired) | Send Authorization: Bearer <key> with a valid key |
forbidden |
403 | The key's role doesn't allow this, its organisation is deactivated, or an administrative call came from outside FV_AUTH_ADMIN_CIDRS |
Use an ADMIN key, from an allowed network |
not-found |
404 | No endpoint matches the request path | Check the path, and the {version} segment |
package-not-found |
404 | The IG package or context is not stored or included, or the caller may not use it | Register or upload the package, then include it for this FHIR version |
method-not-allowed |
405 | The path exists, but not with this HTTP method | Check the method in the endpoint table |
not-acceptable |
406 | Accept asks for a format the endpoint can't produce |
Use one of the formats listed for the endpoint |
conflict |
409 | Another organisation already stored this name#version |
Use a different version, or ask the system organisation |
alias-conflict |
409 | Another two-IG context for this FHIR version already starts with the same IG, so ig=A#a would be ambiguous |
List the other IG first, or exclude the existing two-IG context |
package-too-large |
413 | The package archive is too large, or its validator context would not fit in this instance's heap | Raise FV_PACKAGE_MAX_COMPRESSED_MB or FV_MEMORY_LIMIT (the JVM heap) |
payload-too-large |
413 | The request body is larger than FV_HTTP_MAX_BODY_MB |
Send a smaller resource, or raise the limit |
unsupported-media-type |
415 | Content-Type is not one the endpoint accepts |
Use application/fhir+json, application/fhir+xml or another listed type |
package-unsafe |
422 | The archive was refused for safety: path traversal, too many entries, or too high an expansion ratio | Check the archive; it is not a normal IG package |
fhir-version-disabled |
422 | The FHIR version is supported but not enabled on this deployment (FV_ENABLED_FHIR_VERSIONS) |
Use an enabled version, or ask the operator to enable it |
rate-limited |
429 | The API key's or its organisation's per-minute validation limit was reached; scope, limit and retryAfterSeconds say which and how long to wait |
Retry after Retry-After seconds; ask the operator for a higher limit. See API Throttling and Rate Limits |
dependency-not-found |
424 | A dependency of the IG package is not available to the caller (it is not named) | Ask the owner to share it, or store your own copy |
internal-error |
500 | An unexpected error | Retry; if it persists, report the correlationId to the operator |
not-ready |
503 | The instance is starting, shutting down, or the context is still being built or rebuilt | Retry after Retry-After seconds |
overloaded |
503 | The instance is at its admission limit | Retry after Retry-After seconds, or add instances |
tx-registry-unavailable |
503 | The HL7 terminology registry's list was never obtained, and the server is not on the built-in fallback list | Retry later, or use txMode=none |
insufficient-capacity |
503 | Reserved: listed in the OpenAPI definition, but not returned by this release |