+/**
+ * \brief adds any Entry (Dicom Element) to the Sequence Item
+ */
+bool gdcmSQItem::AddEntry(gdcmDocEntry *entry)
+{
+ docEntries.push_back(entry);
+ //TODO : check if it worked
+ return true;
+}
+
+/**
+ * \brief Sets Entry (Dicom Element) value of an element,
+ * specified by it's tag (Group, Number)
+ * and the length, too ... inside a SQ Item
+ * If the Element is not found, it's just created !
+ * \warning we suppose, right now, the element belongs to a Public Group
+ * (NOT a shadow one)
+ * @param val string value to set
+ * @param group Group number of the searched tag.
+ * @param element Element number of the searched tag.
+ * @return true if element was found or created successfully
+ */
+
+bool gdcmSQItem::SetEntryByNumber(std::string val,uint16_t group,
+ uint16_t element)
+{
+ for(ListDocEntry::iterator i = docEntries.begin(); i != docEntries.end(); ++i)
+ {
+ if ( (*i)->GetGroup() == 0xfffe && (*i)->GetElement() == 0xe000 )
+ {
+ continue;
+ }
+
+ if ( ( group < (*i)->GetGroup() )
+ ||( group == (*i)->GetGroup() && element < (*i)->GetElement()) )
+ {
+ // instead of ReplaceOrCreateByNumber
+ // that is a method of gdcmDocument :-(
+ gdcmValEntry* entry = 0;
+ gdcmTagKey key = gdcmDictEntry::TranslateToKey(group, element);