DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Interface class for content items. More...
Public Member Functions | |
virtual | ~DSRContentItem () |
destructor | |
OFBool | isValid () const |
check for validity/completeness. | |
OFBool | isMarked () const |
check for mark flag. | |
void | setMark (const OFBool flag) |
mark/unmark item. | |
E_ValueType | getValueType () const |
get value type. | |
E_RelationshipType | getRelationshipType () const |
get relationship type. | |
size_t | getReferencedNodeID () const |
get ID of the referenced node. | |
const OFString & | getStringValue () const |
get string value. | |
OFCondition | setStringValue (const OFString &stringValue) |
set string value. | |
DSRCodedEntryValue * | getCodeValuePtr () |
get pointer to code value. | |
const DSRCodedEntryValue & | getCodeValue () const |
get code value. | |
OFCondition | getCodeValue (DSRCodedEntryValue &codeValue) const |
get copy of code value. | |
OFCondition | setCodeValue (const DSRCodedEntryValue &codeValue) |
set code value. | |
DSRNumericMeasurementValue * | getNumericValuePtr () |
get pointer to numeric value. | |
const DSRNumericMeasurementValue & | getNumericValue () const |
get numeric value. | |
OFCondition | getNumericValue (DSRNumericMeasurementValue &numericValue) const |
get copy of numeric value. | |
OFCondition | setNumericValue (const DSRNumericMeasurementValue &numericValue) |
set numeric value. | |
DSRSpatialCoordinatesValue * | getSpatialCoordinatesPtr () |
get pointer to spatial coordinates. | |
const DSRSpatialCoordinatesValue & | getSpatialCoordinates () const |
get spatial coordinates. | |
OFCondition | getSpatialCoordinates (DSRSpatialCoordinatesValue &coordinatesValue) const |
get copy of spatial coordinates. | |
OFCondition | setSpatialCoordinates (const DSRSpatialCoordinatesValue &coordinatesValue) |
set spatial coordinates. | |
DSRSpatialCoordinates3DValue * | getSpatialCoordinates3DPtr () |
get pointer to spatial coordinates 3D. | |
const DSRSpatialCoordinates3DValue & | getSpatialCoordinates3D () const |
get spatial coordinates 3D. | |
OFCondition | getSpatialCoordinates3D (DSRSpatialCoordinates3DValue &coordinatesValue) const |
get copy of spatial coordinates 3D. | |
OFCondition | setSpatialCoordinates3D (const DSRSpatialCoordinates3DValue &coordinatesValue) |
set spatial coordinates 3D. | |
DSRTemporalCoordinatesValue * | getTemporalCoordinatesPtr () |
get pointer to temporal coordinates. | |
const DSRTemporalCoordinatesValue & | getTemporalCoordinates () const |
get temporal coordinates. | |
OFCondition | getTemporalCoordinates (DSRTemporalCoordinatesValue &coordinatesValue) const |
get copy of temporal coordinates. | |
OFCondition | setTemporalCoordinates (const DSRTemporalCoordinatesValue &coordinatesValue) |
set temporal coordinates. | |
DSRCompositeReferenceValue * | getCompositeReferencePtr () |
get pointer to composite reference. | |
const DSRCompositeReferenceValue & | getCompositeReference () const |
get composite reference. | |
OFCondition | getCompositeReference (DSRCompositeReferenceValue &referenceValue) const |
get copy of composite reference. | |
OFCondition | setCompositeReference (const DSRCompositeReferenceValue &referenceValue) |
set composite reference. | |
DSRImageReferenceValue * | getImageReferencePtr () |
get pointer to image reference. | |
const DSRImageReferenceValue & | getImageReference () const |
get image reference. | |
OFCondition | getImageReference (DSRImageReferenceValue &referenceValue) const |
get copy of image reference. | |
OFCondition | setImageReference (const DSRImageReferenceValue &referenceValue) |
set image reference. | |
DSRWaveformReferenceValue * | getWaveformReferencePtr () |
get pointer to waveform reference. | |
const DSRWaveformReferenceValue & | getWaveformReference () const |
get waveform reference. | |
OFCondition | getWaveformReference (DSRWaveformReferenceValue &referenceValue) const |
get copy of waveform reference. | |
OFCondition | setWaveformReference (const DSRWaveformReferenceValue &referenceValue) |
set waveform reference. | |
E_ContinuityOfContent | getContinuityOfContent () const |
get continuity of content flag. | |
OFCondition | setContinuityOfContent (const E_ContinuityOfContent continuityOfContent) |
set continuity of content flag. | |
DSRCodedEntryValue * | getConceptNamePtr () |
get pointer to concept name. | |
const DSRCodedEntryValue & | getConceptName () const |
get concept name. | |
OFCondition | getConceptName (DSRCodedEntryValue &conceptName) const |
get copy of concept name. | |
OFCondition | setConceptName (const DSRCodedEntryValue &conceptName) |
set concept name. | |
const OFString & | getObservationDateTime () const |
get observation date time. | |
OFCondition | setObservationDateTime (const OFString &observationDateTime) |
set observation date time. | |
const OFString & | getObservationUID () const |
get observation unique identifier. | |
OFCondition | setObservationUID (const OFString &observationUID) |
set observation unique identifier. | |
OFCondition | getTemplateIdentification (OFString &templateIdentifier, OFString &mappingResource) const |
get template identifier and mapping resource. | |
OFCondition | setTemplateIdentification (const OFString &templateIdentifier, const OFString &mappingResource) |
set template identifier and mapping resource. | |
Protected Member Functions | |
DSRContentItem () | |
default constructor (protected) | |
void | setTreeNode (DSRDocumentTreeNode *node) |
set internal tree node pointer (protected) | |
Private Member Functions | |
DSRContentItem (const DSRContentItem &) | |
DSRContentItem & | operator= (const DSRContentItem &) |
Private Attributes | |
DSRDocumentTreeNode * | TreeNode |
internal tree node pointer (current conten item) | |
const DSRNumericMeasurementValue | EmptyNumericMeasurement |
empty numeric measurement value. | |
Static Private Attributes | |
static const OFString | EmptyString |
empty string value. Used as default return value for getStringValue() | |
static const DSRCodedEntryValue | EmptyCodedEntry |
empty coded entry value. Used as default return value for getCodeValue() and getConceptName() | |
static const DSRSpatialCoordinatesValue | EmptySpatialCoordinates |
empty spatial coordinates value. Used as default return value for getSpatialCoordinates() | |
static const DSRSpatialCoordinates3DValue | EmptySpatialCoordinates3D |
empty spatial coordinates 3D value. Used as default return value for getSpatialCoordinates3D() | |
static const DSRTemporalCoordinatesValue | EmptyTemporalCoordinates |
empty temporal coordinates value. Used as default return value for getTemporalCoordinates() | |
static const DSRCompositeReferenceValue | EmptyCompositeReference |
empty composite reference value. Used as default return value for getCompositeReference() | |
static const DSRImageReferenceValue | EmptyImageReference |
empty image reference value. Used as default return value for getImageReference() | |
static const DSRWaveformReferenceValue | EmptyWaveformReference |
empty waveform reference value. Used as default return value for getWaveformReference() | |
Friends | |
class | DSRDocumentTree |
Interface class for content items.
This class allows to access the document tree nodes without using any pointers.
const DSRCodedEntryValue& DSRContentItem::getCodeValue | ( | ) | const |
get code value.
Applicable to: CODE
OFCondition DSRContentItem::getCodeValue | ( | DSRCodedEntryValue & | codeValue | ) | const |
get copy of code value.
Applicable to: CODE
codeValue | variable where the copy should be stored |
get pointer to code value.
Applicable to: CODE
const DSRCompositeReferenceValue& DSRContentItem::getCompositeReference | ( | ) | const |
get composite reference.
Applicable to: COMPOSITE
OFCondition DSRContentItem::getCompositeReference | ( | DSRCompositeReferenceValue & | referenceValue | ) | const |
get copy of composite reference.
Applicable to: COMPOSITE
referenceValue | variable where the copy should be stored (cleared if an error occurs) |
get pointer to composite reference.
Applicable to: COMPOSITE
const DSRCodedEntryValue& DSRContentItem::getConceptName | ( | ) | const |
get concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only).
OFCondition DSRContentItem::getConceptName | ( | DSRCodedEntryValue & | conceptName | ) | const |
get copy of concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only).
conceptName | variable where the copy should be stored (cleared if an error occurs) |
get pointer to concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only).
get continuity of content flag.
This flag specifies whether or not its contained content items (child nodes) are logically linked in a continuous textual flow, or are sparate items. Applicable to: CONTAINER
const DSRImageReferenceValue& DSRContentItem::getImageReference | ( | ) | const |
get image reference.
Applicable to: IMAGE
OFCondition DSRContentItem::getImageReference | ( | DSRImageReferenceValue & | referenceValue | ) | const |
get copy of image reference.
Applicable to: IMAGE
referenceValue | variable where the copy should be stored (cleared if an error occurs) |
get pointer to image reference.
Applicable to: IMAGE
const DSRNumericMeasurementValue& DSRContentItem::getNumericValue | ( | ) | const |
get numeric value.
Applicable to: NUM
OFCondition DSRContentItem::getNumericValue | ( | DSRNumericMeasurementValue & | numericValue | ) | const |
get copy of numeric value.
Applicable to: NUM
numericValue | variable where the copy should be stored (cleared if an error occurs) |
get pointer to numeric value.
Applicable to: NUM
const OFString& DSRContentItem::getObservationDateTime | ( | ) | const |
get observation date time.
This is the date and time on which this content item was completed. Might be empty if the date and time do not differ from the content date and time, see DSRDocument. Applicable to all content items (by-value only, optional attribute).
const OFString& DSRContentItem::getObservationUID | ( | ) | const |
get observation unique identifier.
The UID represents the semantic content of the observation; an encoding of the same observation with the same context into another representation may use the same UID. Applicable to all content items (by-value only, optional attribute).
size_t DSRContentItem::getReferencedNodeID | ( | ) | const |
get ID of the referenced node.
Applicable to: byReference relationships
get relationship type.
Applicable to all content items.
const DSRSpatialCoordinatesValue& DSRContentItem::getSpatialCoordinates | ( | ) | const |
get spatial coordinates.
Applicable to: SCOORD
OFCondition DSRContentItem::getSpatialCoordinates | ( | DSRSpatialCoordinatesValue & | coordinatesValue | ) | const |
get copy of spatial coordinates.
Applicable to: SCOORD
coordinatesValue | variable where the copy should be stored (cleared if an error occurs) |
const DSRSpatialCoordinates3DValue& DSRContentItem::getSpatialCoordinates3D | ( | ) | const |
get spatial coordinates 3D.
Applicable to: SCOORD3D
OFCondition DSRContentItem::getSpatialCoordinates3D | ( | DSRSpatialCoordinates3DValue & | coordinatesValue | ) | const |
get copy of spatial coordinates 3D.
Applicable to: SCOORD3D
coordinatesValue | variable where the copy should be stored (cleared if an error occurs) |
get pointer to spatial coordinates 3D.
Applicable to: SCOORD3D
get pointer to spatial coordinates.
Applicable to: SCOORD
const OFString& DSRContentItem::getStringValue | ( | ) | const |
get string value.
Applicable to: TEXT, DATETIME, DATE, TIME, UIDREF, PNAME
OFCondition DSRContentItem::getTemplateIdentification | ( | OFString & | templateIdentifier, |
OFString & | mappingResource | ||
) | const |
get template identifier and mapping resource.
This value pair identifies the template that was used to create this content item (and its children). According to the DICOM standard is is "required if a template was used to define the content of this Item, and the template consists of a single CONTAINER with nested content, and it is the outermost invocation of a set of nested templates that start with the same CONTAINER." However, this condition is currently not checked. The identification is valid if both values are either present (non-empty) or absent (empty). Applicable to all content items (by-value only, optional attribute).
templateIdentifier | identifier of the template (might be empty) |
mappingResource | mapping resource that defines the template (might be empty) |
const DSRTemporalCoordinatesValue& DSRContentItem::getTemporalCoordinates | ( | ) | const |
get temporal coordinates.
Applicable to: TCOORD
OFCondition DSRContentItem::getTemporalCoordinates | ( | DSRTemporalCoordinatesValue & | coordinatesValue | ) | const |
get copy of temporal coordinates.
Applicable to: TCOORD
coordinatesValue | variable where the copy should be stored (cleared if an error occurs) |
get pointer to temporal coordinates.
Applicable to: TCOORD
E_ValueType DSRContentItem::getValueType | ( | ) | const |
get value type.
Applicable to all content items.
const DSRWaveformReferenceValue& DSRContentItem::getWaveformReference | ( | ) | const |
get waveform reference.
Applicable to: WAVEFORM
OFCondition DSRContentItem::getWaveformReference | ( | DSRWaveformReferenceValue & | referenceValue | ) | const |
get copy of waveform reference.
Applicable to: WAVEFORM
referenceValue | variable where the copy should be stored (cleared if an error occurs) |
get pointer to waveform reference.
Applicable to: WAVEFORM
OFBool DSRContentItem::isMarked | ( | ) | const |
check for mark flag.
Applicable to all content items.
OFBool DSRContentItem::isValid | ( | ) | const |
check for validity/completeness.
Applicable to all content items.
OFCondition DSRContentItem::setCodeValue | ( | const DSRCodedEntryValue & | codeValue | ) |
set code value.
Applicable to: CODE
codeValue | value to be set |
OFCondition DSRContentItem::setCompositeReference | ( | const DSRCompositeReferenceValue & | referenceValue | ) |
set composite reference.
Applicable to: COMPOSITE
referenceValue | value to be set |
OFCondition DSRContentItem::setConceptName | ( | const DSRCodedEntryValue & | conceptName | ) |
set concept name.
Code describing the concept represented by this content item. Also conveys the value of document title and section headings in documents. Applicable to all content items (by-value only, optional/conditional for some value types).
conceptName | value to be set |
OFCondition DSRContentItem::setContinuityOfContent | ( | const E_ContinuityOfContent | continuityOfContent | ) |
set continuity of content flag.
This flag specifies whether or not its contained content items (child nodes) are logically linked in a continuous textual flow, or are sparate items. Applicable to: CONTAINER
continuityOfContent | value to be set (should be different from COC_onvalid) |
OFCondition DSRContentItem::setImageReference | ( | const DSRImageReferenceValue & | referenceValue | ) |
set image reference.
Applicable to: IMAGE
referenceValue | value to be set |
void DSRContentItem::setMark | ( | const OFBool | flag | ) |
mark/unmark item.
Applicable to all content items.
flag | mark item if OFTrue, unmark otherwise |
OFCondition DSRContentItem::setNumericValue | ( | const DSRNumericMeasurementValue & | numericValue | ) |
set numeric value.
Applicable to: NUM
numericValue | value to be set |
OFCondition DSRContentItem::setObservationDateTime | ( | const OFString & | observationDateTime | ) |
set observation date time.
This is the date and time on which this content item was completed. Might be empty if the date and time do not differ from the content date and time, see DSRDocument. Please use the correct DICOM format (VR=DT). Applicable to all content items (by-value only).
observationDateTime | value to be set (might be an empty string) |
OFCondition DSRContentItem::setObservationUID | ( | const OFString & | observationUID | ) |
set observation unique identifier.
The UID represents the semantic content of the observation; an encoding of the same observation with the same context into another representation may use the same UID. Please use the correct DICOM format (VR=UI). Applicable to all content items (by-value only).
observationUID | value to be set (might be an empty string) |
OFCondition DSRContentItem::setSpatialCoordinates | ( | const DSRSpatialCoordinatesValue & | coordinatesValue | ) |
set spatial coordinates.
Applicable to: SCOORD
coordinatesValue | value to be set |
OFCondition DSRContentItem::setSpatialCoordinates3D | ( | const DSRSpatialCoordinates3DValue & | coordinatesValue | ) |
set spatial coordinates 3D.
Applicable to: SCOORD3D
coordinatesValue | value to be set |
OFCondition DSRContentItem::setStringValue | ( | const OFString & | stringValue | ) |
set string value.
Please use the correct format for the string value depending on the corresponding content item (value type). Applicable to: TEXT, DATETIME, DATE, TIME, UIDREF, PNAME
stringValue | value to be set |
OFCondition DSRContentItem::setTemplateIdentification | ( | const OFString & | templateIdentifier, |
const OFString & | mappingResource | ||
) |
set template identifier and mapping resource.
The identification is valid if both values are either present (non-empty) or absent (empty). See getTemplateIdentification() for details. Applicable to all content items (by-value only).
templateIdentifier | identifier of the template to be set (VR=CS) |
mappingResource | mapping resource that defines the template (VR=CS) |
OFCondition DSRContentItem::setTemporalCoordinates | ( | const DSRTemporalCoordinatesValue & | coordinatesValue | ) |
set temporal coordinates.
Applicable to: TCOORD
coordinatesValue | value to be set |
void DSRContentItem::setTreeNode | ( | DSRDocumentTreeNode * | node | ) | [inline, protected] |
set internal tree node pointer (protected)
node | pointer to the document tree node (content item) |
OFCondition DSRContentItem::setWaveformReference | ( | const DSRWaveformReferenceValue & | referenceValue | ) |
set waveform reference.
Applicable to: WAVEFORM
referenceValue | value to be set |
const DSRNumericMeasurementValue DSRContentItem::EmptyNumericMeasurement [private] |
empty numeric measurement value.
Used as default return value for getNumericValue(). A static member variable (as for the other values below) cannot be used because this class contains members that again contain OFCondition instances that cannot be defined before the main() function starts.