Thiruvananthapuram Hematology and Biochemistry Laboratory Integration Scripts

Current Version

  • v1.0

Setup and Installation

Basic Dependencies

  1. Python 3.5 or above. Install from: https://www.python.org
  2. Python Package Index (PyPA) version or 9 above. Install from https://pypi.python.org/pypi/pip
  3. Python module pyserial and Image. Install using:
   pip install pyserial 
   pip install Image
   
  1. Oracle client installed. May need to add client library location to PATH.
  2. Python module cx_Oracle. Install using:
   pip install cx_Oracle 
   

Installation of ClientSide GUI scripts for Windows

  1. Log into lab host computer to which the machines are connected.
  2. Download the project as a .zip file from GitHub. Unzip the file and navigate to the ClientSide directory.
  3. Edit and save the following lines in the MythicClientGUI.pyw script:
port = 'COMx'
baud = 9600
remoteFilePath = "<path of network drive>"
localFilePath  = "<a local path on host computer>"
  1. Right click and add a shortcut to the script on the Desktop.
  2. Press Windows+R to open run prompt and enter shell:startup. This will open the startup folder.
  3. Copy the shortcut created on the Desktop to the startup folder above.

Execution of ClientSide GUI for Windows

  1. Double click the Desktop shortcut to run the script.
  2. If connection is not successful then check machine port and change it. Try connecting using the "Connect to Mythic" button.

Server Side Installation Steps for Windows

  1. Log into lab server computer running Oracle.
  2. Download the python scripts from the ServerSide directory.
  3. Edit and save the following lines in each script:
connectString = u'test/test@127.0.0.1:1521/XE'
remoteFilePath = "Z:\\M18\\"
successFilePath = "F:\\lab_results\\M18_Success"
failureFilePath = "F:\\lab_results\\M18_Failed"

  1. Press Windows+R to open run prompt and enter shell:startup. This will open the startup folder.
  2. Copy the saved scripts in this location.
  3. Create links to the scripts on the desktop.
  4. Double click and run scripts.