23#ifndef __mlDcmDRTRequestAttributesSequenceInterface_H
24#define __mlDcmDRTRequestAttributesSequenceInterface_H
38#ifndef __mlModuleIncludes_H
55 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
67 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
217 std::vector<DcmDRTRequestAttributesSequenceInterface::Item>
getSequence()
const {
224 return (_itemVec.size() != 0);
230 return static_cast<MLint>(_itemVec.size());
236 if (_itemVec.size() >
idx) {
237 return _itemVec[
idx];
246 return _itemVec[_itemVec.size()-1];
256 if (_itemVec.size() >
idx) {
257 std::vector<DcmDRTRequestAttributesSequenceInterface::Item>::iterator
it = _itemVec.begin();
258 std::advance(
it,
idx);
268 if ( _itemVec.size() >
idx ) {
269 std::vector<DcmDRTRequestAttributesSequenceInterface::Item>::iterator
it = _itemVec.begin();
270 std::advance(
it,
idx);
279 std::vector<DcmDRTRequestAttributesSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTReasonForRequestedProcedureCodeSequence.
Class to provide access to DRTReferencedStudySequence.
bool getScheduledProcedureStepID(std::string ¶meter) const
std::string getRequestedProcedureIDTag() const
void setRequestedProcedureCodeSequence(DcmDRTRequestedProcedureCodeSequenceInterface seq)
DcmDRTScheduledProtocolCodeSequenceInterface getScheduledProtocolCodeSequence() const
std::string getReasonForRequestedProcedureCodeSequenceTag() const
bool getAccessionNumber(std::string ¶meter) const
bool setStudyInstanceUID(std::string parameter)
DcmDRTReferencedStudySequenceInterface getReferencedStudySequence() const
DCMTree::TreePtr getTreePtr() const
void setReasonForRequestedProcedureCodeSequence(DcmDRTReasonForRequestedProcedureCodeSequenceInterface seq)
Item & operator=(const Item ©DcmItem)
bool setScheduledProcedureStepID(std::string parameter)
bool getReasonForTheRequestedProcedure(std::string ¶meter) const
void setScheduledProtocolCodeSequence(DcmDRTScheduledProtocolCodeSequenceInterface seq)
bool setRequestedProcedureDescription(std::string parameter)
bool setRequestedProcedureID(std::string parameter)
bool setAccessionNumber(std::string parameter)
std::string getScheduledProtocolCodeSequenceTag() const
bool getStudyInstanceUID(std::string ¶meter) const
std::string getStudyInstanceUIDTag() const
DcmDRTRequestedProcedureCodeSequenceInterface getRequestedProcedureCodeSequence() const
Item(const Item ©DcmItem)
std::string getReasonForTheRequestedProcedureTag() const
bool setScheduledProcedureStepDescription(std::string parameter)
bool setReasonForTheRequestedProcedure(std::string parameter)
std::string getRequestedProcedureCodeSequenceTag() const
std::string getRequestedProcedureDescriptionTag() const
bool getScheduledProcedureStepDescription(std::string ¶meter) const
std::string getReferencedStudySequenceTag() const
Item(DCMTree::TreePtr dcmItem)
DcmDRTReasonForRequestedProcedureCodeSequenceInterface getReasonForRequestedProcedureCodeSequence() const
bool getRequestedProcedureID(std::string ¶meter) const
std::string getScheduledProcedureStepIDTag() const
void setReferencedStudySequence(DcmDRTReferencedStudySequenceInterface seq)
bool getRequestedProcedureDescription(std::string ¶meter) const
std::string getScheduledProcedureStepDescriptionTag() const
std::string getAccessionNumberTag() const
Class to provide access to DRTRequestAttributesSequence.
std::string getRequestedProcedureIDTag() const
DcmDRTRequestAttributesSequenceInterface(std::vector< DcmDRTRequestAttributesSequenceInterface::Item > dcmSequence)
Default Constructor.
bool getRequestedProcedureDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool getRequestedProcedureID(unsigned long idx, std::string ¶meter) const
std::string getRequestedProcedureDescriptionTag() const
std::string getRequestedProcedureCodeSequenceTag() const
DcmDRTRequestAttributesSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
virtual ~DcmDRTRequestAttributesSequenceInterface()
Default virtual Destructor.
std::string getScheduledProcedureStepDescriptionTag() const
bool getReasonForTheRequestedProcedure(unsigned long idx, std::string ¶meter) const
bool getStudyInstanceUID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTRequestAttributesSequenceInterface()
void setReferencedStudySequence(DcmDRTReferencedStudySequenceInterface seq, unsigned long idx)
void setReasonForRequestedProcedureCodeSequence(DcmDRTReasonForRequestedProcedureCodeSequenceInterface seq, unsigned long idx)
bool getAccessionNumber(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTRequestAttributesSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
void setSequence(std::vector< DcmDRTRequestAttributesSequenceInterface::Item > dcmSequence)
Set the DRTRequestAttributesSequence this interface class provides access to.
bool getScheduledProcedureStepID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTScheduledProtocolCodeSequenceInterface getScheduledProtocolCodeSequence(unsigned long idx) const
void setRequestedProcedureCodeSequence(DcmDRTRequestedProcedureCodeSequenceInterface seq, unsigned long idx)
bool setStudyInstanceUID(unsigned long idx, std::string parameter)
DcmDRTReasonForRequestedProcedureCodeSequenceInterface getReasonForRequestedProcedureCodeSequence(unsigned long idx) const
bool setScheduledProcedureStepID(unsigned long idx, std::string parameter)
bool setRequestedProcedureDescription(unsigned long idx, std::string parameter)
bool getReasonForTheRequestedProcedure(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTRequestAttributesSequence is set.
DcmDRTReferencedStudySequenceInterface getReferencedStudySequence(unsigned long idx) const
bool getScheduledProcedureStepID(unsigned long idx, std::string ¶meter) const
DcmDRTRequestAttributesSequenceInterface::Item & addItem()
Adds a new item to the sequence.
void setScheduledProtocolCodeSequence(DcmDRTScheduledProtocolCodeSequenceInterface seq, unsigned long idx)
std::string getReasonForTheRequestedProcedureTag() const
DcmDRTRequestedProcedureCodeSequenceInterface getRequestedProcedureCodeSequence(unsigned long idx) const
bool getAccessionNumber(DCMTree::TreePtr item, std::string ¶meter) const
bool setScheduledProcedureStepDescription(unsigned long idx, std::string parameter)
bool setRequestedProcedureID(unsigned long idx, std::string parameter)
bool insertItem(const size_t idx)
Insert an item at the indicated position.
std::string getScheduledProtocolCodeSequenceTag() const
bool setReasonForTheRequestedProcedure(unsigned long idx, std::string parameter)
bool getStudyInstanceUID(unsigned long idx, std::string ¶meter) const
std::string getReferencedStudySequenceTag() const
bool getScheduledProcedureStepDescription(unsigned long idx, std::string ¶meter) const
std::string getScheduledProcedureStepIDTag() const
bool setAccessionNumber(unsigned long idx, std::string parameter)
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
std::string getReasonForRequestedProcedureCodeSequenceTag() const
bool getRequestedProcedureID(DCMTree::TreePtr item, std::string ¶meter) const
bool getRequestedProcedureDescription(unsigned long idx, std::string ¶meter) const
bool getScheduledProcedureStepDescription(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void addItem(DcmDRTRequestAttributesSequenceInterface::Item newItem)
DcmDRTRequestAttributesSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getStudyInstanceUIDTag() const
std::string getAccessionNumberTag() const
std::vector< DcmDRTRequestAttributesSequenceInterface::Item > getSequence() const
Return the DRTRequestAttributesSequence this interface class provides access to.
Class to provide access to DRTRequestedProcedureCodeSequence.
Class to provide access to DRTScheduledProtocolCodeSequence.
Class to provide access to DRTReasonForRequestedProcedureCodeSequence.
Class to provide access to DRTReferencedStudySequence.
Class to provide access to DRTRequestedProcedureCodeSequence.
Class to provide access to DRTScheduledProtocolCodeSequence.
Class collecting some DICOM helper functionality explicitly for dcmtk.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
std::vector< TreePtr > TreePtrVector
a vector of TreePtr - used for sequences
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree