question

Santi avatar image
0 Likes"
Santi asked Santi commented

InTransit error

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.

FlexSim 23.2.0
state error
1695664818843.png (103.9 KiB)
· 4
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
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 0 ·
Santi avatar image Santi Jason Lightfoot ♦ commented ·
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 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Santi commented ·
If you attach the model we can try to figure out what's going wrong.
0 Likes 0 ·
Show more comments

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Santi commented

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


1695753012995.png (66.6 KiB)
model-sd-39-1.fsm (3.0 MiB)
· 5
5 |100000

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

Santi avatar image Santi commented ·

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

0 Likes 0 ·
Santi avatar image Santi commented ·

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 0 ·
1695756938185.png (101.1 KiB)
Santi avatar image Santi Santi commented ·

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 0 ·
1695757589491.png (181.2 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Santi commented ·

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

0 Likes 0 ·
1695758624097.png (44.6 KiB)
model-sd-39-2.fsm (3.0 MiB)
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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