Preliminary Draft 16/3/99, revised 27/9/99
As HBCIS PDS2.8 allows the subdivision of shifts into
partial shifts, caused by admission discharge and ward transfers, the term
shift and shift fragment are used interchangeable here.
As Night shift starts on one day and finishes on the
next, the term "corrected" shift start date is the real date and time
of commencement of any shift or shift fragment e.g. a shift fragment occurring
as a result of admission in the night shift
after midnight has a shift date of the day before, the corrected shift
start date is the date of admission. The same logic applies where a transfer
occurs between midnight and morning shift start.
There is an expectation that any Night shift
will start with "N"
Collected Dependency includes all values derived from
PDS.PAT.DEP file, as well as "W" where missing shifts are found (or
should that be not found) and "X" for non dependency wards.
Inferred uses simple business rules to assign the
Collected previous shift value to a missing shift, if it too is blank, then the
shift after is checked. An inferred shift is never inferred off another
inferred shift!
Where a two shift system is used, an NX is used to fill the
missing times.
These extracts pertain to HBCIS Version PDS2.8, utilising
fractional shifts
Talons Versions
EX.XVI.PDS2.9B & EX.XVI.PDS2.9C are functionally identical
versions, .9C is used for program diagnostic purposes .
EX.XVI.PDS2.9D produces data the same as 9B/C but in addition can read
from ARCHIVED data still present in the PDS Account PDS.PAT.DEP.ARC file.
PDS Menu
This will display the
following fields
The Ward
The Start of the shift
fragment (corrected date and time)
The End of the shift
fragment (corrected date and time)
The Shift Code
The Dependency value
found / The dependency value inferred
The Hours of the
fragment
The weighted work
hours of the fragment
<<|Secret
programmers data |secret programmers data>>
The Hours totals to
date
The admit date/time
The Disch Date/time
Unknown shifts will
display as "W" ( I "W"onder what it was)
Unrequired Shifts will
display as "X"
M10 12 SEP 1999 16:45:00 12 SEP
1999 22:45:00 PM B/B 6.00
1.50| 2| 1
M10 12 SEP 1999 22:45:00 13 SEP
1999 06:45:00 ND A/A 8.00
1.64| 2| 1
M10 13 SEP 1999 06:45:00 13 SEP
1999 07:49:00 AM A/A 1.07
0.22| 2| 1
M9OT 13 SEP 1999 07:49:00 13 SEP
1999 11:30:00 AM X/X 3.68
0.00| 2| 1
M10 13 SEP 1999 11:30:00 13 SEP
1999 14:45:00 AM W/E 3.25
0.00| 2| 1
M10 13 SEP 1999 14:45:00 13 SEP
1999 22:45:00 PM E/E 8.00
3.76| 2| 1
M10 13 SEP 1999 22:45:00 14 SEP
1999 06:45:00 ND D/D 8.00
3.10| 2| 1
M10 14 SEP 1999 06:45:00 14 SEP
1999 14:45:00 AM E/E 8.00
3.76| 2| 1
M10 14 SEP 1999 14:45:00 14 SEP
1999 22:45:00 PM D/D 8.00
3.10| 2| 1
M10 14 SEP 1999 22:45:00 15 SEP
1999 06:45:00 ND D/D 8.00
3.10| 2| 1
M10 15 SEP 1999 06:45:00 15 SEP
1999 14:45:00 AM C/C 8.00
2.54| 2| 1
M10 15 SEP 1999 14:45:00 15 SEP
1999 22:45:00 PM C/C 8.00
2.54| 2| 1
M10 15 SEP 1999 22:45:00 16 SEP
1999 06:45:00 ND B/B 8.00
2.00| 2| 1
M10 16 SEP 1999 06:45:00 16 SEP
1999 10:21:32 AM W/B 3.61
0.00| 2| 1
89.61 27.25
Admit 12 SEP 1999 16:45:00
Disch
Option 2 & 3 P D S Errors To Printer/Screen
This will analyse
current inpatients and display errors found (e.g. "W" shifts)
This will display the
following fields
The Ward
The Start of the shift
fragment (corrected date and time)
The End of the shift
fragment (corrected date and time)
The Shift Code
The Dependency value
found including "W" &
"X" insertions
The Hours of the
fragment
The weighted work
hours of the fragment
The Hours totals to
date
Unknown shifts will
display as "W" (I "W"onder what it was)
Unrequired Shifts will
display as "X"
A line of
"*****" will separate each admission
*******************************************************************************
xxxxxxx-xx WATT
WATT 15-09-99 13:23:00 15-09-99 15:00:00 AM W
1.62 0.00
20.99 2.14
*******************************************************************************
xxxxxxx-xx WATT
WATT 14-09-99 07:00:00 14-09-99 15:00:00 AM W
8.00 0.00
985.38 219.25
*******************************************************************************
Option 4 P D S Parameters
WE 4.4 PDS.PARAMS: TALONS-RBH 867 TALONS-RBH
01 PDS.PARAMS [PDS.PARAMS ]
02 NO SHIFTS [3 ]
03 COLLECT FACTORS
[Y ]
04 Archive Date [01 Jul 1998]
Enter Field No or Command
This screen allows the
entry of the Parameters, the only necessary parameter is the Collect factors.
Some sites choose to collect parameters, this flag switches this on or off. The
No Shifts used is determined automatically based on data in the PDS.MODELS file
Sites Using EX.XVI.PDS2.9D
Some sites may have an
option to specify a date to check for
data in the Archive file instead of the main file. Patient data on days prior
to the date will extract data from the
Archive file. The default value is
30/12/1967. Sites not archiving, or not extracting from archived data need not
worry about this field.
How is PDS Derived
ADM NO:381063-2
ED 31 MAY 1999 02:00:00 31 MAY
1999 12:00:00 N / 10.00
0.00| 1| 0
GMINF 31 MAY 1999 12:00:00 02 JUN 1999 20:23:00 AM /
56.38 0.00| 1| 1
GI 02 JUN 1999 20:23:00 05 JUN
1999 13:27:00 PM / 65.07
0.00| 1| 1
VSNS 05 JUN 1999 13:27:00 08 JUN
1999 14:05:00 AM / 72.63
0.00| 1| 1
ICU 08 JUN 1999 14:05:00 29 JUN
1999 14:16:00 AM / 504.18
0.00| 1| 0
GMINF 29 JUN 1999 14:16:00 02 JUL 1999 14:10:00 AM /
71.90 0.00| 1| 1
First the duplicated Ward
transfers (for Bed changes etc) are merged into one
Then a table is initialised
with all ward transfer dates and times in it
ED 31 MAY 1999 02:00:00 31 MAY
1999 12:00:00 N / 10.00
0.00| 1| 0
GMINF 31 MAY 1999 12:00:00 02 JUN 1999 20:23:00 AM /
56.38 0.00| 1| 1
GI 02 JUN 1999 20:23:00 04 JUN
1999 05:37:00 PM / 33.23
0.00| 1| 1
LEV 04 JUN 1999 05:37:00 05 JUN
1999 11:12:00 N / 29.58
0.00| 1|
GI 05 JUN 1999 11:12:00 05 JUN
1999 13:27:00 AM / 2.25
0.00| 1|
VSNS 05 JUN 1999 13:27:00 08 JUN
1999 14:05:00 AM / 72.63
0.00| 1| 1
ICU 08 JUN 1999 14:05:00 29 JUN
1999 14:16:00 AM / 504.18
0.00| 1| 0
GMINF 29 JUN 1999 14:16:00 02 JUL 1999 14:10:00 AM /
71.90 0.00| 1| 1
Leave is added as a logical
ward as appropriate
Note how the stay in GI is
now split into three bits GI LEV & GI
ED 31 MAY 1999 02:00:00 31 MAY
1999 07:00:00 N / 10.00
0.00| 1| 0
ED 31 MAY 1999 07:00:00 31 MAY
1999 12:00:00 AM / 0.00
0.00| 1|
GMINF 31 MAY 1999 12:00:00 31 MAY 1999 15:00:00 AM /
56.38 0.00| 1| 1
GMINF 31 MAY 1999 15:00:00 31 MAY 1999 23:00:00 PM /
0.00 0.00| 1|
GMINF 31 MAY 1999 23:00:00 01 JUN 1999 07:00:00 N /
0.00 0.00| 1|
GMINF 01 JUN 1999 07:00:00 01 JUN 1999 15:00:00 AM /
0.00 0.00| 1|
GMINF 01 JUN 1999 15:00:00 01 JUN 1999 23:00:00 PM /
0.00 0.00| 1|
GMINF 01 JUN 1999 23:00:00 02 JUN 1999 07:00:00 N /
0.00 0.00| 1|
GMINF 02 JUN 1999 07:00:00 02 JUN 1999 15:00:00 AM /
0.00 0.00| 1|
GMINF 02 JUN 1999 15:00:00 02 JUN 1999 20:23:00 PM /
0.00 0.00| 1|
GI 02 JUN 1999 20:23:00 02 JUN
1999 23:00:00 PM / 33.23
0.00| 1| 1
GI 02 JUN 1999 23:00:00 03 JUN
1999 07:00:00 N / 0.00
0.00| 1|
GI 03 JUN 1999 07:00:00 03 JUN
1999 15:00:00 AM / 0.00
0.00| 1|
GI 03 JUN 1999 15:00:00 03 JUN
1999 23:00:00 PM / 0.00
0.00| 1|
GI 03 JUN 1999 23:00:00 04 JUN
1999 05:37:00 N / 0.00
0.00| 1|
LEV 04 JUN 1999 05:37:00 04 JUN
1999 07:00:00 N / 29.58
0.00| 1|
LEV 04 JUN 1999 07:00:00 04 JUN
1999 15:00:00 AM / 0.00
0.00| 1|
LEV 04 JUN 1999 15:00:00 04 JUN
1999 23:00:00 PM / 0.00
0.00| 1|
LEV 04 JUN 1999 23:00:00 05 JUN
1999 07:00:00 N / 0.00
0.00| 1|
LEV 05 JUN 1999 07:00:00 05 JUN
1999 11:12:00 AM / 0.00
0.00| 1|
GI 05 JUN 1999 11:12:00 05 JUN
1999 13:27:00 AM / 2.25
0.00| 1|
VSNS 05 JUN 1999 13:27:00 05 JUN
1999 15:00:00 AM / 72.63
0.00| 1| 1
VSNS 05 JUN 1999 15:00:00 05 JUN
1999 23:00:00 PM / 0.00
0.00| 1|
VSNS 05 JUN 1999 23:00:00 06 JUN
1999 07:00:00 N / 0.00
0.00| 1|
VSNS 06 JUN 1999 07:00:00 06 JUN
1999 15:00:00 AM / 0.00
0.00| 1|
VSNS 06 JUN 1999 15:00:00 06 JUN
1999 23:00:00 PM / 0.00
0.00| 1|
VSNS 06 JUN 1999 23:00:00 07 JUN
1999 07:00:00 N / 0.00
0.00| 1|
VSNS 07 JUN 1999 07:00:00 07 JUN
1999 15:00:00 AM / 0.00
0.00| 1|
VSNS 07 JUN 1999 15:00:00 07 JUN
1999 23:00:00 PM / 0.00
0.00| 1|
VSNS 07 JUN 1999 23:00:00 08 JUN
1999 07:00:00 N / 0.00
0.00| 1|
VSNS 08 JUN 1999 07:00:00 08 JUN
1999 14:05:00 AM / 0.00
0.00| 1|
ICU 08 JUN 1999 14:05:00 08 JUN
1999 15:00:00 AM / 504.18
0.00| 1| 0
ICU 08 JUN 1999
15:00:00 08 JUN 1999 23:00:00 PM
/ 0.00 0.00| 1|
ICU 08 JUN 1999
23:00:00 09 JUN 1999 07:00:00 N
/ 0.00 0.00| 1|
ICU 09 JUN 1999 07:00:00 09 JUN
1999 15:00:00 AM / 0.00
0.00| 1|
…
…
…
ICU 27 JUN 1999
15:00:00 27 JUN 1999 23:00:00 PM
/ 0.00 0.00| 1|
ICU 27 JUN 1999
23:00:00 28 JUN 1999 07:00:00 N
/ 0.00 0.00| 1|
ICU 28 JUN 1999 07:00:00 28 JUN
1999 15:00:00 AM / 0.00
0.00| 1|
ICU 28 JUN 1999
15:00:00 28 JUN 1999 23:00:00 PM
/ 0.00 0.00| 1|
ICU 28 JUN 1999
23:00:00 29 JUN 1999 07:00:00 N
/ 0.00 0.00| 1|
ICU 29 JUN 1999 07:00:00 29 JUN
1999 14:16:00 AM / 0.00
0.00| 1|
GMINF 29 JUN 1999 14:16:00 29 JUN 1999 15:00:00 AM /
71.90 0.00| 1| 1
GMINF 29 JUN 1999 15:00:00 29 JUN 1999 23:00:00 PM /
0.00 0.00| 1|
GMINF 29 JUN 1999 23:00:00 30 JUN 1999 07:00:00 N /
0.00 0.00| 1|
GMINF 30 JUN 1999 07:00:00 30 JUN 1999 15:00:00 AM /
0.00 0.00| 1|
GMINF 30 JUN 1999 15:00:00 30 JUN 1999 23:00:00 PM /
0.00 0.00| 1|
GMINF 30 JUN 1999 23:00:00 01 JUL 1999 07:00:00 N /
0.00 0.00| 1|
GMINF 01 JUL 1999 07:00:00 01 JUL 1999 15:00:00 AM /
0.00 0.00| 1|
GMINF 01 JUL 1999 15:00:00 01 JUL 1999 23:00:00 PM /
0.00 0.00| 1|
GMINF 01 JUL 1999 23:00:00 02 JUL 1999 07:00:00 N /
0.00 0.00| 1|
GMINF 02 JUL 1999 07:00:00 02 JUL 1999 14:10:00 AM / 0.00 0.00| 1|
Then from the models file
and the Shift file, shift breaks are added and merged into the ward transfers.
Note that so far no
dependency data is looked at.
(In this instance, the stay
in ICU has been truncated for clarity)
ED 31 MAY 1999 02:00:00 31 MAY
1999 07:00:00 N X/X 5.00
0.00| 1| 1
ED 31 MAY 1999 07:00:00 31 MAY
1999 12:00:00 AM X/X 5.00
0.00| 1| 1
GMINF 31 MAY 1999 12:00:00 31 MAY 1999 15:00:00 AM D/D
3.00 1.16| 1| 1
GMINF 31 MAY 1999 15:00:00 31 MAY 1999 23:00:00 PM B/B
8.00 2.00| 1| 1
GMINF 31 MAY 1999 23:00:00 01 JUN 1999 07:00:00 N A/A
8.00 1.63| 1| 1
GMINF 01 JUN 1999 07:00:00 01 JUN 1999 15:00:00 AM C/C
8.00 2.53| 1| 1
GMINF 01 JUN 1999 15:00:00 01 JUN 1999 23:00:00 PM D/D
8.00 3.10| 1| 1
GMINF 01 JUN 1999 23:00:00 02 JUN 1999 07:00:00 N A/A
8.00 1.63| 1| 1
GMINF 02 JUN 1999 07:00:00 02 JUN 1999 15:00:00 AM C/C
8.00 2.53| 1| 1
GMINF 02 JUN 1999 15:00:00 02 JUN 1999 20:23:00 PM C/C
5.38 1.70| 1| 1
GI 02 JUN 1999 20:23:00 02 JUN
1999 23:00:00 PM C/C 2.62
0.83| 1| 1
GI 02 JUN 1999 23:00:00 03 JUN
1999 07:00:00 N B/B 8.00
2.00| 1| 1
GI 03 JUN 1999 07:00:00 03 JUN
1999 15:00:00 AM C/C 8.00
2.53| 1| 1
GI 03 JUN 1999 15:00:00 03 JUN
1999 23:00:00 PM E/E 8.00
4.22| 1| 1
GI 03 JUN 1999 23:00:00 04 JUN
1999 05:37:00 N C/C 6.62
2.10| 1| 1
LEV 04 JUN 1999 05:37:00 04 JUN
1999 07:00:00 N X/X 1.38
0.00| 1| 1
LEV 04 JUN 1999 07:00:00 04 JUN
1999 15:00:00 AM X/X 8.00
0.00| 1| 1
LEV 04 JUN 1999 15:00:00 04 JUN
1999 23:00:00 PM X/X 8.00
0.00| 1| 1
LEV 04 JUN 1999 23:00:00 05 JUN
1999 07:00:00 N X/X 8.00
0.00| 1| 1
LEV 05 JUN 1999 07:00:00 05 JUN
1999 11:12:00 AM X/X 4.20
0.00| 1| 1
GI 05 JUN 1999 11:12:00 05 JUN
1999 13:27:00 AM W/F 2.25
0.00| 1| 1
VSNS 05 JUN 1999 13:27:00 05 JUN
1999 15:00:00 AM F/F 1.55
0.99| 1| 1
VSNS 05 JUN 1999
15:00:00 05 JUN 1999 23:00:00 PM
E/E 8.00 4.22| 1| 1
VSNS 05 JUN 1999
23:00:00 06 JUN 1999 07:00:00 N
D/D 8.00 3.10| 1| 1
VSNS 06 JUN 1999 07:00:00 06 JUN
1999 15:00:00 AM E/E 8.00
4.22| 1| 1
VSNS 06 JUN 1999 15:00:00 06 JUN
1999 23:00:00 PM D/D 8.00
3.10| 1| 1
VSNS 06 JUN 1999 23:00:00 07 JUN
1999 07:00:00 N D/D 8.00
3.10| 1| 1
VSNS 07 JUN 1999 07:00:00 07 JUN
1999 15:00:00 AM F/F 8.00
5.09| 1| 1
VSNS 07 JUN 1999 15:00:00 07 JUN
1999 23:00:00 PM C/C 8.00
2.53| 1| 1
VSNS 07 JUN 1999 23:00:00 08 JUN
1999 07:00:00 N E/E 8.00
4.22| 1| 1
VSNS 08 JUN 1999 07:00:00 08 JUN
1999 14:05:00 AM F/F 7.08
4.51| 1| 1
ICU 08 JUN 1999 14:05:00 08 JUN
1999 15:00:00 AM X/X 0.92
0.00| 1| 1
ICU 08 JUN 1999
15:00:00 08 JUN 1999 23:00:00 PM
X/X 8.00 0.00| 1| 1
…
…
…
ICU 28 JUN 1999
23:00:00 29 JUN 1999 07:00:00 N
X/X 8.00 0.00| 1| 1
ICU 29 JUN 1999 07:00:00 29 JUN
1999 14:16:00 AM X/X 7.27 0.00| 1| 1
GMINF 29 JUN 1999 14:16:00 29 JUN 1999 15:00:00 AM F/F
0.73 0.47| 1| 1
GMINF 29 JUN 1999 15:00:00 29 JUN 1999 23:00:00 PM E/E
8.00 4.22| 1| 1
GMINF 29 JUN 1999 23:00:00 30 JUN 1999 07:00:00 N E/E
8.00 4.22| 1| 1
GMINF 30 JUN 1999 07:00:00 30 JUN 1999 15:00:00 AM E/E
8.00 4.22| 1| 1
GMINF 30 JUN 1999 15:00:00 30 JUN 1999 23:00:00 PM D/D
8.00 3.10| 1| 1
GMINF 30 JUN 1999 23:00:00 01 JUL 1999 07:00:00 N F/F
8.00 5.09| 1| 1
GMINF 01 JUL 1999 07:00:00 01 JUL 1999 15:00:00 AM E/E
8.00 4.22| 1| 1
GMINF 01 JUL 1999 15:00:00 01 JUL 1999 23:00:00 PM E/E
8.00 4.22| 1| 1
GMINF 01 JUL 1999 23:00:00 02 JUL 1999 07:00:00 N E/E
8.00 4.22| 1| 1
GMINF 02 JUL 1999 07:00:00 02 JUL 1999 14:10:00 AM F/F
7.17 4.56| 1| 1
Next the Dependency values
are looked for, for each shift or shift fragment.
As we have the definitive
location of the patient from the admissions system, only valid data is
collected.
Where there is no Model for
a ward, an X is used.
Where no value is found a W
is used.
In a further pass through
the data, where W can be replaced by the preceding or following shift value,
they are only interpolated from actual values read, not other inferred values.
Again ICU data is
abbreviated for clarity