Stream: implementers
Topic: Sushi using aliases in expression
Emmanuel (Mar 28 2022 at 12:43):
Hi, I am trying to figure out how to use alias in an xPath expression, for instance in a search parameter definition.
For example :
Alias: $my-extension = http://example.com/fhir/StructureDefinition/my-extension
Instance: mySearchParameter
InstanceOf: SearchParameter
Usage: #definition
* description = "Use Alias in expression"
* url = "http://example.com/fhir/SearchParameter/my-search-parameter"
* name = "MySearchParameter"
* status = #active
* code = #has-extention
* base = #Basic
* type = #token
* expression = "Basic.extension('$my-extension').exists()"
How should the expression string be written so that $my-extension be replaced with its value?
David Pyke (Mar 28 2022 at 13:25):
Better to ask this in #shorthand
Emmanuel Borey (Mar 28 2022 at 13:32):
Thanks @David Pyke , done : https://chat.fhir.org/#narrow/stream/215610-shorthand/topic/Sushi.20using.20aliases.20in.20expression
Last updated: Apr 12 2022 at 19:14 UTC