openehr-am 0.0.78

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

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

use crate::v2_4::bmm3::statement::bmm_assertion::BmmAssertion;
use crate::v2_4::bmm3::statement::bmm_assignment::BmmAssignment;
use crate::v2_4::bmm3::statement::bmm_declaration::BmmDeclaration;
use crate::v2_4::bmm3::statement::bmm_procedure_call::BmmProcedureCall;

/// Closed subtype set of `BMM_SIMPLE_STATEMENT`, dispatched on each payload's `_type`.
///
/// Simple statement, i.e. statement with one logical element - a single expression, procedure call etc.
#[doc(alias = "BMM_SIMPLE_STATEMENT")]
#[derive(Debug, Clone, PartialEq)]
pub enum BmmSimpleStatement {
    /// The `BMM_ASSERTION` subtype of `BMM_SIMPLE_STATEMENT`.
    BmmAssertion(BmmAssertion),
    /// The `BMM_ASSIGNMENT` subtype of `BMM_SIMPLE_STATEMENT`.
    BmmAssignment(BmmAssignment),
    /// The `BMM_DECLARATION` subtype of `BMM_SIMPLE_STATEMENT`.
    BmmDeclaration(BmmDeclaration),
    /// The `BMM_PROCEDURE_CALL` subtype of `BMM_SIMPLE_STATEMENT`.
    BmmProcedureCall(BmmProcedureCall),
}