00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __DVPSDEF_H__
00035 #define __DVPSDEF_H__
00036
00037 #include "dcmtk/config/osconfig.h"
00038
00039
00040 #define DEFAULT_MAXPDU 16384
00041
00042 #define DEFAULT_filmDestination "DEFAULT"
00043 #define DEFAULT_filmOrientation "PORTRAIT"
00044 #define DEFAULT_filmSizeID "DEFAULT"
00045 #define DEFAULT_illumination 2000
00046 #define DEFAULT_imageDisplayFormat "STANDARD\\1,1"
00047 #define DEFAULT_imageNumber "1"
00048 #define DEFAULT_magnificationType "DEFAULT"
00049 #define DEFAULT_maxDensity 320
00050 #define DEFAULT_mediumType "DEFAULT"
00051 #define DEFAULT_minDensity 20
00052 #define DEFAULT_numberOfCopies "1"
00053 #define DEFAULT_ownerID "DEFAULT"
00054 #define DEFAULT_patientName "^^^^"
00055 #define DEFAULT_presentationLabel "UNNAMED"
00056 #define DEFAULT_printerStatus "NORMAL"
00057 #define DEFAULT_printerStatusInfo "NORMAL"
00058 #define DEFAULT_priority "MED"
00059 #define DEFAULT_reflectedAmbientLight 10
00060 #define DEFAULT_seriesNumber "1"
00061 #define DEFAULT_shutterPresentationValue 0
00062 #define DEFAULT_specificCharacterSet "ISO_IR 100"
00063 #define DEFAULT_trim "NO"
00064
00065
00066 #define WELLKNOWN_IDENTITY_PLUT_UID "1.2.276.0.7230010.3.4.1915765545.18030.917282194.1"
00067
00068
00069 #define PSTAT_DIMSE_LOG_STORAGE_UID "1.2.276.0.7230010.3.4.1915765545.18030.917282194.2"
00070
00071
00072 #define DVPS_IDX_NONE ((size_t)-1)
00073
00074
00075 #define PSTAT_MAXSTUDYCOUNT 200
00076
00077
00078 #define PSTAT_STUDYSIZE DB_UpperMaxBytesPerStudy
00079
00080
00081 #define PRINTJOB_SUFFIX ".job"
00082 #define PRINTJOB_DONE_SUFFIX ".old"
00083 #define PRINTJOB_TEMP_SUFFIX ".tmp"
00084
00085
00086 #define PSTAT_AETITLE "DCMPSTAT"
00087
00088
00089 #define PSTAT_DBFOLDER "."
00090
00091
00092 #define PSTAT_LUTFOLDER "."
00093
00094
00095 #define PSTAT_REPORTFOLDER "."
00096
00097
00098 #define PSTAT_SPOOLFOLDER "."
00099
00100
00101 #define L2_HIGHRESOLUTIONGRAPHICS "HIGHRESOLUTIONGRAPHICS"
00102
00103 #define PSTAT_DCM_LogReservation DcmTag(0x0009, 0x0010, EVR_LO)
00104 #define PSTAT_DCM_AcseSequence DcmTag(0x0009, 0x1100, EVR_SQ)
00105 #define PSTAT_DCM_LogSequence DcmTag(0x0009, 0x1200, EVR_SQ)
00106 #define PSTAT_DCM_LogEntryType DcmTag(0x0009, 0x1001, EVR_CS)
00107 #define PSTAT_DCM_LogDate DcmTag(0x0009, 0x1002, EVR_DA)
00108 #define PSTAT_DCM_LogTime DcmTag(0x0009, 0x1003, EVR_TM)
00109 #define PSTAT_DCM_AssociateData DcmTag(0x0009, 0x1004, EVR_OB)
00110
00111
00112
00113
00114 #define ADD_TO_DATASET(a_type, a_name) \
00115 if (result==EC_Normal) \
00116 { \
00117 delem = new a_type(a_name); \
00118 if (delem) dset.insert(delem, OFTrue); else result=EC_MemoryExhausted; \
00119 }
00120
00121
00122 #define ADD_TO_DATASET2(a_type, a_name) \
00123 if (result==EC_Normal) \
00124 { \
00125 delem = new a_type(a_name); \
00126 if (delem) ditem->insert(delem, OFTrue); else result=EC_MemoryExhausted; \
00127 }
00128
00129
00130 #define ADD_TO_PDATASET(a_type, a_name) \
00131 if (writeresult==EC_Normal) \
00132 { \
00133 delem = new a_type(a_name); \
00134 if (delem) rspDataset->insert(delem, OFTrue); else writeresult=EC_MemoryExhausted; \
00135 }
00136
00137
00138 #define ADD_REPEATING_ELEMENT_TO_DATASET(a_type, a_name, a_group) \
00139 if (result==EC_Normal) \
00140 { \
00141 delem = new a_type(a_name); \
00142 if (delem) \
00143 { \
00144 delem->setGTag(a_group); \
00145 dset.insert(delem, OFTrue); \
00146 } else result=EC_MemoryExhausted; \
00147 }
00148
00149
00150 #define READ_FROM_DATASET(a_type, a_name) \
00151 stack.clear(); \
00152 if (EC_Normal == dset.search((DcmTagKey &)a_name.getTag(), stack, ESM_fromHere, OFFalse)) \
00153 { \
00154 a_name = *((a_type *)(stack.top())); \
00155 }
00156
00157
00158 #define READ_FROM_DATASET2(a_type, a_name) \
00159 stack.clear(); \
00160 if (EC_Normal == item->search((DcmTagKey &)a_name.getTag(), stack, ESM_fromHere, OFFalse)) \
00161 { \
00162 a_name = *((a_type *)(stack.top())); \
00163 }
00164
00165
00166 #define READ_FROM_PDATASET(a_type, a_name) \
00167 stack.clear(); \
00168 if (rqDataset && (EC_Normal == rqDataset->search((DcmTagKey &)a_name.getTag(), stack, ESM_fromHere, OFFalse))) \
00169 { \
00170 a_name = *((a_type *)(stack.top())); \
00171 }
00172
00173
00174 #define SET_UID(a_name) \
00175 if (result==EC_Normal) \
00176 { \
00177 if (a_name.getLength()==0) result = a_name.putString(dcmGenerateUniqueIdentifier(uid)); \
00178 }
00179
00180 #endif
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210