public class GeneralAnatomyMandatoryMacro extends Macro
| Constructor and Description |
|---|
GeneralAnatomyMandatoryMacro(IDataSet objDataSet)
Creates General Anatomy Mandatory Macro with Default DataSet.
|
GeneralAnatomyMandatoryMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
Creates General Anatomy Mandatory Macro with Default DataSet and DictionaryReader.
|
GeneralAnatomyMandatoryMacro(IItem objItem)
Creates General Anatomy Mandatory Macro with Default Item.
|
GeneralAnatomyMandatoryMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
Creates General Anatomy Mandatory Macro with Default Item and DictionaryReader.
|
| Modifier and Type | Method and Description |
|---|---|
AnatomicRegionSequence |
getAnatomicRegionSequence()
Retrieves pre-initialized object of Anatomic Region 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
|
PrimaryAnatomicStructureMacro |
getPrimaryAnatomicStructureMacro()
Return the Primary Anatomic Structure Macro instance.
|
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 GeneralAnatomyMandatoryMacro
|
boolean |
validate(IDataSet objIDataSet)
This method checks for the DataElements of the DataSet according to the General Anatomy Optional Macro
|
boolean |
validate(IItem objIItem)
This method checks for the DataElements of the Item according to the General Anatomy Optional Macro
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic GeneralAnatomyMandatoryMacro(IDataSet objDataSet)
objDataSet - Collection of DataElements.public GeneralAnatomyMandatoryMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - Collection of DataElements.objDictionaryReader - specifies the DICOM Dictionary reader to be used.public GeneralAnatomyMandatoryMacro(IItem objItem)
objItem - Collection of DataElements in Sequence.public GeneralAnatomyMandatoryMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - Collection of DataElements in Sequence.objDictionaryReader - specifies the DICOM Dictionary reader to be used.public AnatomicRegionSequence getAnatomicRegionSequence()
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 General Anatomy Optional Macro.InvalidMacroException - If Validation of Macro fails.public static boolean isMacroPresent(IDataSet objIDataSet)
objIDataSet - object of DataSet in which the Macro is to be searched.public static boolean isMacroPresent(IItem objIItem)
objIItem - object of Item in which the Macro is to be searched.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 General Anatomy Optional Macro.InvalidMacroException - Signals Macro Validation is failed.public boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public PrimaryAnatomicStructureMacro getPrimaryAnatomicStructureMacro()