openehr-lang 0.0.2

openEHR LANG 1.0.0: BMM/P_BMM object model (generated from BMM) plus a hand-written ODIN instance parser (the `odin` module — deliberately off the codegen path).
Documentation
// @generated by openehr-codegen from BMM (`EL_DECISION_TABLE`) — DO NOT EDIT.

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

use crate::bmm3::expression::el_case_table::ElCaseTable;
use crate::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>),
}