add function get_application in doctor