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

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

use crate::v1_1::data_types::quantity::date_time::dv_date_time::DvDateTime;
use openehr_base::v1_2::base_types::identification::hier_object_id::HierObjectId;

/// Details of specification of Extract, used in a request to specify an Extract, or in a response, to describe what is actually in the Extract.
#[doc(alias = "SYNC_EXTRACT_SPEC")]
#[derive(Debug, Clone, PartialEq)]
pub struct SyncExtractSpec {
    /// True if the Versions from the Contribution are included; False if just the Contribution and its Audit are included.
    pub includes_versions: bool,
    /// List of Contributions to include / that are included in the Extract.
    pub contribution_list: Option<Vec<HierObjectId>>,
    /// Specify Contributions included in Extract by threshold date.
    pub contributions_since: Option<DvDateTime>,
    /// True if all Contributions in the record are included.
    pub all_contributions: Option<bool>,
}