Skip to content

Commit

Permalink
Further clarification to wording of column ordering requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrimes committed Feb 27, 2024
1 parent 75efe99 commit fe6cb5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions input/pagecontent/StructureDefinition-ViewDefinition-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,11 @@ Note the former example is preferred due to its simplicity and the latter is inc

### Column Ordering

*View runners* that support column ordering in their output format MUST order the columns of the result to match the order that they appear in the ViewDefinition.
*View runners* that support column ordering in their output format MUST order the columns of the result according to the rules defined in this section.

`select`s that have nested `select`s will place the columns of the parent `select` before the columns of the nested `select`, and the columns from a `unionAll` list are placed last. To change the column ordering, it is possible to place the columns or the `unionAll` in a nested `select`, which can be ordered relative to other nested `select`s as desired.
`select`s that have nested `select`s will place the columns of the parent `select` before the columns of the nested `select`, and the columns from a `unionAll` list are placed last.

To change the column ordering, it is possible to place the columns or the `unionAll` in a nested `select`, which can be ordered relative to other nested `select`s as desired.

For example, the `column`s in this ViewDefinition will appear in alphabetical order:

Expand Down

0 comments on commit fe6cb5c

Please sign in to comment.