openehr-rm 0.0.4

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

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

use crate::ehr_extract::generic_extract::generic_content_item::GenericContentItem;
use crate::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),
}