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