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 | else | next-task = pick based on workflow | return next-task |
|