PmBridge SDK  2.7.0
PMBRIDGE SDK Interface
 All Files Functions Macros Groups
PmBridge.h
Go to the documentation of this file.
1 
2 // PmBridge.h
3 
4 // C interface to BmBridge.DLL
5 
6 // EJL 21.10.1998 =>
7 
8 // Updated by MKH:
9 // 2013/05/13
10 // 2013/10/07 (New extended InsertPatient and UpdatePatient- functions)
11 
12 // Status codes
13 
14 #define PMB_OK 0
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
33 
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
36 
37 
38 
39 // Image types for DxCaptureImage() and DxInquireImage()
40 #define DX_IT_PAN 0
41 #define DX_IT_CEPH 1
42 #define DX_IT_INTRA 2
43 #define DX_IT_INTRACAM 3
44 #define DX_IT_TWAIN 4
45 #define DX_IT_CR_SCANNER 5
46 
47 // 2D CBCT Snapshot
48 #define DX_IT_CR 6
49 // 3D CBCT Volume
50 #define DX_IT_CBCT 7
51 #define DX_IT_SURFACE_SCAN 8
52 
53 // Attachment file
54 #define DX_IT_BINARY 9
55 
56 
57 // Image file formats
58 #define DX_IF_TIFF 0
59 #define DX_IF_JPEG 1
60 #define DX_IF_BMP 2
61 #define DX_IF_PNG 3
62 #define DX_IF_DICOM 4
63 
64 // Indices in the image parameter array
65 // To be as much as possible language independent, 1 is the first index used
66 
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
77 
78 #define DX_MAX_INDEX 20 // Reserve some indices for future use
79 
80 
81 // User's permissions / Access level
82 
83 #define DX_ACL_VIEW_IMAGE 0
84 
85 // The user is allowed to make exposures and to scan or import images
86 #define DX_ACL_ACQUIRE_IMAGE 1
87 
88 // The user is allowed to delete or move images
89 #define DX_ACL_DELETE_IMAGE 2
90 
91 // The user is allowed to modify Dimaxis (ONLY) settings , move images to LTA and edit study templates
92 #define DX_ACL_ADMINISTRATION 4
93 
94 
95 // Image Retrieval (= Image Navigator) window size
96 #define DX_RWND_SIZE_SMALL 0
97 #define DX_RWND_SIZE_FULL 1
98 #define DX_RWND_CLOSE -1
99 
100 // Codes for DxShowToolbar / DxShowStatusbar
101 #define DX_SHOW_BAR 1
102 #define DX_HIDE_BAR -1
103 
104 #define GENDER_MALE_STRING "M"
105 #define GENDER_FEMALE_STRING "F"
106 #define GENDER_UNKNOWN_STRING "U"
107 
108 
109 
110 // DxStart returns 0 if OK, otherwise error code received from GetLastError()
111 #ifdef WINDOWS
112 extern "C" DWORD WINAPI DxStart (
113  );
114 #else
115 extern "C" DWORD DxStart ();
116 #endif
117 
118 
119 // uShowCmd = { SW_SHOWNORMAL, SW_SHOWMINIMIZED, SW_SHOWMAXIMIZED, ... }
120 // DxSetWindowPlacement returns PMB_OK or PMB_DX_NOT_RUNNING
121 #ifdef WINDOWS
122 extern "C" short WINAPI DxSetWindowPlacement (
123  UINT uShowCmd
124  );
125 #else
126 extern "C" short DxSetWindowPlacement (
127  UINT uShowCmd
128  );
129 #endif
130 
131 // All the following functions return one of the PMB_ codes
132 #ifdef WINDOWS
133 extern "C" short WINAPI DxSelectPatient (
134  const char *pszPatientID, // In
135  short *pnImageCount // Out
136  );
137 #else
138 extern "C" short DxSelectPatient (
139  const char *pszPatientID, // In
140  short *pnImageCount // Out
141  );
142 #endif
143 
144 // *******************************************
145 //
146 // INSERT PATIENT- functions
147 //
148 // *******************************************
149 
150 // ANSI
151 #ifdef WINDOWS
152 extern "C" short WINAPI DxInsertPatient (
153  const char *pszPatientID,
154  const char *pszFamilyName,
155  const char *pszFirstName,
156  const char *pszBirthDate,
157  const char *pszDoctor
158  );
159 #else
160 extern "C" short DxInsertPatient (
161 const char *pszPatientID,
162 const char *pszFamilyName,
163 const char *pszFirstName,
164 const char *pszBirthDate,
165 const char *pszDoctor
166 );
167 #endif
168 // ANSI externed function
169 #ifdef WINDOWS
170 extern "C" short WINAPI DxInsertPatient_Ex (
171  const char *pszPatientID,
172  const char *pszFamilyName,
173  const char *pszFirstName,
174  const char *pszBirthDate,
175  const char *pszDoctor,
176  const char *pszGender
177  );
178 #else
179 extern "C" short DxInsertPatient_Ex (
180  const char *pszPatientID,
181  const char *pszFamilyName,
182  const char *pszFirstName,
183  const char *pszBirthDate,
184  const char *pszDoctor,
185  const char *pszGender
186 );
187 #endif
188 
189 
190 // WIDE CHAR (=Unicode) function
191 #ifdef WINDOWS
192 extern "C" short WINAPI DxInsertPatientW (
193  const char *pszPatientID,
194  const WCHAR *pwszFamilyName,
195  const WCHAR *pwszFirstName,
196  const char *pszBirthDate,
197  const WCHAR *pwszDoctor
198  );
199 #else
200 extern "C" short DxInsertPatientW (
201  const char *pszPatientID,
202  const wchar_t *pwszFamilyName,
203  const wchar_t *pwszFirstName,
204  const char *pszBirthDate,
205  const wchar_t *pwszDoctor
206  );
207 #endif
208 
209 // WIDE CHAR (=Unicode) extended function
210 #ifdef WINDOWS
211 extern "C" short WINAPI DxInsertPatientW_Ex (
212  const char *pszPatientID,
213  const WCHAR *pwszFamilyName,
214  const WCHAR *pwszFirstName,
215  const char *pszBirthDate,
216  const WCHAR *pwszDoctor,
217  const char *pszGender
218  );
219 #else
220 extern "C" short DxInsertPatientW_Ex (
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
227  );
228 #endif
229 
230 
231 // ********************************************
232 //
233 // UPDATE PATIENT- functions
234 //
235 // ********************************************
236 
237 // ANSI function
238 #ifdef WINDOWS
239 extern "C" short WINAPI DxUpdatePatient (
240  const char *pszPatientID,
241  const char *pszFamilyName,
242  const char *pszFirstName,
243  const char *pszBirthDate,
244  const char *pszDoctor
245  );
246 #else
247 extern "C" short DxUpdatePatient (
248  const char *pszPatientID,
249  const char *pszFamilyName,
250  const char *pszFirstName,
251  const char *pszBirthDate,
252  const char *pszDoctor
253  );
254 #endif
255 
256 // ANSI extended function
257 #ifdef WINDOWS
258 extern "C" short WINAPI DxUpdatePatient_Ex (
259  const char *pszPatientID,
260  const char *pszFamilyName,
261  const char *pszFirstName,
262  const char *pszBirthDate,
263  const char *pszDoctor,
264  const char *pszGender
265  );
266 #else
267 extern "C" short DxUpdatePatient (
268  const char *pszPatientID,
269  const char *pszFamilyName,
270  const char *pszFirstName,
271  const char *pszBirthDate,
272  const char *pszDoctor,
273  const char *pszGender
274  );
275 #endif
276 
277 
278 // WIDE CHAR (=Unicode) function
279 #ifdef WINDOWS
280 extern "C" short WINAPI DxUpdatePatientW (
281  const char *pszPatientID,
282  const WCHAR *pwszFamilyName,
283  const WCHAR *pwszFirstName,
284  const char *pszBirthDate,
285  const WCHAR *pwszDoctor
286  );
287 #else
288 extern "C" short DxUpdatePatientW (
289  const char *pszPatientID,
290  const wchar_t *pwszFamilyName,
291  const wchar_t *pwszFirstName,
292  const char *pszBirthDate,
293  const wchar_t *pwszDoctor
294  );
295 #endif
296 
297 // WIDE CHAR (=Unicode) extended function
298 #ifdef WINDOWS
299 extern "C" short WINAPI DxUpdatePatientW_Ex (
300  const char *pszPatientID,
301  const WCHAR *pwszFamilyName,
302  const WCHAR *pwszFirstName,
303  const char *pszBirthDate,
304  const WCHAR *pwszDoctor,
305  const char *pszGender
306  );
307 #else
308 extern "C" short DxUpdatePatientW_Ex (
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
315  );
316 #endif
317 
318 // *******************************************
319 //
320 // DELETE PATIENT
321 //
322 // *******************************************
323 #ifdef WINDOWS
324 extern "C" short WINAPI DxDeletePatient (
325  const char *pszPatientID
326  );
327 #else
328 extern "C" short DxDeletePatient (
329  const char *pszPatientID
330  );
331 #endif
332 
333 
334 // *******************************************
335 //
336 // GET DB STATUS
337 //
338 // *******************************************
339 #ifdef WINDOWS
340 extern "C" short WINAPI DxGetDBStatus (
341  );
342 #else
343 extern "C" short DxGetDBStatus (
344 );
345 #endif
346 
347 
348 // *******************************************
349 //
350 // EXIT (= close connection)
351 //
352 // *******************************************
353 #ifdef WINDOWS
354 extern "C" short WINAPI DxExit (
355  );
356 #else
357 extern "C" short DxExit (
358 );
359 #endif
360 
361 // New functions for PmBridge V3.0.0
362 
363 // Move Romexis/Dimaxis to a specified position
364 #ifdef WINDOWS
365 extern "C" short WINAPI DxMoveWindow (
366  long x0,
367  long y0,
368  long nWidth,
369  long nHeight
370  );
371 #else
372 extern "C" short DxMoveWindow (
373  long x0,
374  long y0,
375  long nWidth,
376  long nHeight
377  );
378 #endif
379 
380 
381 // Force Romexis/Dimaxis to be always on top
382 // nOnTop 1: set, 0: reset
383 #ifdef WINDOWS
384 extern "C" short WINAPI DxAlwaysOnTop (
385  short nOnTop
386  );
387 #else
388 extern "C" short DxAlwaysOnTop (
389  short nOnTop
390  );
391 #endif
392 
393 // Start image acquisition
394 #ifdef WINDOWS
395 extern "C" short WINAPI DxCaptureImage (
396  short nImageType
397  );
398 #else
399 extern "C" short DxCaptureImage (
400  short nImageType
401  );
402 #endif
403 
404 // MKH 2010/08/11
405 #ifdef WINDOWS
406 extern "C" short WINAPI DxCaptureImageIntra (
407  short nUseStudy, short nAllowWithoutStudy
408  );
409 #else
410 extern "C" short DxCaptureImageIntra (
411  short nUseStudy, short nAllowWithoutStudy
412  );
413 #endif
414 
415 
416 // Open the Select Image dialog for selecting existing image(s)
417 #ifdef WINDOWS
418 extern "C" short WINAPI DxSelectImage ();
419 #else
420 extern "C" short DxSelectImage ();
421 #endif
422 
423 
424 // Pass worklist information to Romexis/Dimaxis.
425 // - Romexis/Dimaxis selects the patient specified by *pszPatientID
426 // - if *pszModality equals PX, DX or IO Dimaxis opens the corresponding
427 // exposure dialog
428 // - for intraoral exposure, the teeth to be exposured can be passed in
429 // array arrToothMask; indexing in arrToothMask starts from 1 to be
430 // compatible with most development tools
431 //
432 // Tooth numbers:
433 // Q1 87654321 Q2 12345678
434 // Q4 87654321 Q3 12345678
435 //
436 // Indices:
437 // 8,7,6,5,4,3,2,1 9,10,11,12,13,14,15,16
438 // 32,31,30,29,28,27,26,25 17,18,19,20,21,22,23,24
439 //
440 #ifdef WINDOWS
441 extern "C" short WINAPI DxSetWorklistEntry (
442  const char *pszPatientID, // Patient must exist in Romexis/Dimaxis database
443  const char *pszStartDate, // YYYYMMHH
444  const char *pszStartTime, // HHMM<SS>
445  const char *pszModality, // PX = panoramic, IO = intraoral, DX = ceph
446  const char *pszStepID, // Scheduled Procedure Step ID
447  const char *pszStepDesc, // Scheduled Procedure Step Description
448  const char *pszProcedureID, // Requested Procedure ID
449  const char *pszProcedureDesc, // Requested Procedure Description
450  const char *pszStudyInstanceUID,
451  const char *pszAccessionNumber,
452  short arrToothMask [] // Size must be at least 33; 1-based table for dentity
453  );
454 #else
455 extern "C" short DxSetWorklistEntry (
456  const char *pszPatientID, // Patient must exist in Romexis/Dimaxis database
457  const char *pszStartDate, // YYYYMMHH
458  const char *pszStartTime, // HHMM<SS>
459  const char *pszModality, // PX = panoramic, IO = intraoral, DX = ceph
460  const char *pszStepID, // Scheduled Procedure Step ID
461  const char *pszStepDesc, // Scheduled Procedure Step Description
462  const char *pszProcedureID, // Requested Procedure ID
463  const char *pszProcedureDesc, // Requested Procedure Description
464  const char *pszStudyInstanceUID,
465  const char *pszAccessionNumber,
466  short arrToothMask [] // Size must be at least 33; 1-based table for dentity
467  );
468 
469 #endif
470 
471 
472 // Get information about an image
473 // DxSelectPatient() returns the number of the images the patient has
474 // To be compatible with Visual Basic, the data in the arrays arrImageParam
475 // and arrToothMask starts from index 1
476 #ifdef WINDOWS
477 extern "C" short WINAPI DxInquireImage (
478  short nIndex, // 0 .. nImageCnt-1
479  long arrImageParam [], // Size must be at least DX_MAX_INDEX
480  short arrToothMask [] // Size must be at least 33; 1-based table for dentity
481  );
482 #else
483 extern "C" short DxInquireImage (
484  short nIndex, // 0 .. nImageCnt-1
485  long arrImageParam [], // Size must be at least DX_MAX_INDEX
486  short arrToothMask [] // Size must be at least 33; 1-based table for dentity
487  );
488 #endif
489 
490 
491 #ifdef WINDOWS
492 extern "C" short WINAPI DxGetImage (
493  short nIndex,
494  short nConvertTo8bit,
495  short nEnhance,
496  short nFileFormat,
497  const char *pszFileName
498  );
499 #else
500 extern "C" short DxGetImage (
501  short nIndex,
502  short nConvertTo8bit,
503  short nEnhance,
504  short nFileFormat,
505  const char *pszFileName
506  );
507 #endif
508 
509 
510 // MKH 2010/08/05
511 #ifdef WINDOWS
512 extern "C" short WINAPI DxGetImageByID (
513  int nImageID,
514  short nConvertTo8bit,
515  short nEnhance,
516  short nFileFormat,
517  const char *pszFileName
518  );
519 #else
520 extern "C" short DxGetImageByID (
521  int nImageID,
522  short nConvertTo8bit,
523  short nEnhance,
524  short nFileFormat,
525  const char *pszFileName
526  );
527 #endif
528 
529 
530 #ifdef WINDOWS
531 extern "C" short WINAPI DxGetOverviewImage (
532  short nIndex,
533  short nFileFormat,
534  const char *pszFileName
535  );
536 #else
537 extern "C" short DxGetOverviewImage (
538  short nIndex,
539  short nFileFormat,
540  const char *pszFileName
541  );
542 #endif
543 
544 
545 
546 // MKH 2010/08/05
547 #ifdef WINDOWS
548 extern "C" short WINAPI DxGetOverviewImageByID (
549  int nImageID,
550  short nFileFormat,
551  const char *pszFileName
552  );
553 #else
554 extern "C" short DxGetOverviewImageByID (
555  int nImageID,
556  short nFileFormat,
557  const char *pszFileName
558  );
559 #endif
560 
561 
562 #ifdef WINDOWS
563 extern "C" short WINAPI DxSetUser (
564  char *pszUserName, // User name to be recorded with each new image
565  unsigned short nAccessLevel // Access level of the user
566  );
567 #else
568 extern "C" short DxSetUser (
569  char *pszUserName, // User name to be recorded with each new image
570  unsigned short nAccessLevel // Access level of the user
571  );
572 #endif
573 
574 #ifdef WINDOWS
575 extern "C" short WINAPI DxDeselectPatient (
576  );
577 #else
578 extern "C" short DxDeselectPatient (
579 );
580 #endif
581 
582 #ifdef WINDOWS
583 extern "C" short WINAPI DxSetImageRetrievalWindowSize (
584  short nWindowSize // DX_RWND_SIZE_SMALL, DX_RWND_SIZE_FULL or DX_RWND_CLOSE
585  );
586 #else
587 extern "C" short DxSetImageRetrievalWindowSize (
588  short nWindowSize // DX_RWND_SIZE_SMALL, DX_RWND_SIZE_FULL or DX_RWND_CLOSE
589  );
590 #endif
591 
592 #ifdef WINDOWS
593 extern "C" short WINAPI DxGetImageRetrievalWindowSize (
594  short *pnWindowSize,
595  long *pnLeft,
596  long *pnRight,
597  long *pnTop,
598  long *pnBottom
599  );
600 #else
601 extern "C" short DxGetImageRetrievalWindowSize (
602  short *pnWindowSize,
603  long *pnLeft,
604  long *pnRight,
605  long *pnTop,
606  long *pnBottom
607  );
608 #endif
609 
610 // Functions for hiding Toolbar and Statusbar of Dimaxis, to get more room for the images
611 #ifdef WINDOWS
612 extern "C" short WINAPI DxShowToolbar (
613  short nShow // 1 = show, 0 = hide
614  );
615 #endif
616 
617 #ifdef WINDOWS
618 extern "C" short WINAPI DxShowStatusbar (
619  short nShow
620  );
621 #endif
622 // Define limits for the Romexis/Dimaxis window when the window is maximized. Using this funciton
623 // it is possible to make sure that the calling application's menu is visible when
624 // the window is resized. A value will not be used if it <= 0. The values are relative
625 // to the actual screen size. (This has been tested only in single monitor systems).
626 // Dimaxis/Romexis also does a 'sanity' check for the values and uses value only if it does not
627 // limit screen usage more than 10%.
628 #ifdef WINDOWS
629 extern "C" short WINAPI DxSetMaxLimits (
630  long nMinTop,
631  long nMaxBottom,
632  long nMinLeft,
633  long nMaxRight
634  );
635 #else
636 extern "C" short DxSetMaxLimits (
637  long nMinTop,
638  long nMaxBottom,
639  long nMinLeft,
640  long nMaxRight
641  );
642 #endif
643 
644 // 2009/01/16
645 // Planmeca application opens the image using 1) the given index of image array (nIndex > -1 and nImageID < 1)
646 // or 2) the given image ID number (nImageID > 0) or 3) given index and ID number (nIndex > -1 and nImageID > 0.
647 // In cases of 2) and 3) Planmeca application will check if given image ID really exists
648 // in database. In case of 1) it might be that the image in image array table index
649 // (got from using DxInquireImage function) has changed, especially in term long period, so to be sure that
650 // a correct image is opened one should call first DxInquireImage and then DxOpenImage.
651 #ifdef WINDOWS
652 extern "C" short WINAPI DxOpenImage (
653  short nIndex,
654  int nImageID
655  );
656 #else
657 extern "C" short DxOpenImage (
658  short nIndex,
659  int nImageID
660  );
661 
662 #endif
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&#39;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 &#39;ping&#39; 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