openehr-term 0.0.4

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

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

use crate::terminology::code_set::CodeSet;
use crate::terminology::terminology_group::TerminologyGroup;
use openehr_base::prelude::Iso8601Date;

/// Container for code sets and/or vocabularies that belong to a given logical terminology.
#[doc(alias = "TERMINOLOGY")]
#[derive(Debug, Clone, PartialEq)]
pub struct Terminology {
    /// Name of this terminology.
    pub name: String,
    /// Language of this terminology, as an ISO:639 2-letter code.
    pub language: String,
    /// Code sets in this Terminology.
    pub code_sets: Option<Vec<CodeSet>>,
    /// Vocabularies of coded terms in this terminology.
    pub vocabularies: Option<Vec<TerminologyGroup>>,
    /// Version of this instance of the terminology.
    pub version: Option<String>,
    /// Date of issue of this version of the terminology.
    pub date: Option<Iso8601Date>,
}