fixed bug that says there is already a patient with id generated with ocr