openehr-term 0.0.1

openEHR TERM 3.1.0 terminology data model, generated from BMM; vendored terminology XML in assets/
Documentation
// @generated by openehr-codegen from BMM (`TERMINOLOGY_GROUP`) — DO NOT EDIT.

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

use crate::terminology::terminology_concept::TerminologyConcept;
use crate::terminology::terminology_status::TerminologyStatus;

/// A single vocabulary, in a particular language, within a Terminology.
#[doc(alias = "TERMINOLOGY_GROUP")]
#[derive(Debug, Clone, PartialEq)]
pub struct TerminologyGroup {
    /// Name of this vocabulary.
    pub name: String,
    /// List of concepts (i.e. coded terms) in this vocabulary.
    pub concepts: Option<Vec<TerminologyConcept>>,
    /// Identifier used for terminology group in the openEHR Reference Model. The value is inferred from the `_name_` attribute.
    ///
    /// Valid values take the form of an xs:NCName value, i.e. cannot contain:
    ///
    /// * symbol characters `:, @, $, %, &, /, +, ,, ;`;
    /// * whitespace characters or different parentheses.
    ///
    /// An NCName cannot begin with a number, dot or minus character although these can appear later in the value.
    pub openehr_id: String,
    /// Status of this vocabulary.
    pub status: Option<TerminologyStatus>,
}