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_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),
}