openehr-am 0.0.129

openEHR AM Archetype Model, generated from BMM: generations v1_4 (AM 1.4.0, ADL 1.4) and v2_4 (AM 2.4.0, ADL 2; current)
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

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

use crate::v2_4::bmm::core::bmm_model::BmmModel;
use crate::v2_4::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>>,
}