openehr-am 0.0.78

openEHR AM Archetype Model, generated from BMM: generations v1_4 (AM 1.4.0, ADL 1.4) and v2_4 (AM 2.4.0, ADL 2; current)
Documentation
// @generated by openehr-codegen from BMM (`EL_CONDITIONAL_EXPRESSION`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

//! The openEHR `EL_CONDITIONAL_EXPRESSION` spec class, generated from the vendored BMM
//! meta-model.

use crate::v2_4::bmm3::expression::el_expression::ElExpression;

/// Conditional structure used in condition chain expressions.
///
/// Evaluated by evaluating its `_condition_`, which is a Boolean-returning expression, and if this returns True, the result is the evaluation result of `_expression_`.
#[doc(alias = "EL_CONDITIONAL_EXPRESSION")]
#[derive(Debug, Clone, PartialEq)]
pub struct ElConditionalExpression<T> {
    // inherited: EL_DECISION_BRANCH
    /// Result expression of conditional, if its `_condition_` evaluates to True.
    pub result: T,
    /// Boolean expression defining the condition of this decision branch.
    pub condition: ElExpression,
}