Fix variable name mismatch with patient death time in template