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_ROUTINE`) — DO NOT EDIT.

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

use crate::bmm3::core::feature::bmm_function::BmmFunction;
use crate::bmm3::core::feature::bmm_procedure::BmmProcedure;

/// Closed subtype set of `BMM_ROUTINE`, dispatched on each payload's `_type`.
///
/// A feature defining a routine, scoped to a class.
#[doc(alias = "BMM_ROUTINE")]
#[derive(Debug, Clone, PartialEq)]
pub enum BmmRoutine {
    /// The `BMM_FUNCTION` subtype of `BMM_ROUTINE`.
    BmmFunction(Box<BmmFunction>),
    /// The `BMM_PROCEDURE` subtype of `BMM_ROUTINE`.
    BmmProcedure(BmmProcedure),
}