The power quality (PQ) assessment is carried out at a KIMS hospital facility by conducting the harmonic study as per IEEE3002.8 guidelines. As per PQ data obtained, the hospital facility is experiencing a significant number of PQ disturbances and violating IEEE519 limits for PQ in special application systems. It is found necessary to use a compensator for PQ improvement. A cost-effective compensator, DVR, is designed to improve PQ in the hospital facility. The designed DVR controller model is tested in the RT-LAB hardware-in-the-loop real-time simulation platform using OPAL-RT with multicore FPGA processors to validate the compatibility of the designed controller to be applied for real system implementation. Thus, PQ assessment helps in the appropriate design of compensating controllers to suit practicality. A comparative study of choice of designed DVR controllers such as PI, Fuzzy, ANN, ANFIS-PI optimised and ANFIS-Fuzzy optimised controllers tested in real-time for different cases and for different loading conditions are summarised.