openehr-rm 0.0.2

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

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

use crate::common::generic::party_identified::PartyIdentified;
use crate::common::generic::party_self::PartySelf;

/// Closed subtype set of `PARTY_PROXY`, dispatched on each payload's `_type`.
///
/// Abstract concept of a proxy description of a party, including an optional link to data for this party in a demographic or other identity management system.
///
/// Sub- typed into `PARTY_IDENTIFIED` and `PARTY_SELF`.
#[doc(alias = "PARTY_PROXY")]
#[derive(Debug, Clone, PartialEq)]
pub enum PartyProxy {
    /// The `PARTY_IDENTIFIED` subtype of `PARTY_PROXY`.
    PartyIdentified(PartyIdentified),
    /// The `PARTY_SELF` subtype of `PARTY_PROXY`.
    PartySelf(PartySelf),
}