public class PrimaryAnatomicStructureMacro extends Macro
| Constructor and Description |
|---|
PrimaryAnatomicStructureMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
PrimaryAnatomicStructureMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
PrimaryAnatomicStructureMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
PrimaryAnatomicStructureMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
PrimaryAnatomicStructureSequence |
getPrimaryAnatomicStructureSequence()
Retrieves pre-initialized object of Primary Anatomic Structure 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
|
static boolean |
isMacroPresent(IDataSet objIDataSet)
This method checks if any of the DataElements belonging to this Macro is present in the DataSet.
|
static boolean |
isMacroPresent(IItem objIItem)
This method checks if any of the DataElements belonging to this Macro is present in the Item.
|
boolean |
validate()
Validates all the attributes in Primary Anatomic Structure Macro
|
boolean |
validate(IDataSet objIDataSet)
This method checks for the DataElements of the DataSet according to the Digital Signatures Macro
|
boolean |
validate(IItem objIItem)
This method checks for the DataElements of the Item according to the Primary Anatomic Structure Macro
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic PrimaryAnatomicStructureMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic PrimaryAnatomicStructureMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - Collection of DataElementsobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic PrimaryAnatomicStructureMacro(IItem objItem)
objItem - specifies instance of Item classpublic PrimaryAnatomicStructureMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic PrimaryAnatomicStructureSequence getPrimaryAnatomicStructureSequence()
public boolean validate(IItem objIItem) throws InvalidMacroException
objIItem - object of Item for which the the validation is to be done according to the
rules of Digital Signatures MacroInvalidMacroException - Signals Macro Validation is failed.public static boolean isMacroPresent(IDataSet objIDataSet)
objIDataSet - object of DataSet in which the Macro is to be searchedpublic static boolean isMacroPresent(IItem objIItem)
objIItem - object of Item in which the Macro is to be searchedpublic boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public boolean validate(IDataSet objIDataSet) throws InvalidMacroException
objIDataSet - object of DataSet for which the the validation is to be done according to the
rules of Digital Signatures MacroInvalidMacroException - If Validation of Macro fails.