internal StructuredMeasurement(double val, CodableValue units) { if (units == null) { throw new ArgumentNullException("units"); } Value = val; Units = units; }
public File(string name, string contentType) : this() { if (string.IsNullOrEmpty(name)) { throw new ArgumentException("name"); } Name = name; ContentType = new CodableValue(contentType); }
public Condition(string name) : this() { Name = new CodableValue(name); }
public Allergy(string name) : this() { Name = new CodableValue(name); }
public Medication(string name) : this() { Name = new CodableValue(name); }
public Immunization(string name) : this() { Name = new CodableValue(name); }
public Language(CodableValue language, bool isPrimary) { LanguageValue = language; IsPrimary = new BooleanValue(isPrimary); }
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); } ); }
public Procedure(string name) : this() { Name = new CodableValue(name); }