During pregnancy, famotidine should be used only when clearly ... Lab and/or medical tests (such as endoscopy, kidney function) may be done while you are using this medication.