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

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

use crate::v1_2::common::generic::audit_details::AuditDetails;
use openehr_base::v1_3::base_types::identification::hier_object_id::HierObjectId;
use openehr_base::v1_3::base_types::identification::object_ref::ObjectRef;

/// Documents a Contribution (change set) of one or more versions added to a change-controlled repository.
#[doc(alias = "CONTRIBUTION")]
#[derive(Debug, Clone, PartialEq)]
pub struct Contribution {
    /// Unique identifier for this Contribution.
    pub uid: HierObjectId,
    /// Set of references to Versions causing changes to this EHR.
    ///
    /// Each contribution contains a list of versions, which may include paths pointing to any number of versionable items, i.e. items of types such as `COMPOSITION` and `FOLDER`.
    pub versions: openehr_base::containers::NonEmptyVec<ObjectRef>,
    /// Audit trail corresponding to the committal of this Contribution.
    pub audit: AuditDetails,
}