Create patient groups

We fixed a bug that prevented patient group creation via the API.