FHIR Chat · find all references · dotnet

Stream: dotnet

Topic: find all references


view this post on Zulip Jeremy (Jul 09 2020 at 23:43):

Is there a way, using the Fire.ly FHIR .net library to traverse the entire bundle, and all resources and find all references? Maybe using reflection, or built in functionality of the library?

view this post on Zulip Richard Kavanagh (Jul 13 2020 at 09:12):

FHIRPath will be your friend here ....

view this post on Zulip Ewout Kramer (Jul 14 2020 at 21:32):

If you are working with POCOs, you can use the NamedChildren() function to recursively descend into all children. Here, you can easily look for the desired types. If working with ITypedElements, you can recursively call Children() and filter on the desired type (on .InstanceType).

In both cases, FhirPath would work as well, indeed!


Last updated: Apr 12 2022 at 19:14 UTC