Implementation and development experience of an AI‐assisted rostering system in a Hong Kong emergency department

Abstract Background Manual emergency department (ED) rostering is labour‐intensive and prone to inconsistency. We developed and implemented an artificial intelligence (AI)‐assisted rostering system that combined large language model (LLM)–supported coding with a constraint solver. This study describes its development, implementation and lessons learnt from real‐world use. Methods This implementation‐science project involved a clinician‐led team building a Python‐based rostering programme using ChatGPT for code generation and Google OR‐Tools for optimisation. Development followed iterative cycles of prototyping, testing and user feedback. The solver first generated a basic roster backbone of A (morning), P (afternoon), N (night) and O (off) duties under fixed, adjustable and soft constraints. A post‐processing module then translated these into duty subtypes to improve coverage. Implementation outcomes included efficiency, roster quality and coverage, assessed by workload balance, reduction of unfavourable patterns, fairness metrics and staff feedback. Results The system produced feasible rosters across five consecutive monthly cycles and reduced drafting time by over 90%. Roster quality improved with more balanced coverage among ranks, fairer duty and off‐day allocation and about 30% fewer unfavourable patterns. The model maintained consistent rest rules and equitable workload distribution. Early phases required constraint tuning and human verification, which decreased as the model stabilised. Informal feedback noted improved predictability, fairness and coverage stability. Conclusion An AI‐assisted rostering system was successfully developed and deployed in a clinical setting through iterative human–AI collaboration. LLM‐assisted programming enabled nonprogrammers to create adaptable operational tools. The modular backbone–post‐processing design allows replication in other EDs with minimal modification.

Authors

Institutions

Publication Details

Journal
Hong Kong Journal of Emergency Medicine
Published
2025-12-01
DOI
https://doi.org/10.1002/hkj2.70061
Primary Topic
Artificial Intelligence in Healthcare and Education
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Implementation and development experience of an AI‐assisted rostering system in a Hong Kong emergency department

Shu‐Wing Kung, Chi‐Kit Sin
Hong Kong Journal of Emergency Medicine
Artificial Intelligence in Healthcare and Education
article

Implementation and development experience of an AI‐assisted rostering system in a Hong Kong emergency department

Shu‐Wing Kung, Chi‐Kit Sin
article en

Abstract

Abstract Background Manual emergency department (ED) rostering is labour‐intensive and prone to inconsistency. We developed and implemented an artificial intelligence (AI)‐assisted rostering system that combined large language model (LLM)–supported coding with a constraint solver. This study describes its development, implementation and lessons learnt from real‐world use. Methods This implementation‐science project involved a clinician‐led team building a Python‐based rostering programme using ChatGPT for code generation and Google OR‐Tools for optimisation. Development followed iterative cycles of prototyping, testing and user feedback. The solver first generated a basic roster backbone of A (morning), P (afternoon), N (night) and O (off) duties under fixed, adjustable and soft constraints. A post‐processing module then translated these into duty subtypes to improve coverage. Implementation outcomes included efficiency, roster quality and coverage, assessed by workload balance, reduction of unfavourable patterns, fairness metrics and staff feedback. Results The system produced feasible rosters across five consecutive monthly cycles and reduced drafting time by over 90%. Roster quality improved with more balanced coverage among ranks, fairer duty and off‐day allocation and about 30% fewer unfavourable patterns. The model maintained consistent rest rules and equitable workload distribution. Early phases required constraint tuning and human verification, which decreased as the model stabilised. Informal feedback noted improved predictability, fairness and coverage stability. Conclusion An AI‐assisted rostering system was successfully developed and deployed in a clinical setting through iterative human–AI collaboration. LLM‐assisted programming enabled nonprogrammers to create adaptable operational tools. The modular backbone–post‐processing design allows replication in other EDs with minimal modification.

Hong Kong Journal of Emergency MedicineVol. 32(6)
Tseung Kwan O Hospital (CN)
Openalex Percentile: Top 68%
Artificial Intelligence in Healthcare and Education
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.