Exemplo n.º 1
0
        public BloodPressure(StructuredDateTime when, NonNegativeInt systolic, NonNegativeInt diastolic)
            : this()
        {
            if (when == null)
            {
                throw new ArgumentNullException("when");
            }

            if (systolic == null)
            {
                throw new ArgumentNullException("systolic");
            }

            if (diastolic == null)
            {
                throw new ArgumentNullException("diastolic");
            }

            When = when;
            Systolic = systolic;
            Diastolic = diastolic;
        }
Exemplo n.º 2
0
 internal static string ToTextValue(NonNegativeInt obj)
 {
     return (obj != null) ? XmlConvert.ToString(obj.Value) : null;
 }