From fe6cb5cfb8971534f7c801caaf8aaaf57942a9e6 Mon Sep 17 00:00:00 2001 From: John Grimes Date: Tue, 27 Feb 2024 14:18:41 +1000 Subject: [PATCH] Further clarification to wording of column ordering requirements --- .../pagecontent/StructureDefinition-ViewDefinition-notes.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/input/pagecontent/StructureDefinition-ViewDefinition-notes.md b/input/pagecontent/StructureDefinition-ViewDefinition-notes.md index ab0e17e..b9e5f79 100644 --- a/input/pagecontent/StructureDefinition-ViewDefinition-notes.md +++ b/input/pagecontent/StructureDefinition-ViewDefinition-notes.md @@ -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: