<?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: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542542#M48969</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;thank you so much! That worked! I was able to finish the Mammo Process, but now I get a series or errors that I believe have to do with my latest changes. It is referencing the Elevator, but I don't understand what they mean. Thank you soo much for your help so far. Can you take a look? &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48925-tampa-satellite-2nd-floor-jj2.fsm" target="_blank"&gt;Tampa_Satellite_2nd_floor_JJ2.fsm&lt;/A&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 22 Feb 2022 21:53:59 GMT</pubDate>
    <dc:creator>jaidit_j</dc:creator>
    <dc:date>2022-02-22T21:53:59Z</dc:date>
    <item>
      <title>How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542536#M48963</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;/P&gt;
 &lt;P&gt;I'm building a HC model, and we have a Mammo Screening machine as one of the services. How can I tell FlexSim to only send Female patients to this machine? We will be having an arrival distribution for the machine. Every time a patient gets there to a get a mammogram, it will have to be a female. How can we do this? Thanks so much!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 13:30:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542536#M48963</guid>
      <dc:creator>jaidit_j</dc:creator>
      <dc:date>2022-02-22T13:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542537#M48964</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The trick to this is first knowing the difference between Male/Female-shaped patients in such a way that we can use activities like a Decide to chose different logic for the differently shaped patients. This difference isn't baked in so we need to do a little work.&lt;/P&gt;&lt;P&gt;What I would do first is set up a Person Label in the People Settings section of the toolbox called "Gender" (or whatever you would like to name it).&lt;/P&gt;&lt;P&gt;Then in your patient flow right after the Source activity, put in a Assign Labels activity and configure it like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="labels.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509072iBC23C39707C97441/image-size/large?v=v2&amp;amp;px=999" role="button" title="labels.png" alt="labels.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then you can use a Decide activity using the conditional decide option like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="decide.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509073i74EDB43E39D8E017/image-size/large?v=v2&amp;amp;px=999" role="button" title="decide.png" alt="decide.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If the Gender label has the text "Male" in it then you can send the patient to a connector off the Decide activity named "Male", otherwise use "Female". There are some more streamlined ways of doing this but thought it might be usefule to see it done this way in case this is a newer idea for anyone reading this.&lt;/P&gt;&lt;P&gt;Then you can just have your "Male" patients go to activity set that acquires one location resource, and your "Females" another. I'm also including an example model to see how this all comes together.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/48931-getgenderexample-1.fsm" target="_blank"&gt;getgenderexample_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:13:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542537#M48964</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2022-02-22T16:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542538#M48965</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/215/regan.b.html" nodeid="215"&gt;@Regan Blackett&lt;/A&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/22352/jaiditj.html" nodeid="22352"&gt;@Jaidit J&lt;/A&gt; I don't think the shapeindex number is very reliable and probably depends on the number/order of other loaded shapes. I've usually done this by looking at the name of the shape to see if it has the word Male or Female in it:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, "&gt;shape&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0); font-family: Menlo, Monaco, Consolas, "&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, "&gt;patient&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0); font-family: Menlo, Monaco, Consolas, "&gt;).&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 136); font-family: Menlo, Monaco, Consolas, "&gt;value&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0); font-family: Menlo, Monaco, Consolas, "&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, "&gt;includes&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0); font-family: Menlo, Monaco, Consolas, "&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 136, 0); font-family: Menlo, Monaco, Consolas, "&gt;"Male"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(102, 102, 0); font-family: Menlo, Monaco, Consolas, "&gt;)&lt;/SPAN&gt; &lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:02:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542538#M48965</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2022-02-22T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542539#M48966</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Cool, I didn't know about the includes() method, updated my answer to use that instead.&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:25:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542539#M48966</guid>
      <dc:creator>regan_blackett</dc:creator>
      <dc:date>2022-02-22T17:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542540#M48967</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;This helps. I think to keep it easier we are going to have males and females go to MAMMO with males dressing blue, and females dressing pink. However, I can't get my females to dress pink. everyone is dressing blue. I spent all morning and cant get this to work. Can someone review my code? Thanks so much!&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48923-tampa-satellite-2nd-floor-jj2.fsm" target="_blank"&gt;Tampa_Satellite_2nd_floor_JJ2.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 20:17:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542540#M48967</guid>
      <dc:creator>jaidit_j</dc:creator>
      <dc:date>2022-02-22T20:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542541#M48968</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/22352/jaiditj.html" nodeid="22352"&gt;@Jaidit J&lt;/A&gt; You added two change shirt options. So all the mammo patients are putting on a pink shirt and then changing to a blue shirt. You just want to change the shirt once, but have the color be dependent on the gender label. So the color field should say:&lt;/P&gt;&lt;PRE&gt;patient.Gender == "M" ? Color.blue : Color.pink&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1645561629850.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1509075i98873EFDF1C2CE2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1645561629850.png" alt="1645561629850.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you've never used the the ternary operator (condition ? true_value : false_value) it's just a way of putting an if/else statement on a single line. It's the same as saying:&lt;/P&gt;&lt;PRE&gt;if (patient.Gender == "M")
    color = Color.blue;
else
    color = Color.pink;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 20:33:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542541#M48968</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2022-02-22T20:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542542#M48969</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;thank you so much! That worked! I was able to finish the Mammo Process, but now I get a series or errors that I believe have to do with my latest changes. It is referencing the Elevator, but I don't understand what they mean. Thank you soo much for your help so far. Can you take a look? &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48925-tampa-satellite-2nd-floor-jj2.fsm" target="_blank"&gt;Tampa_Satellite_2nd_floor_JJ2.fsm&lt;/A&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 21:53:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542542#M48969</guid>
      <dc:creator>jaidit_j</dc:creator>
      <dc:date>2022-02-22T21:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542543#M48970</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/22352/jaiditj.html" nodeid="22352"&gt;@Jaidit J&lt;/A&gt; You added ElevatorBank1 as a member of the Locations group, but the elevator isn't a "Location" object.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48908-tampa-satellite-2nd-floor-jj2-fixed.fsm" target="_blank"&gt;tampa-satellite-2nd-floor-jj2_fixed.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you have further questions please ask it on a new, separate question as explained in our &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/articles/22192/best-practices-for-using-this-answers-site.html" target="_blank"&gt;Best Practices page&lt;/A&gt;.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 22:09:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542543#M48970</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2022-02-22T22:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get ONLY Female patients go to Mammo Screening in a Healthcare Facility</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542544#M48971</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I will! thnak you sooo much!!!!!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 22:15:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-get-only-female-patients-go-to-mammo-screening-in-a/m-p/13542544#M48971</guid>
      <dc:creator>jaidit_j</dc:creator>
      <dc:date>2022-02-22T22:15:06Z</dc:date>
    </item>
  </channel>
</rss>

