openehr-lang 0.0.128

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 (`REFERENCE_MODEL_ACCESS`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0
// Hand-written spec functions/invariants live in the sibling `*_impl.rs`.

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

use crate::v1_1::bmm::core::bmm_model::BmmModel;
use crate::v1_1::bmm::rm_access::schema_descriptor::SchemaDescriptor;

/// Access to service interface to BMM object model.
#[doc(alias = "REFERENCE_MODEL_ACCESS")]
#[derive(Debug, Clone, PartialEq)]
pub struct ReferenceModelAccess {
    /// List of directories where all the schemas loaded here are found.
    pub schema_directories: Option<Vec<String>>,
    /// All schemas found and loaded from `schema_directories`. Keyed by schema_id, i.e. model_publisher '_' schema_name '_' model_release, e.g. openehr_rm_1.0.3.
    pub all_schemas: Option<std::collections::BTreeMap<String, SchemaDescriptor>>,
    /// Top-level (root) models in use. Keyed by logical schema_name, i.e. model_publisher '_' model_name, e.g. "openehr_rm".
    pub valid_models: Option<std::collections::BTreeMap<String, BmmModel>>,
}