<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Improving Emergency Department Processes Using Coloured Petri Nets</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Khodakaram Salimifard</string-name>
          <email>salimifard@pgu.ac.ir</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Seyed Yaghoub Hosseini</string-name>
          <email>hosseini@pgu.ac.ir</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mohammad Sadegh Moradi</string-name>
          <email>msadeghmoradi@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Business Management Department, Persian Gulf University</institution>
          ,
          <addr-line>Bushehr</addr-line>
          ,
          <country country="IR">Iran</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Industrial Management Department, Persian Gulf University</institution>
          ,
          <addr-line>Bushehr</addr-line>
          ,
          <country country="IR">Iran</country>
        </aff>
      </contrib-group>
      <fpage>335</fpage>
      <lpage>350</lpage>
      <abstract>
        <p>With increasing demand for medical services, emergency departments (ED) are facing problems such as overcrowding and dissatisfaction. Improving the key performance indicators of EDs has been the focal point of healthcare management. This paper addresses performance analysis of ED of a general hospital. To this aim, a discrete event dynamic modeling approach is used to model the ED processes. The model employs a hierarchical timed Coloured Petri net framework in a concise and detailed way to capture patient flow and care processes within the ED. The simulation model was validated against historical data and then different types of scenarios were used to assess, compare and improve ED key performance indicators, such as patients waiting time, length of stay (LOS), and resource utilization rate. The proposed model helped the hospital policy makers to configure the ED in a way to improve its efficiency and staff satisfaction.</p>
      </abstract>
      <kwd-group>
        <kwd>Healthcare System</kwd>
        <kwd>Emergency Department</kwd>
        <kwd>Coloured Petri Net</kwd>
        <kwd>Performance Analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Emergency departments (ED) are facing different problems which affect their performance.
Of these, overcrowding is a common issue around the world which provides EDs patient
with long length of stay (LOS), waiting times for receiving services and then dissatisfaction
[1]. Although most emergency departments are under growing demand, they often face
with insufficient staffing and budget constraints. One solution to this problem is to increase
capacity of ED, providing adequate facilities and manpower, but this is not the best
approach for solving the problem, and perhaps not achievable [2]. Recently, the need for
improvement in ED processes due to cost, overcrowding and safety of patients admitted to a
large extent [3].To improve the efficiency and quality of ED processes, different methods
were used which include process mapping, demand management, critical path
identification, queuing systems, statistical forecasting, balanced scorecard and computer simulation
[4].</p>
      <p>In the last years, the use of computer simulation to help effective decision making in
health care and to improve the medical operations has been rising [5]. One of the main
reasons that simulation has become a common practice in solving medical problems is its
ability to dynamically analyze situations and present to the stakeholders a more realistic view
of the system [6]. The main purpose of the use of simulation studies in health care is to
reduce waiting times and length of stay for patients, better use of resources and reducing
operating cost [7]. Among the various methods for simulation in health care, discrete event
simulation is the most used method especially in EDs, and it seems to be a better alternative
with less time and cost compared to more traditional statistical methods [8].</p>
      <p>This study is intended to present a general simulation model for studying hospital
emergency department. For this purpose, we used Coloured Petri Nets modeling and simulation
formalism for making a general model of emergency department of a general hospital. In
addition to internal processes, external relations between ED and other hospital wards, such
as Radiology and Laboratory, is also considered. The main objective of this paper is, hence,
to improve ED processes. The problem we are dealing with is ED overcrowding which
provide patient with long length of stay and waiting times.</p>
      <p>The remainder of the paper is organized as follows. Section 2 covers a brief literature
review of the application of simulation in emergency departments. Research methodology,
simulation model, input data and variables are presented in Section 3. Section 4 focuses on
improvement scenarios and results of simulation runs. Finally, the paper is concluded in
Section 5.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Literature review</title>
      <p>In the literature, the main focal point of discrete-event simulation models that are used
for analysis of hospital emergency department is improving the flow of patients to reduce
waiting times. Examples of this include studying patient flow and forecasting ED
overcrowding using simulation by Hoot et al. [9], defining buffer concept to reduce waiting
times and increase throughput, and comparing amount of improvement gain by buffers by
Kolb et al. [10], and Khandekar et al. [11] paper on rearranging sequence of activities of
care process in order to reduce waiting times. Another area of ED simulations study focus
is on capacity estimation which determines the optimum number of personnel and physical
resources such as bed [12], [13] and also ED layout [14]. Improving quality of services and
ED processes is another area of study [5], [15].</p>
      <p>Although the use of Petri nets in the health sector is less than other fields such as
computer networks and production system, but it can be a useful method in this area. Here some
related works in this area are presented. Xiong et al. [16], apply petri nets for modeling and
analysis of health care process. They used a Petri net model to examine the effect of
changes in arrival pattern and resources on performance metrics such as waiting times and
resource utilization. Chockalingam et al [17] used Petri nets to model patient and resource
flow in a hospital system. Using the Petri net model they obtained a stochastic
representation of a metric termed distance to divert which measure the proximity of a hospital to a
divert state. Dotoli et al. [18] focused on pulmonology department workflow and drug
distribution system and used simulation as a decision support system. They employed a timed
Petri net (TPN) framework to describe the workflow in the department. Another example
is the work done by Ronny Man et al [19] of using process mining and Petri nets for pre
hospital stroke care. In the paper, process mining is used to extract process related
information e.g. timing information. Jorgensen et al [20] have used CPN for implementing a
new Electronic Patient Record Workflow System at two stages. The first CPN model is
used as an execution engine for a graphical animation called EUC and the second CPN
model is a Coloured Workflow Net (CWN). Together, the EUC and the CWN are used to
close the gap between the given requirements specification and the realization of these
requirements with the help of an IT system.</p>
      <p>In this paper, care processes of ED are modeled using hierarchical timed CPN. The main
focus of the model is on patient flows. The model also concentrates on the inter-department
care processes. It is aimed to find a suitable operating scenario to improve some
performance metrics of the department. Similar to [17], this paper has considered the relationship
between different departments (Labs, Radiology) of the hospital. Performance metrics
including waiting time, patient length of stay, and resource utilization are calculated under
different operating scenarios. Compared to existing literature, this paper puts more
emphasis on using features of CPN (color, time, and hierarchy) to capture the complex nature of
the system.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Research methodology</title>
      <p>In this paper, CPN Tools is utilized to create the Coloured Petri net model of the system
and to simulate the model to produce desired outputs. CPN Tools [21] is a powerful
software tool for modeling and simulation of discrete event systems modeled in CPN. Our
choice of using CPNs to model ED patient flow stems from the fact that PNs capture
structural properties of the underlying system which we can study and use. Petri nets provide the
foundation of the graphical notation and the basic primitives for modeling concurrency and
synchronization, conditions which are common in our model. After reviewing a wide range
of related literature, an initial model was prepared. Based on the initial model, the generic
conceptual model was developed. The generic model aimed to capture the characteristics of
an emergency department of a general hospital in Iran. Information required for the
modeling and simulation of processes were collected using hospital information system, sampling
in ward, and also open interview with employees. In order to simulate the model under
different configurations, different types of improvement scenarios were defined and
compared against performance criteria. Please note that here the term “Generic” as Gunal and
Pidd [22] mentioned means that the model has a defined structure with probability
distributions that can be parameterized by the user.</p>
      <p>The hospital under study is a general hospital in the city of Yazd of Iran. The emergency
department of the hospital consists of one triage room, one primary visit room, admission
and discharge unit, CPR room, and two inpatient areas with 24 inpatient bed. It works 3
shifts a day with 1 triage nurse, 1 general practitioner (GP), 1 emergency medicine
specialist (SP), 1 admission staff and 6 nurses.
3.1</p>
      <sec id="sec-3-1">
        <title>Process flow chart</title>
        <p>an outpatient with less acuity. After this stage, patient is referred to the GP. The GP
determines whether or not the patient requires other care services. Usually, patients with acuity
level 5 will leave the ED as soon as the payment cleared. Other patients who need more
medical services, such as diagnostic tests, need to be registered and will be directed through
the other processes. The final decision about the patient including discharge, inpatient at
ED, or being referred to other wards is taken by SP.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Performance variables</title>
        <p>For each process improvement project, establishing quantitative measures to implement
changes and develop monitoring system for continuous improvement is crucial. In this
paper, we investigate three key performance metrics including patients waiting times,
length of stay, and ED resource utilization.
• Waiting times [min]. It is the mean duration a patient need to spend in the ED waiting
room.
• Length of stay (LOS) [min]. The total time of staying at ED, from arrival to the time of
final decision made by SP.
• Resource utilization [%]. Represents the total busy time of resources compared with total
working time.
3.3</p>
      </sec>
      <sec id="sec-3-3">
        <title>Data collection</title>
        <p>Model inputs are distribution functions of ED activities. Random sampling was used to
estimate required data for patient’s arrival times and service time for all resources. All
distributions determined from the data and used in the model were validated by using
Kolmogorov Smirnov goodness of fit test with a 5% significance level. Using statistical
goodness of fit method, the distribution of processing time of different activities have been
defined.
In cases where there was no possibility of sampling, based on information available in the
hospital information system and also hospital staff experience, minimum, average and
maximum duration of each activity were chosen as the statistical distribution.
3.4</p>
      </sec>
      <sec id="sec-3-4">
        <title>The Hierarchical Timed Petri Net Model of the ED</title>
        <p>We used Color Petri-nets (CPNs) to model patient flow in an emergency department of a
hospital. A PN consists of a set of places, and a set of transitions and arcs that connect
place(s) to a transition and vice-versa. Non-negative integers assigned to every place in the
net are known as tokens.</p>
        <p>Overview of Colored Petri Nets. Coloured Petri nets are a discrete-event modeling
language combining the capabilities of Petri nets with the capabilities of a high-level
programming language. Petri nets are directed, bipartite graphs that can be used to model
discrete distributed systems. A CPN as defined by [23] is a nine-tuple
 = (, , , Σ, , , , , ), where  is a finite set of place  , is a finite set of transitions 
such that  ∩  = ∅,  ⊆ × ∪ × is a set of directed arcs, Σ is a finite set of non-empty
color sets,   is a finite set of typed variables such that type []Σ for all variable   s,
:  → Σ is a color set function that assigns a color set to each place, :  → ! is a
guard function that assigns a guard to each transition  such that type   = ,
:  → ! is an arc expression function that assigns an arc expression to each arc  such
that type,   = ()!" where  is the place connected to the arc , :  → ! is an
initialization function that assigns an initialization expression to each place  such that
type.   = ()!". A CP-net has a distinguished initial marking, denoted by !, and
obtained by evaluating the initialization expressions. The marking can be viewed as a
‘snapshot’ of how tokens are distributed in the PN [24].</p>
        <p>The simulation model of ED. Fig.2. shows the key structures of the model. The top layer
of the ED model is illustrated in this figure. This layer is the core part of the model. In the
model each place (circle) represents the state where patients may to be exposed there (table
2). Entry of each patient to the ED is modeled by a token on the place New Patient
(Fig.2). This place has the color set PAT, whose elements are 5-tuples (ESI, at,
qtr., wt, pt) consisting of patient Emergency Severity Index (ESI=1,...,5),
patient arrival time to the ED (at), an intermediate variable for Calculating wait time (qt),
patient wait time for receiving services (wt) and activities process time (pt). In the initial
marking, the New Patient has a random integer ESI number Between 1 to 5, an arrival
time based on an exponential distribution with mean 9, qt is equal to at and wt and pt are
equal to 0. In the ED layer (Fig.2) there are 8 transitions (the rectangles) with tag beside
them which called substitution transitions. Each of this transition has a subnet page belong
to it that corresponds to one of the considered tasks in the process. To know about the
model mechanism in each subnet consider GP visit subnet page as an example (Fig.3).The
occurrence of the transition Start visit models the situation where a general Practitioner
(resource) changes from being ready to being busy until the transition End visit occurs.
Patients wait to seize GP and after stochastic delay (GP visit time) and receiving GP orders,
they release that resource and come back to top layer to carry on rest of the process. The
other page is as the illustrated mechanism.</p>
        <sec id="sec-3-4-1">
          <title>Place P1 P2 P3</title>
          <p>P4
P5
P6
P7
P8
P9
P10
P11</p>
          <p>P14
P12&amp; P13</p>
        </sec>
        <sec id="sec-3-4-2">
          <title>Patients have done radiology and also need lab test</title>
        </sec>
        <sec id="sec-3-4-3">
          <title>Surgery result with success</title>
        </sec>
        <sec id="sec-3-4-4">
          <title>Patients with their Lab test result</title>
        </sec>
        <sec id="sec-3-4-5">
          <title>Patients have done radiology and do not need Lab</title>
          <p>The model contains resources (shown in Table 3) like nurses; physicians etc. in the form of
tokens, and patients use these resources according to model logic to receive care. These
resource tokens are held by the patients until they move to the next stage. The delay in
availability of a resource is represented as non-availability of tokens to advance the patient
tokens through the net. This delay increases the number of patient tokens in the system
waiting for a resource. Also Sets of variables used on the transitions in Fig. 2 are showed in
Table 4.</p>
          <p>Represent each patient and carry five attribute: ESI, arrival
time, qt, wait time, process time which are assigned to them
determine that patient need laboratory test or not
determine that patient need radiology test or not</p>
        </sec>
        <sec id="sec-3-4-6">
          <title>Laboratory result</title>
        </sec>
        <sec id="sec-3-4-7">
          <title>Radiology result</title>
        </sec>
        <sec id="sec-3-4-8">
          <title>General Practitioner (resource)</title>
        </sec>
        <sec id="sec-3-4-9">
          <title>Emergency medicine specialist (resource)</title>
          <p>p2
PAT
p6
p
p
gp</p>
          <p>PAT
sp</p>
          <p>OR
ED OR
p
gp
p
p
p11 PAT
p
[result=bernoul i(0.4)]</p>
          <p>t5
if result=0
then 1`p 
else empty
sp
if result=1
then 1`p 
else empty
dead PAT inpatient</p>
          <p>PAT
Radiology</p>
          <p>Radiology
(p,l,RR)
[l=N] t4
(p,l,RR)
In Fig.3 the function on output arc from end visit transition determines whether
patients need diagnostic tests (laboratory or radiology) or surgery or to be discharged. In SP
visit subnet page shown in Fig.4, the SP Doctor place is a common resource that is shared
by three activities in the page. Patients with Lab result, Radiology result or both of them are
coming to SP, because SP should decide about them. Patients may need to be inpatient in
ED. So go to the ED inpatient place or maybe it is necessary to go to other hospital ward
for special care, then go to the refer place. Finally, patient after visit by SP may be
discharged, so they go to discharge place in SP visit page.</p>
          <p>Model validation. We validate final results of the simulation model at first by interviewing
ED senior managers and nursing staff in order to validate the final results of the simulation
model. Secondly output of the simulation model is compared with real performance
indicators (Table 5) and it shows the validation of our model
In
p1
PAT</p>
          <p>gp
p
input (p);
output (upd_p,proctime);
action
startGPVisit(p);
1`gp@0</p>
          <p>GP
I/O Doc</p>
          <p>GP
visit (esi,at,qt,wt,pt)
room
PAT
gp
end
visit
visit
ed</p>
          <p>PAT0
Finally we also used CPN Tools state space graph to investigate whether the model works
truly or not. The state space tools are used to calculate state spaces and to generate state
space reports. Because our graph is very large, it is not possible to show it here.</p>
          <p>The performance metrics are investigated using 5 different replications with 95%
confidence interval. In each case the system is simulated by a long simulation run of 3 years.
(p,LR,RR)
start
visit2</p>
          <p>PAT6 p2
((esi,at,qt,wt,pt),LR,RR)
end
visit2
((esi,at,qt,wt,pt),LR,RR)
sp
(p,LR,RR)
t5
t2
Out refer
p
PAT</p>
          <p>PAT6 p5</p>
          <p>In
p14 PAT3
(p,RR)
vsitsaitr3t isaontcuapttiruoptStnuP (tpV (,iuRspiRtd3);(_pp,,RpRro);ctime);
p3 PAT3
((esi,at,qt,wt,pt),RR)
end
visit3
((esi,at,qt,wt,pt),RR)
p6 PAT3
In order to improve processes in terms of system performance metrics, four types of
scenarios were defined. These alternate scenarios are validated with domain experts and then were
implemented in simulation model. They are as fallow:
• Current scenario (benchmark):</p>
          <p>A – Current state of the ED as a basis for comparisons.
• Increase or decrease scenarios. It is, in fact, the most common type of scenario
associated with simulation studies. In this scenarios (increase or decrease) number of
resources, the number of emergency room doctors, nurses, beds and other physical
resources will be changed. In this view, one scenario is defined here:</p>
          <p>B – Increase an emergency medicine specialist (SP)
• Displacement Scenarios. In these scenarios, if possible, an alternative resource will be
replaced with available resource.</p>
          <p>C – Putting in place an emergency medicine specialist instead of GP
• Structural scenarios. The purpose of these scenarios is change of the process activities
and even delete or add new activities as part of the process.</p>
          <p>D – Remove triage unit and refer patients for triage and visit to GP
•</p>
          <p>Hybrid scenarios. These scenarios are defined as a combination of two or more than
two of the above scenarios. For example, displacement scenarios, and a structural
scenario combined to make a hybrid one.</p>
          <p>E – Replace GP visit and triage activities with a substitute emergency medicine
specialist who does these two.</p>
          <p>In scenario B, we have added 1 specialist to SP Doctor place and then run the
simulation model. To implement scenarios D and E, we have to change our basic model. In these
scenarios triage and visit is done simultaneously by a substitute doctor (GP or SP). The
difference is on the time of visit done by each of them. It’s less for SP than GP.</p>
          <p>The results of running simulation model with scenarios A to E alongside with their
improvement are shown in Table 6. We ran each of the improvement options individually as
separate scenario for this purpose.
Benchmark scenario, A, represent current situation in terms of three performance
measures. Waiting time is one of the effective measures of patient satisfaction. Here are
three main areas of patients waiting for service. Current scenario has the lowest waiting for
GP. Scenario B and C reduce SP waiting by about 45% and 0.4%. Scenario B reduces
admission waiting by 10%. Patients’ length of stay is a measure of ED efficiency and very
important in hospital performance evaluation. We compare LOS for patients with different
ESI level. ESI 1 and 2 include those patients who need CPR and then go to inpatient. In this
level, E has 9.2% improvement. D reduces LOS by about 8.6% and B and C by about 5.2%.
Patients with ESI 3 are patients who need two diagnostic tests here include Laboratory and
Radiology. In this level B, C, D and E reduced LOS by about 2.7%, 0.5%, 1% and 1.35%.
Patients with ESI 4 just need one diagnostic test, laboratory or radiology. In this level B, C,
D and E reduced LOS by about 2.65%, 1%, 1.42% and 2.15%. Finally, patients with ESI 5
are outpatient and leave ED after GP visit. In this level B, C, D and E reduced LOS by
about 0%, 8.7%, 19.1% and 21.7%. Resource utilization represents total busy time of
resources to available working time under the simulated conditions.it is a good measure for
ED manager in the allocation of resources. Scenario A improves GP utilization by 18%.
Scenario B, C, D and E improve admission staff utilization by about 9.67%, 7.25%, 8% and
11.3%. Scenario A has the most SP utilization and other scenarios reduced it. Substituted
SP utilization for scenario E is more than C by about 2.1 minute. Also ED staff reaction to
our work was positive and they helped us through the work but due to the reluctance of ED
managers, we failed to implement the proposed changes in reality.
5</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusions and future work</title>
      <p>In this research a CPN model was developed to analyze the performance of an emergency
department. To evaluate the system under different conditions and improve processes,
improvement scenarios were defined. These scenarios may not greatly improve the
performance of the model parameters, but could be considered as an existing and potential
alternative. We compare 5 scenarios by three variables.</p>
      <p>In table 7, improvement rate of each scenario, considering its resources, presented.
To have a better analysis in choosing scenarios, it is necessary to see cost and benefit of
each scenario simultaneously. Another option which should be considered is ED’s mission,
saving patients with high acuity (ESI 1&amp;2), and scenarios that aim to facilitate this
purpose even if they cost more than other, are selected. Among defined scenarios, E and D
have more improvement especially about patient with ESI 1&amp;2. Although the cost of
scenario E to scenario D is some more, but given the purpose of the improvements resulting
from the scenario E, this scenario is selected as major one. In the next stage scenario D due
to lower cost and also more overall improvement than the other two scenarios have been
chosen as the second better scenario.</p>
      <p>Based on the model proposed in this paper, it is possible to translate the flow diagram
into a Generalized Stochastic Petri net. It would be interesting to compare the results of the
two modeling approaches. That is, the exact values of different performance indices can be
compared with the simulated values. Because of the hierarchical nature of the model and
that every activity has a separate page belong to it; acceptance and use of this model in
various conditions may seem easy and by just few change it could be localized. Using
Coloured Petri net, we were able to assign different attributes to patients entered into the ED
and therefore, the model traces them to calculate performance metrics. The tools and
features that are available for simulating CPN models in CPN Tools e.g. hierarchy, functions,
guards, state space analysis etc. made it a useful option in simulating complex systems
specially healthcare. Future development to this work would be to add other attributes to
tokens color such as cost of each activity in the process and engage other wards. Also, it
would be of value to consider other resources including beds, facilities and equipment.
16.
17.
18.
19.
20.
21.
22.
23.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>International Journal on Software Tools for Technology Transfer</source>
          <volume>10</volume>
          (
          <issue>1</issue>
          ),
          <fpage>15</fpage>
          -
          <lpage>28</lpage>
          (
          <year>2008</year>
          )
          <article-title>CPN Tools</article-title>
          . In: AIS group, Eindhoven University of Technology, The Netherlands.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <source>(Accessed</source>
          <year>2012</year>
          ) Available at: http://www.cpntools.org Günal ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Pidd</surname>
          </string-name>
          , :
          <article-title>Moving from specific to generic: Generic modelling in health care</article-title>
          .
          <source>In : Proceedings of the 2007 INFORMS Simulation Society Research Workshop</source>
          (
          <year>2007</year>
          ) Jensen,
          <string-name>
            <given-names>K.</given-names>
            ,
            <surname>Kristensen</surname>
          </string-name>
          ,
          <string-name>
            <surname>L.</surname>
          </string-name>
          : Coloured Petri Nets ,
          <source>Modelling and Validation of Concurrent Systems</source>
          . Springer, Denmark (
          <year>2009</year>
          ) Jensen,
          <string-name>
            <surname>K.</surname>
          </string-name>
          :
          <article-title>An introduction to the practical Use of coloured Petri nets</article-title>
          .
          <source>Lecture Notes in Computer Sciencee</source>
          , Springer-Verlag,
          <fpage>1</fpage>
          -
          <lpage>14</lpage>
          (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>