how to make an active visit

Hi, I want to do the attached use case, but I am stuck with how to make sure that the patient’s visit is active or not. any help, plz :slight_smile: ? I am only choosing the patient and do not know if he/she has an active visit or not. use%20case%20diagram

Here is a simple REST call that shows if a given patient has an active visit:,uuid,location:(uuid,display,name),startDatetime,stopDatetime)