Prolonged treatment may lead to b12 malabsorption and subsequent vitamin b12 deficiency; degree of deficiency is dose-related and association stronger in females and younger in age younger than 30 years see also what are side effects associated with using ranitidine.