Open Access
ARTICLE
Deadlock Verification of the Room Allocation Workflow in an EHR System Using UPPAAL
1 Department of Mathematics, Institut Teknologi Sepuluh Nopember, Surabaya, Indonesia
2 Department of Electrical Engineering, Universitas Jenderal Soedirman, Purwokerto, Indonesia
* Corresponding Author: Dieky Adzkiya. Email:
Computers, Materials & Continua 2026, 89(1), 91 https://doi.org/10.32604/cmc.2026.082012
Received 11 March 2026; Accepted 16 July 2026; Issue published 13 August 2026
Abstract
A systematic approach is necessary to address concurrency issues, timing violations, and logical safety breaches in healthcare systems, as traditional empirical testing often fails to uncover non-deterministic flaws that can endanger patient safety. This study proposes a rigorous formal verification methodology based on a triple-constraint framework to prove system reliability prior to the implementation phase. The patient room allocation workflow was modeled as a network of Timed Automata (TA) within the UPPAAL model checker, allowing for the formal evaluation of concurrent processes and shared resources. Our methodology follows three core phases: (1) Formalization, where critical requirements are translated into Timed Computation Tree Logic (TCTL) properties targeting three pillars: temporal bounds, safety invariants (e.g., category matching), and deadlock-freedom guarantees (e.g.,Keywords
Electronic Health Record (EHR) systems are critical healthcare infrastructure where software failures directly compromise patient safety [1–3]. These systems face significant concurrency challenges, particularly resource allocation conflicts in workflows like patient room assignment, which can trigger system deadlocks [4–6]. A deadlock occurs when processes permanently block each other while waiting for resources, satisfying the four Coffman Conditions [7]. Modern application layers using Object-Relational Mapping (ORM) further obscure these database-level locks, causing elusive failures [8]. Traditional testing is inadequate for detecting these “Heisenbugs” [9] due to non-determinism and the combinatorial explosion of execution states [10–12].
To overcome the fundamental limitations of traditional testing, the research area of formal verification employs rigorous mathematical techniques to prove system correctness. While advanced methods such as static analysis [13] and dynamic test generation [14] exist, they focus on implementation-level artifacts rather than on architectural design. Similarly, research into deadlock resolution through non-classical logics focuses on recovery rather than prevention [5]. Previous efforts to bridge the design gap, such as the use of Coloured Petri Nets (CPN) [15] and architectural simulations [16], primarily address untimed logical data flows. Consequently, these existing techniques either intervene too late in the development process or fail to account for the strict temporal constraints inherent in safety-critical healthcare workflows. Therefore, a prevention-by-design strategy [5,17,18] that identifies deadlocks at the fundamental design stage while explicitly capturing real-time behavior is essential.
To address this need, one must evaluate broader formal verification approaches. The model abstraction approach is used to simplify a model with large states to a smaller model which is invariant with respect to some properties [19,20], while the idea of verification based on Satisfiability Modulo Theories (SMT) is transforming the original verification problem into a satisfiability problem to be solved using an SMT solver [21,22]. While both approaches are highly effective, applying them directly as the primary gateway for real-time concurrent systems requires complex, manual encoding of continuous time and native concurrency semantics. Furthermore, probabilistic verification frameworks focus on the verification of stochastic models, providing probability-based reliability rather than the absolute deterministic safety guarantees required by safety-critical systems [18,23,24]. Because the problem considered in this paper is a hard real-time verification problem that demands strict, deterministic deadlock prevention, directly utilizing those three approaches as the initial modeling framework is not the most suitable solution. Consequently, we utilize the UPPAAL tool to verify real-time systems modeled as networks of Timed Automata (TA) [25] against Timed Computation Tree Logic (TCTL) properties [24,26], as it natively provides intuitive semantics for continuous clocks, guards, and synchronization.
Translating semi-formal design models like Unified Modeling Language (UML) into formal verification tools often introduces a semantic gap, where critical system behaviors become ambiguous or lost in translation [27]. Unlike related work translating UML to UPPAAL, our methodology uses a verified UPPAAL model to generate reliable UML artifacts (UPPAAL
This research employs a formal verification methodology using the model checking approach to prove the system’s design reliability prior to the implementation phase. That is, before the development team writes implementation code or even creates detailed design diagrams, the core logic of the system’s workflow is modeled and analyzed first. The design and development stages in the Software Development Life Cycle (SDLC), in Fig. 1, will only formally begin after the model (M) is proven to satisfy all critical specifications (

Figure 1: Formal verification framework for an EHR system within the context of problems and the software development life cycle.
The proposed methodology is specifically engineered to address a triple-constraint safety requirement: (1) Temporal Constraints, ensuring all critical operations meet strict timing upper-bounds; (2) Safety Invariants, preventing illegal system states such as category mismatches; and (3) Deadlock/Timelock Prevention, guaranteeing continuous system liveness in concurrent environments. These three pillars form the basis of our formal specifications (
The research process, conducted using the UPPAAL tool, consists of four main stages as shown in Fig. 1. The process begins with “Formalization”, where system requirements are translated into a formal property,
The execution of this research was supported by UPPAAL version 5.1.0 beta4 for modeling and verification, our custom-developed tool—PRISMA (Purwokerto Surabaya Integrated Software Engineering-Mathematic-Automata) Translator—for translating verified models into UML artifacts, and PlantUML for design visualization. The core process of this methodology can be summarized in the iterative refinement algorithm, as detailed in Algorithm 1. This algorithm enhances the iterative verification procedure established in the precedent LTL model checking study by Taryana et al. [28]. Furthermore, it leverages the framework by Famelis et al. [29] as the mathematical justification for this formal refinement loop, operationalizing concretization as the systematic transformation of an abstract model into a precise architecture. While their fundamental loop of verifying a model and refining it based on counterexamples remains the same, this enhanced approach utilizes TA to systematically incorporate and verify specific timing constraints—a critical step not addressed in their original logical framework. This gradual model refinement strategy, also known as the abstraction and refinement approach, has proven effective in verifying complex systems by explicitly integrating temporal parameters during the modeling phase, similar to the methodology applied in contemporary telerehabilitation system verifications [27].
This method involves modeling TA with UPPAAL to detect deadlocks, verifying TCTL properties like
2.1 Timed Automata Formalism and Notation
Before detailing the iterative refinement procedure, it is essential to establish the fundamental modeling formalism of the TA [31]. The core operations within our proposed algorithm systematically evaluate and manipulate the mathematical components of this formalism to ensure system safety and liveness.
Formally, a TA system is modeled as a tuple
• L is a finite set of locations (states) representing the system’s discrete configurations.
•
• C is a finite set of real-valued clocks that advance synchronously to measure the continuous passage of time.
• A is a set of actions or synchronization labels used for communication between concurrent automata via channels.
•
•
During the verification process, UPPAAL explores the state-space
As formulated in Algorithm 1, our methodology directly modifies the components of the tuple M to resolve these violations. For instance, timing violations are mitigated by actively tightening location invariants
Given the complexity of EHR systems, we narrow our formal verification scope to a specific Functional Requirement (FR), denoted as FR-Y (Patient Room Allocation Management), a workflow inherently susceptible to concurrent deadlocks [8]. The system is abstracted as a network of TA in UPPAAL, modeling components like patients and staff as individual automata. Functionally, the system maps patient data (ID, disease category) to available rooms, outputting either a compatible allocation or an unavailability warning. Consequently, this formal abstraction strictly isolates the deterministic Functional Requirements (FRs) of the system’s core logic, intentionally abstracting away Non-Functional Requirements (NFRs) such as network latency or hardware failures. To guarantee reliability, this TA network is subjected to a triple-constraint specification, mapping real-world requirements to mathematically verifiable properties via transition guards and state invariants:
• Temporal Constraints (
• Safety Invariants (
• Deadlock Prevention (
• Resource Exhaustion Handling: The idealistic assumption of perpetual room availability must be formally validated, ensuring safe patient queueing without violating the aforementioned temporal or liveness bounds.
To rigorously evaluate the triple-constraint specification (
The primary constraints are formally specified and verified as follows:
1. Deadlock Prevention (
2. Safety Invariants (
3. Temporal Constraints (

2.4 Iterative Verification and Refinement
The UPPAAL model checker was used to systematically explore the entire state-space of the model against the specified properties. This process was iterative: if the verifier found a property violation and produced a counterexample, the model was analyzed to identify the design flaw. The model was then refined and reverified. This cycle was repeated until the model was proven to satisfy all specified properties. Here are the four main iteration steps we performed.
2.4.1 Iteration 1 (Initial Model & Liveness Violation)
Our process began with an intuitive initial model. As depicted in Fig. 2, this iteration consisted of three main automata: Patient, Room, and a centralized AllocationSystem. The UPPAAL verifier extracted a counter-example trace (

Figure 2: UPPAAL model in iteration 1. A deadlock occurred due to circular dependency.
2.4.2 Iteration 2 (Decomposition & Safety Violation)
The AllocationSystem was broken down to better manage discrete categories. However, evaluating this new structure produced a new trace (

Figure 3: UPPAAL model in iteration 2. A safety violation emerged, resolved by adding explicit category-matching guards on the transitions.
2.4.3 Iteration 3 (Resource Release & Timing Violation)
In this iteration, logic for releasing a room was added to handle resource exhaustion. However, the verifier revealed a timing violation (

Figure 4: UPPAAL model in iteration 3. A timing violation occurred, resolved by adding clock invariants and reset actions to the waiting state.
2.4.4 Iteration 4 (Final Synchronized Model)
In the final iteration, the system’s structural components—invariants I, transition guards E, and synchronization channels A—were completely and correctly aligned. Visually, the final automata network displays a streamlined topology where every synchronization channel (e.g., req?, assign!, depicted in cyan) pairs perfectly without orphaned states or unconstrained loops (the comprehensive structure of this verified final iteration is presented as Fig. 5). The UPPAAL verifier confirmed that the state-space

Figure 5: UPPAAL model in iteration 4. The final structure verified to be deadlock-free.
2.5 Translation to Design Artifacts
To bridge the gap between formal verification and practical implementation, the proven formal model was systematically translated into UML design artifacts. This process relies on a consistent set of mapping rules to ensure the software’s architectural blueprint inherits the model’s guaranteed reliability. By establishing a direct correspondence between model elements and UML symbols, we maintain the integrity of the verified logic throughout the transition. This systematic synthesis prevents the introduction of new design errors during the documentation phase of the SDLC.
The translation is defined for the following key diagrams:
• Class Diagram: Automata templates are mapped to classes, their variables become attributes, and channel interactions imply methods or associations [27].
• Sequence Diagram: Instantiations of automata are represented as objects, while the synchronization signals exchanged between them are translated into messages to visualize their dynamic interactions [32].
• State Diagram: An automaton’s locations, transitions, and their corresponding guards and updates are directly mapped to states, transitions, and their respective labels to document each component’s internal behavior [33,34].
To automate this rigorous transformation process, we developed PRISMA Translator, a dedicated lightweight application. This tool is specifically engineered to parse the verified TA models from UPPAAL’s native Extensible Markup Language (XML) format and computationally convert them into PlantUML scripts representing the aforementioned Class, Sequence, and State Machine diagrams. Beyond automated generation, PRISMA Translator features an integrated interactive text editor. This allows software engineers to directly modify and refine the generated PlantUML scripts in real-time to seamlessly resolve any syntactical discrepancies or customize the final artifacts.
The methodology was validated across three distinct dimensions to ensure a comprehensive assessment of the system’s reliability, as illustrated in the integrated workflow in Fig. 6. The analysis focused on the logical correctness of safety properties, the efficiency of iterative model refinement, and the structural integrity of the synthesized UML artifacts. This multi-faceted validation demonstrates that the final model is both theoretically robust and practically applicable for safety-critical software engineering.

Figure 6: Integrated workflow of the triple-constraint formal verification approach for room allocation.
3.1 Verification of Safety and Liveness Properties
The primary validation was conducted using the UPPAAL model checker to exhaustively explore the state space of the room allocation workflow. The verifier confirmed that the core safety property (
In accordance with the proposed triple-constraint framework and the iterative refinement algorithm, we validated the functional integrity of the system through the following TCTL specifications:
• Category Matching (
• Temporal Bound (
• Deadlock-Freedom & Progress (
3.2 Empirical Analysis of Model Refinement
The efficacy of the iterative approach is demonstrated by the incremental elimination of specific concurrency violations that were discovered during each verification run. In the transition from Iteration 1 to 2, we validated that structural decomposition effectively reduces component-level complexity, although it necessitates more robust synchronization. Subsequently, the shift from Iteration 3 to 4 proved that basic resource release logic is insufficient to prevent deadlock without a serialized state-based signaling protocol.
The growth in model complexity, as illustrated in Fig. 7, serves as an empirical metric for this design evolution. It shows that higher design maturity, reflected in the increased number of states and transitions, was necessary to achieve zero-deadlock guarantees. This systematic increase in complexity represents a controlled effort to harden the system’s architecture against non-deterministic failures.

Figure 7: The growth of model complexity to ensure reliability.
To validate the practical utility of this formal approach, we performed a thorough traceability check. The iterative refinement process, detailed in Table 1, resulted in a final model proven to be deadlock free. As presented in Fig. 5, the key to this formal correctness was a significant restructuring of the PatientAssigner automaton into a distinct state-based signaling mechanism.

3.3 Computational Feasibility and State-Space Analysis
This section demonstrates the execution simulation of the final refined model under conditions where the number of concurrent patients (N) matches or exceeds the total number of available rooms or shared resources (R, where
It is important to note that the temporal threshold in
The exact state-space exploration tasks were conducted on a computer equipped with an Intel Xeon E3-1245 v2 Central Processing Unit (CPU 4 cores, 8 threads) clocked at 3.40 GHz and 16 GB Random Access Memory (RAM). Every time a new process instance is introduced into the concurrent pool (i.e., an additional Patient automaton template), the computational overhead scales non-linearly rather than linearly. The system must exhaustively calculate all potential non-deterministic interactions and interleavings among the active patient entities and shared room states. Mathematically, the configuration state space grows exponentially following the scale of
As a consequence of this exponential expansion, scaling from

To evaluate the architecture’s scalability without exhausting physical memory, we transition from exact verification to Statistical Model Checking (SMC). Because exact verification suffers from state-space explosion at higher dimensions, SMC provides a highly effective alternative by estimating satisfaction probabilities through randomized simulation runs. Crucially, because SMC relies on finite simulation traces rather than exhaustive state-space traversal, it inherently cannot evaluate explicit deadlock queries. Therefore, it is an absolute prerequisite that the system’s freedom from deadlocks is first rigorously proven using exact verification. Once structurally validated, SMC is utilized to evaluate three fundamental properties: Reachability (
As summarized in Table 3, Statistical Model Checking (SMC) allows the framework to scale up to

A detailed analysis of the performance metrics reveals the computational nature of the system’s verification bottleneck. CPU time scales gracefully and linearly for
3.4 Generalized Blueprint and Verification Prerequisites for EHR Workflows
To establish a concrete empirical baseline for our formal verification framework, we conducted an architectural workflow analysis of OpenMRS (https://github.com/openmrs/openmrs-core), a widely adopted open-source Electronic Health Record (EHR) system. This platform selection is directly motivated by its global prominence and superior user performance in executing core clinical tasks [35]. Because the OpenMRS core is inherently Java-based, its underlying Object-Oriented Programming (OOP) paradigm aligns seamlessly with the structural modeling principles of TA. In this context, software classes translate naturally into parameterized automata templates, while dynamic object interactions map directly to synchronization channels.
As detailed in Table 4, we systematically decompose several critical clinical workflows to demonstrate the broader extensibility of our approach. It is crucial to clarify that while the foundational operations listed in the first column are natively derived from the OpenMRS ecosystem, the subsequent mapping parameters (Columns 2 to 5) are not inherent features of the software. Rather, the defined Automata Candidates, Shared Resources, Matching Logic, and Timing Constraints represent our novel theoretical engineering—a conceptual construct deliberately formulated by the authors to translate standard EHR routines into verifiable mathematical models.

This mapping illustrates that defining explicit candidates for concurrent automata, heavily contended shared resources, strict logical matching constraints, and critical temporal invariants constitutes the fundamental prerequisites for executing the verification process. While the Room Allocation workflow serves as the primary empirical focus of this study, this generalized blueprint explicitly confirms that our proposed methodology is highly capable of modeling and verifying a wide spectrum of other complex EHR operations. Ultimately, fulfilling these structural requirements provides the foundational raw materials necessary to construct robust TA models, enabling rigorous formal verification and temporal analysis natively within the UPPAAL environment.
3.5 Synthesis and Traceability of Design Artifacts
By applying the mapping rules established in Section 2.5, the PRISMA Translator successfully generated the complete UML suite. As summarized in Table 5, the formal-to-design synthesis ensures a deterministic mapping from TA to Class, Sequence, and State Machine diagrams.

While Class and Sequence diagrams are successfully generated to capture the static object structures and message-passing protocols, this paper focuses its visual demonstration and in-depth analysis on the behavioral modeling component. The internal logic of the verified system is documented through the State Machine Diagram, as illustrated in Fig. 8. This high-fidelity translation allows the development team to implement the internal state-machine logic of the system components with mathematical certainty.

Figure 8: Integrated state machine diagram generated from the final UPPAAL model.
Among all the synthesized UML artifacts, the State Machine Diagram serves as the most critical architectural blueprint, owing to its direct isomorphism with the underlying TA model. This one-to-one mapping allows for a lossless translation of the verified triple-constraint specification into practical software design. In particular, the TA’s location invariants (e.g., strict temporal bounds such as
3.6 Case Study Execution and Expert Validation: Radiotherapy and Room Allocation Workflow
We selected two critical EHR workflows: the previously discussed room allocation and a newly adopted radiotherapy model from a hospital in Purwokerto, Indonesia. While representing local best practices, the current operational workflow lacks strict time constraints. Expert physicians clinically validated that adding temporal constraints and state invariants is crucial, confirming the logical feasibility of implementing this enhanced workflow.
The radiotherapy UPPAAL TA model emphasizes safety and resource efficiency via an automatic preemption mechanism, allowing emergency (statim or STAT) patients to preempt regular patients when the Computed Tomography (CT) machine, Treatment Planning System(TPS) computer, and Linear Accelerator (LINAC) are at full capacity. To prevent state-space explosion in large-scale simulations, a global semaphore-based Counting Abstraction is synchronized with local clocks and safety timeouts, guaranteeing a deadlock-free system. The topology, preemption transitions, and guard functions follow Algorithm 1. As shown in Fig. 9, the verified final automaton is deadlock-free and satisfies all safety and temporal constraints.

Figure 9: The final radiotherapy automata.
The state-space explosion stems from the automata’s design architecture, not workflow bias. Using exact UPPAAL verification, both the four-automata room allocation and the single-modular radiotherapy models satisfy deadlock-freedom, safety, and temporal guarantees. However, scaling the resource requesters (N) reveals stark computational contrasts. The room allocation design hits an Out-Of-Memory (OOM) error at

Figure 10: Comparative visualization of verification performance: (a) The line graph illustrates failures due to a state-space explosion, triggering an OOM when
Finally, the verified Radiotherapy Automaton satisfying the triple constraints is translated into class, sequence, and state diagrams (e.g., the PlantUML script in Listing 1) using PRISMA translator. Transforming these UML blueprints into object-oriented skeleton code (e.g., Java, C++) falls under the SDLC [36,37]. Thus, this study limits its scope to artifact generation, as indicated by arrow 3 in Fig. 1.

The architectural evolution of our room allocation model demonstrates that intuitive design cannot safeguard concurrent EHR workflows against non-deterministic bugs. To articulate the significance of these findings, this section synthesizes the framework’s theoretical and practical implications. We first analyze how hierarchical orchestration breaks core concurrency deadlocks, followed by a comparative benchmarking that underscores the necessity of dense-time verification and proactive blueprint synthesis. Finally, we assess practical deployment feasibility, focusing on queueing scalability under dynamic loads. Within this context, UPPAAL’s exact verification serves as the primary deterministic frontline—successfully scaled via its integrated SMC extension—while the future roadmap integrates external symbolic SMT to handle infinite-state hospital-wide complexities.
4.1 Resolving Concurrency via Orchestration
The “Heisenbugs” in early iterations were driven by Circular Wait and Hold and Wait conditions [38]. As depicted in Fig. 11, we resolved this by transitioning from a decentralized resource-grab approach to a hierarchical orchestration using the PatientAssigner. This structural change enforced a strictly ordered, predictable protocol. The verified property

Figure 11: Architectural transition from (a) decentralized competition to (b) hierarchical orchestration. By introducing the Assigner as a central orchestrator, the circular wait identified in previous designs is eliminated, ensuring liveness.
4.2 Comparative Analysis: Beyond Structural Logic
A key contribution of this work is its temporal granularity. While Mukhlash et al. [15] successfully modeled workflows using Coloured Petri Nets (CPN) focusing on logical reachability, their approach abstracts away continuous time (Fig. 12). Although this foundational CPN methodology was later enhanced by Medina-Garcia et al. [16] through architectural simulations and conformance checking to evaluate system performance, such simulation-based techniques fundamentally evaluate specific execution traces rather than providing exhaustive mathematical proofs. Our use of Timed Automata (TA) addresses this exact gap by introducing dense-time TCTL invariants, which are crucial for safety-critical triage where minor delays can be catastrophic.

Figure 12: Comparison of modeling granularity. (a) Mukhlash et al. [15] and Medina-Garcia et al. [16] focus on discrete process flows and simulations. (b) Our proposed TA model integrates explicit clock variables (
Unlike static analysis tools, our methodology verifies safety within specific temporal bounds. The property
4.3 Performance Evaluation and Trade-Off Analysis
To ensure a fair comparison, we stress-tested the benchmarked frameworks by replicating their mathematical structures up to
Similarly, we modeled Mukhlash et al.’s Coloured Petri Net (CPN) [15] using an object-oriented replica. Tokens encapsulate three financial variables (SO Cost, PCP Cost, PO Cost) as transition guards over macro-level timelines, incorporating empirical delays like
Ultimately, Table 6 highlights a crucial trade-off between computational cost and verification rigor. Medina et al.’s simulation minimizes overhead but lacks the formal safety guarantees vital for healthcare. Conversely, exact state-space exploration (Mukhlash et al. and our exact TA) provides mathematical certainty but is practically unusable under heavy concurrency due to catastrophic memory limits. The proposed SMC methodology emerges as the optimal pragmatic solution. By leveraging statistical trace simulations within defined (

4.4 The Proactive Paradigm vs. Reactive Validation
Our methodology represents a fundamental shift from the reactive “UML-to-UPPAAL” validation proposed by Arfi et al. [27]. Their framework uses formal verification as a post-hoc diagnostic tool, often causing a “Redundancy Penalty” as engineers repeatedly oscillate between design and verification layers to fix late-stage bugs. By contrast, we adopt a proactive synthesis strategy (UPPAAL

Figure 13: Paradigm shift in workflow. (a) The reactive validation loop by Arfi et al. [27] compared to (b) our proactive approach, which derives verified UML blueprints directly from a mathematically proven state-space.
4.5 Practical Deployment and Integration Feasibility
It is crucial to delineate that this framework focuses strictly on design-level formal verification, culminating in mathematically verified Object-Oriented UML blueprints that remarkably narrow the gap between theoretical design and practical implementation. By providing exact structural data via Class Diagrams for ORM-based persistence and dynamic behavioral logic via State Machine Diagrams, developers are equipped with a zero-defect architectural baseline before coding begins. This intentional boundary underscores a “prevention-by-design” paradigm, systematically eliminating structural flaws early rather than treating verification as a supplementary testing burden at the development’s tail end.
In addition, the core mathematical architecture of the proposed triple-constraint framework is inherently workflow-agnostic and extensible. Utilizing generic TA primitives, the methodology can be systematically replicated for other safety-critical modules—such as medication prescribing or surgical scheduling—while relying on SMC to manage state-space explosion in larger heterogeneous environments. Although formal methods do not directly evaluate human-centric attributes, the “UPPAAL
4.6 Addressing State-Space Explosion via Statistical Model Checking (SMC)
Although TA via UPPAAL is strategically maintained as the primary modeling gateway to provide absolute deterministic guarantees against deadlocks and timing violations, this exhaustive verification empirically faces inherent computational boundaries—specifically, state-space explosion—as the number of concurrent processes scales up (
4.7 Timing Calibration and Queueing Scalability
Within the exact verification framework, evaluating the timing property (
In evaluating this queueing scalability, the resource capacity was deliberately fixed (
This study confirms that formal verification utilizing UPPAAL model checking robustly guarantees the reliability of patient room allocation workflows. Applying the proposed iterative refinement algorithm systematically stripped the system design of critical flaws to satisfy the triple-constraint specification. To illustrate, the final Timed Automata model is mathematically proven free from deadlocks and timelocks (
Building upon these results, this methodology can effectively adapt to other critical healthcare workflows demanding high-integrity concurrency management, such as medical equipment, medication prescribing, surgery scheduling, laboratory orders, pharmacy dispensing, and program enrollment. However, while establishing a mathematically sound design, verification boundaries are strictly confined to deterministic Functional Requirements (FRs); human-centric usability, design-driven maintainability, network latencies, and asynchronous infrastructure-level Non-Functional Requirements (NFRs) were abstracted away to isolate core architectural flaws. To address these boundaries, future iterations will incorporate Timed Game Automata (TGA) and Stochastic Timed Automata (STA) to natively model triage interruptions and stochastic medical events. Moreover, future work will integrate SMT Solvers as a backend decision procedure to evaluate exact computation latencies in infinite-state domains, combining this symbolic integration with advanced abstraction and symmetry reduction to maintain feasibility at hospital-wide scales.
Acknowledgement: Not applicable.
Funding Statement: This research was funded by Directorate of Research, Technology, and Community Service, Ministry of Education, Culture, Research, and Technology, Indonesian Government, through the Doctoral Dissertation Research scheme (main contract number 112/E5/PG.02.00.PL/2023 and researcher contract number 1926/PKS/ITS/2023).
Author Contributions: The authors confirm contribution to the paper as follows: Conceptualization, Acep Taryana, Dieky Adzkiya and Imam Mukhlash; methodology, Acep Taryana; software, Acep Taryana; validation, Acep Taryana, Dieky Adzkiya, Muhammad Syifa’ul Mufid and Imam Mukhlash; formal analysis, Acep Taryana; investigation, Muhammad Syifa’ul Mufid; resources, Imam Mukhlash; data curation, Dieky Adzkiya; writing—original draft preparation, Acep Taryana; writing—review and editing, Dieky Adzkiya; visualization, MS Mufid; supervision, Imam Mukhlash and Muhammad Syifa’ul Mufid; project administration, Dieky Adzkiya; funding acquisition, Dieky Adzkiya. All authors reviewed and approved the final version of the manuscript.
Availability of Data and Materials: Not applicable.
Ethics Approval: Not applicable.
Conflicts of Interest: The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
References
1. Arcaini P, Bonfanti S, Gargantini A, Mashkoor A, Riccobene E. Integrating formal methods into medical software development: the ASM approach. Sci Comput Program. 2018;158(6):148–67. doi:10.1016/j.scico.2017.07.003. [Google Scholar] [CrossRef]
2. Sittig DF, Wright A, Coiera E, Magrabi F, Ratwani R, Bates DW, et al. Current challenges in health information technology–related patient safety. Health Inform J. 2020;26(1):181–9. doi:10.1177/1460458218814893. [Google Scholar] [PubMed] [CrossRef]
3. Khan S, Akhtar N, Mushtaq MF, Abdel Samee N, Mahmoud NF, Ashraf I. Towards robust electronic health record systems: integrating formal verification and process modeling techniques. BMC Med Res Methodol. 2025;25(1):215. doi:10.1186/s12874-025-02637-8. [Google Scholar] [CrossRef]
4. Parveen R, Ruchkin I, Laurel A, Goveas N, Blouin D. Modelling and verification of resource allocation for healthcare systems. Res Sq. 2024. doi:10.21203/rs.3.rs-4650586/v1. [Google Scholar] [CrossRef]
5. Hassan MH, Darwish SM, Elkaffas SM. An efficient deadlock handling model based on neutrosophic logic: case study on real time healthcare database systems. IEEE Access. 2022;10(6):76607–21. doi:10.1109/ACCESS.2022.3192414. [Google Scholar] [CrossRef]
6. Mejia JMR, Rawal A, Rawat DB. Finite state automata for real-time health electronic record update: a survey. In: Proceedings of the 2022 IEEE Global Humanitarian Technology Conference (GHTC); 2022 Sep 8–11; Santa Clara, CA, USA. p. 154–61. doi:10.1109/GHTC55712.2022.9911007. [Google Scholar] [CrossRef]
7. Coffmann Coffman EG, Elphick MJ, Soshani A. System deadlocks. Computing. 1971;3(2):67–78. doi:10.1145/356586.356588. [Google Scholar] [CrossRef]
8. Dong Z, Wang Z, Yi C, Xu X, Zhang J, Li J, et al. Database deadlock diagnosis for large-scale ORM-based web applications. In: Proceedings of the International Conference on Data Engineering; 2023 Apr 3–7; Anaheim, CA, USA. p. 2864–77. doi:10.1109/ICDE55515.2023.00219. [Google Scholar] [CrossRef]
9. Cray J. Why do computers stop and what can be done about it? In: Proceedings of the Symposium on Reliability in Distributed Software and Database Systems; 1986 Jan 13–15; Los Angeles, CA, USA. p. 3–12. [Google Scholar]
10. Fu H, Wang Z, Chen X, Fan X. A systematic survey on automated concurrency bug detection, exposing, avoidance, and fixing techniques. Softw Qual J. 2018 sep;26(3):855–89. doi:10.1007/s11219-017-9385-3. [Google Scholar] [CrossRef]
11. Jula H, Tralamazza D, Zamfir C, Candea G. Deadlock immunity: enabling systems to defend against deadlocks. In: Proceedings of the 8th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2008; 2008 Dec 8–10; San Diego, CA, USA. p. 295–308. [Google Scholar]
12. Kheradmand A, Kasikci B, Candea G. Lockout: efficient testing for deadlock bugs. In: Proceedings of the Workshop on Determinism and Correctness in Parallel Programming (WoDet) 2014; 2014 Mar 2; Salt Lake City, UT, USA. [Google Scholar]
13. Xu Z, Zhu J, Yang L, Zuo C. Mining the relationship between object-relational mapping performance anti-patterns and code clones. In: Proceedings of the International Conference on Software Engineering and Knowledge Engineering, SEKE 2023; 2023 Jul 1–10; South San Francisco, CA, USA. p. 136–41. doi:10.18293/SEKE2023-161. [Google Scholar] [CrossRef]
14. Khanna D, Purandare R, Sharma S. Synthesizing multi-threaded tests from sequential traces to detect communication deadlocks. In: Proceedings of the 2021 IEEE 14th International Conference on Software Testing, Verification and Validation, ICST 2021; 2021 Apr 12–16; Porto de Galinhas, Brazil. p. 1–12. doi:10.1109/ICST49551.2021.00013. [Google Scholar] [CrossRef]
15. Mukhlash I, Rumana WN, Adzkiya D, Sarno R. Business process improvement of production systems using coloured petri nets. Bull Electr Eng Inform. 2018;7(1):102–12. doi:10.11591/eei.v7i1.845. [Google Scholar] [CrossRef]
16. Medina-Garcia S, Medina-Marin J, Montaño-Arango O, Gonzalez-Hernandez M, Hernandez-Gress ES. A petri net approach for business process modeling and simulation. Appl Sci. 2023;13(20):11192. doi:10.3390/app132011192. [Google Scholar] [CrossRef]
17. Woodcock J, Larsen PG, Bicarregui J, Fitzgerald J. Formal methods: practice and experience. ACM Comput Surv. 2009;41(4):19. doi:10.1145/1592434.1592436. [Google Scholar] [CrossRef]
18. Baier C, Katoen JP. Principles of model checking. Vol. 950. Cambridge, MA, USA: MIT Press; 2008. [Google Scholar]
19. Kurshan RP. Model checking and abstraction. In: Koenig S, Holte RC, editors. Abstraction, reformulation, and approximation. Berlin/Heidelberg, Germany: Springer; 2002. p. 1–17. doi:10.1007/3-540-45622-8_1. [Google Scholar] [CrossRef]
20. Grumberg O. Abstraction and refinement in model checking. In: de Boer FS, Bonsangue MM, Graf S, de Roever WP, editors. Formal methods for components and objects. Berlin/Heidelberg, Germany: Springer; 2006. p. 219–42. doi:10.1007/11804192_11. [Google Scholar] [CrossRef]
21. De Moura L, Bjørner N. Satisfiability modulo theories: an appetizer. In: Formal methods: foundations and applications. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). Vol. 5902. Berlin/Heidelberg, Germany: Springer; 2009. p. 23–36. doi:10.1007/978-3-642-10452-7_3. [Google Scholar] [CrossRef]
22. Biere A, Cimatti A, Clarke E, Zhu Y. Symbolic model checking without BDDs. In: Tools and Algorithms for the Construction and Analysis of Systems: 5th International Conference, TACAS’99. Berlin/Heidelberg, Germany: Springer; 1999. p. 193–207. doi:10.1007/3-540-49059-0_14. [Google Scholar] [CrossRef]
23. Kwiatkowska M, Norman G, Parker D. PRISM 4.0: verification of probabilistic real-time systems. In: Proceedings of the Computer Aided Verification: 23rd International Conference, CAV 2011; 2011 Jul 14–20; Snowbird, UT, USA. Berlin/Heidelberg, Germany: Springer; 2011. p. 585–91. doi:10.1007/978-3-642-22110-1_47. [Google Scholar] [CrossRef]
24. Nigro L, Cicirelli F. Correctness verification of mutual exclusion algorithms by model checking. Modelling. 2024;5(3):694–719. doi:10.3390/modelling5030037. [Google Scholar] [CrossRef]
25. Bengtsson J, Larsen KG, Larsson F, Pettersson P, Yi W. UPPAAL—a tool suite for automatic verification of real-time systems. BRICS Rep Ser. 1996;3(58). doi:10.7146/brics.v3i58.18769. [Google Scholar] [CrossRef]
26. Alur R, Courcoubetis C, Dill D. Model-checking in dense real-time. Inf Comput. 1993;104(1):2–34. doi:10.1006/inco.1993.1024. [Google Scholar] [CrossRef]
27. Arfi F, Courbis AL, Lambolais T, Bughin F, Hayot M. Formal verification of a telerehabilitation system through an abstraction and refinement approach using Uppaal. IET Softw. 2023;17(4):582–99. doi:10.1049/sfw2.12128. [Google Scholar] [CrossRef]
28. Taryana A, Adzkiya D, Mufid MS, Mukhlash I, Abate A. LTL model checking for verification of electronic medical record (EMR) design. Springer Proc Math Stat. 2024;455(2):283–97. doi:10.1007/978-981-97-2136-8_21. [Google Scholar] [CrossRef]
29. Famelis M, Salay R, Chechik M. Partial models: towards modeling and reasoning with uncertainty. In: Proceedings of the 34th International Conference on Software Engineering; 2012 Jun 2–9; Zurich, Switzerland. p. 573–83. doi:10.1109/ICSE.2012.6227159. [Google Scholar] [CrossRef]
30. Behrmann G, David A, Larsen KG. A tutorial on UPPAAL. In: Formal methods for the design of real-time systems. SFM-RT 2004. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). Vol. 3185. Berlin/Heidelberg, Germany: Springer; 2004. p. 200–36. doi:10.1007/978-3-540-30080-9_7. [Google Scholar] [CrossRef]
31. Alur R, Dill DL. A theory of timed automata. Theor Comput Sci. 1994;126(2):183–235. doi:10.1016/0304-3975(94)90010-8. [Google Scholar] [CrossRef]
32. Duangmalai S, Dechsupa C. Transforming of the sequence diagram into time-automata network. In: Proceedings of the International Multi Conference of Engineers and Computer Scientists IMECS 2023; 2023 Mar 15–17; Hong Kong, China. p. 147–52. [Google Scholar]
33. Zorin D, Podymov V. Translation of UML statecharts to UPPAAL automata for verification of real-time systems. In: Proceedings of the Spring/Summer Young Researchers’ Colloquium on Software Engineering; 2012 May 30–31; Perm, Russia. doi:10.15514/syrcose-2012-6-13. [Google Scholar] [CrossRef]
34. Peres F, Ghazel M. A proven translation from a UML state machine subset to timed automata. ACM Trans Embed Comput Syst. 2024;23(5):72. doi:10.1145/3581771. [Google Scholar] [CrossRef]
35. Purkayastha S, Allam R, Maity P, Gichoya JW. Comparison of open-source electronic health record systems based on functional and user performance criteria. Healthc Inform Res. 2019;25(2):89–98. doi:10.4258/hir.2019.25.2.89. [Google Scholar] [PubMed] [CrossRef]
36. Sunitha EV, Samuel P. Automatic code generation from UML state chart diagrams. IEEE Access. 2019;7:8591–608. doi:10.1109/ACCESS.2018.2890791. [Google Scholar] [CrossRef]
37. Apostol D, Rusovan P, Marcu M. UML to code, and code to UML, a view inside implementation challenges and cost. In: Proceedings of the 2022 26th International Conference on System Theory, Control and Computing (ICSTCC); 2022 Oct 19–21; Sinaia, Romania. p. 140–5. doi:10.1109/ICSTCC55426.2022.9931871. [Google Scholar] [CrossRef]
38. Silberschatzh A, Galvin PB, Gagne G. Operating system concepts. 10th ed. Vol. 11. Hoboken, NJ, USA: Laurie Rosatone; 2018. [Google Scholar]
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF
Downloads
Citation Tools