View raw Markdown
type: fhirpath-functionfunction: intersectcategory: Subsettingsection: 5.3.8source: fhirpath/functions.json

FHIRPath Function: intersect

Returns the set of items that are in both collections. Duplicate items will be eliminated by this function. Order of items is not guaranteed to be preserved in the result of this function.

Summary

Description

Returns the set of elements that are in both collections. Duplicate items will be eliminated by this function. Order of items is not guaranteed to be preserved in the result of this function.

Arguments

Type Mapping

Example

Patient.name.given.intersect(Patient.name.family) // returns elements that are both given and family names