question

Patrick Cloutier avatar image
1 Like"
Patrick Cloutier asked Patrick Cloutier commented

Equipment and transport utilization is zero when not moving ?

I noticed that the utilization of equipment and transport is zero when the resource is not moving. Their state is idle.

For example if a patient is waiting on a gurney, the state is idle even though it is being used/kept by the patient.

This means that there is no way to measure the utilization of these resources.

Any other way I could measure that?

Thanks a lot,

FlexSim HC 5.1.0
utilization
· 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.

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

I looks like you are correct. Ideally the state of the object should be utilized if the object is "kept" from one activity to the next, until the item is released. I apologize for the inconvenience in this.

In the meantime, you can try to set the state manually after the activity in which you acquire the equipment. However, because of the runtime of FlexScript I can't guarantee if the state won't be changed back to idle again as the code executes.

This is something we will definitely bring up with the developers.

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Sam Stubbs ♦ commented ·

Thanks but how do I reference the resource in my code?

For example: setstate(transport,3);

How do I reference transport? treenode transport = ???

Thanks,

0 Likes 0 ·
Sam Stubbs avatar image Sam Stubbs ♦ Patrick Cloutier commented ·

To be honest I'm not quite sure the best approach to this. You may want to add some triggers on the equipment itself. In the OnDropOff trigger have it send a delayed message to itself in 0 time. And then in the on message trigger include something like:

setstate(current,STATE_UTILIZE);

You might need to include a conditional statement checking whether the OnDropOff is triggering when an equipment is being kept by a patient or not, I'm not entirely familiar with how and when these triggers are used by the equipment.

0 Likes 0 ·
Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier answered Patrick Cloutier commented

I found a workaround.

When a patient enters a gurney, I write the time on a label on the gurney.

When he leaves the gurney, I write in a global table the gurney name, time it was taken, and time it was released.

At the end of the simulation I will export the table to Excel and calculate the time each gurney was used VS the total run time.

This should give me a pretty estimate of the utilization.

I will also need to do this for the scopes that we are discussing in another post.

· 2
5 |100000

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

Cliff King avatar image Cliff King commented ·

Congratulations on finding a way to track the metric you were after by making recordings on your own, but I'm curious if you tried using the "Utilize" and "Free" triggers. I'm just curious for future reference if that is a viable option or not. [[note: I just looked at the "Utilize" pick list option, and it is intended for use with a Custom Activity, so it would not work for what you would want to use it for!]]

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Cliff King commented ·

I had tried it and it didn't work.

Thanks

0 Likes 0 ·
Cliff King avatar image
0 Likes"
Cliff King answered Logan Gold converted comment to answer

We (the developers) never intended for a resource's state to automatically be set to "utilized" when kept. A kept resource is not necessarily being used or utilized in any way by the patient. It is simply being kept from being used by any other patient until released. There are several good reasons for this. I suggest that you force the resource to be utilized, if you want their state to be utilized. This can be done in a number of different ways, but most easily with a process activity. There are also trigger options to "Utilize" and "Free" a resource.

As a side note, the setstate() command does not change HC related states. The setobjectstate() command is used instead; however, keep in mind that the timing is crucial when messing with the states of objects, because the object's behavior may overwrite your state changes.

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

Patrick Cloutier avatar image Patrick Cloutier commented ·

Hello Cliff, my resources are not necessarily kept. The problem is that they are used by patients (lying on gurneys for hours) but there is no way to measure this utilization. I get 1.9% utilization at the end of the day which is only their movements that is recorded. They can be used for 75% of the day and I still get 1.9% utilization. Whether they are kept or not doesn't affect that figure.

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.