openehr-am 0.0.78

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

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

use crate::v2_4::aom2::rm_overlay::visibility_type::VisibilityType;
use openehr_base::v1_3::foundation_types::terminology::terminology_code::TerminologyCode;

/// Definition of visibility of an RM attribute within a larger archetype structure.
#[doc(alias = "RM_ATTRIBUTE_VISIBILITY")]
#[derive(Debug, Clone, PartialEq)]
pub struct RmAttributeVisibility {
    /// Visibility setting of a non-archetyped RM attribute (RM attributes that are constrained or within the archetyped structure are visible by default).
    pub visibility: Option<VisibilityType>,
    /// Optional alias for the attribute referenced by the path.
    pub alias: Option<TerminologyCode>,
}