fw4spl
fwGdcmIO::helper::StructuredReport Class Reference

This class contains helpers for DICOM Structured Reporting (SR). More...

#include <StructuredReport.hpp>

Static Public Member Functions

static FWGDCMIO_API std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRContainerNodereadSR (const ::gdcm::DataSet &dataset)
 Read a Structured Report. More...
 
static FWGDCMIO_API void dumpSR (const std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode > &root, std::ostream &out=std::cout)
 Dump the SR in graphviz format. More...
 

Static Protected Member Functions

static void readSubNodeContainer (const ::gdcm::DataSet &dataset, std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode > parent)
 Read all sub nodes and add it as children to the parent node. More...
 
static void readSubNode (const ::gdcm::DataSet &dataset, std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode > parent)
 Read a sub node and add it as a child to the parent node. More...
 
static FWGDCMIO_API void dumpSRNode (const std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode > &node, std::ostream &out, int &index)
 Dump an SR node in graphviz format. More...
 
template<uint16_t GROUP, uint16_t ELEMENT>
::fwGdcmIO::container::DicomCodedAttribute readCodeSequence (const ::gdcm::DataSet &dataset)
 Read content of a code sequence (eg : Concept Name Code Sequence, ...) More...
 

Detailed Description

This class contains helpers for DICOM Structured Reporting (SR).

Definition at line 26 of file StructuredReport.hpp.

Member Function Documentation

void fwGdcmIO::helper::StructuredReport::dumpSR ( const std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode > &  root,
std::ostream &  out = std::cout 
)
static

Dump the SR in graphviz format.

Parameters
[in]rootRoot node
[in]outDestination stream

Definition at line 245 of file StructuredReport.cpp.

References dumpSRNode().

+ Here is the call graph for this function:

void fwGdcmIO::helper::StructuredReport::dumpSRNode ( const std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode > &  node,
std::ostream &  out,
int &  index 
)
staticprotected

Dump an SR node in graphviz format.

Parameters
[in]nodeNode
[in]outDestination stream
[in]indexNode index

Definition at line 255 of file StructuredReport.cpp.

References fwGdcmIO::container::sr::DicomSRNode::getSubNodeContainer(), and SPTR.

Referenced by dumpSR().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<uint16_t GROUP, uint16_t ELEMENT>
::fwGdcmIO::container::DicomCodedAttribute fwGdcmIO::helper::StructuredReport::readCodeSequence ( const ::gdcm::DataSet &  dataset)
inlinestaticprotected

Read content of a code sequence (eg : Concept Name Code Sequence, ...)

Note
This method can return a DicomCodedAttribute with empty members.
Parameters
[in]datasetData set where the code sequence is supposed to be.
Template Parameters
GROUPTag group of the code sequence.
ELEMENTElement group of the code sequence.

Definition at line 80 of file StructuredReport.hpp.

std::shared_ptr<::fwGdcmIO::container::sr::DicomSRContainerNode > fwGdcmIO::helper::StructuredReport::readSR ( const ::gdcm::DataSet &  dataset)
static

Read a Structured Report.

Parameters
[in]datasetDataset from which the SR must be created

Definition at line 25 of file StructuredReport.cpp.

References readSubNodeContainer(), and SPTR.

Referenced by fwGdcmIO::reader::ie::Document::readSR().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fwGdcmIO::helper::StructuredReport::readSubNode ( const ::gdcm::DataSet &  dataset,
std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode parent 
)
staticprotected

Read a sub node and add it as a child to the parent node.

Parameters
[in]datasetDataset from which the sub node must been read
[in]parentParent node

Definition at line 67 of file StructuredReport.cpp.

References fwGdcmIO::container::sr::DicomSRNode::addSubNode(), readSubNodeContainer(), SLM_WARN, and SPTR.

Referenced by readSubNodeContainer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fwGdcmIO::helper::StructuredReport::readSubNodeContainer ( const ::gdcm::DataSet &  dataset,
std::shared_ptr< ::fwGdcmIO::container::sr::DicomSRNode parent 
)
staticprotected

Read all sub nodes and add it as children to the parent node.

Parameters
[in]datasetDataset from which the sub nodes must been read
[in]parentParent node

Definition at line 47 of file StructuredReport.cpp.

References readSubNode().

Referenced by readSR(), and readSubNode().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: