openehr-lang 0.0.2

openEHR LANG 1.0.0: BMM/P_BMM object model (generated from BMM) plus a hand-written ODIN instance parser (the `odin` module — deliberately off the codegen path).
Documentation
// @generated by openehr-codegen from BMM (`BMM_SIMPLE_STATEMENT`) — DO NOT EDIT.

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

use crate::bmm3::statement::bmm_assertion::BmmAssertion;
use crate::bmm3::statement::bmm_assignment::BmmAssignment;
use crate::bmm3::statement::bmm_declaration::BmmDeclaration;
use crate::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),
}