openehr-lang 0.0.76

openEHR LANG BMM/P_BMM object model, generated from BMM: generations v1_0 (LANG 1.0.0) and v1_1 (LANG 1.1.0, current; the stable BMM v2.x unit beside the paused BMM3 unit), plus hand-written ODIN/BEL/EL readers
Documentation
// @generated by openehr-codegen from BMM (`EXTERNAL_QUERY`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Vernum Projecten B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

/// Definition of a variable whose value is derived from a query run on a data context in the operational environment.
///
/// Typical uses of this kind of variable are to obtain values like the patient date of birth, sex, weight, and so on. It could also be used to obtain items from a knowledge context, such as a drug database.
#[doc(alias = "EXTERNAL_QUERY")]
#[derive(Debug, Clone, PartialEq)]
pub struct ExternalQuery {
    /// Optional name of context.
    ///
    /// This allows a basic separation of query types to be done in more sophisticated environments. Possible values might be “patient”, “medications” and so on.
    /// Not yet standardised.
    pub context: String,
    /// Identifier of query in the external context, e.g. “date_of_birth”.
    /// Not yet standardised.
    pub query_id: String,
    /// Optional arguments to query.
    /// Not yet standardised.
    pub query_args: Option<Vec<String>>,
}