public class MCnumItem extends MCcontentItem
A NUM content item is used to convey numeric value fully qualified by coded representation of the measurement name and unit of measurement.
Constructor and Description |
---|
MCnumItem()
Default constructor.
|
MCnumItem(java.util.List<java.lang.String> values,
MCbasicCodedEntry units,
MCbasicCodedEntry conceptName)
Creates a new instance of the NUM Content Item.
|
MCnumItem(java.lang.String value,
MCbasicCodedEntry units,
MCbasicCodedEntry conceptName)
Creates a new instance of the NUM Content Item.
|
Modifier and Type | Method and Description |
---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
MCbasicCodedEntry |
getQualifier()
Gets Qualification of Numeric Value in Measured Value
Sequence, or reason for absence of Measured Value
Sequence Item.
|
MCbasicCodedEntry |
getUnits()
Gets Unit of Measurement associated with the value.
|
java.util.List<java.lang.String> |
getValues()
Gets numeric values.
|
void |
read(MCattributeSet source)
Reads the NUM content item from the source attribute set.
|
void |
setQualifier(MCbasicCodedEntry qualifier)
Sets Qualification of Numeric Value in Measured Value
Sequence, or reason for absence of Measured Value
Sequence Item.
|
void |
setUnits(MCbasicCodedEntry units)
Sets Unit of Measurement associated with the value.
|
void |
setValues(java.util.List<java.lang.String> values)
Sets numeric values.
|
void |
setValues(java.lang.String[] valueArray)
Sets numeric values.
|
void |
write(MCattributeSet destination)
Writes the NUM content item to the destination attribute set.
|
addChild, addChildAt, addReference, getChildAt, getChildren, getConceptName, getDataContext, getItemId, getObservationDateTime, getObservationUID, getParent, getPosition, getReferences, getRelationshipType, getRootItem, removeChild, removeChildAt, removeReference, removeReference, setConceptName, setDataContext, setObservationDataTime, setObservationUID, setRelationshipType
public MCnumItem()
public MCnumItem(java.util.List<java.lang.String> values, MCbasicCodedEntry units, MCbasicCodedEntry conceptName)
values
- Numeric value(s).units
- Unit of Measurement.conceptName
- Concept Name.public MCnumItem(java.lang.String value, MCbasicCodedEntry units, MCbasicCodedEntry conceptName)
value
- Numeric value.units
- Unit of Measurement.conceptName
- Concept Name.public java.util.List<java.lang.String> getValues()
public void setValues(java.util.List<java.lang.String> values)
values
- Numeric values.public void setValues(java.lang.String[] valueArray)
valueArray
- Numeric values.public MCbasicCodedEntry getUnits()
public void setUnits(MCbasicCodedEntry units)
units
- Unit of Measurement.public MCbasicCodedEntry getQualifier()
public void setQualifier(MCbasicCodedEntry qualifier)
qualifier
- Qualification of Numeric Value or reason
for absence of Measured Value Sequence Item.public MCcontentItemType contentItemType()
contentItemType
in class MCcontentItem
MCcontentItemType.NUM
public void read(MCattributeSet source)
read
in interface MCdataSetSerializable
read
in class MCcontentItem
source
- Source attribute set.MCexception
- If the source parameter is null.public void write(MCattributeSet destination)
write
in interface MCdataSetSerializable
write
in class MCcontentItem
destination
- Destination attribute set.MCexception
- If the destination parameter is null or
is NOT an MCitem
object.