question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

How to get number of exam rooms available in Version 19.1.0

healthcare
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Are you trying to use that number in the model logic?

0 Likes 0 ·
Tee Hiett avatar image Tee Hiett commented ·

Yes, I was going to use this in the Divide activity. If there was an exam room available, I was going to have the CMA escort the patient to that room, take the vitals and leave the patient there for the RN. If no exam room was available, I would have the CMA escort the patient to the Vitals Chair, take the vitals and, if a room were available, escort the patient to that exam room. If there was still no exam room available, the patient would back to the review room and wait for a room become available.

Shortly after I posted this question, I found, in one of the simple clinic models you sent me, the process shown in the attached graphics, step-1.jpg step-2.jpg, where the primary activity is acquiring the exam room and the secondary activity is acquiring the triage area if an exam room is not available. This seems to work fine.

But while I am learning, I would still like to know how to identify the number of exam rooms available.

Thanks for your help.

Tee

0 Likes 0 ·
step-1.jpg (129.4 KiB)
step-2.jpg (118.6 KiB)

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Tee Hiett commented

Using the Max Wait Timer on the acquire activities is the preferred way to do something like this where your logic is based on if there is at least one thing available. So you try to acquire an exam room, if there is one you immediately acquire it and you move on down the logic, if one is not available you wait a certain amount of time and then when that timer runs out you release the token down a separate branch of logic.

However, if you need to reference the number of available resources for some other kind of decision in your model you can query the list for that kind of information:

Table.query("SELECT value FROM Locations WHERE [Exam Rooms] AND Priority = 0").numRows
Table.query("SELECT value FROM Staff WHERE RNs AND Priority = 0").numRows
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Tee Hiett avatar image Tee Hiett commented ·

Thanks, Matthew.

0 Likes 0 ·