RA-350 - Refactored patient relationships javascript code to use a proper dialog library