DeviatedWorkflowsGenerator

Click to access online Deviated Workflows Generator


Workflows Generator

Input format

Enter the initial workflow

Enter the initial workflow that needs to be deviated. Use ; to separate each action.

Example:
Click on A;Enter prescription;Save

Choose an error type

Choose from omission, repetition, or permutation.

Omission: [level] amount of action(s) are omitted.
Repetition: [level] amount of action(s) are repeated.
Permutation: [level+1] amount of action(s) are swapping positions.

Enter the level of erroneous actions generated

Enter how many erroneous phenotypes of human action to generate.

Enter 0 to not include any.

Generate deviated workflows

Click on "Submit" and the output will be displayed in the text box.

Click on "Download Output" to download generated deviated workflows as .txt file.

Click on "Run Workflow" to open the Run Workflow page.
Currently, this function only supports the "enter_prescriptions" workflow for openEMR demo.
This function does not work online right now. Users need to pull the repository to set it up locally.
Users could also download the source code enter_prescription.py from this repository to test workflows locally.

Run Workflow

A browser automation script written in Selenium is implemented to interact with openEMR, a free, open-source online Electronic Health Records system.
Specifically, this script is used to automate the process of entering a prescription into the OpenEMR system.

Enter a workflow into the text area to automatically test the system's behavior.
Correct enter prescriptions format:
['click_provider','select_billy','click_drug','enter_drug_namep1','enter_drug_namep2','click_quantity','enter_quantity','enter_medicine_num','choose_medicine_unit','enter_direction_num','choose_direction_s1','choose_direction_s2','choose_direction_s3','choose_refill_num1','add_to_medicine','save']

Run the tool locally

1. Pull the GitHub repository.
2. Install Flask.
3. Navigate to the local directory of the repository in the terminal, run "flask run"
4. Open the link shown in the terminal.

The interface

Before "Submit"


After "Submit"


Run Workflow