This paper presents a BLE beacon-based Hospital Positioning System designed to improve the efficiency and accuracy of patient tracking and positioning in hospital environments. The system uses trilateration to provide real-time, precise positioning information by having each patient wear a BLE bracelet that transmits signals received by the BLE beacons. The signal information is collected and aggregated by the BLE gateway and processed on a cloud platform to determine the patient's specific location. The system also includes optimization algorithms, such as a greedy algorithm to determine the placement and number of BLE beacons, a shifting algorithm to smooth the RSSI values, and a trilateration algorithm to accurately calculate the patient's position. The proposed system has several advantages over traditional manual tracking methods, including improved accuracy, real-time tracking, and reduced workload for hospital staff. The system is scalable, flexible, and easy to deploy, and it can be customized to meet the specific needs of different hospitals. The system has been tested in a real hospital environment, and the results show that it is effective and reliable. This paper provides a new perspective and solution to improve healthcare services, especially patient tracking and positioning in hospital environments.