Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (37 sloc) 4.18 KB
{
"photoPathMatch": "(.*)\\\\(.*)\\\\(.*).jpg",
"photoVars": ["parentphotodir", "NHID", "photoname"],
"testConnectionSQL": "SELECT * FROM ATTACHMENTSMGR ORDER BY WHENADDED DESC ROWS 1;",
"testConnectionShowField": "PATHTOFILE",
"createUserSQL": "GRANT ALL ON ATTACHMENTSMGR TO MEDIMAGE; GRANT SELECT ON PATIENT TO MEDIMAGE; GRANT SELECT ON ANYBODY TO MEDIMAGE;",
"getIdSQL": "SELECT ANYBODYANY.ANYBODYID AS PATIENTID FROM PATIENT ANYBODYPAT LEFT JOIN ANYBODY ANYBODYANY ON ANYBODYANY.ANYBODYID = ANYBODYPAT.PATIENTID WHERE ANYBODYANY.ROWINACTIVE = 0 AND ANYBODYPAT.NHINO = '[NHID]';",
"insertAttachmentSQL": "INSERT INTO ATTACHMENTSMGR (ANYBODYID, WHENADDED, DESCRIPTION, NOTE, PATHTOFILE, FILESIZE, ROWINSERTWHEN, ROWINSERTSTAFF, ROWINSERTCOMPUTER, ROWINSERTLOCATION, ROWEDITWHEN, ROWEDITSTAFF, ROWEDITCOMPUTER, ROWEDITLOCATION, ROWINACTIVE, EXTRACONVERSIONDATA) VALUES ('[patientID]','[currentDateTime]','[photoname]','Added by MedImage','[fullphotopath]',[filelength],'[currentDateTime]','[staffname]','[computer]','[location]','[currentDateTime]','[staffname]','[computer]','[location]',0,NULL);",
"host": "localhost",
"dbname": "C:\\MT32\\data\\MT32.ib",
"username": "SYSDBA",
"password": "masterkey",
"staffname": "#sys",
"computer": "",
"localFolderMapDown": "C:\\mt32\\",
"mapDownTo": "M:\\",
"location": "M",
"useResized": false,
"useOriginal": true,
"parentPhotoDir": "C:\\MT32\\Attachments",
"useODBC": true,
"dsnHere": "medtech32",
"logging": true,
"capitaliseNHID": true,
"dbCurrentTimeSQL": "CURRENT_TIMESTAMP",
"constraints": {
"patientID": 7,
"photoname": 100,
"staffname": 4,
"computer": 15,
"location": 1,
"fullphotopath": 255
},
"createUserHelp": "<p>You can do this <b>manually</b>, <b>or</b> via your <b>ODBC driver</b> under 'Services/Users/Add User' in the Interbase driver.</p><p>To do this <i>manually</i>:</p><p>1. Bring up your SQL console and connect to the MedTech32 database (typically with your system username and password, and with no other users active)</p><p>2. Run a SQL query similar to this:</p><pre>CREATE USER MEDIMAGE SET PASSWORD 'masterkey';</pre><p>3. Click the 'Switch to MEDIMAGE user' button below.</p>",
"createUserHelpFull": "<p>You can do this <b>manually</b>, <b>or</b> via some ODBC drivers. After a successful connection using the system user, you will be <b>given an option</b> to switch to the MEDIMAGE user (which will give all correct permissions to that user).</p><p>To do this <i>manually</i>:</p><p>1. Bring up your database SQL console and connect to the MedTech database (typically with the system user and password, when no other users are connected)</p><p>2. Run similar SQL queries to the following:</p><pre>CREATE USER MEDIMAGE SET PASSWORD 'masterkey'; GRANT ALL ON ATTACHMENTSMGR TO MEDIMAGE; GRANT SELECT ON PATIENT TO MEDIMAGE; GRANT SELECT ON ANYBODY TO MEDIMAGE;</pre><p>3. Set the username to 'MEDIMAGE' above.</p>",
"odbcUserHelp": "<div class=\"panel panel-default\"><div class=\"panel-heading\">Connecting with ODBC</div><div class=\"panel-body\"><p>1. Enter 'ODBC sources 32-bit' or 'ODBC sources 64-bit' in your Windows Start bar, depending on which version of Interbase you are using, choose the 'Interbase' driver, and create a new 'System DSN' (not a 'User DSN').</p><div class=\"table-responsive\"><table class=\"table table-striped table-bordered table-hover\"><thead><tr><th>Field</th><th>Example Values</th></tr></thead><tbody><tr><td>Data Source Name (DSN)</td><td><b>medtech32</b></td></tr><tr><td>Database</td><td><b>localhost/Medtech_IBXE7:C:\\mt32\\data\\MT32.IB</b></td></tr><tr><td>Client</td><td><b>C:\\Program Files\\Embarcadero\\Interbase\\bin\\gds32.dll</b> or<br/><b>C:\\Program Files\\Embarcadero\\Interbase\\bin\\ibclient64.dll</b> for 64-bit</td></tr><tr><td>Database Account</td><td><b>SYSDBA</b></td></tr><tr><td>Password</td><td><b>masterkey</b></td></tr><tr><td>Character Set</td><td><b>NONE</b></td></tr><tr><td>Dialect</td><td><b>3</b></td></tr></tbody></table></div><p>2. Fill out the details above, and click 'Test Connection'.</p><p>3. Enter the 'DSN' name i.e. 'medtech32' into the 'ODBC Database DSN name' field above. Click 'Save and Check Connection' below.</p></div><div class=\"panel-footer text-muted\"></div></div>"
}
You can’t perform that action at this time.