question

Lynn T2 avatar image
1 Like"
Lynn T2 asked Lynn T2 commented

How to use labels in appointment table to determine patient resources?

Hello,

I am working on a model where the patient checks in, is brought back to pre-op, then goes to a specific procedure room with a specific procedure MD, and then is taken to post-op.

I want to be able to indicate the specific procedure room and procedure MD for each patient in my arrivals table. However, when I try to reference that value when acquiring the procedure room and the procedure MD, my model gives me an error. Note: The procedure MD will service the same room all day, so Procedure Room 1 will always be staffed by procedure MD 1, etc.

Is there a way to do this? To indicate the resources needed in the appointment table and then reference those when acquiring those specific resources?

I knew how to do this in the previous version, so I am hopeful I am overlooking something simple. I have highlighted the acquire process steps in the attached model in green. Currently, the model only has 2 patients coming in, but the final model will have quite a few more pre-op bays, procedure rooms, and post-op bays, and gurneys.

Thank you,

Lynn

Appointment Table Labels.fsm

FlexSim 21.2.2
labelsacquire resourceappointment table
5 |100000

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

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Lynn T2 commented

The ProcRoom label that you're referencing in the Procedure Rooms resource is stored on the patient and not on the token, so you need to change it from token.ProcRoom to patient.ProcRoom:

1644534597824.png

One other thing you might consider, instead of using the By Case option you could just pass the room number into the ProcedureRooms group to get a specific room:

Group("ProcedureRooms")[patient.ProcRoom]

1644534769242.png

So if the patient's ProcRoom label were 2, then you'd get the 2nd room listed in the ProcedureRooms group.


1644534597824.png (18.4 KiB)
1644534769242.png (9.8 KiB)
· 3
5 |100000

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

Regan Blackett avatar image Regan Blackett ♦ commented ·

Just for fun to add an alternative, you could also make your labels in the appointment table a "Pointer" type from the Plus-sign menu and use the sampler on the table cell to directly reference the objects in the model like this:

pointers.png

Then when you go to acquire them, you can reference the label in the location/staff fields like this:

pointers2.png


0 Likes 0 ·
pointers.png (7.0 KiB)
pointers2.png (9.1 KiB)
Lynn T2 avatar image Lynn T2 Regan Blackett ♦ commented ·
Thank you, Regan! I have not used this before, but I think I am going to try it out on my next model. I appreciate your response!
0 Likes 0 ·
Lynn T2 avatar image Lynn T2 commented ·
Thank you, Matthew! This was extremely helpful and solved my issue -- I appreciate it.
0 Likes 0 ·

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.