type: fhirpath-operatoroperator: andcategory: Boolean Logicsection: 6.5.1source: fhirpath/operations.json
FHIRPath Operator: and (and)
Returns true if both operands evaluate to true, false if either operand evaluates to false, and the empty collection ({ }) otherwise.
| and | true | false | empty |
|---|---|---|---|
| true | true | false | empty ({ }) |
| false | false | false | false |
| empty | empty ({ }) | false | empty ({ }) |
| {:.grid} | |||
| ## Summary |
- Category: Boolean Logic
- Section:
6.5.1 - Left Argument:
Boolean - Right Argument:
Boolean - Return Type:
Boolean - Empty Input Result:
empty - Errors on Multiple Input:
false
Description
Returns true if both operands evaluate to true, false if either operand evaluates to false, and empty collection otherwise. Uses three-valued logic to propagate empty operands.
Type Mapping
Boolean-Boolean