Show / Hide Table of Contents

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.

Inheritance
System.Object
Element
Quantity
Age
Count
Distance
Duration
Money
SimpleQuantity
Implements
IFhirJsonSerializable
Inherited Members
Element.Extension
Element.Fhir_comments
Element._Fhir_comments
Element.Id
Element._Id
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
| Improve this Doc View Source

_Comparator

Extension container element for Comparator

Declaration
public Element _Comparator { get; set; }
Property Value
Type Description
Element
| Improve this Doc View Source

_System

Extension container element for System

Declaration
public Element _System { get; set; }
Property Value
Type Description
Element
| Improve this Doc View Source

_Unit

Extension container element for Unit

Declaration
public Element _Unit { get; set; }
Property Value
Type Description
Element
| Improve this Doc View Source

_Value

Extension container element for Value

Declaration
public Element _Value { get; set; }
Property Value
Type Description
Element
| Improve this Doc View Source

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.String
| Improve this Doc View Source

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.String
| Improve this Doc View Source

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.String
| Improve this Doc View Source

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.String
| Improve this Doc View Source

Value

Precision is handled implicitly in almost all cases of measurement.

Declaration
public decimal? Value { get; set; }
Property Value
Type Description
System.Nullable<System.Decimal>

Methods

| Improve this Doc View Source

DeserializeJson(ref Utf8JsonReader, JsonSerializerOptions)

Deserialize a JSON object

Declaration
public void DeserializeJson(ref Utf8JsonReader reader, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader
JsonSerializerOptions options
| Improve this Doc View Source

DeserializeJsonProperty(ref Utf8JsonReader, JsonSerializerOptions, String)

Deserialize a JSON property

Declaration
public void DeserializeJsonProperty(ref Utf8JsonReader reader, JsonSerializerOptions options, string propertyName)
Parameters
Type Name Description
Utf8JsonReader reader
JsonSerializerOptions options
System.String propertyName
| Improve this Doc View Source

SerializeJson(Utf8JsonWriter, JsonSerializerOptions, Boolean)

Serialize to a JSON object

Declaration
public void SerializeJson(Utf8JsonWriter writer, JsonSerializerOptions options, bool includeStartObject = true)
Parameters
Type Name Description
Utf8JsonWriter writer
JsonSerializerOptions options
System.Boolean includeStartObject

Implements

IFhirJsonSerializable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX