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

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

use crate::v1_1::ehr_extract::message::message::Message;

/// The concept of a message addressed to nominated recipients.
#[doc(alias = "ADDRESSED_MESSAGE")]
#[derive(Debug, Clone, PartialEq)]
pub struct AddressedMessage {
    /// Party sending the message.
    pub sender: String,
    /// Identification of message used by sender. This will be the same no matter how many times this message is sent to these recipients.
    pub sender_reference: String,
    /// Intended recipients, in the form of internet addresses.
    pub addressees: openehr_base::containers::NonEmptyVec<String>,
    /// Urgency with which destination should deal with message:
    ///
    /// * -1 - low
    /// * 0 - normal
    /// * 1 - high
    pub urgency: Option<i32>,
    /// The content of the message.
    pub message: Message,
}