// @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"
)]
use crate::v1_0::bmm::expression::el_expression::ElExpression;
/// The openEHR `EL_CASE` class (the vendored BMM carries no documentation for it).
#[doc(alias = "EL_CASE")]
#[derive(Debug, Clone, PartialEq)]
pub struct ElCase {
// inherited: EL_DECISION_BRANCH
/// Result expression of conditional, if its `_condition_` evaluates to True.
pub result: ElExpression,
/// The `value_constraint` attribute of openEHR `EL_CASE` (the vendored BMM carries no documentation for it).
// 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,
}