ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Healthcare (HC) > FlexSim HC: Q&A
Downloads

FlexSim HC: Q&A Questions about FlexSim Healthcare

  #1  
Old 10-12-2009
Lionel Lim Lionel Lim is offline
Flexsim User
 
Join Date: Oct 2009
Posts: 6
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Power: 0
Lionel Lim is on a distinguished road
Default How to create probability functions in patient tracks?

Hello

I am currently using Flexsim HC to model a clinic. I was just browsing through the help function on patient tracks and found that it is possible to create tracks such that patients can move from one activity to a possible number of different activities, depending on the conditions set.

Perhaps describing my scenerio will give a clearer picture. In my model, after the patient arrives, he will proceed to register. After registration, he will either proceed to the

1.triage station followed by physician consultation
2.straight for physician consultation

How can I go about creating the branch off for the tracks? I tried using the advance functions for the registration activity, selecting the "next activity chooser" based on percentages. However, the result wasn't too good when I ran the program. The patient jumped between triage and physician consultation.

Would really appreciate if you could advise me on how to go about from here.

Thank you!

Best regards
Lionel
  #2  
Old 10-12-2009
Pablo Concha Pablo Concha is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 104
Downloads: 100
Uploads: 1
Thanks: 103
Thanked 52 Times in 37 Posts
Rep Power: 232
Pablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nice
Default

Hello,

the first thing that comes to mind is if you changed the predecessor activity on the "branches" of the track.. this was an issue for me the first time i tried using the next activity chooser option..

regards

Pablo Concha Erilkin
  #3  
Old 10-12-2009
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

I know this doesn't answer your question but it might be a solution in some cases: have 2 tracks with the right % for the 2 options
The Following 2 Users Say Thank You to Steven Hamoen For This Useful Post:
Pablo Concha (10-13-2009)
  #4  
Old 10-13-2009
Lionel Lim Lionel Lim is offline
Flexsim User
 
Join Date: Oct 2009
Posts: 6
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Power: 0
Lionel Lim is on a distinguished road
Default

Hi Pablo

Thank you for the response. I have actually assigned the right predecessor, but what happens is that when I assign the next activity by percentages under next activity chooser, both activities occur simultaneously, and not based on a probability percentage.

Under the addition of activities in Patient Tracks, do you know how to create sub branches from the branches (activities 10_, 20_, etc)? Something similar to what is shown in the help function under tutorials-modelling tools-track manager-activities.

Sorry for asking so many qns.
  #5  
Old 10-13-2009
Pablo Concha Pablo Concha is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 104
Downloads: 100
Uploads: 1
Thanks: 103
Thanked 52 Times in 37 Posts
Rep Power: 232
Pablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nice
Default

Lionel, sorry about the first response... i made that test a while ago and didn't remember what was the problem i had, it was the same you have now.

To solve it you have to make sure of 2 things,

1.- on the start of the branch (1st activity of the branch) use as predecesor the same activity number. so that that activity is it's own predecessor.

2.- be sure to update on advanced funtions the next area list on the activity where you are setting the activity chooser, so the connection are made correctly ( move to the right tha possible areas according to the activity chooser)

As Steven mentions, you also have the option to use 2 tracks and set the percentages on the PatientArrivals

regards

Pablo Concha Erilkin

regards

Pablo Concha Erilkin
The Following User Says Thank You to Pablo Concha For This Useful Post:
Lionel Lim (10-14-2009)
  #6  
Old 10-14-2009
Lionel Lim Lionel Lim is offline
Flexsim User
 
Join Date: Oct 2009
Posts: 6
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Power: 0
Lionel Lim is on a distinguished road
Default

Pablo

Thank you very much! The model is working now.

Best regards
Lionel
  #7  
Old 10-15-2009
Lionel Lim Lionel Lim is offline
Flexsim User
 
Join Date: Oct 2009
Posts: 6
Downloads: 0
Uploads: 0
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Power: 0
Lionel Lim is on a distinguished road
Default

Pablo

When you built your model, did you come across global look-up tables? In the "Next Activity Chooser" option, under "by percentage", it is only possible to assign percentages for the first 5 activities. The instruction says that if there are more than 5 activities to be assigned, we have to use empirical tables. I assume it refers to global look-up tables. In the table, do I key in data identical to the format for percentages? And after I select the table in the "Next Activity Chooser" option, do I have to change any of the commands?

Best regards
Lionel
  #8  
Old 10-15-2009
Pablo Concha Pablo Concha is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 104
Downloads: 100
Uploads: 1
Thanks: 103
Thanked 52 Times in 37 Posts
Rep Power: 232
Pablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nice
Default

Lionel,

to use an empirical distribution (table), you have to create a table in wich the first column you asign the percentages and in the second the value you need to return (in this case, activity numbers), you can set as many rows as you need. Then when you need to use this distribution, you use the command dempirical("tablename").

in your case, i think you need to select the option "custom code" in the next activity chooser, the go to the edit code option (the big A button at side of the option) and change the 100 on the nextactivityID = 100; line so that it reads:

nextactivityID = dempirical("tablename");

regards

Pablo Concha Erilkin
The Following User Says Thank You to Pablo Concha For This Useful Post:
Lionel Lim (10-18-2009)
  #9  
Old 11-06-2009
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

The picklist option "By Percentage" has been improved for the next release so that there is not a limit to the number of percentage that can be defined. It also has an easier template view for entering the data.

I've also made a function called P() which can take up to 30 parameters in the order of percentage, value, percentage, value, etc. This was done in response to a request by a user for a single command that can be easily imported and exported via the csv file option for tracks.
The Following 2 Users Say Thank You to Cliff King For This Useful Post:
Lionel Lim (11-09-2009)
  #10  
Old 11-20-2009
Kenny Macleod's Avatar
Kenny Macleod Kenny Macleod is offline
Flexsim Australia
 
Join Date: May 2008
Location: Melbourne, Australia
Posts: 136
Downloads: 114
Uploads: 0
Thanks: 86
Thanked 38 Times in 18 Posts
Rep Power: 176
Kenny Macleod will become famous soon enoughKenny Macleod will become famous soon enough
Default

Before deciding to branch a track, I suggest you consider how you want it reported.

I believe that if you branch a track, the results of each branch are aggregated and remain within that track; in some cases, overall results may be misleading.

If you simply use two different tracks with the right % in each, then each one gets its own space in the track-by-track statistical comparisons.

Neither is right or wrong, just appropriate for purpose.

Kenny


Thread Thread Starter Forum Replies Last Post
Using probability to indicate machine/operator availbility David Chan Q&A 13 02-18-2011 02:03 AM
While functions Xavier Jackson Q&A 12 08-12-2008 01:32 PM
BasicFR Advanced Functions Cliff King Q&A 0 11-13-2007 08:02 PM
Create tables on the fly AlanZhang Tips and Tricks 0 08-24-2007 06:01 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.