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