Elderly people undergoing femoral neck replacement can suffer from stress ulcers due to disorders of the nervous system, endocrine system, and excessive blood loss during the operation, which can lead to gastrointestinal bleeding. Artificial hip replacement is suitable for serious joint damage such as femoral neck fracture, rheumatoid arthritis, etc. It can improve the quality of life of patients and delay the life cycle, and artificial hip replacement is one of the higher-risk surgeries in orthopedics. It can cause imbalance of the nervous and endocrine systems, intraoperative bleeding and other possibilities during the operation, and is more likely to cause stress ulcers and gastrointestinal bleeding for elderly patients with weaker physiological functions. It is recommended that after artificial hip replacement patients need to follow the doctor’s instructions for diet, avoiding intake of spicy stimulation, cold food, avoiding tobacco and alcohol. Any discomfort should seek medical attention in time.