openehr-rm 0.0.128

openEHR RM Reference Model, generated from BMM: generations v1_1 (RM 1.1.0) and v1_2 (RM 1.2.0, current)
Documentation
// @generated by openehr-codegen from BMM (`CONTENT_ITEM`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::common::archetyped::locatable::Locatable;
use crate::v1_1::composition::content::entry::action::Action;
use crate::v1_1::composition::content::entry::admin_entry::AdminEntry;
use crate::v1_1::composition::content::entry::evaluation::Evaluation;
use crate::v1_1::composition::content::entry::instruction::Instruction;
use crate::v1_1::composition::content::entry::observation::Observation;
use crate::v1_1::composition::content::navigation::section::Section;
use crate::v1_1::composition::view::citation::Citation;
use crate::v1_1::composition::view::view_section::ViewSection;
use crate::v1_1::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 `CITATION` subtype of `CONTENT_ITEM`.
    Citation(Citation<Locatable>),
    /// 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),
    /// The `VIEW_SECTION` subtype of `CONTENT_ITEM`.
    ViewSection(ViewSection),
}