openehr-lang 0.0.128

openEHR LANG BMM/P_BMM object model, generated from BMM: generations v1_0 (LANG 1.0.0) and v1_1 (LANG 1.1.0, current; the stable BMM v2.x unit beside the paused BMM3 unit), plus hand-written ODIN/BEL/EL readers
Documentation
// @generated by openehr-codegen from BMM (`EL_DECISION_TABLE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::bmm3::expression::el_case_table::ElCaseTable;
use crate::v1_1::bmm3::expression::el_condition_chain::ElConditionChain;

/// Closed subtype set of `EL_DECISION_TABLE`, dispatched on each payload's `_type`.
///
/// Meta-type for decision tables. Generic on the meta-type of the `_result_` attribute of the branches, to allow specialised forms of if/else and case structures to be created.
#[doc(alias = "EL_DECISION_TABLE")]
#[derive(Debug, Clone, PartialEq)]
pub enum ElDecisionTable<T> {
    /// The `EL_CASE_TABLE` subtype of `EL_DECISION_TABLE`.
    ElCaseTable(ElCaseTable<T>),
    /// The `EL_CONDITION_CHAIN` subtype of `EL_DECISION_TABLE`.
    ElConditionChain(ElConditionChain<T>),
}