View raw Markdown
type: fhirpath-functionfunction: childrencategory: Tree navigationsection: 5.9.1source: fhirpath/functions.json

FHIRPath Function: children

Returns a collection with all immediate child nodes of all items in the input collection. Note that the ordering of the children is undefined and using functions like first() on the result may return different results on different platforms.

Summary

Description

Returns a collection with all immediate child nodes of all items in the input collection. Note that the ordering of the children is undefined.

Arguments

Type Mapping

Example

Patient.children() // returns all immediate child elements of Patient