openehr-base 0.0.128

openEHR BASE foundation + base types, generated from BMM: generations v1_2 (BASE 1.2.0) and v1_3 (BASE 1.3.0, current)
Documentation
// @generated by openehr-codegen from BMM (`TRANSLATION_DETAILS`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

use crate::v1_2::foundation_types::terminology::terminology_code::TerminologyCode;

/// Class providing details of a natural language translation.
#[doc(alias = "TRANSLATION_DETAILS")]
#[derive(Debug, Clone, PartialEq)]
pub struct TranslationDetails {
    /// Language of the translation, coded using ISO 639-1 (2 character) language codes.
    pub language: TerminologyCode,
    /// Primary translator name and other demographic details.
    pub author: std::collections::BTreeMap<String, String>,
    /// Accreditation of primary translator or group, usually a national translator's registration or association membership id.
    pub accreditation: Option<String>,
    /// Any other meta-data.
    pub other_details: Option<std::collections::BTreeMap<String, String>>,
    /// Version of this resource last time it was translated into the language represented by this `TRANSLATION_DETAILS` object.
    pub version_last_translated: Option<String>,
    /// Additional contributors to this translation, each listed in the preferred format of the relevant organisation for the artefacts in question.
    ///
    /// A typical default is `"name <email>"` if nothing else is specified.
    pub other_contributors: Option<Vec<String>>,
}