Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

tiquery.h

00001 /*
00002  *
00003  *  Copyright (C) 1993-2001, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module:  imagectn
00019  *
00020  *  Author:  Andrew Hewett
00021  *
00022  *  Purpose: TI Query Routines
00023  *
00024  *  Last Update:      $Author: meichel $
00025  *  Update Date:      $Date: 2001/06/01 15:51:24 $
00026  *  Source File:      $Source: /share/dicom/cvs-depot/dcmtk/imagectn/apps/tiquery.h,v $
00027  *  CVS/RCS Revision: $Revision: 1.5 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef TI_QUERY_H
00035 #define TI_QUERY_H
00036 
00037 #include "osconfig.h"    /* make sure OS specific configuration is included first */
00038 
00039 #include "ti.h"
00040 #include "dicom.h"
00041 #include "imagedb.h"
00042 #include "diutil.h"
00043 
00044 OFBool
00045 TI_dbReadable(const char *dbTitle);
00046 /*
00047  * Returns true if the db associated with dbTitle exists and is readable.
00048  */
00049  
00050 time_t 
00051 TI_dbModifyTime(const char *dbTitle);
00052 /*
00053  * Returns the time the db associated with dbTitle was last modified.
00054  */
00055 
00056 /* study level */
00057 void
00058 TI_destroyStudyEntries(TI_DBEntry *db);
00059 OFBool
00060 TI_buildStudies(TI_Config *conf, TI_DBEntry *db);
00061 /*
00062  * Interogate the database and build up a study structure.
00063  *
00064  */
00065 
00066 /* series level */
00067 void
00068 TI_destroySeriesEntries(TI_StudyEntry *study);
00069 OFBool
00070 TI_buildSeries(TI_Config *conf, TI_DBEntry *db, TI_StudyEntry *study);
00071 
00072 /* image level */
00073 void
00074 TI_destroyImageEntries(TI_SeriesEntry *series);
00075 OFBool
00076 TI_buildImages(TI_Config *conf, TI_DBEntry *db, TI_StudyEntry *study,
00077     TI_SeriesEntry *series);
00078 
00079 
00080 /* image info */
00081 
00082 void 
00083 TI_getInfoFromDataset(DcmDataset *dset, DIC_PN patientsName, DIC_CS studyId,
00084     DIC_IS seriesNumber, DIC_CS modality, DIC_IS imageNumber);
00085 
00086 void
00087 TI_getInfoFromImage(char *imgFile, DIC_PN patientsName, DIC_CS studyId,
00088     DIC_IS seriesNumber, DIC_CS modality, DIC_IS imageNumber);
00089 
00090 #endif /* TI_QUERY_H */
00091 
00092 /*
00093 ** CVS Log
00094 ** $Log: tiquery.h,v $
00095 ** Revision 1.5  2001/06/01 15:51:24  meichel
00096 ** Updated copyright header
00097 **
00098 ** Revision 1.4  2000/03/08 16:41:04  meichel
00099 ** Updated copyright header.
00100 **
00101 ** Revision 1.3  1999/06/10 12:12:06  meichel
00102 ** Adapted imagectn to new command line option scheme.
00103 **   Added support for Patient/Study Only Q/R model and C-GET (experimental).
00104 **
00105 ** Revision 1.2  1997/07/21 08:59:48  andreas
00106 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)
00107 **   with one unique boolean type OFBool.
00108 **
00109 ** Revision 1.1  1996/04/22 10:27:28  hewett
00110 ** Initial release.
00111 **
00112 **
00113 */


Generated on 26 Apr 2005 for OFFIS DCMTK Version 3.5.3 by Doxygen 1.4.2