openehr-am 0.0.128

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_CASE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v2_4::aom2::constraint_model::c_object::CObject;

/// One branch of a Case table, consisting of a value constraint (the match criterion) and a result, of the generic parameter type T.
#[doc(alias = "EL_CASE")]
#[derive(Debug, Clone, PartialEq)]
pub struct ElCase<T> {
    // inherited: EL_DECISION_BRANCH
    /// Result expression of conditional, if its `_condition_` evaluates to True.
    pub result: T,
    /// Constraint on
    pub value_constraint: CObject,
}