Task 1.3 - Add Transport and Equipment Objects

Task Overview

In this task, you'll build out two different possible treatment tracks for the patient. These different treatment tracks will teach you how to use transports and equipment, which are a special class of objects in FlexSim Healthcare models.

In the first track, a tech will get an EKG machine from a storage area to monitor the patient. In the second track, the patient will be transported to the x-ray room for radiology and then transported back to the exam room using a wheelchair. You'll build and test each track in this tutorial.

When you're finished, your simulation model should look similar to the following image:

Step 1 Add Additional Locations, Equipment, and Staff

In this step, you'll add additional location objects and staff objects to the 3D model. You'll also add some transport objects to the model (wheelchairs) and an equipment object (an EKG machine).

Lastly, you'll also add some additional staff members to this model and create a group for the new staff members. When you're finished, your simulation model should look similar to the following image:

To make these changes:

  1. Make sure the 3D model is open and active and that you are in the FlexSim Healthcare environment.
  2. In the Library under the Healthcare group, click the Location object to open a menu of location objects. Drag an Xray object into the model. (Use the image at the beginning of this step as a guide on the placement of objects.)
  3. Click Xray1 to select it. In Properties, change the Z-rotation to -90.00.
  4. In the Library under the Healthcare group, click the Transport object to open a menu. Click (don't drag) the Wheelchair to enter Create Objects mode. Your mouse pointer will change to the Create Objects icon when you're in Create Objects mode. Click the area in the model where you want to add the first wheelchair.
  5. While still in Create Objects mode, click in the model to add a second Wheelchair.
  6. In the Library under the Healthcare group, click the Equipment object to open a menu of location objects. Drag a PortableEKG object into the model.
  7. In the Library under the Healthcare group, click the Staff object to open a menu. Click (don't drag) the Tech to enter Create Objects mode. Click in the model to create the first Tech.
  8. While still in Create Objects mode, click in the model to add a second Tech.

Check that your simulation model looks similar to the image at the beginning of this step.

Step 2 Create Additional Object Groups

Since you added several new 3D objects to your simulation model in the previous step, you need to create object groups for those new objects in order to make your model scale well. In this step, you'll create an equipment group named EKGs for EKG machine, a transport group named Wheelchairs, and a staff group named Techs.

To create additional object groups:

  1. Press and hold down the Shift key while using your mouse to draw a box around all of the Wheelchair objects. A red box will appear around the Wheelchairs to show they are selected.
  2. Right-click Wheelchair1 to open a menu. Point to Transport Groups, then select Add to New Group to open a group properties window.
  3. In the Group Name box, rename this group Wheelchairs. Close the group window.
  4. Press and hold down the Shift key while clicking a blank area in the 3D model with your mouse to de-select everything.
  5. In the 3D model, press the Ctrl button and click Tech1 to select it. While still pressing the Ctrl key, click Tech2 to select it as well. Right-click Tech1 to open a menu. Point to Staff Groups, then select Add to New Group to open a group properties window.
  6. In the Group Name box, rename this group Techs. Close the group window.
  7. Press and hold down the Shift key while clicking a blank area in the 3D model with your mouse to de-select everything.
  8. In the 3D model, right-click PortableEKG1 to open a menu. Point to Equipment Groups, then select Add to New Group to open a group properties window.
  9. In the Group Name box, rename this group EKGs. Close the group window.

Consider saving your model at this point.

Step 3 Use Equipment in a Treatment Phase

In this step, you'll learn how to work with equipment in FlexSim Healthcare models. You'll add a treatment option in which a Tech will get an EKG machine from its storage area and use it to test the patient. When the patient is done being tested, the Tech will return the EKG machine to its storage closet.

When you're finished, the process flow will look similar to the following image:

To build this logic:

  1. In the PatientFlow process flow, press and hold down the Shift key while using your mouse to draw a box around the Consult and Escort to Exit containers. The containers will highlight yellow to show they are selected.
  2. Click on one of the highlighted containers and then drag downwards to move the containers down so we'll have some room to insert some more activities.
  3. From the Library under the Basic group, drag a Decide activity into the space we just made.
  4. Rename this activity Treatment Type?.
  5. Find the connector between the MD Exam and Consult containers. Click on the arrow end of the connector and drag it to the top edge of the Treatment Type? activity.
  6. Add a Move Equipment then Process activity set (under HC Activity Sets).
  7. See Move Equipment then Process for more information about how the activities in this activity set work together.

  8. Create a connector from the bottom edge of the Treatment Type? activity to the top edge of the new container.
  9. Rename this container EKG.
  10. Rename the Equipment resource EKG.
  11. Rename the Staff resource EKG Tech.
  12. Create a connector from the bottom edge of the EKG container to the top edge of the Consult container.
  13. Click the icon of the EKG activity to open its properties. Next to the Equipment box, click the Sampler button and sample the EKG1 object in the 3D view. Choose the EKGs group option from the menu so that the field now reads Any member of EKGs.
  14. Click the icon of the EKG Tech activity to open its properties. Next to the Staff box, click the Sampler button and sample one of the Tech objects in the 3D view. Choose the Techs group option from the menu so that the field now reads Any member of Techs.
  15. From the Library under the HC Sub Flows group, drag a Move Equipment activity into the process flow and insert it after the Process activity.
  16. Rename the new Move Equipment activity Return EKG.
  17. Click the icon of the Return EKG activity to open its properties. Next to the Equipment box, click the Sampler button and sample the EKG resource so that the field now reads Acquired EKG.
  18. Click the arrow next to the Destination box to open a menu. Select Equipment's Reset Position.
  19. Next to the Staff box, click the Sampler button and sample the EKG Tech resource so that the field now reads Acquired EKG Tech.

Save, then reset and run the simulation model.

After the MD Exam phase, a Tech brings the EKG machine to the patient. After a brief delay, the Tech then returns the EKG to its storage room.

Step 4 Use a Transport in a Treatment Phase

In this step, you'll add the second treatment track to the PatientFlow process flow. You'll add a treatment track in which the patient is taken to get an x-ray. This treatment track will show you how to work with transport objects because the patient will need to be transported to and from the x-ray on a wheelchair.

When you're finished, the process flow will look similar to the following image:

To build this logic:

  1. Add a Transport Patient then Process activity set (under HC Activity Sets).
  2. See Transport Patient then Process for more information about how the activities in this activity set work together.

  3. Create a connector from the bottom edge of the Treatment Type? activity to the top edge of the new container.
  4. Rename this container Xray.
  5. Rename the Location resource Xray.
  6. Rename the Transport resource Wheelchair.
  7. Rename the Staff resource Tech.
  8. Create a connector from the bottom edge of the Xray container to the top edge of the Consult container.
  9. Click the icon of the Xray activity to open its properties. Next to the Location box, click the Sampler button and sample the Xray1 object in the 3D view.
  10. Click the icon of the Wheelchair activity to open its properties. Next to the Transport box, click the Sampler button and sample one of the Wheelchair objects in the 3D view. Choose the Wheelchairs group option from the menu so that the field now reads Any member of Wheelchairs.
  11. Click the icon of the Tech activity to open its properties. Next to the Staff box, click the Sampler button and sample one of the Tech objects in the 3D view. Choose the Techs group option from the menu so that the field now reads Any member of Techs.
  12. From the Library under the HC Sub Flows group, drag a Move Equipment activity into the process flow and insert it after the Process activity.
  13. Rename the Move Equipment activity Return Wheelchair.
  14. Click the icon of the Return Wheelchair activity to open its properties. Next to the Equipment box, click the Sampler button and sample the Wheelchair resource so that the field now reads Acquired Wheelchair.
  15. Click the arrow next to the Destination box to open a menu. Select Equipment's Reset Position.
  16. Next to the Staff box, click the Sampler button and sample the Tech resource so that the field now reads Acquired Tech.
  17. From the Library under the HC Sub Flows group, drag a Transport Patient activity into the process flow and insert it after the Process activity.
  18. Click the icon of the new Transport Patient activity to open its properties. Next to the Destination box, click the Sampler button and sample the Exam Table resource in the Bed Placement container so that the field now reads Acquired Exam Table.
  19. Next to the Staff box, click the Sampler button and sample the Tech resource so that the field now reads Acquired Tech.
  20. Next to the Transport box, click the Sampler button and sample the Wheelchair resource so that the field now reads Acquired Wheelchair.
  21. Since you only want to test this new track right now, click the icon of the Treatment Type? activity to open its properties. In the Send Token To box, delete the current number and type 2.

Save, then reset and run the simulation model.

After the MD Exam phase, a tech grabs a wheelchair then comes and transports the patient to the x-ray machine and takes an x-ray of the patient. The tech then returns the patient to their exam room.

Step 5 Change the Patient Arrival Schedule

Now that you've built out a fairly complex simulation model and tested it, it's time to increase the number of patients that move through the health care clinic model. In this step, you'll change the patient arrival schedule on the Date Time Source activity in the Arrivals process flow. Patients in a walk-in clinic often arrive at varying rates depending on the time of day. The Date Time Source activity will allow you to define the number of patients arriving within different time periods of the day.

To change the patient arrival pattern:

  1. Open the Arrivals process flow.
  2. Click the icon of the Source activity to open its properties. Click the Edit Arrivals button to open this activity's expanded properties window.
  3. In the Rows box change the number of rows from 1 to 18.
  4. Close the properties window.

Save your model. Reset and run the simulation model. A new patient should now arrive every 30 minutes.

Step 6 Assign Patients to Different Treatments

Now that you've built and tested each of the different treatment tracks, we'll randomly distribute patients between the two treatment tracks. We could do this directly in the Treatment Type? decide activity, but we're going to create two different labels sets and have the decide activity read the value of the Treatment label off the patient.

  1. Open the Toolbox in the left pane. Find the People Settings object and double click on it to open its properties.
  2. Add a label set.
  3. Add a number label and rename it Treatment.
  4. Set the value of Treatment to be 1 for LabelSet1 and 2 for LabelSet2.
  5. Close the window.
  6. Open the Arrivals process flow.
  7. Click the icon of the Create Patient activity to open its properties. Click the arrow next to the Label Set box to open a menu. Select Label Set by Percentage.
  8. Fill out the popup so that 50% of patients are assigned the first label set and the other 50% are assigned the second label set.
  9. Open the Patient Flow process flow.
  10. Click the icon of the Treatment Type? activity to open its properties. In the Send Token To box type patient.Treatment.

Save, then reset and run the simulation model:

As you watch, notice that the patients will randomly be assigned to one of the two different treatment tracks.

Step 7 Add Charts

Now that we have the patient flow working the way we want, take a look at displaying data collected by this model:

  1. Open the Patient Flow process flow.
  2. From the Library under the Basic group, drag a Milestone activity into the process flow and insert it before the Split activity in the Consult container.
  3. Rename this activity End Treatment.
  4. Open its properties and in the Milestone Name box enter EndTreatment.
  5. On the main toolbar, click the Dashboards button to open a menu. Select Add a Dashboard to create a new dashboard.
  6. From the Library under the People Templates group, drag a Avg Milestone Times chart into the dashboard.
  7. In its properties window move to the Partitions/Sorting tab.
  8. Add a Patient Label partition by clicking the plus button.
  9. Choose Treatment in the dropdown that was added.
  10. Click the OK button to apply the settings.
  11. From the Library under the Staff State Templates group, drag a (pie chart) Avg State chart into the dashboard.
  12. In its properties window move to the Options tab.
  13. In the Groups to compare list box check the RNs, MDs, and Techs boxes.
  14. Click the OK button to apply the settings.

Save your model. Reset and run the simulation model. The charts should display data similar to this:

Conclusion

Up to this point, the patients and staff members sometimes walk through walls and objects. In the next tutorial task, you'll learn how to fix this problem using A* navigation. Continue on to Tutorial Task 1.4 - Add A* Navigation.