openehr-rm 0.0.4

openEHR RM 1.2.0 Reference Model, generated from BMM
Documentation
// @generated by openehr-codegen from BMM (`REVISION_HISTORY_ITEM`) — DO NOT EDIT.

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

use crate::common::generic::audit_details::AuditDetails;
use openehr_base::prelude::ObjectVersionId;

/// An entry in a revision history, corresponding to a version from a versioned container.
///
/// Consists of `AUDIT_DETAILS` instances with revision identifier of the revision to which the `AUDIT_DETAILS` instance belongs.
#[doc(alias = "REVISION_HISTORY_ITEM")]
#[derive(Debug, Clone, PartialEq)]
pub struct RevisionHistoryItem {
    /// Version identifier for this revision.
    pub version_id: ObjectVersionId,
    /// The audits for this revision; there will always be at least one commit audit (which may itself be an `ATTESTATION`), there may also be further attestations.
    pub audits: openehr_base::containers::NonEmptyVec<AuditDetails>,
}