---
# System prepended metadata

title: Videocall Decoupling

---

# Videocall Decoupling

 - Add document on call - use appointment id instead of video call id and move this feature to documents module
 - Remove video call aggregation from appointment repository - use application side joins

## Participants - decouple from user roles

Idea is that instead of relying on participant type we could just define aspects of behavior which is different for each participant and provide a way to define this when we want to add anyone to a call

Features:
 - End Call
	- For site-to-side calls (started by scheduler) only scheduler which started a call could complete it
	- Only scheduler (if not site-to-site)/practitioner which is currently on call could complete it
 - Leave call
	- Schedulers which not started a call can’t leave it (while they also can’t join a call…)
	- Patients should not affect video call status when leaving
 - Presented patient
	- Schedulers which starts site-to-site call also represent patient with specific ID
 - Care Location?
     - ???
 - Display nicknames/full name
     - ???

## Research
 - Check who need to own videocall_appointments table - who uses it.

## Weird things
 - Settings/Repository just grabs everything from video call projection table
