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