openehr-rm 0.0.4

openEHR RM 1.2.0 Reference Model, generated from BMM
Documentation
// @generated by openehr-codegen from BMM (`CONTENT_ITEM`) — DO NOT EDIT.

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

use crate::composition::content::entry::action::Action;
use crate::composition::content::entry::admin_entry::AdminEntry;
use crate::composition::content::entry::evaluation::Evaluation;
use crate::composition::content::entry::instruction::Instruction;
use crate::composition::content::entry::observation::Observation;
use crate::composition::content::navigation::section::Section;
use crate::integration::generic_entry::GenericEntry;

/// Closed subtype set of `CONTENT_ITEM`, dispatched on each payload's `_type`.
///
/// Abstract ancestor of all concrete content types.
#[doc(alias = "CONTENT_ITEM")]
#[derive(Debug, Clone, PartialEq)]
pub enum ContentItem {
    /// The `ACTION` subtype of `CONTENT_ITEM`.
    Action(Action),
    /// The `ADMIN_ENTRY` subtype of `CONTENT_ITEM`.
    AdminEntry(AdminEntry),
    /// The `EVALUATION` subtype of `CONTENT_ITEM`.
    Evaluation(Evaluation),
    /// The `GENERIC_ENTRY` subtype of `CONTENT_ITEM`.
    GenericEntry(GenericEntry),
    /// The `INSTRUCTION` subtype of `CONTENT_ITEM`.
    Instruction(Instruction),
    /// The `OBSERVATION` subtype of `CONTENT_ITEM`.
    Observation(Observation),
    /// The `SECTION` subtype of `CONTENT_ITEM`.
    Section(Section),
}