public class MCdateItem extends MCcontentItem
DATE type is used to keep the date of occurrence of the type of event denoted by the Concept Name which is a code sequence describing the concept represented by this content item.
Constructor and Description |
---|
MCdateItem()
Default constructor.
|
MCdateItem(MCdate date,
MCbasicCodedEntry conceptName)
Creates a new instance of the DATE Content Item.
|
Modifier and Type | Method and Description |
---|---|
MCcontentItemType |
contentItemType()
Gets the value type of this content item.
|
MCdate |
getDate()
Gets the date of occurrence of event.
|
void |
read(MCattributeSet source)
Reads the DATE content item from the source attribute set.
|
void |
setDate(MCdate date)
Sets the date of occurrence of event.
|
void |
write(MCattributeSet destination)
Writes the DATE 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 MCdateItem()
public MCdateItem(MCdate date, MCbasicCodedEntry conceptName)
date
- Date of occurrence of event.conceptName
- Concept Name for the event.public MCdate getDate()
public void setDate(MCdate date)
date
- The date of occurrence of event.public MCcontentItemType contentItemType()
contentItemType
in class MCcontentItem
MCcontentItemType.DATE
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.