org.dcm4che.srom
Interface SRDocument

All Superinterfaces:
ContainerContent, Content, KeyObject

public interface SRDocument
extends KeyObject

The SRDocument interface represents the entire DICOM SR document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

Since Content Items cannot exist outside the context of a SRDocument, the SRDocument interface also contains the factory methods needed to create the different types of Content objects. The Content objects created have a ownerDocument attribute which associates them with the SRDocument within whose context they were created.

Additionally to the content tree, a SRDocument contents Patient, Study, Series, Equipment, SR Document General and SOP Common related data.

Factory method: SRDocumentFactory.newSRDocument(org.dcm4che.srom.Patient, org.dcm4che.srom.Study, org.dcm4che.srom.Series, org.dcm4che.srom.Equipment, java.lang.String, java.lang.String, int, java.util.Date, org.dcm4che.srom.Template, org.dcm4che.srom.Code, boolean).

Version:
1.0
Author:
gunter.zeilinger@tiani.com
See Also:
SRDocumentFactory.newSRDocument(org.dcm4che.srom.Patient, org.dcm4che.srom.Study, org.dcm4che.srom.Series, org.dcm4che.srom.Equipment, java.lang.String, java.lang.String, int, java.util.Date, org.dcm4che.srom.Template, org.dcm4che.srom.Code, boolean), "DICOM Part 3: Information Object Definitions, Annex A.35 Structured Report Document Information Object Definitions"

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.dcm4che.srom.Content
Content.RelationType, Content.ValueType
 
Field Summary
 
Fields inherited from interface org.dcm4che.srom.Content
log
 
Method Summary
 boolean addOtherEvidence(SOPInstanceRef ref)
          Adds a new SOPInstanceRef object, refering a Pertinent Other Evidence of this document.
 boolean addPredecessorDocument(SOPInstanceRef ref)
          Adds a new SOPInstanceRef object, specifing a Predecessor Document of this document.
 boolean addProcedureCode(Code code)
          Adds a new Code object, identifing a Performed Procedure pertaining to this document.
 boolean addVerification(Verification ver)
          Adds a new Verification object, specifing a Verifying Observer of this document.
 SOPInstanceRef findOtherEvidence(RefSOP refSOP)
          Returns SOPInstanceRef objects, refering the specified Pertinent Other Evidence.
 java.lang.String getCompletionFlagDescription()
          Returns Completion Flag Description.
 SOPInstanceRef[] getOtherEvidence()
          Returns array of SOPInstanceRef objects, refering all Pertinent Other Evidences of this document.
 SOPInstanceRef[] getPredecessorDocuments()
          Returns array of SOPInstanceRef objects, specifing all Predecessor Documents of this document.
 Code[] getProcedureCodes()
          Returns array of Code objects, identifing all Performed Procedures pertaining to this document.
 Verification[] getVerifications()
          Returns array of Verification objects, specifing all Verifying Observer of this document.
 boolean isComplete()
          Returns whether the content of this document is complete or partial.
 boolean isVerified()
          Returns whether this document is verified.
 boolean removeOtherEvidence(RefSOP ref)
          Removes the specified SOPInstanceRef object, from the list of Pertinent Other Evidences of this document.
 boolean removePredecessorDocument(RefSOP ref)
          Removes the specified SOPInstanceRef object, from the list of references of Predecessor Document of this document.
 boolean removeProcedureCode(Code code)
          Removes the specified Code object, from the list of PPerformed Procedure pertaining to this document.
 boolean removeVerification(Verification ver)
          Removes the specified Verification object, from the list of Verifying Observers of this document.
 void setComplete(boolean complete)
          Sets whether this document is complete.
 void setCompletionFlagDescription(java.lang.String desc)
          Sets Completion Flag Description.
 void setOtherEvidence(SOPInstanceRef[] refs)
          Sets array of SOPInstanceRef objects, refering all Pertinent Other Evidences of this document.
 void setPredecessorDocuments(SOPInstanceRef[] refs)
          Sets array of SOPInstanceRef objects, refering all Predecessor Documents of this document.
 void setProcedureCodes(Code[] codes)
          Sets array of Code objects, identifing all Performed Procedures pertaining to this document.
 void setVerifications(Verification[] vers)
          Sets array of Verification objects, specifing all Verifying Observer of this document.
 void setVerified(boolean verified)
          Sets whether this document is verified.
 
Methods inherited from interface org.dcm4che.srom.KeyObject
addCurrentEvidence, addIdenticalDocument, addRequest, createBeginTCoordContent, createCircleSCoordContent, createCodeContent, createCompositeContent, createContainerContent, createDateContent, createDateTimeContent, createEllipseSCoordContent, createEndTCoordContent, createImageContent, createMultiPointSCoordContent, createMultiPointTCoordContent, createMultiSegmentTCoordContent, createNumContent, createNumContent, createPNameContent, createPointSCoordContent, createPointTCoordContent, createPolylineSCoordContent, createReferencedContent, createReferencedContent, createSegmentTCoordContent, createTextContent, createTimeContent, createUIDRefContent, createWaveformContent, findCurrentEvidence, getContent, getContentDateTime, getCurrentEvidence, getEquipment, getIdenticalDocuments, getInstanceCreationDateTime, getInstanceCreatorUID, getInstanceNumber, getPatient, getRequests, getSeries, getSOPClassUID, getSOPInstanceUID, getSpecificCharacterSet, getStudy, importContent, removeCurrentEvidence, removeIdenticalDocument, removeRequest, setContentDateTime, setCurrentEvidence, setEquipment, setIdenticalDocuments, setInstanceCreationDateTime, setInstanceCreatorUID, setInstanceNumber, setPatient, setRequests, setSeries, setSOPInstanceUID, setSpecificCharacterSet, setStudy, toDataset
 
Methods inherited from interface org.dcm4che.srom.ContainerContent
insertCompositeContent, insertImageContent, insertWaveformContent, isSeparate, setSeparate
 
Methods inherited from interface org.dcm4che.srom.Content
appendChild, clone, getFirstChild, getFirstChildBy, getID, getLastChild, getName, getNextSibling, getNextSiblingBy, getObservationDateTime, getOwnerDocument, getParent, getPreviousSibling, getRelationType, getTemplate, getValueType, hasChildren, insertBefore, removeChild, replaceChild, setName, toDataset
 

Method Detail

isComplete

boolean isComplete()
Returns whether the content of this document is complete or partial.

Returns:
true if the content is complete, false otherwise.

setComplete

void setComplete(boolean complete)
Sets whether this document is complete.

Parameters:
complete - a boolean indicating whether the content of this document is complete.

getCompletionFlagDescription

java.lang.String getCompletionFlagDescription()
Returns Completion Flag Description.

Returns:
Completion Flag Description.

setCompletionFlagDescription

void setCompletionFlagDescription(java.lang.String desc)
Sets Completion Flag Description.

Parameters:
desc - new Completion Flag Description.

isVerified

boolean isVerified()
Returns whether this document is verified.

Returns:
true if this document is verified, false otherwise.

setVerified

void setVerified(boolean verified)
Sets whether this document is verified.

Parameters:
verified - a boolean indicating whether this document is verified.

getVerifications

Verification[] getVerifications()
Returns array of Verification objects, specifing all Verifying Observer of this document.

Returns:
list of Verification objects.

setVerifications

void setVerifications(Verification[] vers)
Sets array of Verification objects, specifing all Verifying Observer of this document.

Parameters:
vers - new array of Verification objects.
See Also:
SRDocumentFactory.newVerification(java.util.Date, java.lang.String, java.lang.String, org.dcm4che.srom.Code)

addVerification

boolean addVerification(Verification ver)
Adds a new Verification object, specifing a Verifying Observer of this document. Ignores the new Verification object, if the document already contains an equal Verification object.

Parameters:
ver - specifies one Verifying Observer.
Returns:
true if ver was added to this document, false if the document already contains ver.

removeVerification

boolean removeVerification(Verification ver)
Removes the specified Verification object, from the list of Verifying Observers of this document.

Returns:
true if the Verifying Observer list of this document contained ver; false otherwise.

getPredecessorDocuments

SOPInstanceRef[] getPredecessorDocuments()
Returns array of SOPInstanceRef objects, specifing all Predecessor Documents of this document.

Returns:
references to Predecessor Documents.

setPredecessorDocuments

void setPredecessorDocuments(SOPInstanceRef[] refs)
Sets array of SOPInstanceRef objects, refering all Predecessor Documents of this document.

Parameters:
refs - new Predecessor Documents references.

addPredecessorDocument

boolean addPredecessorDocument(SOPInstanceRef ref)
Adds a new SOPInstanceRef object, specifing a Predecessor Document of this document. Ignores the new SOPInstanceRef object, if the document already refers an equal Predecessor Document.

Parameters:
ref - reference to Predecessor Document.
Returns:
true if ref was added, false if the document already contains the reference.
See Also:
SRDocumentFactory.newSOPInstanceRef(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

removePredecessorDocument

boolean removePredecessorDocument(RefSOP ref)
Removes the specified SOPInstanceRef object, from the list of references of Predecessor Document of this document.

Returns:
true if the document contained the reference, false otherwise.
Throws:
java.lang.NullPointerException - if ref is null.
See Also:
SRDocumentFactory.newSOPInstanceRef(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

getProcedureCodes

Code[] getProcedureCodes()
Returns array of Code objects, identifing all Performed Procedures pertaining to this document.

Returns:
Performed Procedures codes.
Throws:
java.lang.NullPointerException - if request is null.

setProcedureCodes

void setProcedureCodes(Code[] codes)
Sets array of Code objects, identifing all Performed Procedures pertaining to this document.

Parameters:
codes - new Performed Procedures codes.
See Also:
SRDocumentFactory.newCode(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

addProcedureCode

boolean addProcedureCode(Code code)
Adds a new Code object, identifing a Performed Procedure pertaining to this document. Ignores the new Code object, if the document already refers the Performed Procedure.

Parameters:
code - identifies one Performed Procedure.
Returns:
true if code was added, false if the document already contained code.
Throws:
java.lang.NullPointerException - if code is null.
See Also:
SRDocumentFactory.newCode(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

removeProcedureCode

boolean removeProcedureCode(Code code)
Removes the specified Code object, from the list of PPerformed Procedure pertaining to this document.

Returns:
true if the Performed Procedure list of this document contained code; false otherwise.

getOtherEvidence

SOPInstanceRef[] getOtherEvidence()
Returns array of SOPInstanceRef objects, refering all Pertinent Other Evidences of this document.

Returns:
references to Pertinent Other Evidences.

findOtherEvidence

SOPInstanceRef findOtherEvidence(RefSOP refSOP)
Returns SOPInstanceRef objects, refering the specified Pertinent Other Evidence.

Returns:
reference to Pertinent Other Evidences, null if no reference to refSOP was found.
Throws:
java.lang.NullPointerException - if ref is null.

setOtherEvidence

void setOtherEvidence(SOPInstanceRef[] refs)
Sets array of SOPInstanceRef objects, refering all Pertinent Other Evidences of this document.

Parameters:
refs - new Pertinent Other Evidence references.
See Also:
SRDocumentFactory.newSOPInstanceRef(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

addOtherEvidence

boolean addOtherEvidence(SOPInstanceRef ref)
Adds a new SOPInstanceRef object, refering a Pertinent Other Evidence of this document. Ignores the new SOPInstanceRef object, if the document already refers an equal Pertinent Other Evidence.

Parameters:
ref - reference to Pertinent Other Evidence.
Returns:
true if ref was added, false if the document already contained the reference.
See Also:
SRDocumentFactory.newSOPInstanceRef(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

removeOtherEvidence

boolean removeOtherEvidence(RefSOP ref)
Removes the specified SOPInstanceRef object, from the list of Pertinent Other Evidences of this document.

Returns:
true if the document contained the reference, false otherwise.
Throws:
java.lang.NullPointerException - if ref is null.