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 (`CARE_ENTRY`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_1::composition::content::entry::action::Action;
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;

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