InTransit error

InTransit error

santiagodiazames
Enthusiast Enthusiast
888 Views
10 Replies
Message 1 of 11

InTransit error

santiagodiazames
Enthusiast
Enthusiast

[ FlexSim 23.2.0 ]

I noticed that in my model, nurses have an InTransit - Available state when they are idle:

1695664818843.png

In the image above, the selected RN is idle, but her state is InTransit - Available.

Unfortunately when I collect statistics on walking times, this throws off the values significantly.

Is there a way to fix this? I'd like her state to show as it should be, Idle.

0 Likes
Accepted solutions (1)
889 Views
10 Replies
Replies (10)
Message 2 of 11

jason_lightfoot_adsk
Autodesk
Autodesk
You can change the state in a custom code. With the People module you'll need to check which state_profile is being used.
0 Likes
Message 3 of 11

santiagodiazames
Enthusiast
Enthusiast
Thanks Jason. I haven't learned how to write custom scripts yet, unfortunately.

If there is no other way, it seems that this issue cannot be solved for now.

0 Likes
Message 4 of 11

Matthew_Gillespie
Autodesk
Autodesk
If you attach the model we can try to figure out what's going wrong.


Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 5 of 11

santiagodiazames
Enthusiast
Enthusiast

Model SD_39.fsm

Thanks Matthew. I've attached the model.

There are many instances in which RNs show an InTransit state, but in reality they are standing still and idle.
For instance at time 8:33 am, all 6 RNs are standing idle at the "MA Counter 4".
However, they have different states:

RN1 InTransit – Available

RN1_2 Idle – Available

RN1_3 InTransit – Available

RN1_4 Idle – Acquired

RN1_5 Idle – Available

RN1_6 Idle – Available

0 Likes
Message 6 of 11

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

There's an issue with the patient flow. In the Check-out portion you're creating two tokens and starting them in the ExamRoomSetupProcessFlow. However, the 2 sections in that flow are connected so that the Set up room part is being done twice (and the 2nd token is actually starting before it's supposed to because it doesn't have to wait to acquire the RN).

1695753012995.png

I just removed that 2nd Create Tokens activity and that fixes your issue.

model-sd-39_1.fsm



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 7 of 11

santiagodiazames
Enthusiast
Enthusiast

Many thanks Matthew!!
I'll take a look at it now.
But in the meantime, I'll mark this as answered.

0 Likes
Message 8 of 11

santiagodiazames
Enthusiast
Enthusiast

Hi Matthew,

I noticed that there are now null (empty) values in the PersonMilestones table.
Do you happen to know why that is?

1695756938185.png

0 Likes
Message 9 of 11

santiagodiazames
Enthusiast
Enthusiast

It seems that the state issue was indeed fixed.
However, taking a closer look at the model, I noticed that only 68 patients get to see a doctor (81 patients are expected).

The remainder are stuck in the waiting room.

This wasn't happening in the model I attached.
Do you have any idea why this would happen Matthew?
I'll continue reviewing. Any insights are much appreciated!

1695757589491.png


0 Likes
Message 10 of 11

Matthew_Gillespie
Autodesk
Autodesk

It looks like you're getting deadlock where one patient has the exam table and the PrepExam token has the nurse.

To me, it seems like the ExamRoomSetupProcessFlow should be acquiring the ExamTable earlier so that some other patient doesn't snatch it up before the nurse is ready. Something like this:

model-sd-39_2.fsm

1695758624097.png



Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 11 of 11

santiagodiazames
Enthusiast
Enthusiast
Hi Matthew,

I am very grateful for your help.
I checked the statistics generated from this latest model you attached, and it looks accurate now. Excellent!

0 Likes