15 #define PMB_DX_NOT_RUNNING 1 // Romexis/Dimaxis has not been successfully started
16 #define PMB_LOGIN_FAILED 2 // Romexis/Dimaxis has not been able to login to DB
17 #define PMB_PATIENT_NOT_FOUND 3 // Specified patient not found in the DB
18 #define PMB_INSERT_FAILED 4 // Failed to insert the patient. Dubl.prim. key?
19 #define PMB_UPDATE_FAILED 5 // Failed to update the patient
20 #define PMB_DELETE_FAILED 6 // Failed to delete the patient
21 #define PMB_DELETE_NOT_ALLOWED 7 // Can't delete the patient because [s]he has images in the database
22 #define PMB_LOGIN_NOT_YET_OK 8 // Romexis/Dimaxis has not yet done login to DB (slow LAN may be reason for this)
23 #define PMB_DX_BUSY 9 // Romexis/Dimaxis is busy (a modal dialog open)
24 #define PMB_INVALID_IMAGE_INDEX 10
25 #define PMB_PATIENT_NOT_SELECTED 11 // No patient has been selected in Dimaxis
26 #define PMB_NO_IMAGES_FOUND 12 // The selected patient don't have any images
27 #define PMB_GET_IMAGE_FAILED 13 // Failed to get the image from the database; out of disk space?
28 #define PMB_WRITE_IMAGE_FAILED 14 // Failed to write the image to desired location; out of disk space?
29 #define PMB_REQUIRED_FIELD_MISSING 15 // ID or name missing for DxInsertPatient() or DxUpdatePatient()
30 #define PMB_PATIENT_EXISTS 16 // Patient with the same ID and name exists
31 #define PMB_PATIENT_ID_CONFLICT 17 // Patient with the same ID but different name exists
32 #define PMB_IMAGE_IN_LONG_TERM_ARCH 18 // Image is in long term archive and is not available
34 #define PMB_AMBIGUOUS_PATIENT_ID 19 // More than one patient found with the specified patient ID
35 #define PMB_INVALID_BIRTH_DATE 20 // If BirthDate is present, format must be YYYYMMDD
43 #define DX_IT_INTRACAM 3
45 #define DX_IT_CR_SCANNER 5
51 #define DX_IT_SURFACE_SCAN 8
54 #define DX_IT_BINARY 9
67 #define DX_INDEX_IMAGE_TYPE 1 // Image Type: 0 ... 5
68 #define DX_INDEX_FILE_FORMAT 2 // File Format: 0 ... 2
69 #define DX_INDEX_FILE_SIZE 3
70 #define DX_INDEX_IMAGE_DATE 4 // YYYYMMDD
71 #define DX_INDEX_IMAGE_TIME 5 // HHMMSS
72 #define DX_INDEX_VOLTAGE 6 // Kilovolts
73 #define DX_INDEX_CURRENT 7 // Milliamps
74 #define DX_INDEX_EXP_TIME 8 // Milliseconds
75 #define DX_INDEX_PIXEL_SIZE 9 // Micrometers
76 #define DX_INDEX_IMAGE_ID 10 // ID for the patient's image in the Romexis/Dimaxis database
78 #define DX_MAX_INDEX 20 // Reserve some indices for future use
83 #define DX_ACL_VIEW_IMAGE 0
86 #define DX_ACL_ACQUIRE_IMAGE 1
89 #define DX_ACL_DELETE_IMAGE 2
92 #define DX_ACL_ADMINISTRATION 4
96 #define DX_RWND_SIZE_SMALL 0
97 #define DX_RWND_SIZE_FULL 1
98 #define DX_RWND_CLOSE -1
101 #define DX_SHOW_BAR 1
102 #define DX_HIDE_BAR -1
104 #define GENDER_MALE_STRING "M"
105 #define GENDER_FEMALE_STRING "F"
106 #define GENDER_UNKNOWN_STRING "U"
112 extern "C" DWORD WINAPI
DxStart (
134 const char *pszPatientID,
139 const char *pszPatientID,
153 const char *pszPatientID,
154 const char *pszFamilyName,
155 const char *pszFirstName,
156 const char *pszBirthDate,
157 const char *pszDoctor
161 const char *pszPatientID,
162 const char *pszFamilyName,
163 const char *pszFirstName,
164 const char *pszBirthDate,
165 const char *pszDoctor
171 const char *pszPatientID,
172 const char *pszFamilyName,
173 const char *pszFirstName,
174 const char *pszBirthDate,
175 const char *pszDoctor,
176 const char *pszGender
180 const char *pszPatientID,
181 const char *pszFamilyName,
182 const char *pszFirstName,
183 const char *pszBirthDate,
184 const char *pszDoctor,
185 const char *pszGender
193 const char *pszPatientID,
194 const WCHAR *pwszFamilyName,
195 const WCHAR *pwszFirstName,
196 const char *pszBirthDate,
197 const WCHAR *pwszDoctor
201 const char *pszPatientID,
202 const wchar_t *pwszFamilyName,
203 const wchar_t *pwszFirstName,
204 const char *pszBirthDate,
205 const wchar_t *pwszDoctor
212 const char *pszPatientID,
213 const WCHAR *pwszFamilyName,
214 const WCHAR *pwszFirstName,
215 const char *pszBirthDate,
216 const WCHAR *pwszDoctor,
217 const char *pszGender
221 const char *pszPatientID,
222 const wchar_t *pwszFamilyName,
223 const wchar_t *pwszFirstName,
224 const char *pszBirthDate,
225 const wchar_t *pwszDoctor,
226 const char *pszGender
240 const char *pszPatientID,
241 const char *pszFamilyName,
242 const char *pszFirstName,
243 const char *pszBirthDate,
244 const char *pszDoctor
248 const char *pszPatientID,
249 const char *pszFamilyName,
250 const char *pszFirstName,
251 const char *pszBirthDate,
252 const char *pszDoctor
259 const char *pszPatientID,
260 const char *pszFamilyName,
261 const char *pszFirstName,
262 const char *pszBirthDate,
263 const char *pszDoctor,
264 const char *pszGender
268 const char *pszPatientID,
269 const char *pszFamilyName,
270 const char *pszFirstName,
271 const char *pszBirthDate,
272 const char *pszDoctor,
273 const char *pszGender
281 const char *pszPatientID,
282 const WCHAR *pwszFamilyName,
283 const WCHAR *pwszFirstName,
284 const char *pszBirthDate,
285 const WCHAR *pwszDoctor
289 const char *pszPatientID,
290 const wchar_t *pwszFamilyName,
291 const wchar_t *pwszFirstName,
292 const char *pszBirthDate,
293 const wchar_t *pwszDoctor
300 const char *pszPatientID,
301 const WCHAR *pwszFamilyName,
302 const WCHAR *pwszFirstName,
303 const char *pszBirthDate,
304 const WCHAR *pwszDoctor,
305 const char *pszGender
309 const char *pszPatientID,
310 const wchar_t *pwszFamilyName,
311 const wchar_t *pwszFirstName,
312 const char *pszBirthDate,
313 const wchar_t *pwszDoctor,
314 const char *pszGender
325 const char *pszPatientID
329 const char *pszPatientID
354 extern "C" short WINAPI
DxExit (
407 short nUseStudy,
short nAllowWithoutStudy
411 short nUseStudy,
short nAllowWithoutStudy
442 const char *pszPatientID,
443 const char *pszStartDate,
444 const char *pszStartTime,
445 const char *pszModality,
446 const char *pszStepID,
447 const char *pszStepDesc,
448 const char *pszProcedureID,
449 const char *pszProcedureDesc,
450 const char *pszStudyInstanceUID,
451 const char *pszAccessionNumber,
452 short arrToothMask []
456 const char *pszPatientID,
457 const char *pszStartDate,
458 const char *pszStartTime,
459 const char *pszModality,
460 const char *pszStepID,
461 const char *pszStepDesc,
462 const char *pszProcedureID,
463 const char *pszProcedureDesc,
464 const char *pszStudyInstanceUID,
465 const char *pszAccessionNumber,
466 short arrToothMask []
479 long arrImageParam [],
480 short arrToothMask []
485 long arrImageParam [],
486 short arrToothMask []
494 short nConvertTo8bit,
497 const char *pszFileName
502 short nConvertTo8bit,
505 const char *pszFileName
514 short nConvertTo8bit,
517 const char *pszFileName
522 short nConvertTo8bit,
525 const char *pszFileName
534 const char *pszFileName
540 const char *pszFileName
551 const char *pszFileName
557 const char *pszFileName
565 unsigned short nAccessLevel
570 unsigned short nAccessLevel
short DxDeletePatient(const char *pszPatientID)
Inactivate a patient in Romexis.
Definition: JPmBridge.cpp:2571
short DxGetImageByID(int nImageID, short nConvertTo8bit, short nEnhanceContrast, short nFileFormat, const char *pszFileName)
Retrieve an image of having given image ID in Romexis database.
Definition: JPmBridge.cpp:1930
short DxSetUser(char *pszUserName, unsigned short nAccessLevel)
Sets the user of ROMEXIS client.
Definition: JPmBridge.cpp:2673
short DxInsertPatientW_Ex(const char *pszPatientID, const WCHAR *pwszFamilyName, const WCHAR *pwszFirstName, const char *pszBirthDate, const WCHAR *pwszDoctor, const char *pszGender)
This new extended UNICODE routine adds a new patient into Romexis database.
Definition: JPmBridge.cpp:1155
short DxCaptureImage(short nImageType)
This routine starts image acquisition of given image type in 2D imaging or 3D imaging module...
Definition: JPmBridge.cpp:2123
short DxGetOverviewImageByID(int nImageID, short nFileFormat, const char *pszFileName)
Retrieve an overview (thumbnail) image of having given image ID in Romexis database.
Definition: JPmBridge.cpp:2081
short DxMoveWindow(long x0, long y0, long nWidth, long nHeight)
Explicitly specify the location of the main window of Romexis.
Definition: JPmBridge.cpp:2487
short DxCaptureImageIntra(short nUseStudy, short nAllowWithoutStudy)
Starts image acquisition of IntraOral type with/without study in 2D imaging module.
Definition: JPmBridge.cpp:2171
short DxExit()
Terminates ROMEXIS application.
Definition: JPmBridge.cpp:2436
short DxInsertPatient(const char *pszPatientID, const char *pszFamilyName, const char *pszFirstName, const char *pszBirthDate, const char *pszDoctor)
This ANSI routine adds a new patient into Romexis database.
Definition: JPmBridge.cpp:1207
short DxUpdatePatient_Ex(const char *pszPatientID, const char *pszFamilyName, const char *pszFirstName, const char *pszBirthDate, const char *pszDoctor, const char *pszGender)
This new extended ANSI routine updates patient data in Romexis database.
Definition: JPmBridge.cpp:1474
DWORD DxStart()
This routine initializes the PMBRIDGE interface.
Definition: JPmBridge.cpp:668
short DxSelectPatient(const char *pszPatientID, short *pnImageCount)
Selection of an existing patient.
Definition: JPmBridge.cpp:915
short DxSetWorklistEntry(const char *pszPatientID, const char *pszStartDate, const char *pszStartTime, const char *pszModality, const char *pszStepID, const char *pszStepDesc, const char *pszProcedureID, const char *pszProcedureDesc, const char *pszStudyInstanceUID, const char *pszAccessionNumber, short arrToothMask[])
This routine is NOT (yet) implemented in Romexis.
Definition: JPmBridge.cpp:2877
short DxGetOverviewImage(short nIndex, short nFileFormat, const char *pszFileName)
Retrieve an overviw (thumbnail) image of given index in image info array.
Definition: JPmBridge.cpp:1982
short DxSelectImage()
This routine opens the Select Image UI dialog for selecting an existing image.
Definition: JPmBridge.cpp:2207
short DxInsertPatientW(const char *pszPatientID, const WCHAR *pwszFamilyName, const WCHAR *pwszFirstName, const char *pszBirthDate, const WCHAR *pwszDoctor)
This UNICODE routine adds a new patient into Romexis database.
Definition: JPmBridge.cpp:1093
short DxUpdatePatientW_Ex(const char *pszPatientID, const WCHAR *pwszFamilyName, const WCHAR *pwszFirstName, const char *pszBirthDate, const WCHAR *pwszDoctor, const char *pszGender)
This new extended UNICODE routine updates patient data in Romexis database.
Definition: JPmBridge.cpp:1373
short DxShowStatusbar(short nShow)
This command is sent to Romexis but command is NOT (yet) handled by Romexis.
Definition: JPmBridge.cpp:3131
short DxInquireImage(short nIndex, long arrImageParam[], short arrToothMask[])
Get information about images of the currently selected patient.
Definition: JPmBridge.cpp:1527
short DxShowToolbar(short nShow)
This command is sent to Romexis but it is NOT (yet) handled by Romexis.
Definition: JPmBridge.cpp:3103
short DxOpenImage(short nIndex, int nImageID)
Open image in Romexis by giving it's ID or info index.
Definition: JPmBridge.cpp:1779
short DxSetImageRetrievalWindowSize(short nWindowSize)
Sets Image Navigator (Image Retrieval) Windows Size in Romexis.
Definition: JPmBridge.cpp:2733
short DxGetDBStatus()
This routine sends a TCPIP 'ping' command to PmBridge port.
Definition: JPmBridge.cpp:2606
short DxUpdatePatientW(const char *pszPatientID, const WCHAR *pwszFamilyName, const WCHAR *pwszFirstName, const char *pszBirthDate, const WCHAR *pwszDoctor)
This UNICODE routine updates patient data in Romexis database.
Definition: JPmBridge.cpp:1324
short DxUpdatePatient(const char *pszPatientID, const char *pszFamilyName, const char *pszFirstName, const char *pszBirthDate, const char *pszDoctor)
This ANSI routine updates patient data in Romexis database.
Definition: JPmBridge.cpp:1420
short DxSetMaxLimits(long nMinTop, long nMaxBottom, long nMinLeft, long nMaxRight)
Define limits for the Romexis window when the window is maximized.
Definition: JPmBridge.cpp:3175
short DxGetImage(short nIndex, short nConvertTo8bit, short nEnhanceContrast, short nFileFormat, const char *pszFileName)
Retrieve an image of given index in image info array.
Definition: JPmBridge.cpp:1828
short DxSetWindowPlacement(UINT uShowCmd)
Sets Romexis main window behaviour.
Definition: JPmBridge.cpp:2271
short DxDeselectPatient()
Unselect/deselect patient in Romexis patient module.
Definition: JPmBridge.cpp:2235
short DxAlwaysOnTop(short nOnTop)
Sets Romexis main window always on top, or unsets the behaviour.
Definition: JPmBridge.cpp:2537
short DxGetImageRetrievalWindowSize(short *pnWindowSize, long *pnLeft, long *pnRight, long *pnTop, long *pnBottom)
Gets Image Navigator (Image Retrieval) Windows size and location in Romexis.
Definition: JPmBridge.cpp:2768
short DxInsertPatient_Ex(const char *pszPatientID, const char *pszFamilyName, const char *pszFirstName, const char *pszBirthDate, const char *pszDoctor, const char *pszGender)
This new extended ANSI routine adds a new patient into Romexis database.
Definition: JPmBridge.cpp:1265