com.pixelmed.dicom
Class HierarchicalSOPInstanceReference

java.lang.Object
  extended by com.pixelmed.dicom.HierarchicalSOPInstanceReference

public class HierarchicalSOPInstanceReference
extends Object

A class to represent the study, series and instance identifiers necessary to retrieve a specific instance using the hierarchical model.

Used, for example, when extracting a map of instance uids to hierarchical references from an SR evidence sequence.


Field Summary
protected  String seriesInstanceUID
           
protected  String sopClassUID
           
protected  String sopInstanceUID
           
protected  String studyInstanceUID
           
 
Constructor Summary
HierarchicalSOPInstanceReference(String studyInstanceUID, String seriesInstanceUID, String sopInstanceUID, String sopClassUID)
          Construct an instance of a reference to an instance, with its hierarchy.
 
Method Summary
static Map<String,HierarchicalSOPInstanceReference> findHierarchicalReferencesForSOPInstances(AttributeList list)
          Find hierarchical references to instances that may be referenced in the content tree of an SR object.
 String getSeriesInstanceUID()
          Get the Series Instance UID.
 String getSOPClassUID()
          Get the SOP Class UID.
 String getSOPInstanceUID()
          Get the SOP Instance UID.
 String getStudyInstanceUID()
          Get the Study Instance UID.
static void main(String[] arg)
          Dump the references in an SR file.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

studyInstanceUID

protected String studyInstanceUID

seriesInstanceUID

protected String seriesInstanceUID

sopInstanceUID

protected String sopInstanceUID

sopClassUID

protected String sopClassUID
Constructor Detail

HierarchicalSOPInstanceReference

public HierarchicalSOPInstanceReference(String studyInstanceUID,
                                        String seriesInstanceUID,
                                        String sopInstanceUID,
                                        String sopClassUID)

Construct an instance of a reference to an instance, with its hierarchy.

Parameters:
studyInstanceUID - the Study Instance UID
seriesInstanceUID - the Series Instance UID
sopInstanceUID - the SOP Instance UID
sopClassUID - the SOP Class UID
Method Detail

getStudyInstanceUID

public String getStudyInstanceUID()

Get the Study Instance UID.

Returns:
the Study Instance UID, or null

getSeriesInstanceUID

public String getSeriesInstanceUID()

Get the Series Instance UID.

Returns:
the Series Instance UID, or null

getSOPInstanceUID

public String getSOPInstanceUID()

Get the SOP Instance UID.

Returns:
the SOP Instance UID, or null

getSOPClassUID

public String getSOPClassUID()

Get the SOP Class UID.

Returns:
the SOP Class UID, or null

findHierarchicalReferencesForSOPInstances

public static Map<String,HierarchicalSOPInstanceReference> findHierarchicalReferencesForSOPInstances(AttributeList list)

Find hierarchical references to instances that may be referenced in the content tree of an SR object.

Uses the mandatory Current Requested Procedure Evidence Sequence in the top level dataset of an SR object.

Parameters:
list - the top evel dataset of an SR instances
Returns:
a Map of String SOPInstanceUIDs to HierarchicalSOPInstanceReference

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] arg)

Dump the references in an SR file.

Parameters:
arg -