23#ifndef __mlDcmDRTDerivationCodeSequenceInterface_H
24#define __mlDcmDRTDerivationCodeSequenceInterface_H
34#ifndef __mlModuleIncludes_H
51 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
63 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
206 std::vector<DcmDRTDerivationCodeSequenceInterface::Item>
getSequence()
const {
213 return (_itemVec.size() != 0);
219 return static_cast<MLint>(_itemVec.size());
225 if (_itemVec.size() >
idx) {
226 return _itemVec[
idx];
235 return _itemVec[_itemVec.size()-1];
245 if (_itemVec.size() >
idx) {
246 std::vector<DcmDRTDerivationCodeSequenceInterface::Item>::iterator
it = _itemVec.begin();
247 std::advance(
it,
idx);
257 if ( _itemVec.size() >
idx ) {
258 std::vector<DcmDRTDerivationCodeSequenceInterface::Item>::iterator
it = _itemVec.begin();
259 std::advance(
it,
idx);
268 std::vector<DcmDRTDerivationCodeSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
std::string getCodeMeaningTag() const
std::string getContextGroupExtensionFlagTag() const
Item(DCMTree::TreePtr dcmItem)
std::string getCodingSchemeDesignatorTag() const
bool setContextGroupExtensionCreatorUID(std::string parameter)
bool getMappingResource(std::string ¶meter) const
bool setContextGroupVersion(std::string parameter)
bool getContextGroupLocalVersion(std::string ¶meter) const
bool setContextGroupExtensionFlag(std::string parameter)
std::string getContextGroupExtensionCreatorUIDTag() const
bool getContextGroupExtensionCreatorUID(std::string ¶meter) const
bool getCodingSchemeDesignator(std::string ¶meter) const
bool getCodingSchemeVersion(std::string ¶meter) const
bool setContextGroupLocalVersion(std::string parameter)
bool setCodingSchemeDesignator(std::string parameter)
Item(const Item ©DcmItem)
DCMTree::TreePtr getTreePtr() const
bool setCodingSchemeVersion(std::string parameter)
std::string getContextGroupLocalVersionTag() const
bool getCodeValue(std::string ¶meter) const
bool setCodeValue(std::string parameter)
bool setCodeMeaning(std::string parameter)
Item & operator=(const Item ©DcmItem)
bool setMappingResource(std::string parameter)
std::string getContextIdentifierTag() const
bool setContextIdentifier(std::string parameter)
bool getCodeMeaning(std::string ¶meter) const
bool getContextGroupVersion(std::string ¶meter) const
std::string getContextGroupVersionTag() const
std::string getCodeValueTag() const
bool getContextGroupExtensionFlag(std::string ¶meter) const
std::string getCodingSchemeVersionTag() const
std::string getMappingResourceTag() const
bool getContextIdentifier(std::string ¶meter) const
Class to provide access to DRTDerivationCodeSequence.
bool setCodingSchemeDesignator(unsigned long idx, std::string parameter)
std::string getContextGroupExtensionCreatorUIDTag() const
std::string getCodeMeaningTag() const
bool setContextGroupVersion(unsigned long idx, std::string parameter)
std::string getCodingSchemeDesignatorTag() const
DcmDRTDerivationCodeSequenceInterface()
bool insertItem(const size_t idx)
Insert an item at the indicated position.
DcmDRTDerivationCodeSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
std::string getCodingSchemeVersionTag() const
std::string getMappingResourceTag() const
bool setCodeMeaning(unsigned long idx, std::string parameter)
bool getContextIdentifier(unsigned long idx, std::string ¶meter) const
bool getContextGroupVersion(DCMTree::TreePtr item, std::string ¶meter) const
bool hasSequence() const
Check if the DRTDerivationCodeSequence is set.
bool setContextGroupExtensionCreatorUID(unsigned long idx, std::string parameter)
bool getContextGroupVersion(unsigned long idx, std::string ¶meter) const
bool setContextIdentifier(unsigned long idx, std::string parameter)
bool getCodeMeaning(unsigned long idx, std::string ¶meter) const
bool getContextGroupExtensionCreatorUID(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDerivationCodeSequenceInterface(std::vector< DcmDRTDerivationCodeSequenceInterface::Item > dcmSequence)
Default Constructor.
std::vector< DcmDRTDerivationCodeSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
std::string getCodeValueTag() const
bool getMappingResource(DCMTree::TreePtr item, std::string ¶meter) const
bool setContextGroupLocalVersion(unsigned long idx, std::string parameter)
bool getContextGroupExtensionFlag(DCMTree::TreePtr item, std::string ¶meter) const
bool getContextGroupExtensionCreatorUID(unsigned long idx, std::string ¶meter) const
bool getCodingSchemeVersion(DCMTree::TreePtr item, std::string ¶meter) const
void addItem(DcmDRTDerivationCodeSequenceInterface::Item newItem)
bool getCodingSchemeDesignator(unsigned long idx, std::string ¶meter) const
bool setCodeValue(unsigned long idx, std::string parameter)
bool getCodingSchemeVersion(unsigned long idx, std::string ¶meter) const
virtual ~DcmDRTDerivationCodeSequenceInterface()
Default virtual Destructor.
bool getCodeValue(unsigned long idx, std::string ¶meter) const
std::string getContextGroupExtensionFlagTag() const
bool getContextGroupLocalVersion(unsigned long idx, std::string ¶meter) const
bool getMappingResource(unsigned long idx, std::string ¶meter) const
bool setMappingResource(unsigned long idx, std::string parameter)
bool setCodingSchemeVersion(unsigned long idx, std::string parameter)
bool getCodeValue(DCMTree::TreePtr item, std::string ¶meter) const
std::string getContextIdentifierTag() const
bool getContextIdentifier(DCMTree::TreePtr item, std::string ¶meter) const
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
void setSequence(std::vector< DcmDRTDerivationCodeSequenceInterface::Item > dcmSequence)
Set the DRTDerivationCodeSequence this interface class provides access to.
std::string getContextGroupVersionTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTDerivationCodeSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getContextGroupExtensionFlag(unsigned long idx, std::string ¶meter) const
bool getContextGroupLocalVersion(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTDerivationCodeSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::vector< DcmDRTDerivationCodeSequenceInterface::Item > getSequence() const
Return the DRTDerivationCodeSequence this interface class provides access to.
bool getCodeMeaning(DCMTree::TreePtr item, std::string ¶meter) const
bool getCodingSchemeDesignator(DCMTree::TreePtr item, std::string ¶meter) const
std::string getContextGroupLocalVersionTag() const
bool setContextGroupExtensionFlag(unsigned long idx, std::string parameter)
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