Quantity

A number with an optional unit, where the unit is itself a coded value.

Kind
Concrete class
Attributes
5, 3 required
NCI code
C25256

Official definition

How much there is of something that can be measured; the total amount or number.
Quantity, CDISC USDM 4.0, NCI C25256

Inheritance

Quantity is a kind of QuantityRange and inherits its attributes. Wherever the model asks for a QuantityRange, a Quantity can be used.

Attributes

5 attributes, 3 of them required by the USDM API schema.

AttributeTypeCard.Definition
idrequiredstringcardinality 1The identifier of this object, unique within the file.Inherited from QuantityRange
valuerequiredfloatcardinality 1A numerical quantity measured or assigned or computed.
unitAliasCodecardinality 0..1The type of unit of measure being used to express a quantity.CDISC SDTM codelist C71620 (NCI EVS)
extensionAttributesExtensionAttributecardinality 0..*Extension attributes attached to this object, for information the standard does not define. Added by the API; not part of the logical model.
instanceTyperequiredstringcardinality 1The name of the class, carried by every object in a USDM JSON file. Added by the API; not part of the logical model.

Smallest valid Quantity

The attributes a JSON file must carry for a Quantity, and the kind of value each takes. This is the shape, with types named in place of values. Everything else in the table above is optional.

Quantity, required attributes only
{
  "id": "Quantity_1",
  "value": float,
  "instanceType": "Quantity"
}

Where Quantity is used

These classes hold or point to a Quantity.

Example

A Quantity from the example study. Coded values are shortened to one line.

Quantity_7
{
  "id": "Quantity_7",
  "value": 16,
  "unit": { "standardCode": { "code": "C29844", "decode": "Week", … }, … },
  "instanceType": "Quantity"
}

Other classes in codes, quantities and extensions:

← All 86 classes