public class SpecimenMacro extends Macro
| Constructor and Description |
|---|
SpecimenMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
SpecimenMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
SpecimenMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
SpecimenMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
AlternateContainerIdentifierSequence |
getAlternateContainerIdentifierSequence()
Retrieves pre-initialized object of Alternate Container Identifier 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.
|
ContainerComponentSequence |
getContainerComponentSequence()
Retrieves pre-initialized object of Container Component 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 |
getContainerDescription()
Return user-defined label identifier for Container Description.
|
java.lang.String |
getContainerIdentifier()
Return user-defined label identifier for Container Identifier.
|
ContainerTypeCodeSequence |
getContainerTypeCodeSequence()
Retrieves pre-initialized object of Container Type Code 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.
|
IssuerOfTheContainerIdentifierSequence |
getIssuerOfTheContainerIdentifierSequence()
Retrieves pre-initialized object of Issuer of the Container Identifier 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.
|
SpecimenDescriptionSequence |
getSpecimenDescriptionSequence()
Retrieves pre-initialized object of Specimen Description 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.
|
void |
setContainerDescription(java.lang.String strContainerDescription)
Sets Container Description.
|
void |
setContainerIdentifier(java.lang.String strContainerIdentifier)
Sets Container Identifier.
|
boolean |
validate()
Validates all the attributes in Specimen Macro
|
static boolean |
validate(IDataSet objIDataSet)
Validates all the attributes in Specimen Macro that are present in the DataSet
|
static boolean |
validate(IItem objIItem)
Validates all the attributes in Specimen Macro that are present in the DataSet
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic SpecimenMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic SpecimenMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - specifies the DataSetobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic SpecimenMacro(IItem objItem)
objItem - specifies instance of Item classpublic SpecimenMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic void setContainerIdentifier(java.lang.String strContainerIdentifier)
strContainerIdentifier - String value of Container Identifier.public java.lang.String getContainerIdentifier()
public IssuerOfTheContainerIdentifierSequence getIssuerOfTheContainerIdentifierSequence()
public AlternateContainerIdentifierSequence getAlternateContainerIdentifierSequence()
public ContainerTypeCodeSequence getContainerTypeCodeSequence()
public ContainerComponentSequence getContainerComponentSequence()
public SpecimenDescriptionSequence getSpecimenDescriptionSequence()
public void setContainerDescription(java.lang.String strContainerDescription)
strContainerDescription - String value of Container Description.public java.lang.String getContainerDescription()
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.