FHIR Chat · trace and variables · fhirpath

Stream: fhirpath

Topic: trace and variables


view this post on Zulip Brian Postlethwaite (Jul 19 2021 at 03:18):

I was wondering if we could make the trace() function expose it's content as variables further down the chain.
This would then provide a mechanism to "capture" an upstream variable and use further down in the expression.
e.g.

entry.resource.trace('resid', id).descendants()
.extension('http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression').value.distinct()
.select('| ' & name & ' | ' & description & ' | `' & expression & '` | in ' & %resid)

view this post on Zulip Grahame Grieve (Aug 17 2021 at 04:42):

seems like you could just define a function traceValue(name) that would do that


Last updated: Apr 12 2022 at 19:14 UTC