• warning: DOMXPath::query(): Invalid expression in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/stylesheet.cls.php on line 573.
  • warning: DOMXPath::query(): Invalid expression in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/stylesheet.cls.php on line 573.
  • warning: Invalid argument supplied for foreach() in /var/www/ictedge/sites/all/modules/print/lib/dompdf-0.5.1/include/stylesheet.cls.php on line 575.

Partograph timing

Partograph columns are divided into 30 or 60 minute time slices. The current time slice is highlighted. The following screenshot illustrates 30 and 60 minute time slices:

Partograph Time slices

The user receives a warning if she tries to make an entry in a time slice in advance of the current time slice.

Partograph User too fast alert

Overall timing is displayed in the right panel:

Partograph time display

The code for the time slice functionality is in javascript.js.

When the user clicks in a column or makes a selection, the relevant javascript method calls partTimer:

var timeSliceCheck = partTimer(interval, column);

partTimer sets up the time slice display. If not already initialized, it calls resetTiming; otherwise, it updates it, if the user has chosen to make an entry in advance of the current timing.

resetTiming re-initialises the timer. It calls StartTiming, which creates the loop that makes the timer work:

setTimeout("UpdateTiming()",1000);

It resets the start point for the time slices:

time_object.this_time_slice_start = column;

UpdateTiming calls captures the previous value for the time slices, and calls drawTimeSlice to draw the time slice. It also updates values in time_object and displays the current time values.