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

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

use crate::v1_1::ehr_extract::generic_extract::generic_content_item::GenericContentItem;
use crate::v1_1::ehr_extract::openehr_extract::openehr_content_item::OpenehrContentItem;

/// Closed subtype set of `EXTRACT_CONTENT_ITEM`, dispatched on each payload's `_type`.
///
/// Abstract model of a wrapper for one content item in an Extract, containing various meta-data.
///
/// Indicates whether it was part of the primary set and what its original path was. Intended to be subtyped for wrappers of specific types of content.
#[doc(alias = "EXTRACT_CONTENT_ITEM")]
#[derive(Debug, Clone, PartialEq)]
pub enum ExtractContentItem {
    /// The `GENERIC_CONTENT_ITEM` subtype of `EXTRACT_CONTENT_ITEM`.
    GenericContentItem(GenericContentItem),
    /// The `OPENEHR_CONTENT_ITEM` subtype of `EXTRACT_CONTENT_ITEM`.
    OpenehrContentItem(OpenehrContentItem),
}