A study has found that some AI tools produce hallucinations when asked to remove patient information from electronic patient records.