+ * \brief Writes the Object
+ * @param fp ofstream to write to
+ * @param t Type of the File (explicit VR, implicitVR, ...)
+ */
+void DicomDirPatient::WriteContent(std::ofstream *fp, FileType t)
+{
+ DicomDirObject::WriteContent(fp, t);
+
+ for(ListDicomDirStudy::iterator cc = Studies.begin();
+ cc!= Studies.end();
+ ++cc )
+ {
+ (*cc)->WriteContent( fp, t );
+ }
+}
+
+/**
+ * \brief adds a new Patient at the beginning of the PatientList
+ * of a partially created DICOMDIR
+ */
+DicomDirStudy* DicomDirPatient::NewStudy()
+{
+ DicomDirStudy *dd = DicomDirStudy::New();
+ Studies.push_back(dd);
+ return dd;
+}
+
+/**
+ * \brief Remove all studies in the patient