Fix formula in patient type matrix report