question

fenia tseligka avatar image
0 Likes"
fenia tseligka asked Adrian Haws edited

How to make different types of patients leave waiting room early

There are 3 types of patients tracks, that will leave the waiting room of the HC unit after some particular time (time differs for each type). More specifically, the patients will be leaving without being seen by a doctor after their waiting tolerance expires. How do i make that happen in Flexsim HC? Thank you in advance.

FlexSim HC 5.0.12
timelwbsevaluate patient conditionleave earlywaiting tolerance
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Adrian Haws avatar image Adrian Haws commented ·

Similar question asked here.

0 Likes 0 ·
Regan Blackett avatar image
1 Like"
Regan Blackett answered Adrian Haws commented

Handling this with the Patient Queuing objects built in features for "Patient Condition" would seem to be the best approach for this problem (located below in the object properties)

The Evaluate patient field asks for a time interval where you will check to see if the patient will execute a Leaving without being seen event and the Patient leaves Early field lets you set up conditions that will cause the patient to leave early and what they should do if flagged to leave early. One note on the Evaluate field, this creates an event every 'X' time that you put in so if your interval is very short it creates a lot of 'ticks' in your model that may make stepping through events take a longer than normal.

Here's an example of what the configuration of this field could look like along with a sample model with it in use.

In my model I created two PCI's (that follow the same track, but you could easily set up PCI's that have different tracks and use the same methods) and I want each of the PCI's to have a different time threshold for when they can leave early, such that PCI 1 leaves if they have been in the waiting room for longer than 5 minutes or if they are PCI 2 they leave if they have been in the waiting room for more than 10 minutes.

I write my condition in the Blue text above to first get the PCI of the patient and then check the time they have been in the waiting room by checking the total elapsed time in the model (time()) and subtract the time that they entered this object (getentrytime(patient)). This is actually two conditions separated by the OR operator ( || ) one for when PCI is 1 and the other for when PCI is 2 and could be read to say

"if the PCI label of the patient is 1 AND the patient has been in waiting room for longer than 5 minutes OR if the PCI label of the patient is 2 AND the patient has been in waiting room for longer than 10 minutes"

Another thing I did, just to verify that it is working is I saved the time spent in the waiting room to a Label on the patient called LWBS so that if a patient leaves early you can see how long they were in the waiting room before they decided to leave, and I set that up in the same field as the above picture.

Try sample model and let me know if you have any other questions.

waiting-room-lwbs.fsm


· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

fenia tseligka avatar image fenia tseligka commented ·

@regan.blackett thank you very much for your answer. It was really helpful, however, this is my first project in Flexsim and i have some more questions about a malfunction in the simulation.

To be exact, i made all the changes you proposed and was fit to my problem, however when the simulation runs, there seems to be some problem at an exact simulation time (i attached the error log in .txt format). Things are getting even more weird when i attempt to change the "evaluate patients every" field, because the times the error occurs differ depending on the evaluation time. I have no clue about what is wrong with it, nor how to fix this. Thank you in advance.

flexsimhc.txt

0 Likes 0 ·
flexsimhc.txt (2.8 KiB)
Adrian Haws avatar image Adrian Haws fenia tseligka commented ·

@fenia tseligka Did these exceptions only happen after you applied Regan's suggestions? Also, could you please send us your model? That's often very helpful in determining the cause of exceptions.

0 Likes 0 ·
fenia tseligka avatar image fenia tseligka Adrian Haws commented ·

@Adrian Haws Unfortunately, i cannot publicly post my model for the time being, as long as it is part of my diploma thesis and the proffesor's permission is required.

Yes, exceptions happened after @regan.blackett 's proposed changes. Do you have any clue why that happened? Is there anything i can do to avoid those problems?

Furthermore, could you please describe what the "evaluate patients every" field actually does to the program, because when i set this field to 60 minutes for all waiting rooms (i have three of them), no problem occurs for the desired interval (i simulate the processes of 1 week)

0 Likes 0 ·
Show more comments
Show more comments
Adrian Haws avatar image
0 Likes"
Adrian Haws answered fenia tseligka commented

You can accomplish this through patient activities and PCIs. For each of your patient tracks, simply make a "Process" activity after the patients arrive to the waiting room. You can then manually enter the processing time for each patient track, and omit any staff requirements.

You can then set up different Patient Classification Index (PCI) numbers for the three types of patients, and specify which patient track each will go to. Finally, make sure that the patient arrival pattern is set up for each PCI.

Let us know if anything is unclear.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

fenia tseligka avatar image fenia tseligka commented ·

Thank you very much for your interest. I did what you proposed but still getting some errors.

0 Likes 0 ·