<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Schedule for MDs and separate patient stream in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533170#M41616</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;Yes, the SlotDuration was made to determine the length of each appointment. You could have just put 30 minutes, but I thought I'd make it semi-dynamic in case you change the slots for a certain day. It just calculates the number of working seconds in that day divided by the number of slots in that day. So the whole denominator is just a reference to the Slots column in the table.&lt;/DIV&gt;</description>
    <pubDate>Thu, 24 Jun 2021 14:16:34 GMT</pubDate>
    <dc:creator>eric_m3</dc:creator>
    <dc:date>2021-06-24T14:16:34Z</dc:date>
    <item>
      <title>Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533163#M41609</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40727-test.fsm" target="_blank"&gt;test.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Hi Team,&lt;BR /&gt;There are two things I want to implement in my model and I'm not sure what is the best way to go about it. Could you give me some direction?&lt;BR /&gt;&lt;BR /&gt;1) I have two MDs (MD1 and MD2) and I want to give them two separate working schedules (example MD1 = Monday and Tuesday 8 AM to 5 PM, MD2 = Tuesday and Friday 9 AM to 6 PM)&lt;BR /&gt;&lt;BR /&gt;2) I want to create separate patient streams for these two MDs who show up for appointments of variable duration only when the MD is available.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1623949565666.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506457i8122D2E797FA2B0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1623949565666.png" alt="1623949565666.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html"&gt;@Matthew Gillespie&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Jun 2021 17:09:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533163#M41609</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-06-17T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533164#M41610</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P style="margin: 10px 0px 5px; text-indent: 0px; orphans: 3; text-align: left; padding: 0px 0px 5px; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/questions/103707/view.html#"&gt;@Vinayak N2&lt;/A&gt;, for the first question, you will want to create a time table for each doctor. There's a &lt;A href="https://docs.flexsim.com/en/21.1/Tutorials/FlexSimHC/1-5CreateIndependentTasks/#shift"&gt;tutorial&lt;/A&gt; that goes over how it works and how to set it up.&lt;/P&gt;&lt;P style="margin: 10px 0px 5px; text-indent: 0px; orphans: 3; text-align: left; padding: 0px 0px 5px; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;For the second question, you can create two different patient flows, one for each doctor. Then you can set the schedule of the sources to create tokens during the times you know the doctor is working. The variability in time is something you can control in the "Process" activity in process flow.&lt;/P&gt;&lt;P style="margin: 10px 0px 5px; text-indent: 0px; orphans: 3; text-align: left; padding: 0px 0px 5px; color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1624053562414.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506436iB92B33A1BC3DC4EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="1624053562414.png" alt="1624053562414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/40779-test-em.fsm" target="_blank"&gt;test-em.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Jun 2021 22:08:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533164#M41610</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-06-18T22:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533165#M41611</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/40800-test-em.fsm" target="_blank"&gt;test-em.fsm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Eric! Great ideas! &lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;For the first question, I was able to create the 'Time tables'. Thanks for the tutorial. &lt;BR /&gt;&lt;BR /&gt;For the second question, I'm trying to model it from a capacity allocation point of view.&lt;BR /&gt;&lt;BR /&gt;For example, for MD1's schedule below, for Tuesday, I want to allocate patients to the schedule only for 3 hours between 9 to 12. It could be 3 patients taking 1 hour each or 6 patients taking 0.5 hours each. I can assign the duration of appointment using a distribution via the process time field. But is there any way to model the arrivals based on the time table?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1624233169120.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506438i1AB8E6C2D1E73E53/image-size/large?v=v2&amp;amp;px=999" role="button" title="1624233169120.png" alt="1624233169120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 20 Jun 2021 23:57:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533165#M41611</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-06-20T23:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533166#M41612</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I don't know of a way to directly change the arrivals based on a time table. You can always just make the arrivals schedule follow the same hours as the time table for the doctor. The other option I can think of is to include a decide activity before the patient is created to see if the doctor is working or not. If they are off schedule, the token goes to a sink. If they are on schedule, the token proceeds to create a patient. That's not directly manipulating the arrivals, but it is filtering them out when the doctor is not working. I did this for MD1 so you can see how it might work.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/40885-test-em.fsm" target="_blank"&gt;test-em.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Jun 2021 17:39:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533166#M41612</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-06-21T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533167#M41613</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN style="caret-color: rgb(65, 65, 65); color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; orphans: 3;"&gt;Thanks Eric, that's a great idea too, but I thought of another direction that I think is more representative of how I want my model to behave. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="caret-color: rgb(65, 65, 65); color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; orphans: 3;"&gt;I want to create a list with number of slots (which varies based on the weekday) available for patients to book from. And patients should be able to book slots (1 slot or 2 slots based on a percentage) if they are available in the list and arrive at the clinic until the number of slots for the day are completely booked. If no slots are available, then they should book slots on the next day's list of slots.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="orphans: 3;"&gt;A) I created a global table called 'Slotsperweekday' to create slots into the list. But I am not able to push the number of slots to the list based on the Day of the model run time. Can you help me with &lt;/SPAN&gt;that?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="caret-color: rgb(65, 65, 65); color: rgb(65, 65, 65); font-family: sans-serif; font-size: 14px; orphans: 3;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1624338568512.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506442i9469438E17E2A1B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1624338568512.png" alt="1624338568512.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="orphans: 3;"&gt;B) I then went to create an arrival source that creates the demand per day based on a distribution and pulls these from the list and processes. I'm struggling with choosing an appropriate source object to do this. And if the daily demand exceeds the number of slots available, I want the demand (or patient) to carry over to the next day. Any ideas or examples with regard to this would be super helpful. &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/40928-test3.fsm" target="_blank"&gt;test3.fsm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Jun 2021 05:32:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533167#M41613</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-06-22T05:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533168#M41614</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Great, thanks for the added explanation. I've added a bit to your model that should do what you're wanting. The general idea is that a token is created for each time slot every day (repeating weekly). That token will have a specific day and time assigned to it that can be pushed to a list. Tokens are also created for patients that can pull from the list (either one or two slots). The token is delayed until the scheduled time at which point it moves on to create a patient in the model. If there are more tokens created in one day than slots available, the token will pull a value from the next day. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I gave the slot token some labels to keep track of things. They include the day in the week (1-7: based on the order of the global table), total day since the model was running (starting at 1 and incrementing each day), and the time slot that it will fall in (hours) both by total model time and time of day. Total model time is used to sort the list and to make sure the patient isn't created until the delay is up. Time of day is just used as a reference to see what time in the day that patient is assigned (ex: 9-5, this label has no logic dependent on it, I just thought it was convenient when looking at the values on the list). The push to list activity has a timer in case a slot is never scheduled. That way those time slots are pulled off the list and you can keep track of how many appointments are going unscheduled.&lt;/P&gt;&lt;P&gt;For the source creating the patients, I decided to use a Date Time Source. This allows you to have a different distribution of patients for each day of the week. Right now, the distribution is a uniform distribution with a lower bound of half the slots and an upper bound of the total slots for each day. You can change this to whatever distribution you'd like.&lt;/P&gt;&lt;P&gt;I made some notes in the process flow of things to be aware of that the logic uses to work (in case you make changes). You might want to create a model that uses hours since the seconds can get big fast. I would recommend that, but just be aware that you would need to change anything referencing time to be consistent with the time unit change. Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/40975-test3-em-1.fsm" target="_blank"&gt;test3-em_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:26:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533168#M41614</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-06-22T18:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533169#M41615</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you, &lt;A rel="user" href="#"&gt;@Eric M&lt;/A&gt;! This is exactly what I wanted to do!&lt;/P&gt;
 &lt;P&gt;One question:&lt;/P&gt;
 &lt;P&gt;Could you explain what the value in the slotDuration column would return? To me it looks like it is referencing the same cell?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1624399149602.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506455i6EA4C7EEFD481DD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1624399149602.png" alt="1624399149602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2021 07:04:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533169#M41615</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-06-24T07:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533170#M41616</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Yes, the SlotDuration was made to determine the length of each appointment. You could have just put 30 minutes, but I thought I'd make it semi-dynamic in case you change the slots for a certain day. It just calculates the number of working seconds in that day divided by the number of slots in that day. So the whole denominator is just a reference to the Slots column in the table.&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Jun 2021 14:16:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533170#M41616</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-06-24T14:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533171#M41617</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you, Eric! That makes perfect sense. I actually confused myself because while I was looking at the table, the first column was hidden from view.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 26 Jun 2021 03:15:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533171#M41617</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-06-26T03:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533172#M41618</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi Eric, one more question if I may,&lt;BR /&gt;&lt;BR /&gt;I want to use this flow for multiple MDs with their own slots and patient arrivals.&lt;BR /&gt;&lt;BR /&gt;So, I split the Patient source and MD)_Days source into two and gave them two separate labels MDnumber and MD (which equals to 1 or 2). I want to pull the slots such that patient arrivals with MDnumber = 1 pulls only slots with respect to slots with MD =1. Could you show me how to do this? Is this the correct approach?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1625594103170.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1506456iE9AE5BF91601CC9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1625594103170.png" alt="1625594103170.png" /&gt;&lt;/span&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/29530/ericm3.html" nodeid="29530"&gt;@Eric M&lt;/A&gt; &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/41509-test3-em-1.fsm" target="_blank"&gt;test3-em-1.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jul 2021 17:58:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533172#M41618</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-07-06T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533173#M41619</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could consolidate it all into one block like what you have above, but it may be simpler to copy the entire block for each new MD. The reason being they will each have their own list and their own table (I'm assuming). I would just copy the whole process flow, create a new table and then update references to the table, list, and Patient Flow the patient is created in. Also, you could probably get rid of the "Assign Labels: SlotsToPull" since that sounds like it will now be MDnumber. You can then update the Pull from List activity to reference that label for the quantity to pull.&lt;/P&gt;&lt;P&gt;If you're planning on doing this with a lot of MDs, I would assign a label at the beginning of the block referencing that MD's table and replace all references to that table with the new label. That way when you copy the flow for a new MD, you only need to update the assign labels one time to the new table instead of looking through each activity and making sure it's updated to what it should be. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jul 2021 18:33:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533173#M41619</guid>
      <dc:creator>eric_m3</dc:creator>
      <dc:date>2021-07-06T18:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule for MDs and separate patient stream</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533174#M41620</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 oh yeah, that makes sense! It's definitely cleaner that way. Thanks. 
&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jul 2021 22:43:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/schedule-for-mds-and-separate-patient-stream/m-p/13533174#M41620</guid>
      <dc:creator>vinayak_n2</dc:creator>
      <dc:date>2021-07-06T22:43:16Z</dc:date>
    </item>
  </channel>
</rss>

