how to make an active visit

visits
Tags: #<Tag:0x00007f88c96a1f40>

(mona saleh) #1

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


(Cosmin Ioan) #2

Here is a simple REST call that shows if a given patient has an active visit:

https://demo.openmrs.org/openmrs/ws/rest/v1/visit?includeInactive=false&patient=50103df7-b32e-4113-a2d4-27d0f4d9ac84&v=custom:(id,uuid,location:(uuid,display,name),startDatetime,stopDatetime)