Fixing some patient record display problems