public class MCcodeItem extends MCcontentItem
This class provides the functionality to manipulate a CODE content item according to the definition of CODE MACRO.
CODE type is used to describe: categorical coded value, representation of nominal or non-numeric ordinal values.
| Constructor and Description |
|---|
MCcodeItem()
Default constructor.
|
MCcodeItem(MCbasicCodedEntry code,
MCbasicCodedEntry conceptName)
Creates a new instance of the CODE Content Item.
|
| Modifier and Type | Method and Description |
|---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
MCbasicCodedEntry |
getCode()
Gets coded value (0040, A168).
|
void |
read(MCattributeSet source)
Reads the CODE content item from the source attribute set.
|
void |
setCode(MCbasicCodedEntry code)
Gets coded value (0040, A168).
|
void |
write(MCattributeSet destination)
Writes the CODE 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, setRelationshipTypepublic MCcodeItem()
public MCcodeItem(MCbasicCodedEntry code, MCbasicCodedEntry conceptName)
code - Coded expression of the concept (0040, A168).conceptName - Concept Name (0040, A043).public MCbasicCodedEntry getCode()
public void setCode(MCbasicCodedEntry code)
code - Coded value.public MCcontentItemType contentItemType()
contentItemType in class MCcontentItemMCcontentItemType.CODE.public void read(MCattributeSet source)
read in interface MCdataSetSerializableread in class MCcontentItemsource - Source attribute set.MCexception - If the source parameter is null.public void write(MCattributeSet destination)
write in interface MCdataSetSerializablewrite in class MCcontentItemdestination - Destination attribute set.MCexception - If the destination parameter is null or
is NOT an MCitem object.