The former deputy director of Shanghai’s health and family planning commission was sentenced to 19 years in prison after being found guilty of corruption at a local court on Sunday.