question

Tiffany Pecson avatar image
0 Likes"
Tiffany Pecson asked Tiffany Pecson commented

Escort Patient to an area based on a previous activity/operation

How can the escorted patient go to an bed area that was used in an earlier activity?

For example, at Activity 110 they are escorted to an Exam Room (there are 3 Exam Room Areas that they could end up at), then they go through a few other activities and other areas, and at Activity 180, I would like them to return to the same Exam Room Area so that they same MD is used as previous. I don't want to reserve the bed during the time between 110 and 180 so that others could use it.

I imagine it should be similar to the Staff Requirements, but I'm not seeing that option in the Escort Patient > Process Activity Type for the Patient Destination.

FlexSim HC 5.1.0
escort patientbased on patient location or area
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 Tiffany Pecson commented

The easiest thing to do is to set a label on the patient that records the previous location. Then reference that label when you want to go back there. You'll want to use the setlabel command, probably in an Activity Finished trigger, to store off the location. Then use the getlabel command to reference that label in the Patient Destination when sending them back there.

· 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.

Regan Blackett avatar image Regan Blackett ♦ commented ·

I built a sample model of what Matthew describes. The big points are that on my "Arrival" Activity, I used the pick option of the Activity Finished trigger to set a label on the patient that captured the current location of the patient. I do this at the Finish trigger because when the activity ends, the patient will have traveled to the first bed.

Then at Activity 70, I used an option on the Patient Destination field that bases the destination on the Patient's Label. In that field I reference the Label I set previously.

One thing though to watch out for is after you choose the label on Patient Destination, you will need to go to the code editor for that field and change the command that says 'getlabelvalue' to 'getlabel'. Everything else stays the same and it should work fine. See attached:
return-to-previously-used-location.fsm

1 Like 1 ·
Tiffany Pecson avatar image Tiffany Pecson Regan Blackett ♦ commented ·

Awesome, instead of choosing a specific bed though, can you have the label be that BedArea? I'm thinking that could be adjusted in the Value part of the Trigger Editor right? I'm not great at coding lol so I don't fully understand the Value: tonum(patientlocation) portion. Or does that code already handle the general BedArea?

0 Likes 0 ·
Regan Blackett avatar image Regan Blackett ♦ Tiffany Pecson commented ·

@Tiffany Pecson

Yes you can do that too, at the Finished Trigger of the Arrival activity, instead of saying tonum(patientlocation) for the label value, you can say getarea(patientlocation) and that will do the area rather than the specific bed the patient used.

1 Like 1 ·
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.