openehr-lang 0.0.2

openEHR LANG 1.0.0: BMM/P_BMM object model (generated from BMM) plus a hand-written ODIN instance parser (the `odin` module — deliberately off the codegen path).
Documentation
// @generated by openehr-codegen from BMM (`EXTERNAL_QUERY`) — DO NOT EDIT.

//! 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>>,
}