Taiwan has a well-structured healthcare insurance system that offers accessible medical resources to the public through nominal health insurance fees. Consequently, individuals in need of care willingly pay nominal charges for medical services, including rehabilitation treatment. This study delves into the rehabilitation department of a medical center in southern Taiwan. Despite offering comprehensive traditional rehabilitation services covering neurological, musculoskeletal, pediatric, cardiopulmonary, communication, and swallow disorders, the demand for appointments significantly surpasses the number of available therapists. Therefore, this paper proposes an efficiently method to optimize patient-therapist appointment. With a Complex Conditional Logic that we have designed in this paper, we aim to simplify the scheduling processing for patient seeking appointment either online or via phone calls. More than 50,000 cases have been treated since the system's launch within a year, facilitates hospital resource allocation and enhancing patient medical experiences.