openehr-rm 0.0.4

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

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

use crate::composition::content::entry::action::Action;
use crate::composition::content::entry::evaluation::Evaluation;
use crate::composition::content::entry::instruction::Instruction;
use crate::composition::content::entry::observation::Observation;

/// Closed subtype set of `CARE_ENTRY`, dispatched on each payload's `_type`.
///
/// The abstract parent of all clinical `ENTRY` subtypes. A `CARE_ENTRY` defines protocol and guideline attributes for all clinical Entry subtypes.
#[doc(alias = "CARE_ENTRY")]
#[derive(Debug, Clone, PartialEq)]
pub enum CareEntry {
    /// The `ACTION` subtype of `CARE_ENTRY`.
    Action(Action),
    /// The `EVALUATION` subtype of `CARE_ENTRY`.
    Evaluation(Evaluation),
    /// The `INSTRUCTION` subtype of `CARE_ENTRY`.
    Instruction(Instruction),
    /// The `OBSERVATION` subtype of `CARE_ENTRY`.
    Observation(Observation),
}