backend: update save function for new protocol
patient editor: implement saving patients