Social functions of medical practice