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