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_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.

#![expect(
    clippy::disallowed_types,
    reason = "adjudicated free-form JSON slots: serde_json::Value is workspace-banned (#1694); a generated carrier exists only where the spec leaves the slot open, and each adjudicated field's NOTE names its citation"
)]
/// 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
    // NOTE: free-form JSON is adjudicated here, not accidental — LANG `…bmm3.el_case.adoc` §Attributes types `value_constraint: C_OBJECT` (1..1), but C_OBJECT is an AM class (`AM aom2 …c_object.adoc`) and AM depends on LANG — an upstream→downstream dependency inversion in the vendored model. openehr-lang cannot name an openehr-am type; the AM24 downstream re-emission of the same class DOES carry `value_constraint: CObject`, so the typed form exists exactly where C_OBJECT does.
    pub value_constraint: serde_json::Value,
}