public class GeneralAnatomyOptionalMacro extends Macro
| Constructor and Description |
|---|
GeneralAnatomyOptionalMacro(IDataSet objDataSet)
Creates General Anatomy Optical Macro with Default DataSet.
|
GeneralAnatomyOptionalMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
Creates General Anatomy Required Macro with Default DataSet and DictionaryReader.
|
GeneralAnatomyOptionalMacro(IItem objItem)
Creates General Anatomy Required Macro with Default Item.
|
GeneralAnatomyOptionalMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
Creates General Anatomy Required 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 CodeSequenceMacro
|
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 GeneralAnatomyOptionalMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic GeneralAnatomyOptionalMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - Collection of DataElements.objDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic GeneralAnatomyOptionalMacro(IItem objItem)
objItem - Collection of DataElements in Sequence.public GeneralAnatomyOptionalMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - Collection of DataElements in Sequence.objDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic 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 MacroInvalidMacroException - If Validation of Macro fails.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(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 MacroInvalidMacroExceptionpublic PrimaryAnatomicStructureMacro getPrimaryAnatomicStructureMacro()
public boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.