I would imagine the computer is recording the vital signs before, during and after.
Any foul play will show up.
But it will still happen

Given the right skill set a ships crew could murder the odd low passenger and fabricate the computer medical logs to get away with it a few times.
Once they have way above average deaths though...