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; }
protected virtual DV_QUANTITY CloneDvQuantity(openehr.openehr.am.openehr_profile.data_types.quantity.Impl.QUANTITY o) { DV_QUANTITY result = new DV_QUANTITY(); // Inherits DV_AMOUNT (only in Reference Model) // 0..1 normal_range DV_INTERVAL // 0..* other_reference_ranges REFERENCE_RANGE // 0..1 normal_status CODE_PHRASE // 0..1 magnitude_status string // 0..1 accuracy float // 0..1 accuracy_is_percent boolean result.magnitude = o.magnitude(); result.precision = o.precision(); if (o.units() != null) result.units = o.units().ToString(); return result; }