View raw Markdown
type: fhirpath-functionfunction: excludecategory: Subsettingsection: 5.3.9source: fhirpath/functions.json

FHIRPath Function: exclude

Returns the set of items that are not in the other collection. Duplicate items will not be eliminated by this function, and order will be preserved.

e.g. (1 | 2 | 3).exclude(2){:.fhirpath} returns (1 | 3).

Summary

Description

Returns the set of elements that are not in the other collection. Duplicate items will not be eliminated by this function, and order will be preserved.

Arguments

Type Mapping

Example

(1 | 2 | 3).exclude(2) // returns (1 | 3)