The autosperm.dll library can be used to exchange data between the AutoSperm database and hospital databases.
A complete Visual Studio 2005 project is available from the AutoSperm download site which contains a framework of functions that hook into the AutoSperm program.
In summary, the dll library contains the following functions:
- The function InitAutoSpermDLL is called when the AutoSperm program is started. In this function you can implement the code required to establish a connection with an external database. In addition, this function is used to notify AutoSperm of the date format you will be using (dd.mm.yyyy, mm.dd.yyyy or yyyy.dd.mm).
- The function AutoSpermDLLGetIdentification is called when the user has entered a Patient record number in the Sample dialog box and moves the input focus to the next field (by pressing the Tab key for example). In the AutoSpermDLLGetIdentification function you can implement the code to read the patient and partner names and dates of birth from the hospital database and return these data to the AutoSperm program.
- The function AutoSpermDLLSaveData is called when sample data have been changed. The sample data are passed as a parameter. In this function you can implement the code needed to save the AutoSperm data into the hospital database.
- The function UnInitAutoSpermDLL is called when the AutoSperm program is closed. In this function you can implement the code required to close the connection with your external database.
A complete Visual Studio project autospermdll is available as a separate download on http://www.autosperm.com/download/.