I am modeling a clinic that has team centers where the team A location only uses Team A Nurses. The rooms are picked at random based on availability so I want to have the person acquire a room and then recognize what team it is in and assign a nurse from that team group. This is in the block "Acquire Room & Corresponding Nurse" on the left side of the patient flow. I was trying something in the code editor of the Team Nurse Staff Resource but was having issues with the getlastacquiredresource function.