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.
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.
| Attribute | Type | Card. | Definition |
|---|---|---|---|
| idrequired | string | cardinality 1 | The identifier of this object, unique within the file.Inherited from QuantityRange |
| valuerequired | float | cardinality 1 | A numerical quantity measured or assigned or computed. |
| unit | AliasCode | cardinality 0..1 | The type of unit of measure being used to express a quantity.CDISC SDTM codelist C71620 (NCI EVS) |
| extensionAttributes | ExtensionAttribute | cardinality 0..* | Extension attributes attached to this object, for information the standard does not define. Added by the API; not part of the logical model. |
| instanceTyperequired | string | cardinality 1 | The 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.
- AdministrableProductProperty.quantitynested
- Administration.dosenested
- ExtensionAttribute.valueQuantitynested
- Range.minValuenested
- Range.maxValuenested
- Strength.denominatornested
- StudyIntervention.minimumResponseDurationnested
- SubjectEnrollment.quantitynested
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"
}
Related classes
Other classes in codes, quantities and extensions: