MedITEX API manual
From MedITEX - Wiki
(148 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
− | <p> | + | <p><strong>MedITEX API</strong> consists of a series of functions that can be used to generate reports and control specific areas of <strong>MedITEX IVF</strong> from third party tools.</p> |
+ | <table style="margin-left: auto; margin-right: auto;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td><a href="/images/Sample_for_CASA_System.xlsm"><img src="/images/plus48.png" alt="" width="48" height="48" /></a></td> | ||
+ | <td> | ||
+ | <p>The following <a href="/images/Sample_for_CASA_System.xlsm">Excel sheet</a> is an example of utilization of <strong>MedITEX API</strong>. Simply copy this file to the <strong>MedITEX IVF </strong>folder on your server for testing.</p> | ||
+ | <p>With this simple example, developers can see how a VBA macro connects with our database using the <strong>API</strong>.</p> | ||
+ | <p>The VBA macro is integrated in the Excel file.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p>The MedITEX API can be expanded with the following functions:</p> | ||
<p> </p> | <p> </p> | ||
− | <h2> | + | <h2>Commands</h2> |
− | <p>This function enables the export of files and reports out of MedITEX IVF | + | <h3>ExportCSVData</h3> |
+ | <p>This function enables the export of files and reports out of MedITEX IVF. File format is CSV.</p> | ||
<table border="0" width="628" height="162"> | <table border="0" width="628" height="162"> | ||
<tbody> | <tbody> | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
− | <p><span><em>function <span style="color: #3366ff;"><strong>ExportCSVData </strong></span>(</em><em>AUser, APassword: </em><em> | + | <p><span><em>function <span style="color: #3366ff;"><strong>ExportCSVData </strong></span>(</em><em>AUser, APassword:</em><em> </em><em>PAnsiChar</em><em>; </em><em>AExportID: PAnsiChar; APathAndFile: PAnsiChar; AFilter: PAnsiChar = nil): Integer; stdcall;</em></span><em> </em></p> |
</td> | </td> | ||
</tr> | </tr> | ||
Line 44: | Line 59: | ||
<ul> | <ul> | ||
</ul> | </ul> | ||
− | <p><strong>Example:</strong></p> | + | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#ExportCSVData">Click here</a> if you want to get an example of this function.</p> |
<p> </p> | <p> </p> | ||
<p> </p> | <p> </p> | ||
− | <h2> | + | <h3>SaveData</h3> |
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveData </strong></span>(aUser,aPassword: PAnsiChar; ATabelle, AKeyField, AKeyValue, ASaveField, ASaveValue: PAnsiChar): PAnsiChar; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ATabelle (PAnsiChar)</td> | ||
+ | <td colspan="2">A table name in MedITEX. Example: PERSON.<br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AKeyField (PAnsiChar)</td> | ||
+ | <td colspan="2">A keyfield to be used in the <strong>where </strong>condition. Example: PATIENT_ID.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AKeyValue (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A value to be used in combination with AKeyField. Example: PAT123.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ASaveField (PAnsiChar)</td> | ||
+ | <td colspan="2">A field where the information should be saved. Example: P_ADDR_POSTAL_CITY.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ASaveValue (PAnsiChar)</td> | ||
+ | <td colspan="2">A value to be saved in the field defined on ASaveField. Example: New York.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong></p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveData">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetData</h3> | ||
+ | <p>With this function, you can get data of patients.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetData </strong></span>(aUser,aPassword: PAnsiChar; ATabelle, AKeyField, AKeyValue, AGetKey: PAnsiChar): PAnsiChar; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ATabelle, AKeyField, AGetKey (PAnsiChar)</td> | ||
+ | <td colspan="2"><br /></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: <br /></strong></p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetData">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetLanguageCode</h3> | ||
+ | <p>This function returns the language code shortcut.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetLanguageCode </strong></span>(aUser,aPassword: PAnsiChar): PAnsiChar; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The type of the return value is PAnsiChar. The function returns the language code shortcut on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetLanguageCode">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetExpertData</h3> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetExpertData </strong></span>(aUser,aPassword: PAnsiChar; inputSQL: PAnsiChar; savePath: PAnsichar=nil):PAnsiChar; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>inputSQL (PAnsiChar)</td> | ||
+ | <td colspan="2"> </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>savePath (PAnsiChar = nil)</td> | ||
+ | <td colspan="2"> </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong></p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetExpertData">Click here</a> if you want to get an example of this function.</p> | ||
+ | <table style="float: right;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td style="text-align: left;"><a href="#top">Back to top</a></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h2>Patient</h2> | ||
+ | <h3>GetPatientID</h3> | ||
+ | <p>After calling the function, a window opens, where you can search a patient.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetPatientID </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>AFilter: PAnsiChar = nil): PAnsiChar; stdcall;</em><em> </em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><strong>Parameters:</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <p>AFilter (PAnsiChar = nil)</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | </td> | ||
+ | <td> | ||
+ | <p>You can restrict the search by specifying the filter.</p> | ||
+ | <p> </p> | ||
+ | <p>Filters based on the following criteria are possibly:</p> | ||
+ | <ul> | ||
+ | <li>Title</li> | ||
+ | <li>First name</li> | ||
+ | <li>Surname</li> | ||
+ | <li>Gender</li> | ||
+ | <li>Date of birth</li> | ||
+ | <li>City</li> | ||
+ | <li>Street</li> | ||
+ | <li>Phone number</li> | ||
+ | <li>Mobile phone number</li> | ||
+ | </ul> | ||
+ | <p> </p> | ||
+ | <p>Examples:</p> | ||
+ | <ul> | ||
+ | <li>Date of birth > '01/01/1985'</li> | ||
+ | <li>First name like 'Example%'</li> | ||
+ | </ul> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is PAnsiChar. The function returns the PatientenID on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetPatientID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetPatientName</h3> | ||
+ | <p>With this function, you can get the name of a patient.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetPatientName </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>APatientID: PAnsiChar): PAnsiChar; stdcall;</em><em> </em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>As parameter the function expects the PatientenID, AUser and APassword of type PAnsiChar.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the name of the patient on success or -1 on failure from type PAnsiChar.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetPatientName">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetPartnerPatID</h3> | ||
+ | <p>With this function, you can get the ID of the patients partner.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetPartnerPatID </strong></span>(</em><em>aUser, aPassword: PAnsiChar;</em><em> APatientID: PAnsiChar): PAnsiChar; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>As parameter the function expects the PatientenID of type PAnsiChar.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is integer. The function returns the name of the partner on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetPartnerPatID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetLatestMedicalHistoryID</h3> | ||
+ | <p>With this function, it is possible to get the latest patient Medical History.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p class="Default"><em>function <span style="color: #3366ff;"><strong>GetLatestMedicalHistoryID </strong></span>(aUser, aPassword, aPatientID: PAnsiChar): Integer; </em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>As parameter the function expects the PatientenID of type PAnsiChar.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>The registration data of a user from MedITEX IVF. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatientID (PAnsiChar)</td> | ||
+ | <td>The patient ID (must be the same in both programs). <br /></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>Medical History ID as Integer. If no result is found, -1 is returned.</p> | ||
+ | <p> </p> | ||
+ | <h3>SaveFileByPatient</h3> | ||
+ | <p>With this function you can save files directly in one patients folder in MedITEX IVF.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveFileByPatient </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>APatientID: PAnsiChar; APathAndFile: PAnsiChar; ADescription: PAnsiChar = nil; ADatum: PAnsiChar = nil; AFileTyp: Integer = 10; ASubTyp: Integer = 12; NewRecordInDatabase: boolean = true): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameter the PatientenID from type integer and the fully path of the file to be stored.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td>Path where the file should be saved. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p> </p> | ||
+ | <p><strong>Optional parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADescription (PAnsiChar = nil)</td> | ||
+ | <td>Default -> file name.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADatum (PAnsiChar = nil)</td> | ||
+ | <td> | ||
+ | <p>Default -> file date.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AFileTyp (Integer = 10)</td> | ||
+ | <td>Default -> 10.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ASubTyp (Integer = 12)</td> | ||
+ | <td>Default -> 12.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>NewRecordInDatabase(Boolean = true)</td> | ||
+ | <td> | ||
+ | <p>Default -> true.</p> | ||
+ | <ul> | ||
+ | <li>True: File is copied into the storage directory and a database entry takes place.</li> | ||
+ | <li>False: File is copied into the storage directory.</li> | ||
+ | </ul> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p>The following file type - sub type combinations are possible:</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td><strong>File type</strong></td> | ||
+ | <td><strong>Sub type</strong></td> | ||
+ | <td><strong>Designation</strong></td> | ||
+ | <td><strong>File type</strong></td> | ||
+ | <td><strong>Sub type</strong></td> | ||
+ | <td><strong>Designation</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>3</td> | ||
+ | <td>9</td> | ||
+ | <td>Long-term medication</td> | ||
+ | <td>11</td> | ||
+ | <td>3</td> | ||
+ | <td>fallopian status</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>1</td> | ||
+ | <td>Previous diseases</td> | ||
+ | <td>11</td> | ||
+ | <td>11</td> | ||
+ | <td>Andro findings</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>4</td> | ||
+ | <td>Semen analysis<br /></td> | ||
+ | <td>11</td> | ||
+ | <td>13</td> | ||
+ | <td>Gyn findings</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>5</td> | ||
+ | <td>Hormones</td> | ||
+ | <td>11 <br /></td> | ||
+ | <td>14 <br /></td> | ||
+ | <td>Uterus/Ovaries</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>22</td> | ||
+ | <td>Microbiology</td> | ||
+ | <td>11</td> | ||
+ | <td>15</td> | ||
+ | <td>Ultrasound</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>23</td> | ||
+ | <td>Genetics</td> | ||
+ | <td>11</td> | ||
+ | <td>16<br /></td> | ||
+ | <td>Hysteroscopy</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>24</td> | ||
+ | <td>Endocrinology</td> | ||
+ | <td>11</td> | ||
+ | <td>17<br /></td> | ||
+ | <td>Laparscopy/HSSG</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>25</td> | ||
+ | <td>Serology</td> | ||
+ | <td>11</td> | ||
+ | <td>18<br /></td> | ||
+ | <td>Abrasio</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>8</td> | ||
+ | <td>26</td> | ||
+ | <td>Clinical chemistry</td> | ||
+ | <td>11</td> | ||
+ | <td>19<br /></td> | ||
+ | <td>Laparotomy</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>9</td> | ||
+ | <td>6</td> | ||
+ | <td>DIR Medical history</td> | ||
+ | <td>11</td> | ||
+ | <td>27<br /></td> | ||
+ | <td>PCT/Mucus</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>9</td> | ||
+ | <td>7</td> | ||
+ | <td>CAVE</td> | ||
+ | <td>11</td> | ||
+ | <td>28<br /></td> | ||
+ | <td>Transvaginale endoscopy</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>9</td> | ||
+ | <td>8</td> | ||
+ | <td>DIR Medical history</td> | ||
+ | <td>11</td> | ||
+ | <td>31<br /></td> | ||
+ | <td>Hepatitis</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>9</td> | ||
+ | <td>10</td> | ||
+ | <td>Finding</td> | ||
+ | <td>11</td> | ||
+ | <td>32<br /></td> | ||
+ | <td>Examinations</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>9</td> | ||
+ | <td>21</td> | ||
+ | <td>Note</td> | ||
+ | <td>11<br /></td> | ||
+ | <td>102<br /></td> | ||
+ | <td>DICOM</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>10</td> | ||
+ | <td>12</td> | ||
+ | <td>Document general</td> | ||
+ | <td><br /></td> | ||
+ | <td><br /></td> | ||
+ | <td><br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>10</td> | ||
+ | <td>20</td> | ||
+ | <td>Cryo Gyn</td> | ||
+ | <td> </td> | ||
+ | <td><br /></td> | ||
+ | <td><br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>10</td> | ||
+ | <td>30</td> | ||
+ | <td>Cryo Andro</td> | ||
+ | <td> </td> | ||
+ | <td><br /></td> | ||
+ | <td><br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>10</td> | ||
+ | <td>33</td> | ||
+ | <td>Medical history questionnaire</td> | ||
+ | <td> </td> | ||
+ | <td><br /></td> | ||
+ | <td><br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>10</td> | ||
+ | <td>100</td> | ||
+ | <td><strong class="b3"> </strong>Administration of documents</td> | ||
+ | <td><strong class="b3"> </strong></td> | ||
+ | <td><strong class="b3"> </strong></td> | ||
+ | <td><strong class="b3"> </strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>10</td> | ||
+ | <td>101</td> | ||
+ | <td>Oocyte pictures form MedITEX IVF</td> | ||
+ | <td> </td> | ||
+ | <td><br /></td> | ||
+ | <td><br /></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveFileByPatient">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <h3>SaveConsentByPatient</h3> | ||
+ | <p>Within this function, it would be possible to add and update consents to the patients folder in MedITEX IVF.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em><span style="color: #000000;">function</span><span style="color: #3366ff;"><strong> SaveConsentByPatient </strong></span>(aUser, aPassword: PAnsiChar; APatientID, APathAndFile, ANote, ADate: PAnsiChar; ATemplateID, AGroupID, ADocID, AOrigID, AStatus: Integer): Integer;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameters the PatientID and the fully path of the consent to be added.</p> | ||
+ | <p><em>Some internal IDs, like consent Template ID, consent Group ID and consent Status ID are important for the use of this function.</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs.<br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatientID (PAnsiChar)</td> | ||
+ | <td>The ID of the patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td>The path where the consent should be saved.<br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ANote (PAnsiChar)</td> | ||
+ | <td>The note associated to the consent.<br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADate (PAnsiChar)</td> | ||
+ | <td>The consent date.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ATemplateID (Integer)</td> | ||
+ | <td>The consent template ID.<br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AGroupID (Integer)</td> | ||
+ | <td>The consent group ID.<br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADocID, AOrigID (Integer)</td> | ||
+ | <td> | ||
+ | <p>With ADocID and AOrigID, it would be possible to replace the existing consent.</p> | ||
+ | <p>ADocID is an ID that can be used in case of the consent update.</p> | ||
+ | <p><strong>E.g.</strong><br />If you create a consent with ADocID = 17, it is possible to update it calling the procedure.<br />But, sending ADocID = 18 and AOrigID = 17.</p> | ||
+ | <p>If you're not planning to update the consents, you can send "-1" for both parameters.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AStatus (Integer)</td> | ||
+ | <td>The consent status ID.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns 1 on success or -1 on failure.</p> | ||
+ | <p> </p> | ||
+ | <h3>SaveLabData</h3> | ||
+ | <p>With this function you can save lab values directly at one patients laboratory folder in MedITEX IVF.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveLabData </strong></span>(</em><em>aUser, aPassword: PAnsiChar;</em><em> APatID: PAnsiChar; ADatum: PAnsiChar; AProbeID: PAnsiChar; ALaborParam: PAnsiChar; AValue: PAnsiChar): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADatum (PAnsiChar)</td> | ||
+ | <td>Enter the date of the evaluation.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <p>AProbeID (PAnsiChar)</p> | ||
+ | </td> | ||
+ | <td>Add the Id of your sample.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ALaborParam (PAnsiChar)</td> | ||
+ | <td>Input the name of the laboratory parameter.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AValue (PAnsiChar)</td> | ||
+ | <td>Add the value of the parameter.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveLabData">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>SavePatientImage</h3> | ||
+ | <p>With this function you can save a picture of the patient in MedITEX IVF.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p>function SavePatientImage(aUser,aPassword: PAnsiChar; APatientID: PAnsiChar; APathAndFile: PAnsiChar): Integer; stdcall;</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameter the PatientenID from type integer and the fully path of the file to be stored.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td>Path where the file should be saved. <br /></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SavePatientImage">Click here</a> if you want to get an example of this function.</p> | ||
+ | <table style="float: right;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td style="text-align: left;"><a href="#top">Back to top</a></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h2>Therapie - Cycle</h2> | ||
+ | <h3>GetTherapieID</h3> | ||
+ | <p>This function allows you to see all cycles of the transferred patient.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetTherapieID </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>APatientID: PAnsiChar): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>As parameter the function expects the PatientenID of type PAnsiChar.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p>After this function has been called, a window opens. This window is showing all cycles from the transferred patient. Choose the wished cycle.</p> | ||
+ | <p><strong>Return type:</strong> The type of the return value is integer. The function returns the TherapieID on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetTherapieID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetTherapieIDEx</h3> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetTherapieIDEx </strong></span>(aUser,aPassword: PAnsiChar; APatientID: PAnsiChar; aTIDList:string): Integer;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatientID (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aTIDList (string)</td> | ||
+ | <td colspan="2"> </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong></p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetTherapieIDEx">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetLatestCycleID</h3> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetLatestCycleID </strong></span>(aUser, aPassword, aPatientID: PAnsiChar): Integer; </em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td colspan="2">The registration data of a user from MedITEX IVF. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatientID (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">The patient ID (must be the same in both programs).</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>Therapie ID as Integer. If no result is found, -1 is returned.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>SaveUSImage</h3> | ||
+ | <p>This function enables you to save ultrasound images of a us examination in the patients folder in MedITEX IVF.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveUSImage </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>APatID: PAnsiChar; ADatum: PAnsiChar; APathAndFile: PAnsiChar; ATypUS: Integer = 1; AAnamneseSubTyp: Integer = 37): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>This function expects as a required parameter the User, Password and PatientenID as PAnsiChar, the Date and the full file path of the image to be stored. Optional the US type can be entered (1: follicle, 2: pregnancy) and the particular AnamneseItemSubtyp has to be 37.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatID (PAnsiChar)<br /></td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADatum (PAnsiChar)</td> | ||
+ | <td>The date of recording.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td>Path where the file should be saved. </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ATypUS (Integer = 1)</td> | ||
+ | <td>Type of ultrasound: follicle or pregnancy.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>AAnamneseSubTyp (Integer = 37)</td> | ||
+ | <td>AnamneseSubType.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveUSImage">Click here</a> if you want to get an example of this function.</p> | ||
+ | <table style="float: right;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td style="text-align: left;"><a href="#top">Back to top</a></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h2>Kultur - Culture</h2> | ||
+ | <h3>GetEZID</h3> | ||
+ | <p>After calling this function, a new window opens. This window is showing all egg cells from the transferred cycle. You can choose the wished egg cell.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetEZID </strong></span>(</em><em>aUser, aPassword: PAnsiChar; ATherapieID: Integer): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>As parameter the function expects the TherapieID of type integer.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ATherapieID (Integer)</td> | ||
+ | <td>This is the ID of a cycle.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The function returns the EZID on success or -1 on failure of type integer.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetEZID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetMeditexEZID</h3> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetMeditexEZID </strong></span>(a</em><em>User, aPassword: PAnsiChar; </em><em>aEZID: Integer): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>This function expects as parameter the EZID from type integer.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aEZID (Integer)</td> | ||
+ | <td>This is the ID of an oocyte.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The type of the return value is the corresponding MeditexEZID on success or -1 of the type integer on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetMeditexEZID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetKulturtag</h3> | ||
+ | <p>With this function you can get the exact culture day of one oocyte.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetKulturtag </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>aEZID: Integer): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>This function expects as parameter the EZID from type integer.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aEZID (Integer)</td> | ||
+ | <td>This is the ID of an oocyte.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the corresponding culture day on success or -1 on failure of type integer.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetKulturtag">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetKulturtagAsDate</h3> | ||
+ | <p>With this function you can get the exact culture day of one oocyte in the format date.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetKulturtagAsDate </strong></span>(a</em><em>User, a</em><em> </em><em>Password: PAnsiChar; </em><em>aEZID: Integer): PAnsiChar; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>This function expects as parameter the EZID from type integer.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aEZID (Integer)</td> | ||
+ | <td>This is the ID of an oocyte.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the corresponding culture day on success or -1 on failure of type PAnsiChar.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetKulturtagAsDate">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>SaveEZImage</h3> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveEZImage </strong></span>(</em><em>aUser, aPassword: PAnsiChar; a</em><em>EZID: Integer; APathAndFile: PAnsiChar): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>This function expects as parameter the EZID from type integer and the fully path of the image to be stored.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aEZID (Integer)</td> | ||
+ | <td>This is the ID of an oocyte.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td>Path where the file should be saved. <br /></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The function returns the 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveEZImage">Click here</a> if you want to get an example of this function.</p> | ||
+ | <table style="float: right;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td style="text-align: left;"><a href="#top">Back to top</a></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h2>Spermiogramm - Semen analysis</h2> | ||
+ | <h3>GetNewSpermiogrammID</h3> | ||
+ | <p>After calling the function, a new semen analysis with the passed parameters will be created.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetNewSpermiogrammID </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>APatientID: PAnsiChar; ADatum: PAnsiChar = nil; ABemerkung: PAnsiChar = nil; Uhrzeit: PAnsiChar = nil; Indikation: PAnsiChar = nil; Spendersperma: Boolean = false; Gewinnungsart: Integer = 0): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameter the PatientenID from type integer.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aPatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Indikation (PAnsiChar = nil)</td> | ||
+ | <td> | ||
+ | <p>Indication of the semen analysis.</p> | ||
+ | <p>Values can be:</p> | ||
+ | <p>0 for Semen analysis</p> | ||
+ | <p>1 for IVf</p> | ||
+ | <p>2 for ICSI</p> | ||
+ | <p>3 for Insemination</p> | ||
+ | <p>4 for Cryopreservation</p> | ||
+ | <p>5 for Control</p> | ||
+ | <p>6 for IMSI</p> | ||
+ | <p>7 for IVM</p> | ||
+ | <p>8 for Fertility preservation</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p> </p> | ||
+ | <p><strong>Optional parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADatum (PAnsiChar = nil)</td> | ||
+ | <td>The date of recording.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ABemerkung (PAnsiChar = nil)</td> | ||
+ | <td>Enter a comment if it is necessary.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Uhrzeit (PAnsiChar = nil)</td> | ||
+ | <td>Date of the sample.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Spendersperma (Boolean = false)</td> | ||
+ | <td>Sperm from donor.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>Gewinnungsart (Integer = 0)</td> | ||
+ | <td> | ||
+ | <p>Collection method.</p> | ||
+ | <p>Values can be:</p> | ||
+ | <p>0 for Not specified</p> | ||
+ | <p>1 for antegrade ejaculation</p> | ||
+ | <p>2 for retrograde ejaculation</p> | ||
+ | <p>3 for Cryo sperm</p> | ||
+ | <p>4 for MESA</p> | ||
+ | <p>5 for frozen/thawed MESA</p> | ||
+ | <p>6 for PESA</p> | ||
+ | <p>7 for frozen/thawed PESA</p> | ||
+ | <p>8 for TESE</p> | ||
+ | <p>9 for frozen/thawed TESE</p> | ||
+ | <p>10 for Electrostimulation</p> | ||
+ | <p>11 for Spermatocele</p> | ||
+ | <p>12 for Donor</p> | ||
+ | <p>13 for TESA</p> | ||
+ | <p>14 for frozen/thawed TESA</p> | ||
+ | <p>15 for ESA</p> | ||
+ | <p>16 for frozen/thawed ESA</p> | ||
+ | <p>23 for Micro-TESA</p> | ||
+ | <p>24 for Micro-TESE</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is the new SpermiogrammID on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetNewSpermiogrammID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>SaveSpermData</h3> | ||
+ | <p>After calling the function, all entered values of the CSV-String will be added to the associated semen analysis.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="4"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveSpermData </strong></span>(a</em><em>User, aPassword: PAnsiChar;</em><em> ASpermID: Integer; UpdateCSV: PAnsiChar): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="4"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameter the SpermiogrammID from type integer and a CSV-String from type PAnsiChar, including the fields of the semen analysis which should be updated.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)</td> | ||
+ | <td colspan="3">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aSpermID (PAnsiChar)</td> | ||
+ | <td colspan="3">This is the ID of a semen analysis.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td rowspan="3"> | ||
+ | <p>UpdateCSV (PAnsiChar)</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | </td> | ||
+ | <td colspan="3" rowspan="3"> | ||
+ | <p>The CSV-String looks like:</p> | ||
+ | <p> </p> | ||
+ | <p>Delimiter ;</p> | ||
+ | <p><br />QuoteChar "</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The function returns 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example:</strong> "PH_VA = 0.45";"DIAGNOSE_TEXT = 'TestDiagnose'";"NORMOSPERMIE_VA=23"</p> | ||
+ | <p><a href="/index.php?title=Examples_mexAPI#SaveSpermData">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <h3>GetSpermiogrammID</h3> | ||
+ | <p>This function enables you to see all semen analysis of the transferred patient.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetSpermiogrammID </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>APatientID: PAnsiChar): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameter: </strong></p> | ||
+ | <p>As parameter the function expects the PatientenID of type PAnsiChar.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatientID (PAnsiChar)</td> | ||
+ | <td>This is the ID of your patient.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p>After this function has been called, a window opens. This window is showing all semen analysis from the transferred patient. Choose the wished semen analysis.</p> | ||
+ | <p><strong>Return type:</strong> The type of the return value is integer. The function returns the SpermiogrammID on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetSpermiogrammID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>SaveFileBySpermiogramm</h3> | ||
+ | <p>You can save semen analysis files directly in the patients folder in MedITEX IVF with this function.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>SaveFileBySpermiogramm </strong></span>(</em><em>aUser, aPassword: PAnsiChar;</em><em> ASpermID: Integer; APathAndFile: PAnsichar; ATyp: Integer; ADescription: PAnsiChar = nil; ADatum: PAnsiChar = nil): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameter the SpermiogrammID from type integer, the type as type integer and the fully path of the file to be stored.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aSpermID (PAnsiChar)</td> | ||
+ | <td colspan="2">This is the ID of the semen analysis.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td colspan="2"> | ||
+ | <p>Path where the file should be saved.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td rowspan="5"> | ||
+ | <p>ATyp (Integer)</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | </td> | ||
+ | <td colspan="2"> | ||
+ | <p>Following types are possible:</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <p><strong>Type</strong></p> | ||
+ | </td> | ||
+ | <td> | ||
+ | <p><strong>Integer value</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>General document</td> | ||
+ | <td>0</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>File (Native)</td> | ||
+ | <td>1</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>File (After perperation)</td> | ||
+ | <td>2</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p> </p> | ||
+ | <p><strong>Optional parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADescription (PAnsiChar = nil)</td> | ||
+ | <td colspan="2">Default -> file name </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADatum (PAnsiChar = nil)</td> | ||
+ | <td colspan="2">Default -> file date </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveFileBySpermiogramm">Click here</a> if you want to get an example of this function.</p> | ||
+ | <table style="float: right;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td style="text-align: left;"><a href="#top">Back to top</a></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h2>Inkubator - Incubator</h2> | ||
+ | <h3>GetInkubatorID</h3> | ||
+ | <p>With this function you get a list with all incubators of the program MedITEX IVF.</p> | ||
+ | <p>After calling this function, a selection dialog opens.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetInkubatorID </strong></span>(</em><em>aUser, aPassword: PAnsiChar; </em><em>AFilter: PAnsiChar = nil): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><strong>Parameters:</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <p>AFilter (PAnsiChar = nil)</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | </td> | ||
+ | <td> | ||
+ | <p>You can restrict the search by specifying the filter.</p> | ||
+ | <p> </p> | ||
+ | <p>Filters based on the following criteria are possibly:</p> | ||
+ | <ul> | ||
+ | <li>Description</li> | ||
+ | <li>Active</li> | ||
+ | <li>Manufacturer.name</li> | ||
+ | <li>Model.name</li> | ||
+ | <li>Location of incubator.name</li> | ||
+ | <li>Incubator no.</li> | ||
+ | </ul> | ||
+ | <p> </p> | ||
+ | <p>Examples:</p> | ||
+ | <ul> | ||
+ | <li>Active = 1</li> | ||
+ | <li>Manufacturer.name like ‘XY%’</li> | ||
+ | <li>Incubator no > 20</li> | ||
+ | </ul> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetInkubatorID">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>SaveFileToInkubator</h3> | ||
+ | <p>This function enables you to save files to an incubator.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <strong><span style="color: #3366ff;">SaveFileToInkubator </span></strong>(</em><em>aUser, aPassword: PAnsiChar;</em><em> aInkubatorID: Integer; APathAndFile: PAnsiChar; ADatum : PAnsiChar = nil; NewRecordInDatabase: boolean = true): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | <p>This function expects as parameter the InkubatorID from type integer and the fully path of the file to be stored.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aInkubatorID (Integer)</td> | ||
+ | <td>This is the ID of your incubator.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APathAndFile (PAnsiChar)</td> | ||
+ | <td> | ||
+ | <p>Path where the file should be saved.</p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <p> </p> | ||
+ | <p><strong>Optional parameters:</strong></p> | ||
+ | </td> | ||
+ | <td> | ||
+ | <p> </p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ADatum (PAnsiChar = nil)</td> | ||
+ | <td>Default -> file date.</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>NewRecordInDatabase(Boolean = true)</td> | ||
+ | <td> | ||
+ | <p>Default -> true.</p> | ||
+ | <ul> | ||
+ | <li>True: File is copied into the storage directory and a database entry takes place.</li> | ||
+ | <li>False: File is copied into the storage directory.</li> | ||
+ | </ul> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The function returns the 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#SaveFileToInkubator">Click here</a> if you want to get an example of this function.</p> | ||
+ | <table style="float: right;" border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td style="text-align: left;"><a href="#top">Back to top</a></td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h2>OpenCommands</h2> | ||
+ | <h3>OpenPatientCryoOverview</h3> | ||
<p>This function offers the opportunity to call up the cryo storage in MedITEX IVF using the DLL.</p> | <p>This function offers the opportunity to call up the cryo storage in MedITEX IVF using the DLL.</p> | ||
− | |||
<p>After each call of the function, if MedITEX is running, the cryo storage of the respective patient will open.</p> | <p>After each call of the function, if MedITEX is running, the cryo storage of the respective patient will open.</p> | ||
<table border="0" width="793" height="84"> | <table border="0" width="793" height="84"> | ||
Line 55: | Line 1,419: | ||
<tr> | <tr> | ||
<td colspan="2"> | <td colspan="2"> | ||
− | <p><em>function <strong><span style="color: #3366ff;">OpenPatientCryoOverview</span></strong>( | + | <p><em>function <strong><span style="color: #3366ff;">OpenPatientCryoOverview</span></strong> (</em><em>APatientID: PAnsiChar): Integer; <span style="color: #000000;">stdcall</span>;</em></p> |
</td> | </td> | ||
</tr> | </tr> | ||
Line 62: | Line 1,426: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>APatientID (PAnsiChar)</td> |
− | <td>A specific user in MedITEX IVF which can be used in external programs. | + | <td>This is the ID of your patient.</td> |
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is integer. The function returns 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#OpenPatientCryoOverview">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>OpenPatientOverview</h3> | ||
+ | <p>With this function it is possible to open the patient overview window in MedITEX IVF using the DLL.</p> | ||
+ | <p>The parameters user, password (PAnsiChar) and PatientenID (PAnsiChar) has to be passed to the function. After calling the function the patient overview window opens, if MedITEX IVF is running.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <strong><span style="color: #3366ff;">OpenPatientOverview</span></strong> (</em><em>aUser, aPassword: PAnsiChar; </em><em>APatientID: PAnsiChar): Integer; stdcall;</em><em> </em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><strong>Parameters:</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
Line 71: | Line 1,458: | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
− | <p><strong>Return | + | <p><strong>Return type: </strong>The function returns 1 on success or -1 on failure as an integer.</p> |
− | <p><strong>Example: </strong></p> | + | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#OpenPatientOverview">Click here</a> if you want to get an example of this function.</p> |
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>OpenCycleOverview</h3> | ||
+ | <p>With this function it is possible to open the cycle overview window in MedITEX IVF using the DLL.</p> | ||
+ | <p>After calling the function the cycle overview window opens, if MedITEX IVF is running.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>OpenCycleOverview </strong></span>(aUser,aPassword: PAnsiChar; ATherapieID: Integer): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><strong>Parameters:</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>ATherapieID (Integer)</td> | ||
+ | <td>This is the ID of the cycle.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The function returns 1 on success or -1 on failure as an integer.</p> | ||
+ | <p><strong>Example:<a href="/index.php?title=Examples_mexAPI#OpenTherapieOverview"> </a></strong><a href="/index.php?title=Examples_mexAPI#OpenTherapieOverview">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>OpenMedicalHistory</h3> | ||
+ | <p>With this function, it is possible to open the patient medical history window in MedITEX IVF using the DLL.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>OpenMedicalHistory </strong></span>(aUser, aPassword: PAnsiChar; aMedicalHistoryID: Integer): Integer; </em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><strong>Parameters:</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>The registration data of a user from MedITEX IVF. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aMedicalHistoryID (Integer)</td> | ||
+ | <td>This is the Medical History ID.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>If the execution is successful, 1 is returned, otherwise -1.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>OpenCultureOverview</h3> | ||
+ | <p>With this function it is possible to open the egg cell overview window in MedITEX IVF using the DLL.</p> | ||
+ | <p>After calling the function the egg cell overview window opens, if MedITEX IVF is running.</p> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="2"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>OpenCultureOverview </strong></span>(aUser,aPassword: PAnsiChar; aEZID: Integer): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2"><strong>Parameters:</strong></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar) <br /></td> | ||
+ | <td>A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aEZID (Integer)</td> | ||
+ | <td>This is the ID of the egg cell.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type: </strong>The function returns 1 on success or -1 on failure as an integer.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#OpenEizellOverview">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
+ | <p> </p> | ||
+ | <h3>GetAblageDateien</h3> | ||
+ | <table border="0"> | ||
+ | <tbody> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><em>function <span style="color: #3366ff;"><strong>GetAblageDateien </strong></span>(aUser,aPassword: PAnsiChar; APatientID: PAnsiChar): Integer; stdcall;</em></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="3"> | ||
+ | <p><strong>Parameters:</strong></p> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>aUser, aPassword (PAnsiChar)<br /></td> | ||
+ | <td colspan="2">A specific user in MedITEX IVF which can be used in external programs. <br /></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>APatientID (PAnsiChar)</td> | ||
+ | <td colspan="2">This is the ID of the patient.</td> | ||
+ | </tr> | ||
+ | </tbody> | ||
+ | </table> | ||
+ | <p><strong>Return type:</strong> The type of the return value is 1 on success or -1 on failure.</p> | ||
+ | <p><strong>Example: </strong><a href="/index.php?title=Examples_mexAPI#GetAblageDateien">Click here</a> if you want to get an example of this function.</p> | ||
+ | <p> </p> | ||
<p> </p> | <p> </p> | ||
+ | <h2>Login</h2> | ||
+ | <p>Enter here your username and password.</p> | ||
+ | <p><strong>Example:</strong> <a href="/index.php?title=Examples_mexAPI#Login">Click here</a> if you want to get an example.</p> | ||
<p> </p> | <p> </p> | ||
<table style="float: right;" border="0"> | <table style="float: right;" border="0"> | ||
<tbody> | <tbody> | ||
<tr> | <tr> | ||
− | <td style="text-align: right;"><span><a href="/index.php?title= | + | <td style="text-align: right;"><span><a href="/index.php?title=MedITEX_API">Back to MedITEX API</a><a href="/index.php?title=Main_Page"><br /></a></span></td> |
<td style="text-align: right;"><a href="#top">Back to top</a></td> | <td style="text-align: right;"><a href="#top">Back to top</a></td> | ||
</tr> | </tr> | ||
</tbody> | </tbody> | ||
</table> | </table> |
Latest revision as of 16:58, 21 August 2017
<img src="/images/Api1.png" alt="" width="765" height="196" /> |
MedITEX API consists of a series of functions that can be used to generate reports and control specific areas of MedITEX IVF from third party tools.
<a href="/images/Sample_for_CASA_System.xlsm"><img src="/images/plus48.png" alt="" width="48" height="48" /></a> |
The following <a href="/images/Sample_for_CASA_System.xlsm">Excel sheet</a> is an example of utilization of MedITEX API. Simply copy this file to the MedITEX IVF folder on your server for testing. With this simple example, developers can see how a VBA macro connects with our database using the API. The VBA macro is integrated in the Excel file. |
The MedITEX API can be expanded with the following functions:
Contents |
Commands
ExportCSVData
This function enables the export of files and reports out of MedITEX IVF. File format is CSV.
function ExportCSVData (AUser, APassword: PAnsiChar; AExportID: PAnsiChar; APathAndFile: PAnsiChar; AFilter: PAnsiChar = nil): Integer; stdcall; |
|
Parameters: | |
AUser, APassword (PAnsiChar) | A specific user in MedITEX IVF which can be used in external programs. |
AExportID (PAnsiChar) | This is the ID of your report. |
APathAndFile (PAnsiChar) |
Path where the file should be saved. |
AFilter (PAnsiChar, optional) |
Filter condition for the export. Example: Patient_ID = 1000 and dt_gewinnung > '01.01.2010' |
Return type: The type of the return value is integer. The function returns 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#ExportCSVData">Click here</a> if you want to get an example of this function.
SaveData
function SaveData (aUser,aPassword: PAnsiChar; ATabelle, AKeyField, AKeyValue, ASaveField, ASaveValue: PAnsiChar): PAnsiChar; stdcall; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
|
ATabelle (PAnsiChar) | A table name in MedITEX. Example: PERSON. |
|
AKeyField (PAnsiChar) | A keyfield to be used in the where condition. Example: PATIENT_ID. | |
AKeyValue (PAnsiChar) |
A value to be used in combination with AKeyField. Example: PAT123. | |
ASaveField (PAnsiChar) | A field where the information should be saved. Example: P_ADDR_POSTAL_CITY. | |
ASaveValue (PAnsiChar) | A value to be saved in the field defined on ASaveField. Example: New York. |
Return type:
Example: <a href="/index.php?title=Examples_mexAPI#SaveData">Click here</a> if you want to get an example of this function.
GetData
With this function, you can get data of patients.
function GetData (aUser,aPassword: PAnsiChar; ATabelle, AKeyField, AKeyValue, AGetKey: PAnsiChar): PAnsiChar; stdcall; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
|
ATabelle, AKeyField, AGetKey (PAnsiChar) |
Return type:
Example: <a href="/index.php?title=Examples_mexAPI#GetData">Click here</a> if you want to get an example of this function.
GetLanguageCode
This function returns the language code shortcut.
function GetLanguageCode (aUser,aPassword: PAnsiChar): PAnsiChar; stdcall; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
Return type: The type of the return value is PAnsiChar. The function returns the language code shortcut on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetLanguageCode">Click here</a> if you want to get an example of this function.
GetExpertData
function GetExpertData (aUser,aPassword: PAnsiChar; inputSQL: PAnsiChar; savePath: PAnsichar=nil):PAnsiChar; stdcall; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
|
inputSQL (PAnsiChar) | ||
savePath (PAnsiChar = nil) |
Return type:
Example: <a href="/index.php?title=Examples_mexAPI#GetExpertData">Click here</a> if you want to get an example of this function.
<a href="#top">Back to top</a> |
Patient
GetPatientID
After calling the function, a window opens, where you can search a patient.
function GetPatientID (aUser, aPassword: PAnsiChar; AFilter: PAnsiChar = nil): PAnsiChar; stdcall; |
|
Parameters: | |
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
AFilter (PAnsiChar = nil)
|
You can restrict the search by specifying the filter.
Filters based on the following criteria are possibly:
Examples:
|
Return type: The type of the return value is PAnsiChar. The function returns the PatientenID on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetPatientID">Click here</a> if you want to get an example of this function.
GetPatientName
With this function, you can get the name of a patient.
function GetPatientName (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar): PAnsiChar; stdcall; |
|
Parameter: As parameter the function expects the PatientenID, AUser and APassword of type PAnsiChar. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
APatientID (PAnsiChar) | This is the ID of your patient. |
Return type: The function returns the name of the patient on success or -1 on failure from type PAnsiChar.
Example: <a href="/index.php?title=Examples_mexAPI#GetPatientName">Click here</a> if you want to get an example of this function.
GetPartnerPatID
With this function, you can get the ID of the patients partner.
function GetPartnerPatID (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar): PAnsiChar; stdcall; |
|
Parameter: As parameter the function expects the PatientenID of type PAnsiChar. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
APatientID (PAnsiChar) | This is the ID of your patient. |
Return type: The type of the return value is integer. The function returns the name of the partner on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetPartnerPatID">Click here</a> if you want to get an example of this function.
GetLatestMedicalHistoryID
With this function, it is possible to get the latest patient Medical History.
function GetLatestMedicalHistoryID (aUser, aPassword, aPatientID: PAnsiChar): Integer; |
|
Parameter: As parameter the function expects the PatientenID of type PAnsiChar. |
|
aUser, aPassword (PAnsiChar) |
The registration data of a user from MedITEX IVF. |
aPatientID (PAnsiChar) | The patient ID (must be the same in both programs). |
Return type: Medical History ID as Integer. If no result is found, -1 is returned.
SaveFileByPatient
With this function you can save files directly in one patients folder in MedITEX IVF.
function SaveFileByPatient (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar; APathAndFile: PAnsiChar; ADescription: PAnsiChar = nil; ADatum: PAnsiChar = nil; AFileTyp: Integer = 10; ASubTyp: Integer = 12; NewRecordInDatabase: boolean = true): Integer; stdcall; |
|
Parameters: This function expects as parameter the PatientenID from type integer and the fully path of the file to be stored. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aPatientID (PAnsiChar) | This is the ID of your patient. |
APathAndFile (PAnsiChar) | Path where the file should be saved. |
Optional parameters: |
|
ADescription (PAnsiChar = nil) | Default -> file name. |
ADatum (PAnsiChar = nil) |
Default -> file date. |
AFileTyp (Integer = 10) | Default -> 10. |
ASubTyp (Integer = 12) | Default -> 12. |
NewRecordInDatabase(Boolean = true) |
Default -> true.
|
The following file type - sub type combinations are possible:
File type | Sub type | Designation | File type | Sub type | Designation |
3 | 9 | Long-term medication | 11 | 3 | fallopian status |
8 | 1 | Previous diseases | 11 | 11 | Andro findings |
8 | 4 | Semen analysis |
11 | 13 | Gyn findings |
8 | 5 | Hormones | 11 |
14 |
Uterus/Ovaries |
8 | 22 | Microbiology | 11 | 15 | Ultrasound |
8 | 23 | Genetics | 11 | 16 |
Hysteroscopy |
8 | 24 | Endocrinology | 11 | 17 |
Laparscopy/HSSG |
8 | 25 | Serology | 11 | 18 |
Abrasio |
8 | 26 | Clinical chemistry | 11 | 19 |
Laparotomy |
9 | 6 | DIR Medical history | 11 | 27 |
PCT/Mucus |
9 | 7 | CAVE | 11 | 28 |
Transvaginale endoscopy |
9 | 8 | DIR Medical history | 11 | 31 |
Hepatitis |
9 | 10 | Finding | 11 | 32 |
Examinations |
9 | 21 | Note | 11 |
102 |
DICOM |
10 | 12 | Document general | |||
10 | 20 | Cryo Gyn | |||
10 | 30 | Cryo Andro | |||
10 | 33 | Medical history questionnaire | |||
10 | 100 | Administration of documents | |||
10 | 101 | Oocyte pictures form MedITEX IVF |
Return type: The function returns the 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SaveFileByPatient">Click here</a> if you want to get an example of this function.
SaveConsentByPatient
Within this function, it would be possible to add and update consents to the patients folder in MedITEX IVF.
function SaveConsentByPatient (aUser, aPassword: PAnsiChar; APatientID, APathAndFile, ANote, ADate: PAnsiChar; ATemplateID, AGroupID, ADocID, AOrigID, AStatus: Integer): Integer; |
|
Parameters: This function expects as parameters the PatientID and the fully path of the consent to be added. Some internal IDs, like consent Template ID, consent Group ID and consent Status ID are important for the use of this function. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aPatientID (PAnsiChar) | The ID of the patient. |
APathAndFile (PAnsiChar) | The path where the consent should be saved. |
ANote (PAnsiChar) | The note associated to the consent. |
ADate (PAnsiChar) | The consent date. |
ATemplateID (Integer) | The consent template ID. |
AGroupID (Integer) | The consent group ID. |
ADocID, AOrigID (Integer) |
With ADocID and AOrigID, it would be possible to replace the existing consent. ADocID is an ID that can be used in case of the consent update. E.g. If you're not planning to update the consents, you can send "-1" for both parameters. |
AStatus (Integer) | The consent status ID. |
Return type: The function returns 1 on success or -1 on failure.
SaveLabData
With this function you can save lab values directly at one patients laboratory folder in MedITEX IVF.
function SaveLabData (aUser, aPassword: PAnsiChar; APatID: PAnsiChar; ADatum: PAnsiChar; AProbeID: PAnsiChar; ALaborParam: PAnsiChar; AValue: PAnsiChar): Integer; stdcall; |
|
Parameters: |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aPatID (PAnsiChar) | This is the ID of your patient. |
ADatum (PAnsiChar) | Enter the date of the evaluation. |
AProbeID (PAnsiChar) |
Add the Id of your sample. |
ALaborParam (PAnsiChar) | Input the name of the laboratory parameter. |
AValue (PAnsiChar) | Add the value of the parameter. |
Return type: The type of the return value is 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SaveLabData">Click here</a> if you want to get an example of this function.
SavePatientImage
With this function you can save a picture of the patient in MedITEX IVF.
function SavePatientImage(aUser,aPassword: PAnsiChar; APatientID: PAnsiChar; APathAndFile: PAnsiChar): Integer; stdcall; |
|
Parameters: This function expects as parameter the PatientenID from type integer and the fully path of the file to be stored. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aPatientID (PAnsiChar) | This is the ID of your patient. |
APathAndFile (PAnsiChar) | Path where the file should be saved. |
Return type: The function returns the 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SavePatientImage">Click here</a> if you want to get an example of this function.
<a href="#top">Back to top</a> |
Therapie - Cycle
GetTherapieID
This function allows you to see all cycles of the transferred patient.
function GetTherapieID (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar): Integer; stdcall; |
|
Parameter: As parameter the function expects the PatientenID of type PAnsiChar. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
APatientID (PAnsiChar) | This is the ID of your patient. |
After this function has been called, a window opens. This window is showing all cycles from the transferred patient. Choose the wished cycle.
Return type: The type of the return value is integer. The function returns the TherapieID on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetTherapieID">Click here</a> if you want to get an example of this function.
GetTherapieIDEx
function GetTherapieIDEx (aUser,aPassword: PAnsiChar; APatientID: PAnsiChar; aTIDList:string): Integer; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
|
APatientID (PAnsiChar) |
This is the ID of your patient. | |
aTIDList (string) |
Return type:
Example: <a href="/index.php?title=Examples_mexAPI#GetTherapieIDEx">Click here</a> if you want to get an example of this function.
GetLatestCycleID
function GetLatestCycleID (aUser, aPassword, aPatientID: PAnsiChar): Integer; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
The registration data of a user from MedITEX IVF. |
|
aPatientID (PAnsiChar) |
The patient ID (must be the same in both programs). |
Return type: Therapie ID as Integer. If no result is found, -1 is returned.
SaveUSImage
This function enables you to save ultrasound images of a us examination in the patients folder in MedITEX IVF.
function SaveUSImage (aUser, aPassword: PAnsiChar; APatID: PAnsiChar; ADatum: PAnsiChar; APathAndFile: PAnsiChar; ATypUS: Integer = 1; AAnamneseSubTyp: Integer = 37): Integer; stdcall; |
|
Parameter: This function expects as a required parameter the User, Password and PatientenID as PAnsiChar, the Date and the full file path of the image to be stored. Optional the US type can be entered (1: follicle, 2: pregnancy) and the particular AnamneseItemSubtyp has to be 37. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
APatID (PAnsiChar) |
This is the ID of your patient. |
ADatum (PAnsiChar) | The date of recording. |
APathAndFile (PAnsiChar) | Path where the file should be saved. |
ATypUS (Integer = 1) | Type of ultrasound: follicle or pregnancy. |
AAnamneseSubTyp (Integer = 37) | AnamneseSubType. |
Return type: The function returns the 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SaveUSImage">Click here</a> if you want to get an example of this function.
<a href="#top">Back to top</a> |
Kultur - Culture
GetEZID
After calling this function, a new window opens. This window is showing all egg cells from the transferred cycle. You can choose the wished egg cell.
function GetEZID (aUser, aPassword: PAnsiChar; ATherapieID: Integer): Integer; stdcall; |
|
Parameter: As parameter the function expects the TherapieID of type integer. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
ATherapieID (Integer) | This is the ID of a cycle. |
Return type: The function returns the EZID on success or -1 on failure of type integer.
Example: <a href="/index.php?title=Examples_mexAPI#GetEZID">Click here</a> if you want to get an example of this function.
GetMeditexEZID
function GetMeditexEZID (aUser, aPassword: PAnsiChar; aEZID: Integer): Integer; stdcall; |
|
Parameter: This function expects as parameter the EZID from type integer. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aEZID (Integer) | This is the ID of an oocyte. |
Return type: The type of the return value is the corresponding MeditexEZID on success or -1 of the type integer on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetMeditexEZID">Click here</a> if you want to get an example of this function.
GetKulturtag
With this function you can get the exact culture day of one oocyte.
function GetKulturtag (aUser, aPassword: PAnsiChar; aEZID: Integer): Integer; stdcall; |
|
Parameter: This function expects as parameter the EZID from type integer. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aEZID (Integer) | This is the ID of an oocyte. |
Return type: The function returns the corresponding culture day on success or -1 on failure of type integer.
Example: <a href="/index.php?title=Examples_mexAPI#GetKulturtag">Click here</a> if you want to get an example of this function.
GetKulturtagAsDate
With this function you can get the exact culture day of one oocyte in the format date.
function GetKulturtagAsDate (aUser, a Password: PAnsiChar; aEZID: Integer): PAnsiChar; stdcall; |
|
Parameter: This function expects as parameter the EZID from type integer. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aEZID (Integer) | This is the ID of an oocyte. |
Return type: The function returns the corresponding culture day on success or -1 on failure of type PAnsiChar.
Example: <a href="/index.php?title=Examples_mexAPI#GetKulturtagAsDate">Click here</a> if you want to get an example of this function.
SaveEZImage
function SaveEZImage (aUser, aPassword: PAnsiChar; aEZID: Integer; APathAndFile: PAnsiChar): Integer; stdcall; |
|
Parameter: This function expects as parameter the EZID from type integer and the fully path of the image to be stored. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aEZID (Integer) | This is the ID of an oocyte. |
APathAndFile (PAnsiChar) | Path where the file should be saved. |
Return type: The function returns the 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SaveEZImage">Click here</a> if you want to get an example of this function.
<a href="#top">Back to top</a> |
Spermiogramm - Semen analysis
GetNewSpermiogrammID
After calling the function, a new semen analysis with the passed parameters will be created.
function GetNewSpermiogrammID (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar; ADatum: PAnsiChar = nil; ABemerkung: PAnsiChar = nil; Uhrzeit: PAnsiChar = nil; Indikation: PAnsiChar = nil; Spendersperma: Boolean = false; Gewinnungsart: Integer = 0): Integer; stdcall; |
|
Parameters: This function expects as parameter the PatientenID from type integer. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aPatientID (PAnsiChar) | This is the ID of your patient. |
Indikation (PAnsiChar = nil) |
Indication of the semen analysis. Values can be: 0 for Semen analysis 1 for IVf 2 for ICSI 3 for Insemination 4 for Cryopreservation 5 for Control 6 for IMSI 7 for IVM 8 for Fertility preservation |
Optional parameters: |
|
ADatum (PAnsiChar = nil) | The date of recording. |
ABemerkung (PAnsiChar = nil) | Enter a comment if it is necessary. |
Uhrzeit (PAnsiChar = nil) | Date of the sample. |
Spendersperma (Boolean = false) | Sperm from donor. |
Gewinnungsart (Integer = 0) |
Collection method. Values can be: 0 for Not specified 1 for antegrade ejaculation 2 for retrograde ejaculation 3 for Cryo sperm 4 for MESA 5 for frozen/thawed MESA 6 for PESA 7 for frozen/thawed PESA 8 for TESE 9 for frozen/thawed TESE 10 for Electrostimulation 11 for Spermatocele 12 for Donor 13 for TESA 14 for frozen/thawed TESA 15 for ESA 16 for frozen/thawed ESA 23 for Micro-TESA 24 for Micro-TESE |
Return type: The type of the return value is the new SpermiogrammID on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetNewSpermiogrammID">Click here</a> if you want to get an example of this function.
SaveSpermData
After calling the function, all entered values of the CSV-String will be added to the associated semen analysis.
function SaveSpermData (aUser, aPassword: PAnsiChar; ASpermID: Integer; UpdateCSV: PAnsiChar): Integer; stdcall; |
|||
Parameters: This function expects as parameter the SpermiogrammID from type integer and a CSV-String from type PAnsiChar, including the fields of the semen analysis which should be updated. |
|||
aUser, aPassword (PAnsiChar) | A specific user in MedITEX IVF which can be used in external programs. |
||
aSpermID (PAnsiChar) | This is the ID of a semen analysis. | ||
UpdateCSV (PAnsiChar)
|
The CSV-String looks like:
Delimiter ;
|
||
Return type: The function returns 1 on success or -1 on failure.
Example: "PH_VA = 0.45";"DIAGNOSE_TEXT = 'TestDiagnose'";"NORMOSPERMIE_VA=23"
<a href="/index.php?title=Examples_mexAPI#SaveSpermData">Click here</a> if you want to get an example of this function.
GetSpermiogrammID
This function enables you to see all semen analysis of the transferred patient.
function GetSpermiogrammID (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar): Integer; stdcall; |
|
Parameter: As parameter the function expects the PatientenID of type PAnsiChar. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
APatientID (PAnsiChar) | This is the ID of your patient. |
After this function has been called, a window opens. This window is showing all semen analysis from the transferred patient. Choose the wished semen analysis.
Return type: The type of the return value is integer. The function returns the SpermiogrammID on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetSpermiogrammID">Click here</a> if you want to get an example of this function.
SaveFileBySpermiogramm
You can save semen analysis files directly in the patients folder in MedITEX IVF with this function.
function SaveFileBySpermiogramm (aUser, aPassword: PAnsiChar; ASpermID: Integer; APathAndFile: PAnsichar; ATyp: Integer; ADescription: PAnsiChar = nil; ADatum: PAnsiChar = nil): Integer; stdcall; |
||
Parameters: This function expects as parameter the SpermiogrammID from type integer, the type as type integer and the fully path of the file to be stored. |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
|
aSpermID (PAnsiChar) | This is the ID of the semen analysis. | |
APathAndFile (PAnsiChar) |
Path where the file should be saved. |
|
ATyp (Integer)
|
Following types are possible: |
|
Type |
Integer value |
|
General document | 0 | |
File (Native) | 1 | |
File (After perperation) | 2 | |
Optional parameters: |
||
ADescription (PAnsiChar = nil) | Default -> file name | |
ADatum (PAnsiChar = nil) | Default -> file date |
Return type: The type of the return value is 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SaveFileBySpermiogramm">Click here</a> if you want to get an example of this function.
<a href="#top">Back to top</a> |
Inkubator - Incubator
GetInkubatorID
With this function you get a list with all incubators of the program MedITEX IVF.
After calling this function, a selection dialog opens.
function GetInkubatorID (aUser, aPassword: PAnsiChar; AFilter: PAnsiChar = nil): Integer; stdcall; |
|
Parameters: | |
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
AFilter (PAnsiChar = nil)
|
You can restrict the search by specifying the filter.
Filters based on the following criteria are possibly:
Examples:
|
Return type: The type of the return value is 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetInkubatorID">Click here</a> if you want to get an example of this function.
SaveFileToInkubator
This function enables you to save files to an incubator.
function SaveFileToInkubator (aUser, aPassword: PAnsiChar; aInkubatorID: Integer; APathAndFile: PAnsiChar; ADatum : PAnsiChar = nil; NewRecordInDatabase: boolean = true): Integer; stdcall; |
|
Parameters: This function expects as parameter the InkubatorID from type integer and the fully path of the file to be stored. |
|
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aInkubatorID (Integer) | This is the ID of your incubator. |
APathAndFile (PAnsiChar) |
Path where the file should be saved. |
Optional parameters: |
|
ADatum (PAnsiChar = nil) | Default -> file date. |
NewRecordInDatabase(Boolean = true) |
Default -> true.
|
Return type: The function returns the 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#SaveFileToInkubator">Click here</a> if you want to get an example of this function.
<a href="#top">Back to top</a> |
OpenCommands
OpenPatientCryoOverview
This function offers the opportunity to call up the cryo storage in MedITEX IVF using the DLL.
After each call of the function, if MedITEX is running, the cryo storage of the respective patient will open.
function OpenPatientCryoOverview (APatientID: PAnsiChar): Integer; stdcall; |
|
Parameters: | |
APatientID (PAnsiChar) | This is the ID of your patient. |
Return type: The type of the return value is integer. The function returns 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#OpenPatientCryoOverview">Click here</a> if you want to get an example of this function.
OpenPatientOverview
With this function it is possible to open the patient overview window in MedITEX IVF using the DLL.
The parameters user, password (PAnsiChar) and PatientenID (PAnsiChar) has to be passed to the function. After calling the function the patient overview window opens, if MedITEX IVF is running.
function OpenPatientOverview (aUser, aPassword: PAnsiChar; APatientID: PAnsiChar): Integer; stdcall; |
|
Parameters: | |
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
APatientID (PAnsiChar) | This is the ID of your patient. |
Return type: The function returns 1 on success or -1 on failure as an integer.
Example: <a href="/index.php?title=Examples_mexAPI#OpenPatientOverview">Click here</a> if you want to get an example of this function.
OpenCycleOverview
With this function it is possible to open the cycle overview window in MedITEX IVF using the DLL.
After calling the function the cycle overview window opens, if MedITEX IVF is running.
function OpenCycleOverview (aUser,aPassword: PAnsiChar; ATherapieID: Integer): Integer; stdcall; |
|
Parameters: | |
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
ATherapieID (Integer) | This is the ID of the cycle. |
Return type: The function returns 1 on success or -1 on failure as an integer.
Example:<a href="/index.php?title=Examples_mexAPI#OpenTherapieOverview"> </a><a href="/index.php?title=Examples_mexAPI#OpenTherapieOverview">Click here</a> if you want to get an example of this function.
OpenMedicalHistory
With this function, it is possible to open the patient medical history window in MedITEX IVF using the DLL.
function OpenMedicalHistory (aUser, aPassword: PAnsiChar; aMedicalHistoryID: Integer): Integer; |
|
Parameters: | |
aUser, aPassword (PAnsiChar) |
The registration data of a user from MedITEX IVF. |
aMedicalHistoryID (Integer) | This is the Medical History ID. |
Return type: If the execution is successful, 1 is returned, otherwise -1.
OpenCultureOverview
With this function it is possible to open the egg cell overview window in MedITEX IVF using the DLL.
After calling the function the egg cell overview window opens, if MedITEX IVF is running.
function OpenCultureOverview (aUser,aPassword: PAnsiChar; aEZID: Integer): Integer; stdcall; |
|
Parameters: | |
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
aEZID (Integer) | This is the ID of the egg cell. |
Return type: The function returns 1 on success or -1 on failure as an integer.
Example: <a href="/index.php?title=Examples_mexAPI#OpenEizellOverview">Click here</a> if you want to get an example of this function.
GetAblageDateien
function GetAblageDateien (aUser,aPassword: PAnsiChar; APatientID: PAnsiChar): Integer; stdcall; |
||
Parameters: |
||
aUser, aPassword (PAnsiChar) |
A specific user in MedITEX IVF which can be used in external programs. |
|
APatientID (PAnsiChar) | This is the ID of the patient. |
Return type: The type of the return value is 1 on success or -1 on failure.
Example: <a href="/index.php?title=Examples_mexAPI#GetAblageDateien">Click here</a> if you want to get an example of this function.
Login
Enter here your username and password.
Example: <a href="/index.php?title=Examples_mexAPI#Login">Click here</a> if you want to get an example.
<a href="/index.php?title=MedITEX_API">Back to MedITEX API</a><a href="/index.php?title=Main_Page"> </a> |
<a href="#top">Back to top</a> |