internal StructuredMeasurement(double val, CodableValue units)
 {
     if (units == null)
     {
         throw new ArgumentNullException("units");
     }
     Value = val;
     Units = units;
 }
Esempio n. 2
0
        public File(string name, string contentType)
            : this()
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("name");
            }

            Name = name;
            ContentType = new CodableValue(contentType);
        }
Esempio n. 3
0
 public Condition(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
Esempio n. 4
0
 public Allergy(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
Esempio n. 5
0
 public Medication(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
Esempio n. 6
0
 public Immunization(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
Esempio n. 7
0
 public Language(CodableValue language, bool isPrimary)
 {
     LanguageValue = language;
     IsPrimary = new BooleanValue(isPrimary);
 }
Esempio n. 8
0
        public IAsyncAction UploadAsync(IRecord record, string contentType, int size, IInputStream stream)
        {
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            return AsyncInfo.Run(
                async cancelToken =>
                      {
                          Size = size;
                          if (string.IsNullOrEmpty(contentType))
                          {
                              contentType = HttpStreamer.OctetStreamMimeType;
                          }

                          ContentType = new CodableValue(contentType);

                          var blobInfo = new BlobInfo(contentType);
                          await record.PutBlobInItem(Item, blobInfo, stream).AsTask(cancelToken);
                      }
                );
        }
Esempio n. 9
0
 public Procedure(string name)
     : this()
 {
     Name = new CodableValue(name);
 }