From fb948ee3f8996baa5892228a73ddae910ed06113 Mon Sep 17 00:00:00 2001 From: Lloyd McKenzie Date: Tue, 10 Sep 2024 08:22:53 -0600 Subject: [PATCH] Fixed elide spelling --- input/pagecontent/fragments.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/input/pagecontent/fragments.xml b/input/pagecontent/fragments.xml index e46c31a..5b92905 100644 --- a/input/pagecontent/fragments.xml +++ b/input/pagecontent/fragments.xml @@ -30,18 +30,18 @@

Ellipsing

- Sometimes you want to perform more filtering than only selecting an element within your instance. You want to only show a portion of that element, hiding (ellipsing) the content you don't care about. There are two ways to do this: you can either define the specific elements you want to ellide (replace with '...'); or you can define the elements you don't want to ellide. + Sometimes you want to perform more filtering than only selecting an element within your instance. You want to only show a portion of that element, hiding (ellipsing) the content you don't care about. There are two ways to do this: you can either define the specific elements you want to elide (replace with '...'); or you can define the elements you don't want to elide.

-

The 'ELLIDE:' filter can only be specified once, but with FHIRPath '|', you can express as many elements as you like. For example, {% raw %}{% fragment Patient/example XML BASE:name.where(use='official').first() ELLIDE:use|given[1]|period %}{% endraw %} will look like this:

- {% fragment Patient/example XML BASE:name.where(use='official').first() ELLIDE:use|given[1]|period %} +

The 'ELIDE:' filter can only be specified once, but with FHIRPath '|', you can express as many elements as you like. For example, {% raw %}{% fragment Patient/example XML BASE:name.where(use='official').first() ELIDE:use|given[1]|period %}{% endraw %} will look like this:

+ {% fragment Patient/example XML BASE:name.where(use='official').first() ELIDE:use|given[1]|period %}

- 'EXCEPT:' works slightly differently. With Except you identify the elements to retain (be unellided) but you can also specify a descendant 'BASE:' element those expressions are evaluated within. For example, the following expression will return the patient showing only id an names, and within name, will ellide everything except the family name: {% raw %}{% fragment Patient/example XML EXCEPT:id|name EXCEPT:family BASE:name %}{% endraw %} + 'EXCEPT:' works slightly differently. With Except you identify the elements to retain (be unelided) but you can also specify a descendant 'BASE:' element those expressions are evaluated within. For example, the following expression will return the patient showing only id an names, and within name, will elide everything except the family name: {% raw %}{% fragment Patient/example XML EXCEPT:id|name EXCEPT:family BASE:name %}{% endraw %}

{% fragment Patient/example XML EXCEPT:id|name EXCEPT:family BASE:name %}

The overall syntax for fragments is as follows: - {% raw %}{% fragment [resource]/[id] [XML|JSON] (BASE:[base FHIRPath])? (ELLIDE:[ellide elements path])? (EXCEPT:[except elements FHIRPath] (BASE:[except base FHIRPath])?)* %}{% endraw %} + {% raw %}{% fragment [resource]/[id] [XML|JSON] (BASE:[base FHIRPath])? (ELIDE:[elide elements path])? (EXCEPT:[except elements FHIRPath] (BASE:[except base FHIRPath])?)* %}{% endraw %}