digest prescription JSON in graph