protected virtual C_QUANTITY_ITEM CloneQuantityItem(openehr.openehr.am.openehr_profile.data_types.quantity.C_QUANTITY_ITEM o)
        {
            C_QUANTITY_ITEM result = new C_QUANTITY_ITEM();

            result.units = o.units().to_cil();

            if (o.magnitude() != null)
                result.magnitude = CloneIntervalOfReal(o.magnitude());

            if (!o.any_precision_allowed())
                result.precision = CloneIntervalOfInteger(o.precision());

            return result;
        }