PSConnector is a Flask-based REST and WebSocket API interface for interacting with the RadWhere COM interface provided by PowerScribeOne via Python on Windows. It enables communication between a REST HTTP server and the RadWhere reporting environment through COM, with real-time updates powered by Socket.IO.
- RESTful endpoints for logging in, managing reports, and accessing user/session/system info.
- WebSocket integration for real-time event broadcasting (e.g., report opened, user logged in).
- Background COM event listening using
win32com.client.
- Windows OS w/ RadWhere COM component (provided by PowerScribe)
- Python 3.7+
- Dependencies:
- Flask
- Flask-SocketIO
- pywin32
Install dependencies:
pip install flask flask-socketio pywin32- Clone the repository.
- Ensure the COM component
Commissure.PACSConnector.RadWhereCOMis installed and registered. - Run the application:
python app.pyThe server will start and listen on http://127.0.0.1:5000/.
POST /loginPOST /loginexPOST /logoutPOST /logoutex
POST /createreportPOST /openreportPOST /closereportPOST /savereport
POST /startPOST /terminatePOST /stop
POST /previeworderPOST /associateordersPOST /associateorderscurrentPOST /dissociateorders
-
GET /getactiveaccessions -
GET /getalwaysontop -
GET /getminimized -
GET /getrestrictedsession -
GET /getrestrictedworkflow -
GET /getsitename -
GET /getusername -
GET /getloggedin -
GET /getsite -
GET /getvisible -
POST /setalwaysontop -
POST /setminimized -
POST /setrestrictedsession -
POST /setrestrictedworkflow -
POST /setsitename -
POST /setvisible
report_event:opened,closed,changeduser_event:logged_in,logged_outerror_event:occurredprefetch_event:requestedtermination_event,dictation_event, etc.
- Designed for integration with dictation systems using RadWhere (ie. PowerScribe).
- The COM interface must be available and accessible from the machine running this application.
- Be aware that
win32com.clientmay require administrative permissions.