Update of SGPstateData and getCohortData functionality