openehr-base 0.0.2

openEHR BASE 1.3.0: foundation + base types (generated from BMM)
Documentation
// @generated by openehr-codegen from BMM (`RESOURCE_DESCRIPTION_ITEM`) — DO NOT EDIT.

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

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

/// Language-specific detail of resource description.
///
/// When a resource is translated for use in another language environment, each `RESOURCE_DESCRIPTION_ITEM` needs to be copied and translated into the new language.
#[doc(alias = "RESOURCE_DESCRIPTION_ITEM")]
#[derive(Debug, Clone, PartialEq)]
pub struct ResourceDescriptionItem {
    /// The localised language in which the items in this description item are written.
    ///
    /// Encoded following the RFC 5646 standard, using ISO 639-1 (two-character) language codes, e.g. "en". It may include a region subtag conforming to ISO 3166-1 alpha-2 (two-character country codes), e.g. "pt-br" for Brazilian Portuguese.
    pub language: TerminologyCode,
    /// Purpose of the resource.
    pub purpose: String,
    /// Keywords which characterise this resource, used e.g. for indexing and searching.
    pub keywords: Option<Vec<String>>,
    /// Description of the uses of the resource, i.e. contexts in which it could be used.
    pub use_: Option<String>,
    /// Description of any misuses of the resource, i.e. contexts in which it should not be used.
    pub misuse: Option<String>,
    /// URIs of original clinical document(s) or description of which resource is a formalisation, in the language of this description item; keyed by meaning.
    pub original_resource_uri: Option<std::collections::BTreeMap<String, String>>,
    /// Additional language-senstive resource metadata, as a list of name/value pairs.
    pub other_details: Option<std::collections::BTreeMap<String, String>>,
}