// @generated by openehr-codegen from BMM (`INSTRUCTION_DETAILS`) — DO NOT EDIT.
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.
//! The openEHR `INSTRUCTION_DETAILS` spec class, generated from the vendored BMM
//! meta-model.
use crate::data_structures::item_structure::item_structure::ItemStructure;
use openehr_base::prelude::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>,
}