View raw Markdown
type: fhirpath-operatoroperator: xorcategory: Boolean Logicsection: 6.5.4source: fhirpath/operations.json

FHIRPath Operator: xor (xor)

Returns true if exactly one of the operands evaluates to true, false if either both operands evaluate to true or both operands evaluate to false, and the empty collection ({ }) otherwise:

xortruefalseempty
truefalsetrueempty ({ })
falsetruefalseempty ({ })
emptyempty ({ })empty ({ })empty ({ })
{:.grid}
## Summary

Description

Returns true if exactly one of the operands evaluates to true, false if either both operands evaluate to true or both operands evaluate to false, and empty collection otherwise.

Type Mapping