You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Calcium carbonate is used for and explain in detail?
Ref: Katzung's, 14th ed. pg. 1089* This medication is used to treat symptoms caused by too much stomach acid such as heartburn, upset stomach, or indigestion.* It is an antacid that works by lowering the amount of acid in the stomach.* It can also be used in renal osteodystrophy with hyperphosphatemia, hypocalcemia and osteoporosis like conditions.* It can cause metabolic alkalosis (Milk-alkali syndrome)