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

            Name = name;
            ContentType = new CodableValue(contentType);
        }
 public Procedure(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
 public Medication(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
Exemple #6
0
 public Immunization(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
 public Allergy(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
Exemple #8
0
 public Condition(string name)
     : this()
 {
     Name = new CodableValue(name);
 }
 public Language(CodableValue language, bool isPrimary)
 {
     LanguageValue = language;
     IsPrimary = new BooleanValue(isPrimary);
 }
 public Language(CodableValue language, bool isPrimary)
 {
     LanguageValue = language;
     IsPrimary     = new BooleanValue(isPrimary);
 }
Exemple #11
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);
                      }
                );
        }