public class DocumentRelationshipMacro extends Macro
| Constructor and Description |
|---|
DocumentRelationshipMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
DocumentRelationshipMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
DocumentRelationshipMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
DocumentRelationshipMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and Dictionary Reader
|
| Modifier and Type | Method and Description |
|---|---|
ContentSequence |
getContentSequence()
Retrieves pre-initialized object of Content Sequence.If the module contains the sequence object
it returns the same otherwise it creates the sequence adds to the module with proper initialization
and then returns the object of sequence
|
ContentTemplateSequence |
getContentTemplateSequence()
Retrieves pre-initialized object of Content Template Sequence.If the module contains the sequence object
it returns the same otherwise it creates the sequence adds to the module with proper initialization
and then returns the object of sequence
|
java.lang.String |
getObservationDateTime()
Retrieves The date and time on which this Content Item was completed.
|
void |
setObservationDateTime(java.lang.String strObservationDateTime)
Sets The date and time on which this Content Item was completed.
|
boolean |
validate()
Validates all the attributes in Document Relationship Macro
|
static boolean |
validate(IDataSet objIDataSet)
Validates all the attributes in Document Relationship Macro that are present in the DataSet
|
static boolean |
validate(IItem objIItem)
Validates all the attributes in Document Relationship Macro that are present in the DataSet
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic DocumentRelationshipMacro(IDataSet objDataSet)
objDataSet - Collection of Data Elementspublic DocumentRelationshipMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - specifies the DataSetobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic DocumentRelationshipMacro(IItem objItem)
objItem - specifies instance of Item classpublic DocumentRelationshipMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic void setObservationDateTime(java.lang.String strObservationDateTime)
strObservationDateTime - String value of Observation Date Time.public java.lang.String getObservationDateTime()
public ContentTemplateSequence getContentTemplateSequence()
public ContentSequence getContentSequence()
public boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public static boolean validate(IDataSet objIDataSet) throws InvalidMacroException
objIDataSet - collection of DataElementsInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public static boolean validate(IItem objIItem) throws InvalidMacroException
objIItem - collection of DataElements in a sequenceInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.