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

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

use crate::v1_1::data_structures::item_structure::item_structure::ItemStructure;
use openehr_base::v1_2::base_types::identification::locatable_ref::LocatableRef;

/// Used to record details of the Instruction causing an Action.
#[doc(alias = "INSTRUCTION_DETAILS")]
#[derive(Debug, Clone, PartialEq)]
pub struct InstructionDetails {
    /// Reference to causing Instruction.
    pub instruction_id: LocatableRef,
    /// Identifier of Activity within Instruction, in the form of its archetype path.
    pub activity_id: String,
    /// Various workflow engine state details, potentially including such things as:
    ///
    /// * condition that fired to cause this Action to be done (with actual variables substituted);
    /// * list of notifications which actually occurred (with all variables substituted);
    /// * other workflow engine state.
    ///
    /// This specification does not currently define the actual structure or semantics of this field.
    pub wf_details: Option<ItemStructure>,
}