FHIR Chat · Recursively retrieving all extensions · hapi

Stream: hapi

Topic: Recursively retrieving all extensions


view this post on Zulip Morten Ernebjerg (Dec 09 2019 at 12:42):

Is there a simple way of retrieving all extensions (or modifier extensions) from a resource, regardless of which element they are attached to (i.e. concatenating the result of applying getExtension() recursively)? Maybe in the form of some generic (HAPI specific) pattern for recursively traversing elements while extracting generic elements (e.g. via children)?

view this post on Zulip Grahame Grieve (Dec 09 2019 at 12:50):

it's easy to do using FHIRPath

view this post on Zulip Morten Ernebjerg (Dec 09 2019 at 14:22):

Ah right, of course... thanks!


Last updated: Apr 12 2022 at 19:14 UTC