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

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

use crate::v1_2::common::change_control::original_version::OriginalVersion;
use crate::v1_2::common::generic::audit_details::AuditDetails;
use openehr_base::v1_3::base_types::identification::object_ref::ObjectRef;

/// The openEHR `IMPORTED_VERSION` class.
///
/// Versions whose content is an `ORIGINAL_VERSION` copied from another location; this class inherits `_commit_audit_` and `_contribution_` from `VERSION<T>`, providing imported versions with their own audit trail and Contribution, distinct from those of the imported `ORIGINAL_VERSION`.
#[doc(alias = "IMPORTED_VERSION")]
#[derive(Debug, Clone, PartialEq)]
pub struct ImportedVersion<T> {
    // inherited: VERSION
    /// Contribution in which this version was added.
    pub contribution: ObjectRef,
    /// OpenPGP digital signature or digest of content committed in this Version.
    pub signature: Option<String>,
    /// Audit trail corresponding to the committal of this version to the `VERSIONED_OBJECT`.
    pub commit_audit: AuditDetails,
    /// The `ORIGINAL_VERSION` object that was imported.
    pub item: OriginalVersion<T>,
}