Migrate to the spec-compliant ViewDefinition format
This guide explains changes in the ViewDefinition resource and explains how to migrate to the updated structure
Aidbox's January 2024 release introduces an updated, SQL on FHIR spec-compliant ViewDefinition
resource structure, including some minor breaking changes. These changes don't affect existing flat views, but alterations via ViewDefinition
require adapting to the new format.
Existing elements renames
alias
is nowname
union
is nowunionAll
constants
is nowconstant
from
is replaced withforEach
New element: column
A column
element is introduced in select
for clearer, less nested column declarations. Move column-related details here.
Before:
After:
For select
containing forEach
(or forEachOrNull
), keep forEach
outside the column
. Nested select
without forEach
can directly be converted to column
.
Before
After
Last updated