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 (`RESOURCE_USAGE`) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0

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

#![expect(
    clippy::disallowed_types,
    reason = "adjudicated free-form JSON slots: serde_json::Value is workspace-banned (#1694); a generated carrier exists only where the spec leaves the slot open, and each adjudicated field's NOTE names its citation"
)]
use crate::v1_1::data_types::text::dv_text::DvText;
use crate::v1_1::resource::resource_use::ResourceUse;

/// The openEHR `RESOURCE_USAGE` class (the vendored BMM carries no documentation for it).
#[doc(alias = "RESOURCE_USAGE")]
#[derive(Debug, Clone, PartialEq)]
pub struct ResourceUsage {
    /// The `prospective` attribute of openEHR `RESOURCE_USAGE` (the vendored BMM carries no documentation for it).
    pub prospective: ResourceUse,
    /// The `actual` attribute of openEHR `RESOURCE_USAGE` (the vendored BMM carries no documentation for it).
    pub actual: ResourceUse,
    /// The `type` attribute of openEHR `RESOURCE_USAGE` (the vendored BMM carries no documentation for it).
    pub r#type: DvText,
    /// The `description` attribute of openEHR `RESOURCE_USAGE` (the vendored BMM carries no documentation for it).
    pub description: Option<String>,
    /// The `reference` attribute of openEHR `RESOURCE_USAGE` (the vendored BMM carries no documentation for it).
    pub reference: Option<serde_json::Value>,
}