Class Quantity
A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
Implements
Inherited Members
Namespace: fhirCsR2.Models
Assembly: fhirCsR2.dll
Syntax
public class Quantity : Element, IFhirJsonSerializable
Properties
| Improve this Doc View Source_Code
Extension container element for Code
Declaration
public Element _Code { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Comparator
Extension container element for Comparator
Declaration
public Element _Comparator { get; set; }
Property Value
Type | Description |
---|---|
Element |
_System
Extension container element for System
Declaration
public Element _System { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Unit
Extension container element for Unit
Declaration
public Element _Unit { get; set; }
Property Value
Type | Description |
---|---|
Element |
_Value
Extension container element for Value
Declaration
public Element _Value { get; set; }
Property Value
Type | Description |
---|---|
Element |
Code
Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.
Declaration
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System. |
Comparator
Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.
Declaration
public string Comparator { get; set; }
Property Value
Type | Description |
---|---|
System. |
System
Need to know the system that defines the coded form of the unit.
Declaration
public string System { get; set; }
Property Value
Type | Description |
---|---|
System. |
Unit
There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.
Declaration
public string Unit { get; set; }
Property Value
Type | Description |
---|---|
System. |
Value
Precision is handled implicitly in almost all cases of measurement.
Declaration
public decimal? Value { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceDeserializeJson(ref Utf8JsonReader, JsonSerializerOptions)
Deserialize a JSON object
Declaration
public void DeserializeJson(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options |
DeserializeJsonProperty(ref Utf8JsonReader, JsonSerializerOptions, String)
Deserialize a JSON property
Declaration
public void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
reader | |
Json |
options | |
System. |
propertyName |
SerializeJson(Utf8JsonWriter, JsonSerializerOptions, Boolean)
Serialize to a JSON object
Declaration
public void SerializeJson(Utf8JsonWriter writer, JsonSerializerOptions options, bool includeStartObject = true)
Parameters
Type | Name | Description |
---|---|---|
Utf8Json |
writer | |
Json |
options | |
System. |
includeStartObject |