PmBridge SDK  2.7.0
PMBRIDGE SDK Interface
 All Files Functions Macros Groups
Macros | Functions
PmBridge.h File Reference

Go to the source code of this file.

Macros

#define PMB_OK   0
 
#define PMB_DX_NOT_RUNNING   1
 
#define PMB_LOGIN_FAILED   2
 
#define PMB_PATIENT_NOT_FOUND   3
 
#define PMB_INSERT_FAILED   4
 
#define PMB_UPDATE_FAILED   5
 
#define PMB_DELETE_FAILED   6
 
#define PMB_DELETE_NOT_ALLOWED   7
 
#define PMB_LOGIN_NOT_YET_OK   8
 
#define PMB_DX_BUSY   9
 
#define PMB_INVALID_IMAGE_INDEX   10
 
#define PMB_PATIENT_NOT_SELECTED   11
 
#define PMB_NO_IMAGES_FOUND   12
 
#define PMB_GET_IMAGE_FAILED   13
 
#define PMB_WRITE_IMAGE_FAILED   14
 
#define PMB_REQUIRED_FIELD_MISSING   15
 
#define PMB_PATIENT_EXISTS   16
 
#define PMB_PATIENT_ID_CONFLICT   17
 
#define PMB_IMAGE_IN_LONG_TERM_ARCH   18
 
#define PMB_AMBIGUOUS_PATIENT_ID   19
 
#define PMB_INVALID_BIRTH_DATE   20
 
#define DX_IT_PAN   0
 
#define DX_IT_CEPH   1
 
#define DX_IT_INTRA   2
 
#define DX_IT_INTRACAM   3
 
#define DX_IT_TWAIN   4
 
#define DX_IT_CR_SCANNER   5
 
#define DX_IT_CR   6
 
#define DX_IT_CBCT   7
 
#define DX_IT_SURFACE_SCAN   8
 
#define DX_IT_BINARY   9
 
#define DX_IF_TIFF   0
 
#define DX_IF_JPEG   1
 
#define DX_IF_BMP   2
 
#define DX_IF_PNG   3
 
#define DX_IF_DICOM   4
 
#define DX_INDEX_IMAGE_TYPE   1
 
#define DX_INDEX_FILE_FORMAT   2
 
#define DX_INDEX_FILE_SIZE   3
 
#define DX_INDEX_IMAGE_DATE   4
 
#define DX_INDEX_IMAGE_TIME   5
 
#define DX_INDEX_VOLTAGE   6
 
#define DX_INDEX_CURRENT   7
 
#define DX_INDEX_EXP_TIME   8
 
#define DX_INDEX_PIXEL_SIZE   9
 
#define DX_INDEX_IMAGE_ID   10
 
#define DX_MAX_INDEX   20
 
#define DX_ACL_VIEW_IMAGE   0
 
#define DX_ACL_ACQUIRE_IMAGE   1
 
#define DX_ACL_DELETE_IMAGE   2
 
#define DX_ACL_ADMINISTRATION   4
 
#define DX_RWND_SIZE_SMALL   0
 
#define DX_RWND_SIZE_FULL   1
 
#define DX_RWND_CLOSE   -1
 
#define DX_SHOW_BAR   1
 
#define DX_HIDE_BAR   -1
 
#define GENDER_MALE_STRING   "M"
 
#define GENDER_FEMALE_STRING   "F"
 
#define GENDER_UNKNOWN_STRING   "U"
 

Functions

DWORD DxStart ()
 This routine initializes the PMBRIDGE interface. More...
 
short DxSetWindowPlacement (UINT uShowCmd)
 Sets Romexis main window behaviour. More...
 
short DxSelectPatient (const char *pszPatientID, short *pnImageCount)
 Selection of an existing patient. More...
 
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. More...
 
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. More...
 
short DxInsertPatientW (const char *pszPatientID, const wchar_t *pwszFamilyName, const wchar_t *pwszFirstName, const char *pszBirthDate, const wchar_t *pwszDoctor)
 
short DxInsertPatientW_Ex (const char *pszPatientID, const wchar_t *pwszFamilyName, const wchar_t *pwszFirstName, const char *pszBirthDate, const wchar_t *pwszDoctor, const char *pszGender)
 
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. More...
 
short DxUpdatePatient (const char *pszPatientID, const char *pszFamilyName, const char *pszFirstName, const char *pszBirthDate, const char *pszDoctor, const char *pszGender)
 
short DxUpdatePatientW (const char *pszPatientID, const wchar_t *pwszFamilyName, const wchar_t *pwszFirstName, const char *pszBirthDate, const wchar_t *pwszDoctor)
 
short DxUpdatePatientW_Ex (const char *pszPatientID, const wchar_t *pwszFamilyName, const wchar_t *pwszFirstName, const char *pszBirthDate, const wchar_t *pwszDoctor, const char *pszGender)
 
short DxDeletePatient (const char *pszPatientID)
 Inactivate a patient in Romexis. More...
 
short DxGetDBStatus ()
 This routine sends a TCPIP 'ping' command to PmBridge port. More...
 
short DxExit ()
 Terminates ROMEXIS application. More...
 
short DxMoveWindow (long x0, long y0, long nWidth, long nHeight)
 Explicitly specify the location of the main window of Romexis. More...
 
short DxAlwaysOnTop (short nOnTop)
 Sets Romexis main window always on top, or unsets the behaviour. More...
 
short DxCaptureImage (short nImageType)
 This routine starts image acquisition of given image type in 2D imaging or 3D imaging module. More...
 
short DxCaptureImageIntra (short nUseStudy, short nAllowWithoutStudy)
 Starts image acquisition of IntraOral type with/without study in 2D imaging module. More...
 
short DxSelectImage ()
 This routine opens the Select Image UI dialog for selecting an existing image. More...
 
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. More...
 
short DxInquireImage (short nIndex, long arrImageParam[], short arrToothMask[])
 Get information about images of the currently selected patient. More...
 
short DxGetImage (short nIndex, short nConvertTo8bit, short nEnhance, short nFileFormat, const char *pszFileName)
 Retrieve an image of given index in image info array. More...
 
short DxGetImageByID (int nImageID, short nConvertTo8bit, short nEnhance, short nFileFormat, const char *pszFileName)
 Retrieve an image of having given image ID in Romexis database. More...
 
short DxGetOverviewImage (short nIndex, short nFileFormat, const char *pszFileName)
 Retrieve an overviw (thumbnail) image of given index in image info array. More...
 
short DxGetOverviewImageByID (int nImageID, short nFileFormat, const char *pszFileName)
 Retrieve an overview (thumbnail) image of having given image ID in Romexis database. More...
 
short DxSetUser (char *pszUserName, unsigned short nAccessLevel)
 Sets the user of ROMEXIS client. More...
 
short DxDeselectPatient ()
 Unselect/deselect patient in Romexis patient module. More...
 
short DxSetImageRetrievalWindowSize (short nWindowSize)
 Sets Image Navigator (Image Retrieval) Windows Size in Romexis. More...
 
short DxGetImageRetrievalWindowSize (short *pnWindowSize, long *pnLeft, long *pnRight, long *pnTop, long *pnBottom)
 Gets Image Navigator (Image Retrieval) Windows size and location in Romexis. More...
 
short DxSetMaxLimits (long nMinTop, long nMaxBottom, long nMinLeft, long nMaxRight)
 Define limits for the Romexis window when the window is maximized. More...
 
short DxOpenImage (short nIndex, int nImageID)
 Open image in Romexis by giving it's ID or info index. More...
 

Macro Definition Documentation

#define DX_ACL_ACQUIRE_IMAGE   1
#define DX_ACL_ADMINISTRATION   4
#define DX_ACL_DELETE_IMAGE   2
#define DX_ACL_VIEW_IMAGE   0
#define DX_HIDE_BAR   -1
#define DX_IF_BMP   2
#define DX_IF_DICOM   4
#define DX_IF_JPEG   1
#define DX_IF_PNG   3
#define DX_IF_TIFF   0
#define DX_INDEX_CURRENT   7
#define DX_INDEX_EXP_TIME   8
#define DX_INDEX_FILE_FORMAT   2
#define DX_INDEX_FILE_SIZE   3
#define DX_INDEX_IMAGE_DATE   4
#define DX_INDEX_IMAGE_ID   10
#define DX_INDEX_IMAGE_TIME   5
#define DX_INDEX_IMAGE_TYPE   1
#define DX_INDEX_PIXEL_SIZE   9
#define DX_INDEX_VOLTAGE   6
#define DX_IT_BINARY   9
#define DX_IT_CBCT   7
#define DX_IT_CEPH   1
#define DX_IT_CR   6
#define DX_IT_CR_SCANNER   5
#define DX_IT_INTRA   2
#define DX_IT_INTRACAM   3
#define DX_IT_PAN   0
#define DX_IT_SURFACE_SCAN   8
#define DX_IT_TWAIN   4
#define DX_MAX_INDEX   20
#define DX_RWND_CLOSE   -1
#define DX_RWND_SIZE_FULL   1
#define DX_RWND_SIZE_SMALL   0
#define DX_SHOW_BAR   1
#define GENDER_FEMALE_STRING   "F"
#define GENDER_MALE_STRING   "M"
#define GENDER_UNKNOWN_STRING   "U"
#define PMB_AMBIGUOUS_PATIENT_ID   19
#define PMB_DELETE_FAILED   6
#define PMB_DELETE_NOT_ALLOWED   7
#define PMB_DX_BUSY   9
#define PMB_DX_NOT_RUNNING   1
#define PMB_GET_IMAGE_FAILED   13
#define PMB_IMAGE_IN_LONG_TERM_ARCH   18
#define PMB_INSERT_FAILED   4
#define PMB_INVALID_BIRTH_DATE   20
#define PMB_INVALID_IMAGE_INDEX   10
#define PMB_LOGIN_FAILED   2
#define PMB_LOGIN_NOT_YET_OK   8
#define PMB_NO_IMAGES_FOUND   12
#define PMB_OK   0
#define PMB_PATIENT_EXISTS   16
#define PMB_PATIENT_ID_CONFLICT   17
#define PMB_PATIENT_NOT_FOUND   3
#define PMB_PATIENT_NOT_SELECTED   11
#define PMB_REQUIRED_FIELD_MISSING   15
#define PMB_UPDATE_FAILED   5
#define PMB_WRITE_IMAGE_FAILED   14

Function Documentation

short DxInsertPatientW ( const char *  pszPatientID,
const wchar_t *  pwszFamilyName,
const wchar_t *  pwszFirstName,
const char *  pszBirthDate,
const wchar_t *  pwszDoctor 
)
short DxInsertPatientW_Ex ( const char *  pszPatientID,
const wchar_t *  pwszFamilyName,
const wchar_t *  pwszFirstName,
const char *  pszBirthDate,
const wchar_t *  pwszDoctor,
const char *  pszGender 
)
short DxUpdatePatient ( const char *  pszPatientID,
const char *  pszFamilyName,
const char *  pszFirstName,
const char *  pszBirthDate,
const char *  pszDoctor,
const char *  pszGender 
)
short DxUpdatePatientW ( const char *  pszPatientID,
const wchar_t *  pwszFamilyName,
const wchar_t *  pwszFirstName,
const char *  pszBirthDate,
const wchar_t *  pwszDoctor 
)
short DxUpdatePatientW_Ex ( const char *  pszPatientID,
const wchar_t *  pwszFamilyName,
const wchar_t *  pwszFirstName,
const char *  pszBirthDate,
const wchar_t *  pwszDoctor,
const char *  pszGender 
)