23#ifndef __mlDcmDRTPhysiciansReadingStudyIdentificationSequenceInterface_H
24#define __mlDcmDRTPhysiciansReadingStudyIdentificationSequenceInterface_H
36#ifndef __mlModuleIncludes_H
53 Item() { _dcmItem = DcmtkAccessories::createNewDicomTree(); }
65 bool isValid()
const {
return _dcmItem.get() !=
nullptr; }
162 std::vector<DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item>
getSequence()
const {
169 return (_itemVec.size() != 0);
175 return static_cast<MLint>(_itemVec.size());
181 if (_itemVec.size() >
idx) {
182 return _itemVec[
idx];
191 return _itemVec[_itemVec.size()-1];
201 if (_itemVec.size() >
idx) {
202 std::vector<DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item>::iterator
it = _itemVec.begin();
203 std::advance(
it,
idx);
213 if ( _itemVec.size() >
idx ) {
214 std::vector<DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item>::iterator
it = _itemVec.begin();
215 std::advance(
it,
idx);
224 std::vector<DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item>
_itemVec;
#define MLDCMTKACCESSORIES_EXPORT
Class to provide access to DRTInstitutionCodeSequence.
Class to provide access to DRTPersonIdentificationCodeSequence.
std::string getPersonTelephoneNumbersTag() const
void setPersonIdentificationCodeSequence(DcmDRTPersonIdentificationCodeSequenceInterface seq)
bool setInstitutionAddress(std::string parameter)
std::string getInstitutionAddressTag() const
DcmDRTInstitutionCodeSequenceInterface getInstitutionCodeSequence() const
Item(const Item ©DcmItem)
Item(DCMTree::TreePtr dcmItem)
bool getInstitutionAddress(std::string ¶meter) const
bool getInstitutionName(std::string ¶meter) const
bool setInstitutionName(std::string parameter)
DcmDRTPersonIdentificationCodeSequenceInterface getPersonIdentificationCodeSequence() const
std::string getPersonIdentificationCodeSequenceTag() const
Item & operator=(const Item ©DcmItem)
bool getPersonTelephoneNumbers(std::string ¶meter) const
bool setPersonTelephoneNumbers(std::string parameter)
DCMTree::TreePtr getTreePtr() const
std::string getInstitutionCodeSequenceTag() const
bool getPersonAddress(std::string ¶meter) const
std::string getInstitutionNameTag() const
void setInstitutionCodeSequence(DcmDRTInstitutionCodeSequenceInterface seq)
bool setPersonAddress(std::string parameter)
std::string getPersonAddressTag() const
Class to provide access to DRTPhysiciansReadingStudyIdentificationSequence.
DcmDRTInstitutionCodeSequenceInterface getInstitutionCodeSequence(unsigned long idx) const
std::string getPersonAddressTag() const
virtual ~DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface()
Default virtual Destructor.
void setSequence(std::vector< DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item > dcmSequence)
Set the DRTPhysiciansReadingStudyIdentificationSequence this interface class provides access to.
DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface()
DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface(DCMTree::TreePtrVector treePtrSeq)
bool removeItem(const size_t idx)
Removes the indicated item from the sequence.
bool setInstitutionName(unsigned long idx, std::string parameter)
bool getPersonTelephoneNumbers(unsigned long idx, std::string ¶meter) const
bool setPersonAddress(unsigned long idx, std::string parameter)
std::string getInstitutionCodeSequenceTag() const
DcmDRTPersonIdentificationCodeSequenceInterface getPersonIdentificationCodeSequence(unsigned long idx) const
bool setInstitutionAddress(unsigned long idx, std::string parameter)
std::vector< DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item > _itemVec
Reference to the wrapped DICOM tree pointer vector.
void addItem(DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item newItem)
void setPersonIdentificationCodeSequence(DcmDRTPersonIdentificationCodeSequenceInterface seq, unsigned long idx)
bool setPersonTelephoneNumbers(unsigned long idx, std::string parameter)
DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface(std::vector< DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item > dcmSequence)
Default Constructor.
std::string getInstitutionNameTag() const
bool getInstitutionAddress(unsigned long idx, std::string ¶meter) const
std::vector< DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item > getSequence() const
Return the DRTPhysiciansReadingStudyIdentificationSequence this interface class provides access to.
bool insertItem(const size_t idx)
Insert an item at the indicated position.
bool getPersonAddress(DCMTree::TreePtr item, std::string ¶meter) const
void setInstitutionCodeSequence(DcmDRTInstitutionCodeSequenceInterface seq, unsigned long idx)
std::string getInstitutionAddressTag() const
bool hasSequence() const
Check if the DRTPhysiciansReadingStudyIdentificationSequence is set.
bool getPersonAddress(unsigned long idx, std::string ¶meter) const
bool getInstitutionName(DCMTree::TreePtr item, std::string ¶meter) const
DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item & addItem()
Adds a new item to the sequence.
std::string getPersonIdentificationCodeSequenceTag() const
bool getInstitutionAddress(DCMTree::TreePtr item, std::string ¶meter) const
std::string getPersonTelephoneNumbersTag() const
MLint getNumberOfItems() const
Return number of items the internal sequence consists of.
DcmDRTPhysiciansReadingStudyIdentificationSequenceInterface::Item getItem(const size_t idx) const
Gets the item at the indicated position.
bool getInstitutionName(unsigned long idx, std::string ¶meter) const
bool getPersonTelephoneNumbers(DCMTree::TreePtr item, std::string ¶meter) const
Class to provide access to DRTInstitutionCodeSequence.
Class to provide access to DRTPersonIdentificationCodeSequence.
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