question

David Seo avatar image
0 Likes"
David Seo asked David Seo edited

How to move the patient to multi-places using List?

Hi, @Cliff King

I have a issue to solve the patient moving to multi-places dynamically according to the exam result. The dynamic route is followed captured;

The real model is very complicated and then I made a simple model using tutorial model to show my model issue. But the logic of it is similar with it.

The patient should be routed according to the treatment type of TreatCombiTable distribution. The distribution result is 7 types of TreatType and the patient route of the result is decided to the column LAB, EKG and XR value euqual to 1.

For example, in the case of TreatType == 5, the patient should be routed to LAB and XR. In the case of 7, the patient should be moved LAB, EKG and XR. The sequence is not important but the first is good for 'LAB'.

But the patient can't move in my model attached;

Task1.32 - Add Triage_Decision and Using List - Add LAB_1.fsm

How can I control it?

FlexSim 20.1.2
flexsim 20.1.2patient moving dynamical condition
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 David Seo edited

Your model isn't working because the only tokens that can reach the Pull from List activities are the same ones waiting in the Push to List activity. I don't see how you expect this to work.

After reading what you're trying to do I made this model using Run Subflow activities for each of the treatment possibilities. Then in the Quantity field of each Run Subflow activity I entered

token.EKG == 1

(or token. LAB or token.XR respectively)

That way that subflow is only run if the person actually needs to do that treament.

WithRunSubFlows.fsm


withrunsubflows.fsm (384.9 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.

David Seo avatar image David Seo commented ·

@Matthew Gillespie

The fixed subflow sequence is not my expectation and my doing. The patient will move to the treat place of minimum waiting place according to the waiting patient quantity. And the nurse also will guide the patient to the place of minimum waiting patients.

The fixed sequence of subflow activities also can't make the waiting time minimized.

So I will try to do it using list activity.

The example question model is very simple but my current project model is very large and complicate. And after next 'consult' activity group, the patient should move back to the Labs, EKG and Xray etc...according to the consult result.

Can the patient moving sequence will be able to be changed dynamically according to the waiting patients?

0 Likes 0 ·
process-sequence.png (135.3 KiB)
Matthew Gillespie avatar image Matthew Gillespie ♦♦ David Seo commented ·

@Seung Yong Seo Nowhere in the original question does it say that you need the patient to go to the place with the least waiting patients. In fact, your question says "The sequence is not important."

If you want help creating a model where the patient's treatment order is based off the number of waiting patients, please ask a new question and state that requirement in your question.

0 Likes 0 ·
David Seo avatar image David Seo Matthew Gillespie ♦♦ commented ·

My expression in English is not enough for your understanding. I am sorry for it. But if using subflow, I did not ask a question to this forum. It is a very simple method.

The meaning of what the sequence of it is not important is the dynamic route of the patient moving not fixed.

Anyway if you want to solve it in a new question about my issue, I will do it as your request.

@Matthew Gillespie

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.