openehr-rm 0.0.128

openEHR RM Reference Model, generated from BMM: generations v1_1 (RM 1.1.0) and v1_2 (RM 1.2.0, current)
Documentation
// @generated by openehr-codegen from BMM (`OPENEHR_CODE_SET_IDENTIFIERS`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_2::support::terminology::terminology_service::TerminologyService;

/// List of identifiers for code sets in the openEHR terminology.
#[doc(alias = "OPENEHR_CODE_SET_IDENTIFIERS")]
#[derive(Debug, Clone, PartialEq)]
pub struct OpenehrCodeSetIdentifiersData {}

impl OpenehrCodeSetIdentifiersData {
    /// BMM constant `Code_set_id_character_sets`.
    pub const CODE_SET_ID_CHARACTER_SETS: &str = "character sets";

    /// BMM constant `Code_set_id_compression_algorithms`.
    pub const CODE_SET_ID_COMPRESSION_ALGORITHMS: &str = "compression algorithms";

    /// BMM constant `Code_set_id_countries`.
    pub const CODE_SET_ID_COUNTRIES: &str = "countries";

    /// BMM constant `Code_set_integrity_check_algorithms`.
    pub const CODE_SET_INTEGRITY_CHECK_ALGORITHMS: &str = "integrity check algorithms";

    /// BMM constant `Code_set_id_languages`.
    pub const CODE_SET_ID_LANGUAGES: &str = "languages";

    /// BMM constant `Code_set_id_media_types`.
    pub const CODE_SET_ID_MEDIA_TYPES: &str = "media types";

    /// BMM constant `Code_set_id_normal_statuses`.
    pub const CODE_SET_ID_NORMAL_STATUSES: &str = "normal statuses";
}

/// Polymorphic slot of `OPENEHR_CODE_SET_IDENTIFIERS`, dispatched on each payload's `_type`.
///
/// List of identifiers for code sets in the openEHR terminology.
#[doc(alias = "OPENEHR_CODE_SET_IDENTIFIERS")]
#[derive(Debug, Clone, PartialEq)]
pub enum OpenehrCodeSetIdentifiers {
    /// The `TERMINOLOGY_SERVICE` subtype of `OPENEHR_CODE_SET_IDENTIFIERS`.
    TerminologyService(TerminologyService),
    /// An instance of `OPENEHR_CODE_SET_IDENTIFIERS` itself (its own, least-rich form).
    OpenehrCodeSetIdentifiers(OpenehrCodeSetIdentifiersData),
}