question

Lenny C avatar image
0 Likes"
Lenny C asked Ben Wilson edited

Passing an object (medication) from a Staff to a Patient

Hi,

I would like to have an MD pass medication to a patient. It seems that the only way for "Load"/"Unload" to work is for the "Create Object" event to be in the same stack of processflow events as the person taking the medication.

I have made a workaround where the MD passes the object to a queue, where it is destroyed, and instantaneously a new object is created in the patient flow.

Is there a proper way to do this? File attached:

passmedication.fsm

FlexSim 20.1.3
flexsim 20.1.3healthcarestaffpatientpatient activity
passmedication.fsm (72.3 KiB)
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

·
David Chan avatar image
1 Like"
David Chan answered Ben Wilson edited

There are many ways to model this. If the visual of the medicine is not important, you can just put in a delay to represent the passing of the medicine to the patient. I have done a model in using HC module. Please check.

passmedication_1_DC.fsm

David


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

Lenny C avatar image Lenny C commented ·

Thanks David! The process flow helped! Moving the object to a patient as destination andsplitting the tokens seems to be very elegant. Thanks again.

0 Likes 0 ·
Tee Hiett avatar image Tee Hiett commented ·

@david.chan Nice demo Thanks. What does the Question Mark do in the "Process Medicine" Activity patient.Staff?

Thanks,

Tee

Pill Bottle.jpg

0 Likes 0 ·
pill-bottle.jpg (92.1 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Tee Hiett commented ·

It's allowing the code to return a null if the label Staff doesn't exist on the patient, without generating an exception.

0 Likes 0 ·
Tee Hiett avatar image Tee Hiett Jason Lightfoot ♦ commented ·
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.