openehr-rm 0.0.4

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

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

use crate::data_types::quantity::date_time::dv_date_time::DvDateTime;
use openehr_base::prelude::HierObjectId;
use openehr_base::prelude::ObjectRef;

/// Version container for `EHR_ACCESS` instance.
#[doc(alias = "VERSIONED_EHR_ACCESS")]
#[derive(Debug, Clone, PartialEq)]
pub struct VersionedEhrAccess {
    // inherited: VERSIONED_OBJECT
    /// Unique identifier of this version container in the form of a UID with no extension.
    ///
    /// This id will be the same in all instances of the same container in a distributed environment, meaning that it can be understood as the uid of the  virtual version tree.
    pub uid: HierObjectId,
    /// Reference to object to which this version container belongs, e.g. the id of the containing EHR or other relevant owning entity.
    pub owner_id: ObjectRef,
    /// Time of initial creation of this versioned object.
    pub time_created: DvDateTime,
}