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