Journal of Healthcare Engineering / 2016 / Article / Psdc 1

Research Article

Assessment of the Nurse Medication Administration Workflow Process

Pseudocode 1

MAP computer simulation model high-level pseudocode.
Setup procedure
Initialize variables
Draw floor layout of units
Generate RN agents and patients for each unit
Create RN characteristics
Simulate procedure
(RN, RN.task) = pick from the front of priority queue
if RN.task = 0 then go-to-next-room
next-task = ask RN to do-task RN.task
add (RN, next-task, duration-of next-task) to priority
queue until no more patients left
do-task [task] function
if task is a conditional
result = run conditional
next-task = pick based on result and workflow
next-task = pick based on workflow
return next-task

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.