get appointment data