status

The status table holds the current status of each step of each case on the system.

Structure

The status table has the following structure:

TABLE status (
node_id INTEGER NOT NULL,
proc_id INTEGER NOT NULL,
casenum NUMERIC(20) NOT NULL,
step_num INTEGER NOT NULL,
step_status INTEGER NOT NULL)

Column

Description

node_id

ID of the node that this step is hosted on, as defined in the nodes table.

proc_id

ID of the procedure that this step belongs to, as defined in the proc_index table.

casenum

Case number that this step belongs to, as defined in the case_information table.

step_num

Place number for this step (a unique ID that does not change between edits of a procedure). For internal use only.

step_status

Step status. Either: Not processed (0), Released (1), Outstanding (2) or Withdrawn (3).

Primary Key

The following primary key is defined for this table.

Key Name

Column(s)

pk_status

casenum
proc_id
step_num
node_id

Foreign Keys

The following foreign key is defined for this table.

Key Name

Column(s)

Referenced in Table...

fk_status1

node_id
proc_id
casenum

case_information

Indexes

The following index is defined for this table.

Index Name

Column(s) Indexed

idx_status_fk

casenum
proc_id
node_id

Table Activity

The status table contains one row for each step of each case (open or closed) on the system. Rows are added, updated and deleted in the following situations.

A row is...

When...

added

a step is sent out, or a case is started.

updated

a step’s status changes.

deleted

a case is purged.