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

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

use crate::v2_4::beom::core::assertion::Assertion;
use crate::v2_4::beom::core::assignment::Assignment;
use openehr_lang::v1_1::beom::core::variable_declaration::VariableDeclaration;

/// Closed subtype set of `STATEMENT`, dispatched on each payload's `_type`.
///
/// Meta-type for the notion of statement, which is a non-value-returning entity.
#[doc(alias = "STATEMENT")]
#[derive(Debug, Clone, PartialEq)]
pub enum Statement {
    /// The `ASSERTION` subtype of `STATEMENT`.
    Assertion(Assertion),
    /// The `ASSIGNMENT` subtype of `STATEMENT`.
    Assignment(Assignment),
    /// The `VARIABLE_DECLARATION` subtype of `STATEMENT`.
    VariableDeclaration(VariableDeclaration),
}