PathWISE: Multi-Agent Cancer Pathway Triaging Ontology Learning from Clinical Flowcharts

📅 2026-05-25
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Clinical pathways are often published as unstructured flowcharts whose visual encoding logic is not directly computable by automated systems. This work proposes a five-stage pipeline integrating multi-agent collaboration, deterministic graph algorithms, and compiler verification to automatically transform such flowcharts into verifiable, executable HL7 Clinical Quality Language (CQL) code, deployable as FHIR CDS Hooks services. By innovatively combining large language model agents, typed directed graph construction, semantic computability auditing, and Java-based CQL-to-ELM compiler validation, the approach achieves 100% CQL compilation success and zero terminology hallucinations across five UK NHS cancer pathways. It precisely identifies all non-computable nodes—up to 183 per pathway—preserving compilability through placeholders while uncovering 544 governance issues, all without compromising patient pathway coverage.
📝 Abstract
Clinical pathways are disseminated as visual flowcharts where spatial topology, arrow direction, colour coding, and font weight encode critical triage logic that remains inaccessible to computational systems. We present PathWISE, a five-phase pipeline combining four LLM-based agents with a deterministic depth-first search auditor and a Java compiler critic, transforming these non-computable artefacts into validated, executable HL7 Clinical Quality Language (CQL) libraries deployable as FHIR CDS Hooks services. Purpose-built agents extract flowchart structure into a typed directed graph, perform deterministic path enumeration, conduct a structured semantic audit of every node's computability, generate terminology-constrained CQL definitions verified by the official Java CQL-to-ELM compiler, and produce routing logic covering 100% of enumerated patient journeys. Demonstrated across five UK NHS cancer pathways (colorectal, lung, skin, upper GI, and breast), PathWISE audits up to 183 nodes (182 under the Hybrid configuration), identifies 544 structured governance findings across four issue categories, achieves 100% syntactic compilation success, with UNCOMPUTABLE nodes receiving false placeholders that preserve compilability while surfacing governance gaps for clinical review, and produces zero hallucinated terminology codes for dictionary-covered concepts. Critically, PathWISE confines non-deterministic LLM inference to knowledge extraction while deterministic graph mathematics and a standard compiler underpin every verification step.
Problem

Research questions and friction points this paper is trying to address.

clinical pathways
flowcharts
computability
triage logic
CQL
Innovation

Methods, ideas, or system contributions that make the work stand out.

multi-agent LLM
clinical pathway automation
executable CQL generation
deterministic graph auditing
FHIR CDS Hooks
🔎 Similar Papers
No similar papers found.
Sofiat Abioye
Sofiat Abioye
AI Researcher/Software Engineer, Birmingham City University
digital healthprecision medicinemedication management
U
Ufaq Khan
Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, UAE
S
Shazad Ashraf
University Hospitals Birmingham NHS Foundation Trust, Birmingham, UK
M
Mohammed Adil Butt
Birmingham City University, Birmingham, UK
A
Andrew D. Beggs
University Hospitals Birmingham NHS Foundation Trust, Birmingham, UK
A
Adam Byfield
NHS England (National Health Service), London, UK
A
Anusha Jose
NHS England (National Health Service), London, UK
W
William Poulett
NHS England (National Health Service), London, UK
B
Ben Wallace
NHS England (National Health Service), London, UK
Junaid Qadir
Junaid Qadir
Professor of Computer Engineering, Qatar University
Human-centered AIAI EthicsEngineering EducationAI in EducationHealthcare AI
Muhammad Bilal
Muhammad Bilal
Professor of Applied AI and Technology Ethics at Birmingham City University
Big DataApplied AI InnovationAI AssuranceSoftware Engineering