// @generated by openehr-codegen from BMM (`BMM_ROUTINE_DEFINITION`) — DO NOT EDIT.
//! The openEHR `BMM_ROUTINE_DEFINITION` spec class, generated from the vendored BMM
//! meta-model.
use crate::bmm3::core::feature::bmm_external_routine::BmmExternalRoutine;
use crate::bmm3::core::feature::bmm_local_routine::BmmLocalRoutine;
/// Closed subtype set of `BMM_ROUTINE_DEFINITION`, dispatched on each payload's `_type`.
///
/// Abstract ancestor of routine body meta-types.
#[doc(alias = "BMM_ROUTINE_DEFINITION")]
#[derive(Debug, Clone, PartialEq)]
pub enum BmmRoutineDefinition {
/// The `BMM_EXTERNAL_ROUTINE` subtype of `BMM_ROUTINE_DEFINITION`.
BmmExternalRoutine(BmmExternalRoutine),
/// The `BMM_LOCAL_ROUTINE` subtype of `BMM_ROUTINE_DEFINITION`.
BmmLocalRoutine(BmmLocalRoutine),
}