MedSim Sequence Search

<< Click to Display Table of Contents >>

Navigation:  WorkFlow Editor > Demo Workflows >

MedSim Sequence Search

The demo Workflow Medical Team Code-Sequence Search can be applied to the demo document Medical Team Data.

This demo routine searches for a specific order of activities, to verify if all these steps were performed and to measure the time it took before all was completed. The search is performed regardless of any other activities in-between.

Select Start -Files - Open btn_open > Demos> Documents  > Document: Medical Team Data to open the demo document.

Select Start -Files - Open btn_open > Demos> Workflows > Workflow: Medical Team - Code-Sequence Search to open the workflow described in this topic:

WorkFlowDemo_MedSim-SequenceSearch

Click the 'triangle' icon in the upper left corner to execute the routine.

Workflow-ExecuteWorkflowIcons

Note: General information about finding, adding, and linking modules is explained in the top-topic Analysis Workflow.

Sequence Search Module

The Sequence Search module allows you to search for a specific combination of Codes and to create new Events for the duration of the whole sequence, if found.

Specify Sequence

You must specify the code-sequence you are looking for in the upper field of the dialog.

You need to enter the full Class and Code name, separated by two '>' characters. Nested Classes are also separated by another two '>', like shown in the image.
Make sure you write your Code and Class names EXACTLY as entered in the document.

If you are not sure about the case used, clear the Match case option.

Set Strictness

You can specify how strict the sequence must be; if any other Codes are allowed in-between or not.

oPer default, this value is set to -1. This means the routine ignores the occurrence of other Codes and simply verifies if the specified Codes occur in that order.

oTo search for an exact string of Events that allows no other Codes to be coded in-between, you need to set this value to 0.
In this example, the routine would not find any results if set to 0, because too many things happen between the separate Codes of the specified sequence.

oIf you allow for a specific number of other Codes to occur between Codes specified in your sequence, set the strictness value to that number.

Search Method

You can specify how INTERACT searches for you sequence and how the new Events are generated.

Create Events

The Sequence Search module allows you to create new Events and specify the Class and Code to describe the new Event.

Select the option Create new Events that represent the sequences.

Select or enter the Class in which to store your new Code.

Enter the Code to label your new Sequence-duration Events.

Demo Results

Running this demo routine on the corresponding demo file results in a table with a line per found sequence. Because the Strictness value was set to -1, all Codes that occurred in-between are also listed in this report, providing you with chronological details of everything that happened during your sequence:

WorkFlowDemo_MedSim-SequenceSearch_Results

At the same time, the Event that covers the duration of your sequence is generated in a copy of your data file.