openehr-term 0.0.128

openEHR TERM terminology data model, generated from BMM (generation v3_1 = TERM 3.1.0), plus the embedded official terminology XML bundle
Documentation
// @generated by openehr-codegen from BMM (`CODE_SET`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v3_1::terminology::code::Code;
use crate::v3_1::terminology::terminology_status::TerminologyStatus;

/// A code set.
#[doc(alias = "CODE_SET")]
#[derive(Debug, Clone, PartialEq)]
pub struct CodeSet {
    /// Name of this code set.
    pub name: String,
    /// Identifier used for code set 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,
    /// Name of the issuing organisation.
    pub issuer: String,
    /// Codes in this code set.
    pub codes: Option<Vec<Code>>,
    /// An optional identifier assumed by openEHR to be the identifier of this code set, based on its published name, with spaces replaced by underscores.
    ///
    /// 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 external_id: Option<String>,
    /// Status of this code set.
    pub status: Option<TerminologyStatus>,
}