openehr-am 0.0.128

openEHR AM Archetype Model, generated from BMM: generations v1_4 (AM 1.4.0, ADL 1.4) and v2_4 (AM 2.4.0, ADL 2; current)
Documentation
// @generated by openehr-codegen from BMM (`SIBLING_ORDER`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.

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

/// The openEHR `SIBLING_ORDER` class.
///
/// Defines the order indicator that can be used on a `C_OBJECT` within a container attribute in a specialised archetype to indicate its order with respect to a sibling defined in a higher specialisation level.
///
/// Misuse: This type cannot be used on a `C_OBJECT` other than one within a container attribute in a specialised archetype.
#[doc(alias = "SIBLING_ORDER")]
#[derive(Debug, Clone, PartialEq)]
pub struct SiblingOrder {
    /// True if the order relationship is ‘before’, if False, it is ‘after’.
    pub is_before: bool,
    /// Node identifier of sibling before or after which this node should come.
    pub sibling_node_id: String,
}