コード例 #1
0
 public static ApproxDateTime Now()
 {
     return(new ApproxDateTime
     {
         DateTime = StructuredDateTime.Now()
     });
 }
 public Height(StructuredDateTime when, LengthMeasurement length)
     : this()
 {
     if (when == null)
     {
         throw new ArgumentNullException("when");
     }
     if (length == null)
     {
         throw new ArgumentNullException("length");
     }
     When = when;
     Value = length;
 }
コード例 #3
0
ファイル: Weight.cs プロジェクト: bcl-lab-apps/EMRGENE
        public Weight(StructuredDateTime when, WeightMeasurement weight)
            : this()
        {
            if (when == null)
            {
                throw new ArgumentNullException("when");
            }
            if (weight == null)
            {
                throw new ArgumentNullException("weight");
            }

            When = when;
            Value = weight;
        }
コード例 #4
0
ファイル: BloodPressure.cs プロジェクト: bcl-lab-apps/EMRGENE
        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;
        }
 public ApproxDateTime(DateTimeOffset dt)
 {
     DateTime = new StructuredDateTime(dt);
 }
 public Height(StructuredDateTime when)
     : this(when, null)
 {
 }
コード例 #7
0
 public ApproxDateTime(DateTimeOffset dt)
 {
     DateTime = new StructuredDateTime(dt);
 }