Bug fix in patient resource